@everymatrix/cashier-header 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierHeader-3y-CVhjE.cjs +18 -0
- package/components/{CashierHeader-HTo_eoDZ.js → CashierHeader-CDYMzcBx.js} +1032 -1034
- package/components/{CashierHeader-sXl0iK6D.js → CashierHeader-Ce6RZ-9Q.js} +1135 -1137
- 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-BtBIN1GD.cjs +0 -5
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
4
|
-
for (const
|
|
5
|
-
e[
|
|
3
|
+
function qt(e, t) {
|
|
4
|
+
for (const n in t)
|
|
5
|
+
e[n] = t[n];
|
|
6
6
|
return (
|
|
7
7
|
/** @type {T & S} */
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function gt(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function We() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function K(e) {
|
|
18
|
+
e.forEach(gt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Fe(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function _t(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Yt(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function yt(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
|
-
for (const
|
|
32
|
-
|
|
31
|
+
for (const r of t)
|
|
32
|
+
r(void 0);
|
|
33
33
|
return B;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
return
|
|
35
|
+
const n = e.subscribe(...t);
|
|
36
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function Kt(e, t, n) {
|
|
39
|
+
e.$$.on_destroy.push(yt(t, n));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function _e(e, t, n, r) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i = xt(e, t,
|
|
43
|
+
const i = xt(e, t, n, r);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function xt(e, t,
|
|
48
|
-
return e[1] &&
|
|
47
|
+
function xt(e, t, n, r) {
|
|
48
|
+
return e[1] && r ? qt(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
if (e[2] &&
|
|
52
|
-
const i = e[2](n
|
|
50
|
+
function ye(e, t, n, r) {
|
|
51
|
+
if (e[2] && r) {
|
|
52
|
+
const i = e[2](r(n));
|
|
53
53
|
if (t.dirty === void 0)
|
|
54
54
|
return i;
|
|
55
55
|
if (typeof i == "object") {
|
|
@@ -62,32 +62,32 @@ function xe(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function xe(e, t, n, r, i, s) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const u = xt(t,
|
|
67
|
+
const u = xt(t, n, r, s);
|
|
68
68
|
e.p(u, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ee(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
|
-
const t = [],
|
|
74
|
-
for (let
|
|
75
|
-
t[
|
|
73
|
+
const t = [], n = e.ctx.length / 32;
|
|
74
|
+
for (let r = 0; r < n; r++)
|
|
75
|
+
t[r] = -1;
|
|
76
76
|
return t;
|
|
77
77
|
}
|
|
78
78
|
return -1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function le(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
86
|
-
const i =
|
|
87
|
-
i.id = t, i.textContent =
|
|
83
|
+
function en(e, t, n) {
|
|
84
|
+
const r = tn(e);
|
|
85
|
+
if (!r.getElementById(t)) {
|
|
86
|
+
const i = V("style");
|
|
87
|
+
i.id = t, i.textContent = n, nn(r, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function tn(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,144 +97,144 @@ function rr(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function nn(e, t) {
|
|
101
|
+
return le(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
e.insertBefore(t,
|
|
107
|
+
function N(e, t, n) {
|
|
108
|
+
e.insertBefore(t, n || null);
|
|
109
109
|
}
|
|
110
110
|
function C(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function V(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function je(e) {
|
|
117
117
|
return document.createTextNode(e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return
|
|
119
|
+
function Ze() {
|
|
120
|
+
return je(" ");
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return
|
|
122
|
+
function Et() {
|
|
123
|
+
return je("");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
return e.addEventListener(t,
|
|
125
|
+
function vt(e, t, n, r) {
|
|
126
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
128
|
+
function ee(e, t, n) {
|
|
129
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function rn(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function sn(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function on(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
142
|
-
(
|
|
143
|
-
t[
|
|
142
|
+
(n) => {
|
|
143
|
+
t[n.slot || "default"] = !0;
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let J;
|
|
148
|
+
function Q(e) {
|
|
149
|
+
J = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function an() {
|
|
152
|
+
if (!J)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return J;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function un(e) {
|
|
157
|
+
an().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
159
|
+
const U = [], Ce = [];
|
|
160
|
+
let D = [];
|
|
161
|
+
const Qe = [], hn = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let Pe = !1;
|
|
163
|
+
function ln() {
|
|
164
|
+
Pe || (Pe = !0, hn.then(T));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function Le(e) {
|
|
167
|
+
D.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const ve = /* @__PURE__ */ new Set();
|
|
170
170
|
let R = 0;
|
|
171
171
|
function T() {
|
|
172
172
|
if (R !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = J;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (; R <
|
|
178
|
-
const t =
|
|
179
|
-
R++,
|
|
177
|
+
for (; R < U.length; ) {
|
|
178
|
+
const t = U[R];
|
|
179
|
+
R++, Q(t), fn(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw U.length = 0, R = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const
|
|
188
|
-
|
|
184
|
+
for (Q(null), U.length = 0, R = 0; Ce.length; )
|
|
185
|
+
Ce.pop()();
|
|
186
|
+
for (let t = 0; t < D.length; t += 1) {
|
|
187
|
+
const n = D[t];
|
|
188
|
+
ve.has(n) || (ve.add(n), n());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
D.length = 0;
|
|
191
|
+
} while (U.length);
|
|
192
|
+
for (; Qe.length; )
|
|
193
|
+
Qe.pop()();
|
|
194
|
+
Pe = !1, ve.clear(), Q(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function fn(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), K(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
const t = [],
|
|
205
|
-
|
|
203
|
+
function cn(e) {
|
|
204
|
+
const t = [], n = [];
|
|
205
|
+
D.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), D = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
209
|
-
function
|
|
210
|
-
e && e.i && (
|
|
207
|
+
const se = /* @__PURE__ */ new Set();
|
|
208
|
+
let mn;
|
|
209
|
+
function oe(e, t) {
|
|
210
|
+
e && e.i && (se.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function He(e, t, n, r) {
|
|
213
213
|
if (e && e.o) {
|
|
214
|
-
if (
|
|
214
|
+
if (se.has(e))
|
|
215
215
|
return;
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
se.add(e), mn.c.push(() => {
|
|
217
|
+
se.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const { fragment:
|
|
223
|
-
|
|
224
|
-
const s = e.$$.on_mount.map(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
226
|
-
}), i.forEach(
|
|
221
|
+
function dn(e, t, n) {
|
|
222
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
223
|
+
r && r.m(t, n), Le(() => {
|
|
224
|
+
const s = e.$$.on_mount.map(gt).filter(Fe);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
|
226
|
+
}), i.forEach(Le);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const
|
|
230
|
-
|
|
228
|
+
function bn(e, t) {
|
|
229
|
+
const n = e.$$;
|
|
230
|
+
n.fragment !== null && (cn(n.after_update), K(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (
|
|
232
|
+
function pn(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (U.push(e), ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const l =
|
|
237
|
-
|
|
235
|
+
function gn(e, t, n, r, i, s, u = null, o = [-1]) {
|
|
236
|
+
const l = J;
|
|
237
|
+
Q(e);
|
|
238
238
|
const a = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
@@ -242,7 +242,7 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
242
242
|
props: s,
|
|
243
243
|
update: B,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: We(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,28 +251,28 @@ function gr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: We(),
|
|
255
255
|
dirty: o,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || l.$$.root
|
|
258
258
|
};
|
|
259
259
|
u && u(a.root);
|
|
260
260
|
let h = !1;
|
|
261
|
-
if (a.ctx =
|
|
262
|
-
const f =
|
|
263
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] = f) && (!a.skip_bound && a.bound[c] && a.bound[c](f), h &&
|
|
264
|
-
})
|
|
261
|
+
if (a.ctx = n(e, t.props || {}, (c, m, ...d) => {
|
|
262
|
+
const f = d.length ? d[0] : m;
|
|
263
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = f) && (!a.skip_bound && a.bound[c] && a.bound[c](f), h && pn(e, c)), m;
|
|
264
|
+
}), a.update(), h = !0, K(a.before_update), a.fragment = r(a.ctx), t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const c =
|
|
266
|
+
const c = rn(t.target);
|
|
267
267
|
a.fragment && a.fragment.l(c), c.forEach(C);
|
|
268
268
|
} else
|
|
269
269
|
a.fragment && a.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && oe(e.$$.fragment), dn(e, t.target, t.anchor), T();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
Q(l);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Ht;
|
|
275
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
276
276
|
/** The Svelte component constructor */
|
|
277
277
|
$$ctor;
|
|
278
278
|
/** Slots */
|
|
@@ -291,20 +291,20 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
291
291
|
$$l = {};
|
|
292
292
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
293
293
|
$$l_u = /* @__PURE__ */ new Map();
|
|
294
|
-
constructor(e, t,
|
|
295
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
294
|
+
constructor(e, t, n) {
|
|
295
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
296
296
|
}
|
|
297
|
-
addEventListener(e, t,
|
|
297
|
+
addEventListener(e, t, n) {
|
|
298
298
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
299
|
-
const
|
|
300
|
-
this.$$l_u.set(t,
|
|
299
|
+
const r = this.$$c.$on(e, t);
|
|
300
|
+
this.$$l_u.set(t, r);
|
|
301
301
|
}
|
|
302
|
-
super.addEventListener(e, t,
|
|
302
|
+
super.addEventListener(e, t, n);
|
|
303
303
|
}
|
|
304
|
-
removeEventListener(e, t,
|
|
305
|
-
if (super.removeEventListener(e, t,
|
|
306
|
-
const
|
|
307
|
-
|
|
304
|
+
removeEventListener(e, t, n) {
|
|
305
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
306
|
+
const r = this.$$l_u.get(t);
|
|
307
|
+
r && (r(), this.$$l_u.delete(t));
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
async connectedCallback() {
|
|
@@ -314,14 +314,14 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
314
314
|
let s;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
s =
|
|
317
|
+
s = V("slot"), i !== "default" && ee(s, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(l, a) {
|
|
324
|
-
|
|
324
|
+
N(l, s, a);
|
|
325
325
|
},
|
|
326
326
|
d: function(l) {
|
|
327
327
|
l && C(s);
|
|
@@ -331,12 +331,12 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {},
|
|
334
|
+
const t = {}, n = on(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
|
-
i in
|
|
336
|
+
i in n && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
338
338
|
const s = this.$$g_p(i.name);
|
|
339
|
-
s in this.$$d || (this.$$d[s] =
|
|
339
|
+
s in this.$$d || (this.$$d[s] = ae(s, i.value, this.$$p_d, "toProp"));
|
|
340
340
|
}
|
|
341
341
|
for (const i in this.$$p_d)
|
|
342
342
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -350,11 +350,11 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
|
-
const
|
|
353
|
+
const r = () => {
|
|
354
354
|
this.$$r = !0;
|
|
355
355
|
for (const i in this.$$p_d)
|
|
356
356
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
357
|
-
const s =
|
|
357
|
+
const s = ae(
|
|
358
358
|
i,
|
|
359
359
|
this.$$d[i],
|
|
360
360
|
this.$$p_d,
|
|
@@ -364,7 +364,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
364
364
|
}
|
|
365
365
|
this.$$r = !1;
|
|
366
366
|
};
|
|
367
|
-
this.$$c.$$.after_update.push(
|
|
367
|
+
this.$$c.$$.after_update.push(r), r();
|
|
368
368
|
for (const i in this.$$l)
|
|
369
369
|
for (const s of this.$$l[i]) {
|
|
370
370
|
const u = this.$$c.$on(i, s);
|
|
@@ -375,8 +375,8 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
375
375
|
}
|
|
376
376
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
377
377
|
// and setting attributes through setAttribute etc, this is helpful
|
|
378
|
-
attributeChangedCallback(e, t,
|
|
379
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
378
|
+
attributeChangedCallback(e, t, n) {
|
|
379
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ae(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
380
380
|
}
|
|
381
381
|
disconnectedCallback() {
|
|
382
382
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -389,11 +389,11 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
|
389
389
|
) || e;
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
|
-
function
|
|
393
|
-
const i =
|
|
394
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
392
|
+
function ae(e, t, n, r) {
|
|
393
|
+
const i = n[e]?.type;
|
|
394
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
395
395
|
return t;
|
|
396
|
-
if (
|
|
396
|
+
if (r === "toAttribute")
|
|
397
397
|
switch (i) {
|
|
398
398
|
case "Object":
|
|
399
399
|
case "Array":
|
|
@@ -418,10 +418,10 @@ function ue(e, t, r, n) {
|
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
let u = class extends
|
|
421
|
+
function _n(e, t, n, r, i, s) {
|
|
422
|
+
let u = class extends Ht {
|
|
423
423
|
constructor() {
|
|
424
|
-
super(e,
|
|
424
|
+
super(e, n, i), this.$$p_d = t;
|
|
425
425
|
}
|
|
426
426
|
static get observedAttributes() {
|
|
427
427
|
return Object.keys(t).map(
|
|
@@ -435,10 +435,10 @@ function _r(e, t, r, n, i, s) {
|
|
|
435
435
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
436
436
|
},
|
|
437
437
|
set(l) {
|
|
438
|
-
l =
|
|
438
|
+
l = ae(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
|
-
}),
|
|
441
|
+
}), r.forEach((o) => {
|
|
442
442
|
Object.defineProperty(u.prototype, o, {
|
|
443
443
|
get() {
|
|
444
444
|
return this.$$c?.[o];
|
|
@@ -447,7 +447,7 @@ function _r(e, t, r, n, i, s) {
|
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
448
|
u, u;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class yn {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class yr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
bn(this, 1), this.$destroy = B;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -474,13 +474,13 @@ class yr {
|
|
|
474
474
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
|
-
$on(t,
|
|
478
|
-
if (!
|
|
477
|
+
$on(t, n) {
|
|
478
|
+
if (!Fe(n))
|
|
479
479
|
return B;
|
|
480
|
-
const
|
|
481
|
-
return
|
|
482
|
-
const i =
|
|
483
|
-
i !== -1 &&
|
|
480
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
|
+
return r.push(n), () => {
|
|
482
|
+
const i = r.indexOf(n);
|
|
483
|
+
i !== -1 && r.splice(i, 1);
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
/**
|
|
@@ -488,29 +488,29 @@ class yr {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !Yt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
496
|
-
const
|
|
497
|
-
function
|
|
494
|
+
const xn = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xn);
|
|
496
|
+
const $ = [];
|
|
497
|
+
function En(e, t) {
|
|
498
498
|
return {
|
|
499
|
-
subscribe:
|
|
499
|
+
subscribe: de(e, t).subscribe
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
let
|
|
504
|
-
const
|
|
502
|
+
function de(e, t = B) {
|
|
503
|
+
let n;
|
|
504
|
+
const r = /* @__PURE__ */ new Set();
|
|
505
505
|
function i(o) {
|
|
506
|
-
if (
|
|
507
|
-
const l =
|
|
508
|
-
for (const a of
|
|
509
|
-
a[1](),
|
|
506
|
+
if (_t(e, o) && (e = o, n)) {
|
|
507
|
+
const l = !$.length;
|
|
508
|
+
for (const a of r)
|
|
509
|
+
a[1](), $.push(a, e);
|
|
510
510
|
if (l) {
|
|
511
|
-
for (let a = 0; a <
|
|
512
|
-
|
|
513
|
-
|
|
511
|
+
for (let a = 0; a < $.length; a += 2)
|
|
512
|
+
$[a][0]($[a + 1]);
|
|
513
|
+
$.length = 0;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -519,18 +519,18 @@ function be(e, t = B) {
|
|
|
519
519
|
}
|
|
520
520
|
function u(o, l = B) {
|
|
521
521
|
const a = [o, l];
|
|
522
|
-
return
|
|
523
|
-
|
|
522
|
+
return r.add(a), r.size === 1 && (n = t(i, s) || B), o(e), () => {
|
|
523
|
+
r.delete(a), r.size === 0 && n && (n(), n = null);
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
526
|
return { set: i, update: s, subscribe: u };
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
const
|
|
528
|
+
function X(e, t, n) {
|
|
529
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
530
530
|
if (!i.every(Boolean))
|
|
531
531
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
532
532
|
const s = t.length < 2;
|
|
533
|
-
return
|
|
533
|
+
return En(n, (u, o) => {
|
|
534
534
|
let l = !1;
|
|
535
535
|
const a = [];
|
|
536
536
|
let h = 0, c = B;
|
|
@@ -538,10 +538,10 @@ function W(e, t, r) {
|
|
|
538
538
|
if (h)
|
|
539
539
|
return;
|
|
540
540
|
c();
|
|
541
|
-
const f = t(
|
|
542
|
-
s ? u(f) : c =
|
|
543
|
-
},
|
|
544
|
-
(f, _) =>
|
|
541
|
+
const f = t(r ? a[0] : a, u, o);
|
|
542
|
+
s ? u(f) : c = Fe(f) ? f : B;
|
|
543
|
+
}, d = i.map(
|
|
544
|
+
(f, _) => yt(
|
|
545
545
|
f,
|
|
546
546
|
(v) => {
|
|
547
547
|
a[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -552,157 +552,174 @@ function W(e, t, r) {
|
|
|
552
552
|
)
|
|
553
553
|
);
|
|
554
554
|
return l = !0, m(), function() {
|
|
555
|
-
|
|
555
|
+
K(d), c(), l = !1;
|
|
556
556
|
};
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return e
|
|
559
|
+
function vn(e) {
|
|
560
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
561
561
|
}
|
|
562
|
-
var
|
|
563
|
-
return
|
|
562
|
+
var Hn = function(t) {
|
|
563
|
+
return Bn(t) && !Tn(t);
|
|
564
564
|
};
|
|
565
|
-
function
|
|
565
|
+
function Bn(e) {
|
|
566
566
|
return !!e && typeof e == "object";
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Tn(e) {
|
|
569
569
|
var t = Object.prototype.toString.call(e);
|
|
570
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
570
|
+
return t === "[object RegExp]" || t === "[object Date]" || An(e);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
574
|
-
return e.$$typeof ===
|
|
572
|
+
var wn = typeof Symbol == "function" && Symbol.for, Sn = wn ? Symbol.for("react.element") : 60103;
|
|
573
|
+
function An(e) {
|
|
574
|
+
return e.$$typeof === Sn;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function On(e) {
|
|
577
577
|
return Array.isArray(e) ? [] : {};
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
579
|
+
function q(e, t) {
|
|
580
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(On(e), e, t) : e;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return e.concat(t).map(function(
|
|
584
|
-
return
|
|
582
|
+
function Cn(e, t, n) {
|
|
583
|
+
return e.concat(t).map(function(r) {
|
|
584
|
+
return q(r, n);
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Pn(e, t) {
|
|
588
588
|
if (!t.customMerge)
|
|
589
|
-
return
|
|
590
|
-
var
|
|
591
|
-
return typeof
|
|
589
|
+
return G;
|
|
590
|
+
var n = t.customMerge(e);
|
|
591
|
+
return typeof n == "function" ? n : G;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ln(e) {
|
|
594
594
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
595
595
|
return Object.propertyIsEnumerable.call(e, t);
|
|
596
596
|
}) : [];
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
return Object.keys(e).concat(
|
|
598
|
+
function Je(e) {
|
|
599
|
+
return Object.keys(e).concat(Ln(e));
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Bt(e, t) {
|
|
602
602
|
try {
|
|
603
603
|
return t in e;
|
|
604
604
|
} catch {
|
|
605
605
|
return !1;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
608
|
+
function Nn(e, t) {
|
|
609
|
+
return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
var
|
|
613
|
-
return
|
|
614
|
-
|
|
615
|
-
}),
|
|
616
|
-
|
|
617
|
-
}),
|
|
618
|
-
}
|
|
619
|
-
function
|
|
620
|
-
|
|
621
|
-
var
|
|
622
|
-
return s ?
|
|
623
|
-
}
|
|
624
|
-
|
|
611
|
+
function In(e, t, n) {
|
|
612
|
+
var r = {};
|
|
613
|
+
return n.isMergeableObject(e) && Je(e).forEach(function(i) {
|
|
614
|
+
r[i] = q(e[i], n);
|
|
615
|
+
}), Je(t).forEach(function(i) {
|
|
616
|
+
Nn(e, i) || (Bt(e, i) && n.isMergeableObject(t[i]) ? r[i] = Pn(i, n)(e[i], t[i], n) : r[i] = q(t[i], n));
|
|
617
|
+
}), r;
|
|
618
|
+
}
|
|
619
|
+
function G(e, t, n) {
|
|
620
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Cn, n.isMergeableObject = n.isMergeableObject || Hn, n.cloneUnlessOtherwiseSpecified = q;
|
|
621
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
622
|
+
return s ? r ? n.arrayMerge(e, t, n) : In(e, t, n) : q(t, n);
|
|
623
|
+
}
|
|
624
|
+
G.all = function(t, n) {
|
|
625
625
|
if (!Array.isArray(t))
|
|
626
626
|
throw new Error("first argument should be an array");
|
|
627
|
-
return t.reduce(function(
|
|
628
|
-
return
|
|
627
|
+
return t.reduce(function(r, i) {
|
|
628
|
+
return G(r, i, n);
|
|
629
629
|
}, {});
|
|
630
630
|
};
|
|
631
|
-
var
|
|
632
|
-
const
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
631
|
+
var Mn = G, Rn = Mn;
|
|
632
|
+
const $n = /* @__PURE__ */ vn(Rn);
|
|
633
|
+
/*! *****************************************************************************
|
|
634
|
+
Copyright (c) Microsoft Corporation.
|
|
635
|
+
|
|
636
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
637
|
+
purpose with or without fee is hereby granted.
|
|
638
|
+
|
|
639
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
640
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
641
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
642
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
643
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
644
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
645
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
646
|
+
***************************************************************************** */
|
|
647
|
+
var Ne = function(e, t) {
|
|
648
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
649
|
+
n.__proto__ = r;
|
|
650
|
+
} || function(n, r) {
|
|
651
|
+
for (var i in r)
|
|
652
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
653
|
+
}, Ne(e, t);
|
|
640
654
|
};
|
|
641
|
-
function
|
|
655
|
+
function be(e, t) {
|
|
642
656
|
if (typeof t != "function" && t !== null)
|
|
643
657
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
644
|
-
|
|
645
|
-
function
|
|
658
|
+
Ne(e, t);
|
|
659
|
+
function n() {
|
|
646
660
|
this.constructor = e;
|
|
647
661
|
}
|
|
648
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
649
|
-
}
|
|
650
|
-
var
|
|
651
|
-
return
|
|
652
|
-
for (var
|
|
653
|
-
|
|
654
|
-
for (var s in
|
|
655
|
-
Object.prototype.hasOwnProperty.call(
|
|
662
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
663
|
+
}
|
|
664
|
+
var y = function() {
|
|
665
|
+
return y = Object.assign || function(t) {
|
|
666
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
667
|
+
n = arguments[r];
|
|
668
|
+
for (var s in n)
|
|
669
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
656
670
|
}
|
|
657
671
|
return t;
|
|
658
|
-
},
|
|
672
|
+
}, y.apply(this, arguments);
|
|
659
673
|
};
|
|
660
|
-
function
|
|
661
|
-
var
|
|
662
|
-
for (var
|
|
663
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
674
|
+
function Un(e, t) {
|
|
675
|
+
var n = {};
|
|
676
|
+
for (var r in e)
|
|
677
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
664
678
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
665
|
-
for (var i = 0,
|
|
666
|
-
t.indexOf(
|
|
667
|
-
return
|
|
679
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
680
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
681
|
+
return n;
|
|
668
682
|
}
|
|
669
|
-
function
|
|
670
|
-
if (
|
|
671
|
-
for (var
|
|
672
|
-
(s || !(
|
|
673
|
-
return e.concat(s ||
|
|
683
|
+
function Be(e, t, n) {
|
|
684
|
+
if (arguments.length === 2)
|
|
685
|
+
for (var r = 0, i = t.length, s; r < i; r++)
|
|
686
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
687
|
+
return e.concat(s || t);
|
|
674
688
|
}
|
|
675
|
-
function
|
|
676
|
-
var
|
|
689
|
+
function Te(e, t) {
|
|
690
|
+
var n = t && t.cache ? t.cache : Xn, r = t && t.serializer ? t.serializer : kn, i = t && t.strategy ? t.strategy : Gn;
|
|
677
691
|
return i(e, {
|
|
678
|
-
cache:
|
|
679
|
-
serializer:
|
|
692
|
+
cache: n,
|
|
693
|
+
serializer: r
|
|
680
694
|
});
|
|
681
695
|
}
|
|
682
|
-
function
|
|
696
|
+
function Dn(e) {
|
|
683
697
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
684
698
|
}
|
|
685
|
-
function
|
|
686
|
-
var i =
|
|
687
|
-
return typeof s > "u" && (s = e.call(this,
|
|
699
|
+
function Tt(e, t, n, r) {
|
|
700
|
+
var i = Dn(r) ? r : n(r), s = t.get(i);
|
|
701
|
+
return typeof s > "u" && (s = e.call(this, r), t.set(i, s)), s;
|
|
702
|
+
}
|
|
703
|
+
function wt(e, t, n) {
|
|
704
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
705
|
+
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
688
706
|
}
|
|
689
|
-
function
|
|
690
|
-
|
|
691
|
-
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
707
|
+
function ke(e, t, n, r, i) {
|
|
708
|
+
return n.bind(t, e, r, i);
|
|
692
709
|
}
|
|
693
|
-
function
|
|
694
|
-
|
|
710
|
+
function Gn(e, t) {
|
|
711
|
+
var n = e.length === 1 ? Tt : wt;
|
|
712
|
+
return ke(e, this, n, t.cache.create(), t.serializer);
|
|
695
713
|
}
|
|
696
|
-
function
|
|
697
|
-
|
|
698
|
-
return St(e, this, r, t.cache.create(), t.serializer);
|
|
714
|
+
function Fn(e, t) {
|
|
715
|
+
return ke(e, this, wt, t.cache.create(), t.serializer);
|
|
699
716
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
717
|
+
function jn(e, t) {
|
|
718
|
+
return ke(e, this, Tt, t.cache.create(), t.serializer);
|
|
702
719
|
}
|
|
703
|
-
var
|
|
720
|
+
var kn = function() {
|
|
704
721
|
return JSON.stringify(arguments);
|
|
705
|
-
},
|
|
722
|
+
}, Vn = (
|
|
706
723
|
/** @class */
|
|
707
724
|
function() {
|
|
708
725
|
function e() {
|
|
@@ -710,82 +727,73 @@ var kr = function() {
|
|
|
710
727
|
}
|
|
711
728
|
return e.prototype.get = function(t) {
|
|
712
729
|
return this.cache[t];
|
|
713
|
-
}, e.prototype.set = function(t,
|
|
714
|
-
this.cache[t] =
|
|
730
|
+
}, e.prototype.set = function(t, n) {
|
|
731
|
+
this.cache[t] = n;
|
|
715
732
|
}, e;
|
|
716
733
|
}()
|
|
717
|
-
),
|
|
734
|
+
), Xn = {
|
|
718
735
|
create: function() {
|
|
719
|
-
return new
|
|
736
|
+
return new Vn();
|
|
720
737
|
}
|
|
721
|
-
},
|
|
722
|
-
variadic:
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
726
|
-
r = arguments[n];
|
|
727
|
-
for (var s in r)
|
|
728
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
729
|
-
}
|
|
730
|
-
return t;
|
|
731
|
-
}, ce.apply(this, arguments);
|
|
732
|
-
};
|
|
733
|
-
var d;
|
|
738
|
+
}, we = {
|
|
739
|
+
variadic: Fn,
|
|
740
|
+
monadic: jn
|
|
741
|
+
}, b;
|
|
734
742
|
(function(e) {
|
|
735
743
|
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";
|
|
736
|
-
})(
|
|
737
|
-
var
|
|
744
|
+
})(b || (b = {}));
|
|
745
|
+
var x;
|
|
738
746
|
(function(e) {
|
|
739
747
|
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";
|
|
740
|
-
})(
|
|
741
|
-
var
|
|
748
|
+
})(x || (x = {}));
|
|
749
|
+
var F;
|
|
742
750
|
(function(e) {
|
|
743
751
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
744
|
-
})(
|
|
745
|
-
function
|
|
746
|
-
return e.type ===
|
|
752
|
+
})(F || (F = {}));
|
|
753
|
+
function qe(e) {
|
|
754
|
+
return e.type === x.literal;
|
|
747
755
|
}
|
|
748
|
-
function
|
|
749
|
-
return e.type ===
|
|
756
|
+
function zn(e) {
|
|
757
|
+
return e.type === x.argument;
|
|
758
|
+
}
|
|
759
|
+
function St(e) {
|
|
760
|
+
return e.type === x.number;
|
|
750
761
|
}
|
|
751
762
|
function At(e) {
|
|
752
|
-
return e.type ===
|
|
763
|
+
return e.type === x.date;
|
|
753
764
|
}
|
|
754
765
|
function Ot(e) {
|
|
755
|
-
return e.type ===
|
|
766
|
+
return e.type === x.time;
|
|
767
|
+
}
|
|
768
|
+
function Ct(e) {
|
|
769
|
+
return e.type === x.select;
|
|
756
770
|
}
|
|
757
771
|
function Pt(e) {
|
|
758
|
-
return e.type ===
|
|
772
|
+
return e.type === x.plural;
|
|
759
773
|
}
|
|
760
|
-
function
|
|
761
|
-
return e.type ===
|
|
774
|
+
function Wn(e) {
|
|
775
|
+
return e.type === x.pound;
|
|
762
776
|
}
|
|
763
777
|
function Lt(e) {
|
|
764
|
-
return e.type ===
|
|
765
|
-
}
|
|
766
|
-
function zr(e) {
|
|
767
|
-
return e.type === y.pound;
|
|
778
|
+
return e.type === x.tag;
|
|
768
779
|
}
|
|
769
780
|
function Nt(e) {
|
|
770
|
-
return e.type ===
|
|
771
|
-
}
|
|
772
|
-
function It(e) {
|
|
773
|
-
return !!(e && typeof e == "object" && e.type === j.number);
|
|
781
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
774
782
|
}
|
|
775
|
-
function
|
|
776
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
783
|
+
function Ie(e) {
|
|
784
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
777
785
|
}
|
|
778
|
-
var
|
|
779
|
-
function
|
|
786
|
+
var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zn = /(?:[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;
|
|
787
|
+
function Qn(e) {
|
|
780
788
|
var t = {};
|
|
781
|
-
return e.replace(
|
|
782
|
-
var
|
|
783
|
-
switch (
|
|
789
|
+
return e.replace(Zn, function(n) {
|
|
790
|
+
var r = n.length;
|
|
791
|
+
switch (n[0]) {
|
|
784
792
|
case "G":
|
|
785
|
-
t.era =
|
|
793
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
786
794
|
break;
|
|
787
795
|
case "y":
|
|
788
|
-
t.year =
|
|
796
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
789
797
|
break;
|
|
790
798
|
case "Y":
|
|
791
799
|
case "u":
|
|
@@ -797,30 +805,30 @@ function Qr(e) {
|
|
|
797
805
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
798
806
|
case "M":
|
|
799
807
|
case "L":
|
|
800
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
808
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
801
809
|
break;
|
|
802
810
|
case "w":
|
|
803
811
|
case "W":
|
|
804
812
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
805
813
|
case "d":
|
|
806
|
-
t.day = ["numeric", "2-digit"][
|
|
814
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
807
815
|
break;
|
|
808
816
|
case "D":
|
|
809
817
|
case "F":
|
|
810
818
|
case "g":
|
|
811
819
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
812
820
|
case "E":
|
|
813
|
-
t.weekday =
|
|
821
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
814
822
|
break;
|
|
815
823
|
case "e":
|
|
816
|
-
if (
|
|
824
|
+
if (r < 4)
|
|
817
825
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
818
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
826
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
819
827
|
break;
|
|
820
828
|
case "c":
|
|
821
|
-
if (
|
|
829
|
+
if (r < 4)
|
|
822
830
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
823
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
831
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
824
832
|
break;
|
|
825
833
|
case "a":
|
|
826
834
|
t.hour12 = !0;
|
|
@@ -829,32 +837,32 @@ function Qr(e) {
|
|
|
829
837
|
case "B":
|
|
830
838
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
831
839
|
case "h":
|
|
832
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
840
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
833
841
|
break;
|
|
834
842
|
case "H":
|
|
835
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
843
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
836
844
|
break;
|
|
837
845
|
case "K":
|
|
838
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
846
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
839
847
|
break;
|
|
840
848
|
case "k":
|
|
841
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
849
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
842
850
|
break;
|
|
843
851
|
case "j":
|
|
844
852
|
case "J":
|
|
845
853
|
case "C":
|
|
846
854
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
847
855
|
case "m":
|
|
848
|
-
t.minute = ["numeric", "2-digit"][
|
|
856
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
849
857
|
break;
|
|
850
858
|
case "s":
|
|
851
|
-
t.second = ["numeric", "2-digit"][
|
|
859
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
852
860
|
break;
|
|
853
861
|
case "S":
|
|
854
862
|
case "A":
|
|
855
863
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
856
864
|
case "z":
|
|
857
|
-
t.timeZoneName =
|
|
865
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
858
866
|
break;
|
|
859
867
|
case "Z":
|
|
860
868
|
case "O":
|
|
@@ -867,24 +875,14 @@ function Qr(e) {
|
|
|
867
875
|
return "";
|
|
868
876
|
}), t;
|
|
869
877
|
}
|
|
870
|
-
var
|
|
871
|
-
|
|
872
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
873
|
-
r = arguments[n];
|
|
874
|
-
for (var s in r)
|
|
875
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
876
|
-
}
|
|
877
|
-
return t;
|
|
878
|
-
}, E.apply(this, arguments);
|
|
879
|
-
};
|
|
880
|
-
var Jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
881
|
-
function qr(e) {
|
|
878
|
+
var Jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
879
|
+
function qn(e) {
|
|
882
880
|
if (e.length === 0)
|
|
883
881
|
throw new Error("Number skeleton cannot be empty");
|
|
884
|
-
for (var t = e.split(
|
|
882
|
+
for (var t = e.split(Jn).filter(function(m) {
|
|
885
883
|
return m.length > 0;
|
|
886
|
-
}),
|
|
887
|
-
var s = i[
|
|
884
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
885
|
+
var s = i[r], u = s.split("/");
|
|
888
886
|
if (u.length === 0)
|
|
889
887
|
throw new Error("Invalid number skeleton");
|
|
890
888
|
for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
@@ -892,21 +890,21 @@ function qr(e) {
|
|
|
892
890
|
if (c.length === 0)
|
|
893
891
|
throw new Error("Invalid number skeleton");
|
|
894
892
|
}
|
|
895
|
-
|
|
893
|
+
n.push({ stem: o, options: l });
|
|
896
894
|
}
|
|
897
|
-
return
|
|
895
|
+
return n;
|
|
898
896
|
}
|
|
899
|
-
function
|
|
897
|
+
function Yn(e) {
|
|
900
898
|
return e.replace(/^(.*?)-/, "");
|
|
901
899
|
}
|
|
902
|
-
var
|
|
903
|
-
function
|
|
900
|
+
var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, Kn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
901
|
+
function Ke(e) {
|
|
904
902
|
var t = {};
|
|
905
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
906
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
903
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mt, function(n, r, i) {
|
|
904
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
907
905
|
}), t;
|
|
908
906
|
}
|
|
909
|
-
function
|
|
907
|
+
function $t(e) {
|
|
910
908
|
switch (e) {
|
|
911
909
|
case "sign-auto":
|
|
912
910
|
return {
|
|
@@ -946,27 +944,27 @@ function Ut(e) {
|
|
|
946
944
|
};
|
|
947
945
|
}
|
|
948
946
|
}
|
|
949
|
-
function
|
|
947
|
+
function er(e) {
|
|
950
948
|
var t;
|
|
951
949
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
952
950
|
notation: "engineering"
|
|
953
951
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
954
952
|
notation: "scientific"
|
|
955
953
|
}, e = e.slice(1)), t) {
|
|
956
|
-
var
|
|
957
|
-
if (
|
|
954
|
+
var n = e.slice(0, 2);
|
|
955
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
|
|
958
956
|
throw new Error("Malformed concise eng/scientific notation");
|
|
959
957
|
t.minimumIntegerDigits = e.length;
|
|
960
958
|
}
|
|
961
959
|
return t;
|
|
962
960
|
}
|
|
963
|
-
function
|
|
964
|
-
var t = {},
|
|
965
|
-
return
|
|
961
|
+
function et(e) {
|
|
962
|
+
var t = {}, n = $t(e);
|
|
963
|
+
return n || t;
|
|
966
964
|
}
|
|
967
|
-
function
|
|
968
|
-
for (var t = {},
|
|
969
|
-
var i = n
|
|
965
|
+
function tr(e) {
|
|
966
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
967
|
+
var i = r[n];
|
|
970
968
|
switch (i.stem) {
|
|
971
969
|
case "percent":
|
|
972
970
|
case "%":
|
|
@@ -988,7 +986,7 @@ function tn(e) {
|
|
|
988
986
|
continue;
|
|
989
987
|
case "measure-unit":
|
|
990
988
|
case "unit":
|
|
991
|
-
t.style = "unit", t.unit =
|
|
989
|
+
t.style = "unit", t.unit = Yn(i.options[0]);
|
|
992
990
|
continue;
|
|
993
991
|
case "compact-short":
|
|
994
992
|
case "K":
|
|
@@ -999,13 +997,13 @@ function tn(e) {
|
|
|
999
997
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1000
998
|
continue;
|
|
1001
999
|
case "scientific":
|
|
1002
|
-
t =
|
|
1003
|
-
return
|
|
1000
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1001
|
+
return y(y({}, l), et(a));
|
|
1004
1002
|
}, {}));
|
|
1005
1003
|
continue;
|
|
1006
1004
|
case "engineering":
|
|
1007
|
-
t =
|
|
1008
|
-
return
|
|
1005
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1006
|
+
return y(y({}, l), et(a));
|
|
1009
1007
|
}, {}));
|
|
1010
1008
|
continue;
|
|
1011
1009
|
case "notation-simple":
|
|
@@ -1050,13 +1048,13 @@ function tn(e) {
|
|
|
1050
1048
|
case "integer-width":
|
|
1051
1049
|
if (i.options.length > 1)
|
|
1052
1050
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1053
|
-
i.options[0].replace(
|
|
1051
|
+
i.options[0].replace(Kn, function(l, a, h, c, m, d) {
|
|
1054
1052
|
if (a)
|
|
1055
1053
|
t.minimumIntegerDigits = h.length;
|
|
1056
1054
|
else {
|
|
1057
1055
|
if (c && m)
|
|
1058
1056
|
throw new Error("We currently do not support maximum integer digits");
|
|
1059
|
-
if (
|
|
1057
|
+
if (d)
|
|
1060
1058
|
throw new Error("We currently do not support exact integer digits");
|
|
1061
1059
|
}
|
|
1062
1060
|
return "";
|
|
@@ -1067,28 +1065,28 @@ function tn(e) {
|
|
|
1067
1065
|
t.minimumIntegerDigits = i.stem.length;
|
|
1068
1066
|
continue;
|
|
1069
1067
|
}
|
|
1070
|
-
if (
|
|
1068
|
+
if (Ye.test(i.stem)) {
|
|
1071
1069
|
if (i.options.length > 1)
|
|
1072
1070
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1073
|
-
i.stem.replace(
|
|
1074
|
-
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1071
|
+
i.stem.replace(Ye, function(l, a, h, c, m, d) {
|
|
1072
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1075
1073
|
});
|
|
1076
1074
|
var s = i.options[0];
|
|
1077
|
-
s === "w" ? t =
|
|
1075
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), Ke(s)));
|
|
1078
1076
|
continue;
|
|
1079
1077
|
}
|
|
1080
|
-
if (
|
|
1081
|
-
t =
|
|
1078
|
+
if (Mt.test(i.stem)) {
|
|
1079
|
+
t = y(y({}, t), Ke(i.stem));
|
|
1082
1080
|
continue;
|
|
1083
1081
|
}
|
|
1084
|
-
var u =
|
|
1085
|
-
u && (t =
|
|
1086
|
-
var o =
|
|
1087
|
-
o && (t =
|
|
1082
|
+
var u = $t(i.stem);
|
|
1083
|
+
u && (t = y(y({}, t), u));
|
|
1084
|
+
var o = er(i.stem);
|
|
1085
|
+
o && (t = y(y({}, t), o));
|
|
1088
1086
|
}
|
|
1089
1087
|
return t;
|
|
1090
1088
|
}
|
|
1091
|
-
var
|
|
1089
|
+
var ie = {
|
|
1092
1090
|
"001": [
|
|
1093
1091
|
"H",
|
|
1094
1092
|
"h"
|
|
@@ -2503,23 +2501,23 @@ var se = {
|
|
|
2503
2501
|
"h"
|
|
2504
2502
|
]
|
|
2505
2503
|
};
|
|
2506
|
-
function
|
|
2507
|
-
for (var
|
|
2508
|
-
var i = e.charAt(
|
|
2504
|
+
function nr(e, t) {
|
|
2505
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2506
|
+
var i = e.charAt(r);
|
|
2509
2507
|
if (i === "j") {
|
|
2510
|
-
for (var s = 0;
|
|
2511
|
-
s++,
|
|
2512
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2508
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2509
|
+
s++, r++;
|
|
2510
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = rr(t);
|
|
2513
2511
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2514
|
-
|
|
2512
|
+
n += l;
|
|
2515
2513
|
for (; u-- > 0; )
|
|
2516
|
-
|
|
2514
|
+
n = a + n;
|
|
2517
2515
|
} else
|
|
2518
|
-
i === "J" ?
|
|
2516
|
+
i === "J" ? n += "H" : n += i;
|
|
2519
2517
|
}
|
|
2520
|
-
return
|
|
2518
|
+
return n;
|
|
2521
2519
|
}
|
|
2522
|
-
function
|
|
2520
|
+
function rr(e) {
|
|
2523
2521
|
var t = e.hourCycle;
|
|
2524
2522
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2525
2523
|
e.hourCycles && // @ts-ignore
|
|
@@ -2536,73 +2534,73 @@ function nn(e) {
|
|
|
2536
2534
|
default:
|
|
2537
2535
|
throw new Error("Invalid hourCycle");
|
|
2538
2536
|
}
|
|
2539
|
-
var
|
|
2540
|
-
|
|
2541
|
-
var i =
|
|
2537
|
+
var n = e.language, r;
|
|
2538
|
+
n !== "root" && (r = e.maximize().region);
|
|
2539
|
+
var i = ie[r || ""] || ie[n || ""] || ie["".concat(n, "-001")] || ie["001"];
|
|
2542
2540
|
return i[0];
|
|
2543
2541
|
}
|
|
2544
|
-
var
|
|
2545
|
-
function
|
|
2542
|
+
var Se, ir = new RegExp("^".concat(It.source, "*")), sr = new RegExp("".concat(It.source, "*$"));
|
|
2543
|
+
function p(e, t) {
|
|
2546
2544
|
return { start: e, end: t };
|
|
2547
2545
|
}
|
|
2548
|
-
var
|
|
2546
|
+
var or = !!String.prototype.startsWith && "_a".startsWith("a", 1), ar = !!String.fromCodePoint, ur = !!Object.fromEntries, hr = !!String.prototype.codePointAt, lr = !!String.prototype.trimStart, fr = !!String.prototype.trimEnd, cr = !!Number.isSafeInteger, mr = cr ? Number.isSafeInteger : function(e) {
|
|
2549
2547
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2550
|
-
},
|
|
2548
|
+
}, Me = !0;
|
|
2551
2549
|
try {
|
|
2552
|
-
var
|
|
2553
|
-
|
|
2550
|
+
var dr = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2551
|
+
Me = ((Se = dr.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2554
2552
|
} catch {
|
|
2555
|
-
|
|
2553
|
+
Me = !1;
|
|
2556
2554
|
}
|
|
2557
|
-
var
|
|
2555
|
+
var tt = or ? (
|
|
2558
2556
|
// Native
|
|
2559
|
-
function(t,
|
|
2560
|
-
return t.startsWith(
|
|
2557
|
+
function(t, n, r) {
|
|
2558
|
+
return t.startsWith(n, r);
|
|
2561
2559
|
}
|
|
2562
2560
|
) : (
|
|
2563
2561
|
// For IE11
|
|
2564
|
-
function(t,
|
|
2565
|
-
return t.slice(
|
|
2562
|
+
function(t, n, r) {
|
|
2563
|
+
return t.slice(r, r + n.length) === n;
|
|
2566
2564
|
}
|
|
2567
|
-
),
|
|
2565
|
+
), Re = ar ? String.fromCodePoint : (
|
|
2568
2566
|
// IE11
|
|
2569
2567
|
function() {
|
|
2570
|
-
for (var t = [],
|
|
2571
|
-
t[
|
|
2572
|
-
for (var
|
|
2568
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2569
|
+
t[n] = arguments[n];
|
|
2570
|
+
for (var r = "", i = t.length, s = 0, u; i > s; ) {
|
|
2573
2571
|
if (u = t[s++], u > 1114111)
|
|
2574
2572
|
throw RangeError(u + " is not a valid code point");
|
|
2575
|
-
|
|
2573
|
+
r += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2576
2574
|
}
|
|
2577
|
-
return
|
|
2575
|
+
return r;
|
|
2578
2576
|
}
|
|
2579
2577
|
), nt = (
|
|
2580
2578
|
// native
|
|
2581
|
-
|
|
2579
|
+
ur ? Object.fromEntries : (
|
|
2582
2580
|
// Ponyfill
|
|
2583
2581
|
function(t) {
|
|
2584
|
-
for (var
|
|
2585
|
-
var s = i[
|
|
2586
|
-
|
|
2582
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2583
|
+
var s = i[r], u = s[0], o = s[1];
|
|
2584
|
+
n[u] = o;
|
|
2587
2585
|
}
|
|
2588
|
-
return
|
|
2586
|
+
return n;
|
|
2589
2587
|
}
|
|
2590
2588
|
)
|
|
2591
|
-
),
|
|
2589
|
+
), Ut = hr ? (
|
|
2592
2590
|
// Native
|
|
2593
|
-
function(t,
|
|
2594
|
-
return t.codePointAt(
|
|
2591
|
+
function(t, n) {
|
|
2592
|
+
return t.codePointAt(n);
|
|
2595
2593
|
}
|
|
2596
2594
|
) : (
|
|
2597
2595
|
// IE 11
|
|
2598
|
-
function(t,
|
|
2599
|
-
var
|
|
2600
|
-
if (!(
|
|
2601
|
-
var i = t.charCodeAt(
|
|
2602
|
-
return i < 55296 || i > 56319 ||
|
|
2596
|
+
function(t, n) {
|
|
2597
|
+
var r = t.length;
|
|
2598
|
+
if (!(n < 0 || n >= r)) {
|
|
2599
|
+
var i = t.charCodeAt(n), s;
|
|
2600
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2603
2601
|
}
|
|
2604
2602
|
}
|
|
2605
|
-
),
|
|
2603
|
+
), br = lr ? (
|
|
2606
2604
|
// Native
|
|
2607
2605
|
function(t) {
|
|
2608
2606
|
return t.trimStart();
|
|
@@ -2610,9 +2608,9 @@ var rt = an ? (
|
|
|
2610
2608
|
) : (
|
|
2611
2609
|
// Ponyfill
|
|
2612
2610
|
function(t) {
|
|
2613
|
-
return t.replace(
|
|
2611
|
+
return t.replace(ir, "");
|
|
2614
2612
|
}
|
|
2615
|
-
),
|
|
2613
|
+
), pr = fr ? (
|
|
2616
2614
|
// Native
|
|
2617
2615
|
function(t) {
|
|
2618
2616
|
return t.trimEnd();
|
|
@@ -2620,69 +2618,69 @@ var rt = an ? (
|
|
|
2620
2618
|
) : (
|
|
2621
2619
|
// Ponyfill
|
|
2622
2620
|
function(t) {
|
|
2623
|
-
return t.replace(
|
|
2621
|
+
return t.replace(sr, "");
|
|
2624
2622
|
}
|
|
2625
2623
|
);
|
|
2626
|
-
function
|
|
2624
|
+
function Dt(e, t) {
|
|
2627
2625
|
return new RegExp(e, t);
|
|
2628
2626
|
}
|
|
2629
|
-
var
|
|
2630
|
-
if (
|
|
2631
|
-
var
|
|
2632
|
-
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2635
|
-
var i =
|
|
2636
|
-
return (
|
|
2627
|
+
var $e;
|
|
2628
|
+
if (Me) {
|
|
2629
|
+
var rt = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2630
|
+
$e = function(t, n) {
|
|
2631
|
+
var r;
|
|
2632
|
+
rt.lastIndex = n;
|
|
2633
|
+
var i = rt.exec(t);
|
|
2634
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2637
2635
|
};
|
|
2638
2636
|
} else
|
|
2639
|
-
|
|
2640
|
-
for (var
|
|
2641
|
-
var i =
|
|
2642
|
-
if (i === void 0 ||
|
|
2637
|
+
$e = function(t, n) {
|
|
2638
|
+
for (var r = []; ; ) {
|
|
2639
|
+
var i = Ut(t, n);
|
|
2640
|
+
if (i === void 0 || Gt(i) || xr(i))
|
|
2643
2641
|
break;
|
|
2644
|
-
|
|
2642
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2645
2643
|
}
|
|
2646
|
-
return
|
|
2644
|
+
return Re.apply(void 0, r);
|
|
2647
2645
|
};
|
|
2648
|
-
var
|
|
2646
|
+
var gr = (
|
|
2649
2647
|
/** @class */
|
|
2650
2648
|
function() {
|
|
2651
|
-
function e(t,
|
|
2652
|
-
|
|
2649
|
+
function e(t, n) {
|
|
2650
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2653
2651
|
}
|
|
2654
2652
|
return e.prototype.parse = function() {
|
|
2655
2653
|
if (this.offset() !== 0)
|
|
2656
2654
|
throw Error("parser can only be used once");
|
|
2657
2655
|
return this.parseMessage(0, "", !1);
|
|
2658
|
-
}, e.prototype.parseMessage = function(t,
|
|
2656
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2659
2657
|
for (var i = []; !this.isEOF(); ) {
|
|
2660
2658
|
var s = this.char();
|
|
2661
2659
|
if (s === 123) {
|
|
2662
|
-
var u = this.parseArgument(t,
|
|
2660
|
+
var u = this.parseArgument(t, r);
|
|
2663
2661
|
if (u.err)
|
|
2664
2662
|
return u;
|
|
2665
2663
|
i.push(u.val);
|
|
2666
2664
|
} else {
|
|
2667
2665
|
if (s === 125 && t > 0)
|
|
2668
2666
|
break;
|
|
2669
|
-
if (s === 35 && (
|
|
2667
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2670
2668
|
var o = this.clonePosition();
|
|
2671
2669
|
this.bump(), i.push({
|
|
2672
|
-
type:
|
|
2673
|
-
location:
|
|
2670
|
+
type: x.pound,
|
|
2671
|
+
location: p(o, this.clonePosition())
|
|
2674
2672
|
});
|
|
2675
2673
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2676
|
-
if (
|
|
2674
|
+
if (r)
|
|
2677
2675
|
break;
|
|
2678
|
-
return this.error(
|
|
2679
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2680
|
-
var u = this.parseTag(t,
|
|
2676
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2677
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2678
|
+
var u = this.parseTag(t, n);
|
|
2681
2679
|
if (u.err)
|
|
2682
2680
|
return u;
|
|
2683
2681
|
i.push(u.val);
|
|
2684
2682
|
} else {
|
|
2685
|
-
var u = this.parseLiteral(t,
|
|
2683
|
+
var u = this.parseLiteral(t, n);
|
|
2686
2684
|
if (u.err)
|
|
2687
2685
|
return u;
|
|
2688
2686
|
i.push(u.val);
|
|
@@ -2690,54 +2688,54 @@ var _n = (
|
|
|
2690
2688
|
}
|
|
2691
2689
|
}
|
|
2692
2690
|
return { val: i, err: null };
|
|
2693
|
-
}, e.prototype.parseTag = function(t,
|
|
2694
|
-
var
|
|
2691
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2692
|
+
var r = this.clonePosition();
|
|
2695
2693
|
this.bump();
|
|
2696
2694
|
var i = this.parseTagName();
|
|
2697
2695
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2698
2696
|
return {
|
|
2699
2697
|
val: {
|
|
2700
|
-
type:
|
|
2698
|
+
type: x.literal,
|
|
2701
2699
|
value: "<".concat(i, "/>"),
|
|
2702
|
-
location:
|
|
2700
|
+
location: p(r, this.clonePosition())
|
|
2703
2701
|
},
|
|
2704
2702
|
err: null
|
|
2705
2703
|
};
|
|
2706
2704
|
if (this.bumpIf(">")) {
|
|
2707
|
-
var s = this.parseMessage(t + 1,
|
|
2705
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
2708
2706
|
if (s.err)
|
|
2709
2707
|
return s;
|
|
2710
2708
|
var u = s.val, o = this.clonePosition();
|
|
2711
2709
|
if (this.bumpIf("</")) {
|
|
2712
|
-
if (this.isEOF() || !
|
|
2713
|
-
return this.error(
|
|
2710
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2711
|
+
return this.error(b.INVALID_TAG, p(o, this.clonePosition()));
|
|
2714
2712
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2715
|
-
return i !== a ? this.error(
|
|
2713
|
+
return i !== a ? this.error(b.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2716
2714
|
val: {
|
|
2717
|
-
type:
|
|
2715
|
+
type: x.tag,
|
|
2718
2716
|
value: i,
|
|
2719
2717
|
children: u,
|
|
2720
|
-
location:
|
|
2718
|
+
location: p(r, this.clonePosition())
|
|
2721
2719
|
},
|
|
2722
2720
|
err: null
|
|
2723
|
-
} : this.error(
|
|
2721
|
+
} : this.error(b.INVALID_TAG, p(o, this.clonePosition())));
|
|
2724
2722
|
} else
|
|
2725
|
-
return this.error(
|
|
2723
|
+
return this.error(b.UNCLOSED_TAG, p(r, this.clonePosition()));
|
|
2726
2724
|
} else
|
|
2727
|
-
return this.error(
|
|
2725
|
+
return this.error(b.INVALID_TAG, p(r, this.clonePosition()));
|
|
2728
2726
|
}, e.prototype.parseTagName = function() {
|
|
2729
2727
|
var t = this.offset();
|
|
2730
|
-
for (this.bump(); !this.isEOF() &&
|
|
2728
|
+
for (this.bump(); !this.isEOF() && yr(this.char()); )
|
|
2731
2729
|
this.bump();
|
|
2732
2730
|
return this.message.slice(t, this.offset());
|
|
2733
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2734
|
-
for (var
|
|
2735
|
-
var s = this.tryParseQuote(
|
|
2731
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2732
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2733
|
+
var s = this.tryParseQuote(n);
|
|
2736
2734
|
if (s) {
|
|
2737
2735
|
i += s;
|
|
2738
2736
|
continue;
|
|
2739
2737
|
}
|
|
2740
|
-
var u = this.tryParseUnquoted(t,
|
|
2738
|
+
var u = this.tryParseUnquoted(t, n);
|
|
2741
2739
|
if (u) {
|
|
2742
2740
|
i += u;
|
|
2743
2741
|
continue;
|
|
@@ -2749,14 +2747,14 @@ var _n = (
|
|
|
2749
2747
|
}
|
|
2750
2748
|
break;
|
|
2751
2749
|
}
|
|
2752
|
-
var l =
|
|
2750
|
+
var l = p(r, this.clonePosition());
|
|
2753
2751
|
return {
|
|
2754
|
-
val: { type:
|
|
2752
|
+
val: { type: x.literal, value: i, location: l },
|
|
2755
2753
|
err: null
|
|
2756
2754
|
};
|
|
2757
2755
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2758
2756
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2759
|
-
!
|
|
2757
|
+
!_r(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2760
2758
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2761
2759
|
if (this.isEOF() || this.char() !== 39)
|
|
2762
2760
|
return null;
|
|
@@ -2776,63 +2774,63 @@ var _n = (
|
|
|
2776
2774
|
return null;
|
|
2777
2775
|
}
|
|
2778
2776
|
this.bump();
|
|
2779
|
-
var
|
|
2777
|
+
var n = [this.char()];
|
|
2780
2778
|
for (this.bump(); !this.isEOF(); ) {
|
|
2781
|
-
var
|
|
2782
|
-
if (
|
|
2779
|
+
var r = this.char();
|
|
2780
|
+
if (r === 39)
|
|
2783
2781
|
if (this.peek() === 39)
|
|
2784
|
-
|
|
2782
|
+
n.push(39), this.bump();
|
|
2785
2783
|
else {
|
|
2786
2784
|
this.bump();
|
|
2787
2785
|
break;
|
|
2788
2786
|
}
|
|
2789
2787
|
else
|
|
2790
|
-
|
|
2788
|
+
n.push(r);
|
|
2791
2789
|
this.bump();
|
|
2792
2790
|
}
|
|
2793
|
-
return
|
|
2794
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2791
|
+
return Re.apply(void 0, n);
|
|
2792
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2795
2793
|
if (this.isEOF())
|
|
2796
2794
|
return null;
|
|
2797
|
-
var
|
|
2798
|
-
return
|
|
2799
|
-
}, e.prototype.parseArgument = function(t,
|
|
2800
|
-
var
|
|
2795
|
+
var r = this.char();
|
|
2796
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Re(r));
|
|
2797
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
2798
|
+
var r = this.clonePosition();
|
|
2801
2799
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2802
|
-
return this.error(
|
|
2800
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
|
|
2803
2801
|
if (this.char() === 125)
|
|
2804
|
-
return this.bump(), this.error(
|
|
2802
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, p(r, this.clonePosition()));
|
|
2805
2803
|
var i = this.parseIdentifierIfPossible().value;
|
|
2806
2804
|
if (!i)
|
|
2807
|
-
return this.error(
|
|
2805
|
+
return this.error(b.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
|
|
2808
2806
|
if (this.bumpSpace(), this.isEOF())
|
|
2809
|
-
return this.error(
|
|
2807
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
|
|
2810
2808
|
switch (this.char()) {
|
|
2811
2809
|
case 125:
|
|
2812
2810
|
return this.bump(), {
|
|
2813
2811
|
val: {
|
|
2814
|
-
type:
|
|
2812
|
+
type: x.argument,
|
|
2815
2813
|
// value does not include the opening and closing braces.
|
|
2816
2814
|
value: i,
|
|
2817
|
-
location:
|
|
2815
|
+
location: p(r, this.clonePosition())
|
|
2818
2816
|
},
|
|
2819
2817
|
err: null
|
|
2820
2818
|
};
|
|
2821
2819
|
case 44:
|
|
2822
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2820
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2823
2821
|
default:
|
|
2824
|
-
return this.error(
|
|
2822
|
+
return this.error(b.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
|
|
2825
2823
|
}
|
|
2826
2824
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2827
|
-
var t = this.clonePosition(),
|
|
2825
|
+
var t = this.clonePosition(), n = this.offset(), r = $e(this.message, n), i = n + r.length;
|
|
2828
2826
|
this.bumpTo(i);
|
|
2829
|
-
var s = this.clonePosition(), u =
|
|
2830
|
-
return { value:
|
|
2831
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2827
|
+
var s = this.clonePosition(), u = p(t, s);
|
|
2828
|
+
return { value: r, location: u };
|
|
2829
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2832
2830
|
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2833
2831
|
switch (o) {
|
|
2834
2832
|
case "":
|
|
2835
|
-
return this.error(
|
|
2833
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, p(u, l));
|
|
2836
2834
|
case "number":
|
|
2837
2835
|
case "date":
|
|
2838
2836
|
case "time": {
|
|
@@ -2843,45 +2841,45 @@ var _n = (
|
|
|
2843
2841
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2844
2842
|
if (c.err)
|
|
2845
2843
|
return c;
|
|
2846
|
-
var m =
|
|
2844
|
+
var m = pr(c.val);
|
|
2847
2845
|
if (m.length === 0)
|
|
2848
|
-
return this.error(
|
|
2849
|
-
var
|
|
2850
|
-
a = { style: m, styleLocation:
|
|
2846
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2847
|
+
var d = p(h, this.clonePosition());
|
|
2848
|
+
a = { style: m, styleLocation: d };
|
|
2851
2849
|
}
|
|
2852
2850
|
var f = this.tryParseArgumentClose(i);
|
|
2853
2851
|
if (f.err)
|
|
2854
2852
|
return f;
|
|
2855
|
-
var _ =
|
|
2856
|
-
if (a &&
|
|
2857
|
-
var v =
|
|
2853
|
+
var _ = p(i, this.clonePosition());
|
|
2854
|
+
if (a && tt(a?.style, "::", 0)) {
|
|
2855
|
+
var v = br(a.style.slice(2));
|
|
2858
2856
|
if (o === "number") {
|
|
2859
2857
|
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2860
2858
|
return c.err ? c : {
|
|
2861
|
-
val: { type:
|
|
2859
|
+
val: { type: x.number, value: r, location: _, style: c.val },
|
|
2862
2860
|
err: null
|
|
2863
2861
|
};
|
|
2864
2862
|
} else {
|
|
2865
2863
|
if (v.length === 0)
|
|
2866
|
-
return this.error(
|
|
2867
|
-
var
|
|
2868
|
-
this.locale && (
|
|
2864
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
|
|
2865
|
+
var S = v;
|
|
2866
|
+
this.locale && (S = nr(v, this.locale));
|
|
2869
2867
|
var m = {
|
|
2870
|
-
type:
|
|
2871
|
-
pattern:
|
|
2868
|
+
type: F.dateTime,
|
|
2869
|
+
pattern: S,
|
|
2872
2870
|
location: a.styleLocation,
|
|
2873
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2874
|
-
},
|
|
2871
|
+
parsedOptions: this.shouldParseSkeletons ? Qn(S) : {}
|
|
2872
|
+
}, A = o === "date" ? x.date : x.time;
|
|
2875
2873
|
return {
|
|
2876
|
-
val: { type:
|
|
2874
|
+
val: { type: A, value: r, location: _, style: m },
|
|
2877
2875
|
err: null
|
|
2878
2876
|
};
|
|
2879
2877
|
}
|
|
2880
2878
|
}
|
|
2881
2879
|
return {
|
|
2882
2880
|
val: {
|
|
2883
|
-
type: o === "number" ?
|
|
2884
|
-
value:
|
|
2881
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2882
|
+
value: r,
|
|
2885
2883
|
location: _,
|
|
2886
2884
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2887
2885
|
},
|
|
@@ -2893,59 +2891,59 @@ var _n = (
|
|
|
2893
2891
|
case "select": {
|
|
2894
2892
|
var H = this.clonePosition();
|
|
2895
2893
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2896
|
-
return this.error(
|
|
2894
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, y({}, H)));
|
|
2897
2895
|
this.bumpSpace();
|
|
2898
|
-
var
|
|
2899
|
-
if (o !== "select" &&
|
|
2896
|
+
var L = this.parseIdentifierIfPossible(), w = 0;
|
|
2897
|
+
if (o !== "select" && L.value === "offset") {
|
|
2900
2898
|
if (!this.bumpIf(":"))
|
|
2901
|
-
return this.error(
|
|
2899
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2902
2900
|
this.bumpSpace();
|
|
2903
|
-
var c = this.tryParseDecimalInteger(
|
|
2901
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2904
2902
|
if (c.err)
|
|
2905
2903
|
return c;
|
|
2906
|
-
this.bumpSpace(),
|
|
2904
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), w = c.val;
|
|
2907
2905
|
}
|
|
2908
|
-
var
|
|
2909
|
-
if (
|
|
2910
|
-
return
|
|
2906
|
+
var M = this.tryParsePluralOrSelectOptions(t, o, n, L);
|
|
2907
|
+
if (M.err)
|
|
2908
|
+
return M;
|
|
2911
2909
|
var f = this.tryParseArgumentClose(i);
|
|
2912
2910
|
if (f.err)
|
|
2913
2911
|
return f;
|
|
2914
|
-
var
|
|
2912
|
+
var re = p(i, this.clonePosition());
|
|
2915
2913
|
return o === "select" ? {
|
|
2916
2914
|
val: {
|
|
2917
|
-
type:
|
|
2918
|
-
value:
|
|
2919
|
-
options: nt(
|
|
2920
|
-
location:
|
|
2915
|
+
type: x.select,
|
|
2916
|
+
value: r,
|
|
2917
|
+
options: nt(M.val),
|
|
2918
|
+
location: re
|
|
2921
2919
|
},
|
|
2922
2920
|
err: null
|
|
2923
2921
|
} : {
|
|
2924
2922
|
val: {
|
|
2925
|
-
type:
|
|
2926
|
-
value:
|
|
2927
|
-
options: nt(
|
|
2928
|
-
offset:
|
|
2923
|
+
type: x.plural,
|
|
2924
|
+
value: r,
|
|
2925
|
+
options: nt(M.val),
|
|
2926
|
+
offset: w,
|
|
2929
2927
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2930
|
-
location:
|
|
2928
|
+
location: re
|
|
2931
2929
|
},
|
|
2932
2930
|
err: null
|
|
2933
2931
|
};
|
|
2934
2932
|
}
|
|
2935
2933
|
default:
|
|
2936
|
-
return this.error(
|
|
2934
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, p(u, l));
|
|
2937
2935
|
}
|
|
2938
2936
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2939
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2937
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2940
2938
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2941
|
-
for (var t = 0,
|
|
2942
|
-
var
|
|
2943
|
-
switch (
|
|
2939
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2940
|
+
var r = this.char();
|
|
2941
|
+
switch (r) {
|
|
2944
2942
|
case 39: {
|
|
2945
2943
|
this.bump();
|
|
2946
2944
|
var i = this.clonePosition();
|
|
2947
2945
|
if (!this.bumpUntil("'"))
|
|
2948
|
-
return this.error(
|
|
2946
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
2949
2947
|
this.bump();
|
|
2950
2948
|
break;
|
|
2951
2949
|
}
|
|
@@ -2958,7 +2956,7 @@ var _n = (
|
|
|
2958
2956
|
t -= 1;
|
|
2959
2957
|
else
|
|
2960
2958
|
return {
|
|
2961
|
-
val: this.message.slice(
|
|
2959
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2962
2960
|
err: null
|
|
2963
2961
|
};
|
|
2964
2962
|
break;
|
|
@@ -2969,61 +2967,61 @@ var _n = (
|
|
|
2969
2967
|
}
|
|
2970
2968
|
}
|
|
2971
2969
|
return {
|
|
2972
|
-
val: this.message.slice(
|
|
2970
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2973
2971
|
err: null
|
|
2974
2972
|
};
|
|
2975
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2976
|
-
var
|
|
2973
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2974
|
+
var r = [];
|
|
2977
2975
|
try {
|
|
2978
|
-
|
|
2976
|
+
r = qn(t);
|
|
2979
2977
|
} catch {
|
|
2980
|
-
return this.error(
|
|
2978
|
+
return this.error(b.INVALID_NUMBER_SKELETON, n);
|
|
2981
2979
|
}
|
|
2982
2980
|
return {
|
|
2983
2981
|
val: {
|
|
2984
|
-
type:
|
|
2985
|
-
tokens:
|
|
2986
|
-
location:
|
|
2987
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2982
|
+
type: F.number,
|
|
2983
|
+
tokens: r,
|
|
2984
|
+
location: n,
|
|
2985
|
+
parsedOptions: this.shouldParseSkeletons ? tr(r) : {}
|
|
2988
2986
|
},
|
|
2989
2987
|
err: null
|
|
2990
2988
|
};
|
|
2991
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
2989
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2992
2990
|
for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2993
2991
|
if (a.length === 0) {
|
|
2994
2992
|
var c = this.clonePosition();
|
|
2995
|
-
if (
|
|
2996
|
-
var m = this.tryParseDecimalInteger(
|
|
2993
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
2994
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2997
2995
|
if (m.err)
|
|
2998
2996
|
return m;
|
|
2999
|
-
h =
|
|
2997
|
+
h = p(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3000
2998
|
} else
|
|
3001
2999
|
break;
|
|
3002
3000
|
}
|
|
3003
3001
|
if (l.has(a))
|
|
3004
|
-
return this.error(
|
|
3002
|
+
return this.error(n === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3005
3003
|
a === "other" && (u = !0), this.bumpSpace();
|
|
3006
|
-
var
|
|
3004
|
+
var d = this.clonePosition();
|
|
3007
3005
|
if (!this.bumpIf("{"))
|
|
3008
|
-
return this.error(
|
|
3009
|
-
var f = this.parseMessage(t + 1,
|
|
3006
|
+
return this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3007
|
+
var f = this.parseMessage(t + 1, n, r);
|
|
3010
3008
|
if (f.err)
|
|
3011
3009
|
return f;
|
|
3012
|
-
var _ = this.tryParseArgumentClose(
|
|
3010
|
+
var _ = this.tryParseArgumentClose(d);
|
|
3013
3011
|
if (_.err)
|
|
3014
3012
|
return _;
|
|
3015
3013
|
o.push([
|
|
3016
3014
|
a,
|
|
3017
3015
|
{
|
|
3018
3016
|
value: f.val,
|
|
3019
|
-
location:
|
|
3017
|
+
location: p(d, this.clonePosition())
|
|
3020
3018
|
}
|
|
3021
3019
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3022
3020
|
}
|
|
3023
|
-
return o.length === 0 ? this.error(
|
|
3024
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3025
|
-
var
|
|
3026
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3021
|
+
return o.length === 0 ? this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(b.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3022
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3023
|
+
var r = 1, i = this.clonePosition();
|
|
3024
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3027
3025
|
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
3028
3026
|
var o = this.char();
|
|
3029
3027
|
if (o >= 48 && o <= 57)
|
|
@@ -3031,8 +3029,8 @@ var _n = (
|
|
|
3031
3029
|
else
|
|
3032
3030
|
break;
|
|
3033
3031
|
}
|
|
3034
|
-
var l =
|
|
3035
|
-
return s ? (u *=
|
|
3032
|
+
var l = p(i, this.clonePosition());
|
|
3033
|
+
return s ? (u *= r, mr(u) ? { val: u, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3036
3034
|
}, e.prototype.offset = function() {
|
|
3037
3035
|
return this.position.offset;
|
|
3038
3036
|
}, e.prototype.isEOF = function() {
|
|
@@ -3047,17 +3045,17 @@ var _n = (
|
|
|
3047
3045
|
var t = this.position.offset;
|
|
3048
3046
|
if (t >= this.message.length)
|
|
3049
3047
|
throw Error("out of bound");
|
|
3050
|
-
var
|
|
3051
|
-
if (
|
|
3048
|
+
var n = Ut(this.message, t);
|
|
3049
|
+
if (n === void 0)
|
|
3052
3050
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3053
|
-
return
|
|
3054
|
-
}, e.prototype.error = function(t,
|
|
3051
|
+
return n;
|
|
3052
|
+
}, e.prototype.error = function(t, n) {
|
|
3055
3053
|
return {
|
|
3056
3054
|
val: null,
|
|
3057
3055
|
err: {
|
|
3058
3056
|
kind: t,
|
|
3059
3057
|
message: this.message,
|
|
3060
|
-
location:
|
|
3058
|
+
location: n
|
|
3061
3059
|
}
|
|
3062
3060
|
};
|
|
3063
3061
|
}, e.prototype.bump = function() {
|
|
@@ -3066,286 +3064,286 @@ var _n = (
|
|
|
3066
3064
|
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);
|
|
3067
3065
|
}
|
|
3068
3066
|
}, e.prototype.bumpIf = function(t) {
|
|
3069
|
-
if (
|
|
3070
|
-
for (var
|
|
3067
|
+
if (tt(this.message, t, this.offset())) {
|
|
3068
|
+
for (var n = 0; n < t.length; n++)
|
|
3071
3069
|
this.bump();
|
|
3072
3070
|
return !0;
|
|
3073
3071
|
}
|
|
3074
3072
|
return !1;
|
|
3075
3073
|
}, e.prototype.bumpUntil = function(t) {
|
|
3076
|
-
var
|
|
3077
|
-
return
|
|
3074
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3075
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3078
3076
|
}, e.prototype.bumpTo = function(t) {
|
|
3079
3077
|
if (this.offset() > t)
|
|
3080
3078
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3081
3079
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3082
|
-
var
|
|
3083
|
-
if (
|
|
3080
|
+
var n = this.offset();
|
|
3081
|
+
if (n === t)
|
|
3084
3082
|
break;
|
|
3085
|
-
if (
|
|
3083
|
+
if (n > t)
|
|
3086
3084
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3087
3085
|
if (this.bump(), this.isEOF())
|
|
3088
3086
|
break;
|
|
3089
3087
|
}
|
|
3090
3088
|
}, e.prototype.bumpSpace = function() {
|
|
3091
|
-
for (; !this.isEOF() &&
|
|
3089
|
+
for (; !this.isEOF() && Gt(this.char()); )
|
|
3092
3090
|
this.bump();
|
|
3093
3091
|
}, e.prototype.peek = function() {
|
|
3094
3092
|
if (this.isEOF())
|
|
3095
3093
|
return null;
|
|
3096
|
-
var t = this.char(),
|
|
3097
|
-
return
|
|
3094
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3095
|
+
return r ?? null;
|
|
3098
3096
|
}, e;
|
|
3099
3097
|
}()
|
|
3100
3098
|
);
|
|
3101
|
-
function
|
|
3099
|
+
function Ue(e) {
|
|
3102
3100
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3103
3101
|
}
|
|
3104
|
-
function
|
|
3105
|
-
return
|
|
3102
|
+
function _r(e) {
|
|
3103
|
+
return Ue(e) || e === 47;
|
|
3106
3104
|
}
|
|
3107
|
-
function
|
|
3105
|
+
function yr(e) {
|
|
3108
3106
|
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;
|
|
3109
3107
|
}
|
|
3110
|
-
function
|
|
3108
|
+
function Gt(e) {
|
|
3111
3109
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3112
3110
|
}
|
|
3113
|
-
function
|
|
3111
|
+
function xr(e) {
|
|
3114
3112
|
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;
|
|
3115
3113
|
}
|
|
3116
|
-
function
|
|
3114
|
+
function De(e) {
|
|
3117
3115
|
e.forEach(function(t) {
|
|
3118
|
-
if (delete t.location, Ct(t) ||
|
|
3119
|
-
for (var
|
|
3120
|
-
delete t.options[
|
|
3116
|
+
if (delete t.location, Ct(t) || Pt(t))
|
|
3117
|
+
for (var n in t.options)
|
|
3118
|
+
delete t.options[n].location, De(t.options[n].value);
|
|
3121
3119
|
else
|
|
3122
|
-
|
|
3120
|
+
St(t) && Nt(t.style) || (At(t) || Ot(t)) && Ie(t.style) ? delete t.style.location : Lt(t) && De(t.children);
|
|
3123
3121
|
});
|
|
3124
3122
|
}
|
|
3125
|
-
function
|
|
3126
|
-
t === void 0 && (t = {}), t =
|
|
3127
|
-
var
|
|
3128
|
-
if (
|
|
3129
|
-
var
|
|
3130
|
-
throw
|
|
3123
|
+
function Er(e, t) {
|
|
3124
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3125
|
+
var n = new gr(e, t).parse();
|
|
3126
|
+
if (n.err) {
|
|
3127
|
+
var r = SyntaxError(b[n.err.kind]);
|
|
3128
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3131
3129
|
}
|
|
3132
|
-
return t?.captureLocation ||
|
|
3130
|
+
return t?.captureLocation || De(n.val), n.val;
|
|
3133
3131
|
}
|
|
3134
|
-
var
|
|
3132
|
+
var j;
|
|
3135
3133
|
(function(e) {
|
|
3136
3134
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3137
|
-
})(
|
|
3138
|
-
var
|
|
3135
|
+
})(j || (j = {}));
|
|
3136
|
+
var pe = (
|
|
3139
3137
|
/** @class */
|
|
3140
3138
|
function(e) {
|
|
3141
|
-
|
|
3142
|
-
function t(
|
|
3143
|
-
var s = e.call(this,
|
|
3144
|
-
return s.code =
|
|
3139
|
+
be(t, e);
|
|
3140
|
+
function t(n, r, i) {
|
|
3141
|
+
var s = e.call(this, n) || this;
|
|
3142
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3145
3143
|
}
|
|
3146
3144
|
return t.prototype.toString = function() {
|
|
3147
3145
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3148
3146
|
}, t;
|
|
3149
3147
|
}(Error)
|
|
3150
|
-
),
|
|
3148
|
+
), it = (
|
|
3151
3149
|
/** @class */
|
|
3152
3150
|
function(e) {
|
|
3153
|
-
|
|
3154
|
-
function t(
|
|
3155
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3151
|
+
be(t, e);
|
|
3152
|
+
function t(n, r, i, s) {
|
|
3153
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, s) || this;
|
|
3156
3154
|
}
|
|
3157
3155
|
return t;
|
|
3158
|
-
}(
|
|
3159
|
-
),
|
|
3156
|
+
}(pe)
|
|
3157
|
+
), vr = (
|
|
3160
3158
|
/** @class */
|
|
3161
3159
|
function(e) {
|
|
3162
|
-
|
|
3163
|
-
function t(
|
|
3164
|
-
return e.call(this, 'Value for "'.concat(
|
|
3160
|
+
be(t, e);
|
|
3161
|
+
function t(n, r, i) {
|
|
3162
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), j.INVALID_VALUE, i) || this;
|
|
3165
3163
|
}
|
|
3166
3164
|
return t;
|
|
3167
|
-
}(
|
|
3168
|
-
),
|
|
3165
|
+
}(pe)
|
|
3166
|
+
), Hr = (
|
|
3169
3167
|
/** @class */
|
|
3170
3168
|
function(e) {
|
|
3171
|
-
|
|
3172
|
-
function t(
|
|
3173
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3169
|
+
be(t, e);
|
|
3170
|
+
function t(n, r) {
|
|
3171
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), j.MISSING_VALUE, r) || this;
|
|
3174
3172
|
}
|
|
3175
3173
|
return t;
|
|
3176
|
-
}(
|
|
3177
|
-
),
|
|
3174
|
+
}(pe)
|
|
3175
|
+
), E;
|
|
3178
3176
|
(function(e) {
|
|
3179
3177
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3180
|
-
})(
|
|
3181
|
-
function
|
|
3182
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3183
|
-
var
|
|
3184
|
-
return !
|
|
3178
|
+
})(E || (E = {}));
|
|
3179
|
+
function Br(e) {
|
|
3180
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3181
|
+
var r = t[t.length - 1];
|
|
3182
|
+
return !r || r.type !== E.literal || n.type !== E.literal ? t.push(n) : r.value += n.value, t;
|
|
3185
3183
|
}, []);
|
|
3186
3184
|
}
|
|
3187
|
-
function
|
|
3185
|
+
function Tr(e) {
|
|
3188
3186
|
return typeof e == "function";
|
|
3189
3187
|
}
|
|
3190
|
-
function
|
|
3191
|
-
if (e.length === 1 &&
|
|
3188
|
+
function ue(e, t, n, r, i, s, u) {
|
|
3189
|
+
if (e.length === 1 && qe(e[0]))
|
|
3192
3190
|
return [
|
|
3193
3191
|
{
|
|
3194
|
-
type:
|
|
3192
|
+
type: E.literal,
|
|
3195
3193
|
value: e[0].value
|
|
3196
3194
|
}
|
|
3197
3195
|
];
|
|
3198
3196
|
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3199
3197
|
var h = a[l];
|
|
3200
|
-
if (
|
|
3198
|
+
if (qe(h)) {
|
|
3201
3199
|
o.push({
|
|
3202
|
-
type:
|
|
3200
|
+
type: E.literal,
|
|
3203
3201
|
value: h.value
|
|
3204
3202
|
});
|
|
3205
3203
|
continue;
|
|
3206
3204
|
}
|
|
3207
|
-
if (
|
|
3205
|
+
if (Wn(h)) {
|
|
3208
3206
|
typeof s == "number" && o.push({
|
|
3209
|
-
type:
|
|
3210
|
-
value:
|
|
3207
|
+
type: E.literal,
|
|
3208
|
+
value: n.getNumberFormat(t).format(s)
|
|
3211
3209
|
});
|
|
3212
3210
|
continue;
|
|
3213
3211
|
}
|
|
3214
3212
|
var c = h.value;
|
|
3215
3213
|
if (!(i && c in i))
|
|
3216
|
-
throw new
|
|
3214
|
+
throw new Hr(c, u);
|
|
3217
3215
|
var m = i[c];
|
|
3218
|
-
if (
|
|
3216
|
+
if (zn(h)) {
|
|
3219
3217
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3220
|
-
type: typeof m == "string" ?
|
|
3218
|
+
type: typeof m == "string" ? E.literal : E.object,
|
|
3221
3219
|
value: m
|
|
3222
3220
|
});
|
|
3223
3221
|
continue;
|
|
3224
3222
|
}
|
|
3225
|
-
if (
|
|
3226
|
-
var
|
|
3223
|
+
if (At(h)) {
|
|
3224
|
+
var d = typeof h.style == "string" ? r.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
|
|
3227
3225
|
o.push({
|
|
3228
|
-
type:
|
|
3229
|
-
value:
|
|
3226
|
+
type: E.literal,
|
|
3227
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3230
3228
|
});
|
|
3231
3229
|
continue;
|
|
3232
3230
|
}
|
|
3233
|
-
if (
|
|
3234
|
-
var
|
|
3231
|
+
if (Ot(h)) {
|
|
3232
|
+
var d = typeof h.style == "string" ? r.time[h.style] : Ie(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3235
3233
|
o.push({
|
|
3236
|
-
type:
|
|
3237
|
-
value:
|
|
3234
|
+
type: E.literal,
|
|
3235
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3238
3236
|
});
|
|
3239
3237
|
continue;
|
|
3240
3238
|
}
|
|
3241
|
-
if (
|
|
3242
|
-
var
|
|
3243
|
-
|
|
3244
|
-
type:
|
|
3245
|
-
value:
|
|
3239
|
+
if (St(h)) {
|
|
3240
|
+
var d = typeof h.style == "string" ? r.number[h.style] : Nt(h.style) ? h.style.parsedOptions : void 0;
|
|
3241
|
+
d && d.scale && (m = m * (d.scale || 1)), o.push({
|
|
3242
|
+
type: E.literal,
|
|
3243
|
+
value: n.getNumberFormat(t, d).format(m)
|
|
3246
3244
|
});
|
|
3247
3245
|
continue;
|
|
3248
3246
|
}
|
|
3249
|
-
if (
|
|
3247
|
+
if (Lt(h)) {
|
|
3250
3248
|
var f = h.children, _ = h.value, v = i[_];
|
|
3251
|
-
if (!
|
|
3252
|
-
throw new
|
|
3253
|
-
var
|
|
3254
|
-
return
|
|
3249
|
+
if (!Tr(v))
|
|
3250
|
+
throw new vr(_, "function", u);
|
|
3251
|
+
var S = ue(f, t, n, r, i, s), A = v(S.map(function(w) {
|
|
3252
|
+
return w.value;
|
|
3255
3253
|
}));
|
|
3256
|
-
Array.isArray(
|
|
3254
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(w) {
|
|
3257
3255
|
return {
|
|
3258
|
-
type: typeof
|
|
3259
|
-
value:
|
|
3256
|
+
type: typeof w == "string" ? E.literal : E.object,
|
|
3257
|
+
value: w
|
|
3260
3258
|
};
|
|
3261
3259
|
}));
|
|
3262
3260
|
}
|
|
3263
3261
|
if (Ct(h)) {
|
|
3264
3262
|
var H = h.options[m] || h.options.other;
|
|
3265
3263
|
if (!H)
|
|
3266
|
-
throw new
|
|
3267
|
-
o.push.apply(o,
|
|
3264
|
+
throw new it(h.value, m, Object.keys(h.options), u);
|
|
3265
|
+
o.push.apply(o, ue(H.value, t, n, r, i));
|
|
3268
3266
|
continue;
|
|
3269
3267
|
}
|
|
3270
|
-
if (
|
|
3268
|
+
if (Pt(h)) {
|
|
3271
3269
|
var H = h.options["=".concat(m)];
|
|
3272
3270
|
if (!H) {
|
|
3273
3271
|
if (!Intl.PluralRules)
|
|
3274
|
-
throw new
|
|
3272
|
+
throw new pe(`Intl.PluralRules is not available in this environment.
|
|
3275
3273
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3276
|
-
`,
|
|
3277
|
-
var
|
|
3278
|
-
H = h.options[
|
|
3274
|
+
`, j.MISSING_INTL_API, u);
|
|
3275
|
+
var L = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3276
|
+
H = h.options[L] || h.options.other;
|
|
3279
3277
|
}
|
|
3280
3278
|
if (!H)
|
|
3281
|
-
throw new
|
|
3282
|
-
o.push.apply(o,
|
|
3279
|
+
throw new it(h.value, m, Object.keys(h.options), u);
|
|
3280
|
+
o.push.apply(o, ue(H.value, t, n, r, i, m - (h.offset || 0)));
|
|
3283
3281
|
continue;
|
|
3284
3282
|
}
|
|
3285
3283
|
}
|
|
3286
|
-
return
|
|
3284
|
+
return Br(o);
|
|
3287
3285
|
}
|
|
3288
|
-
function
|
|
3289
|
-
return t ?
|
|
3290
|
-
return r
|
|
3286
|
+
function wr(e, t) {
|
|
3287
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3288
|
+
return n[r] = y(y({}, e[r]), t[r] || {}), n;
|
|
3291
3289
|
}, {})) : e;
|
|
3292
3290
|
}
|
|
3293
|
-
function
|
|
3294
|
-
return t ? Object.keys(e).reduce(function(
|
|
3295
|
-
return r
|
|
3296
|
-
},
|
|
3291
|
+
function Sr(e, t) {
|
|
3292
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3293
|
+
return n[r] = wr(e[r], t[r]), n;
|
|
3294
|
+
}, y({}, e)) : e;
|
|
3297
3295
|
}
|
|
3298
|
-
function
|
|
3296
|
+
function Ae(e) {
|
|
3299
3297
|
return {
|
|
3300
3298
|
create: function() {
|
|
3301
3299
|
return {
|
|
3302
3300
|
get: function(t) {
|
|
3303
3301
|
return e[t];
|
|
3304
3302
|
},
|
|
3305
|
-
set: function(t,
|
|
3306
|
-
e[t] =
|
|
3303
|
+
set: function(t, n) {
|
|
3304
|
+
e[t] = n;
|
|
3307
3305
|
}
|
|
3308
3306
|
};
|
|
3309
3307
|
}
|
|
3310
3308
|
};
|
|
3311
3309
|
}
|
|
3312
|
-
function
|
|
3310
|
+
function Ar(e) {
|
|
3313
3311
|
return e === void 0 && (e = {
|
|
3314
3312
|
number: {},
|
|
3315
3313
|
dateTime: {},
|
|
3316
3314
|
pluralRules: {}
|
|
3317
3315
|
}), {
|
|
3318
|
-
getNumberFormat:
|
|
3319
|
-
for (var t,
|
|
3320
|
-
r
|
|
3321
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3316
|
+
getNumberFormat: Te(function() {
|
|
3317
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3318
|
+
n[r] = arguments[r];
|
|
3319
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], n, !1)))();
|
|
3322
3320
|
}, {
|
|
3323
|
-
cache:
|
|
3324
|
-
strategy:
|
|
3321
|
+
cache: Ae(e.number),
|
|
3322
|
+
strategy: we.variadic
|
|
3325
3323
|
}),
|
|
3326
|
-
getDateTimeFormat:
|
|
3327
|
-
for (var t,
|
|
3328
|
-
r
|
|
3329
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3324
|
+
getDateTimeFormat: Te(function() {
|
|
3325
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3326
|
+
n[r] = arguments[r];
|
|
3327
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], n, !1)))();
|
|
3330
3328
|
}, {
|
|
3331
|
-
cache:
|
|
3332
|
-
strategy:
|
|
3329
|
+
cache: Ae(e.dateTime),
|
|
3330
|
+
strategy: we.variadic
|
|
3333
3331
|
}),
|
|
3334
|
-
getPluralRules:
|
|
3335
|
-
for (var t,
|
|
3336
|
-
r
|
|
3337
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3332
|
+
getPluralRules: Te(function() {
|
|
3333
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3334
|
+
n[r] = arguments[r];
|
|
3335
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], n, !1)))();
|
|
3338
3336
|
}, {
|
|
3339
|
-
cache:
|
|
3340
|
-
strategy:
|
|
3337
|
+
cache: Ae(e.pluralRules),
|
|
3338
|
+
strategy: we.variadic
|
|
3341
3339
|
})
|
|
3342
3340
|
};
|
|
3343
3341
|
}
|
|
3344
|
-
var
|
|
3342
|
+
var Ft = (
|
|
3345
3343
|
/** @class */
|
|
3346
3344
|
function() {
|
|
3347
|
-
function e(t,
|
|
3348
|
-
|
|
3345
|
+
function e(t, n, r, i) {
|
|
3346
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3349
3347
|
var s = this;
|
|
3350
3348
|
if (this.formatterCache = {
|
|
3351
3349
|
number: {},
|
|
@@ -3356,11 +3354,11 @@ var jt = (
|
|
|
3356
3354
|
if (a.length === 1)
|
|
3357
3355
|
return a[0].value;
|
|
3358
3356
|
var h = a.reduce(function(c, m) {
|
|
3359
|
-
return !c.length || m.type !==
|
|
3357
|
+
return !c.length || m.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3360
3358
|
}, []);
|
|
3361
3359
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3362
3360
|
}, this.formatToParts = function(l) {
|
|
3363
|
-
return
|
|
3361
|
+
return ue(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3364
3362
|
}, this.resolvedOptions = function() {
|
|
3365
3363
|
var l;
|
|
3366
3364
|
return {
|
|
@@ -3368,18 +3366,18 @@ var jt = (
|
|
|
3368
3366
|
};
|
|
3369
3367
|
}, this.getAst = function() {
|
|
3370
3368
|
return s.ast;
|
|
3371
|
-
}, this.locales =
|
|
3369
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3372
3370
|
if (this.message = t, !e.__parse)
|
|
3373
3371
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3374
3372
|
var u = i || {};
|
|
3375
3373
|
u.formatters;
|
|
3376
|
-
var o =
|
|
3377
|
-
this.ast = e.__parse(t,
|
|
3374
|
+
var o = Un(u, ["formatters"]);
|
|
3375
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3378
3376
|
} else
|
|
3379
3377
|
this.ast = t;
|
|
3380
3378
|
if (!Array.isArray(this.ast))
|
|
3381
3379
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3382
|
-
this.formats =
|
|
3380
|
+
this.formats = Sr(e.formats, r), this.formatters = i && i.formatters || Ar(this.formatterCache);
|
|
3383
3381
|
}
|
|
3384
3382
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3385
3383
|
get: function() {
|
|
@@ -3389,10 +3387,10 @@ var jt = (
|
|
|
3389
3387
|
configurable: !0
|
|
3390
3388
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3391
3389
|
if (!(typeof Intl.Locale > "u")) {
|
|
3392
|
-
var
|
|
3393
|
-
return
|
|
3390
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3391
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3394
3392
|
}
|
|
3395
|
-
}, e.__parse =
|
|
3393
|
+
}, e.__parse = Er, e.formats = {
|
|
3396
3394
|
number: {
|
|
3397
3395
|
integer: {
|
|
3398
3396
|
maximumFractionDigits: 0
|
|
@@ -3453,122 +3451,122 @@ var jt = (
|
|
|
3453
3451
|
}, e;
|
|
3454
3452
|
}()
|
|
3455
3453
|
);
|
|
3456
|
-
function
|
|
3454
|
+
function Or(e, t) {
|
|
3457
3455
|
if (t == null)
|
|
3458
3456
|
return;
|
|
3459
3457
|
if (t in e)
|
|
3460
3458
|
return e[t];
|
|
3461
|
-
const
|
|
3462
|
-
let
|
|
3463
|
-
for (let i = 0; i <
|
|
3464
|
-
if (typeof
|
|
3459
|
+
const n = t.split(".");
|
|
3460
|
+
let r = e;
|
|
3461
|
+
for (let i = 0; i < n.length; i++)
|
|
3462
|
+
if (typeof r == "object") {
|
|
3465
3463
|
if (i > 0) {
|
|
3466
|
-
const s =
|
|
3467
|
-
if (s in
|
|
3468
|
-
|
|
3464
|
+
const s = n.slice(i, n.length).join(".");
|
|
3465
|
+
if (s in r) {
|
|
3466
|
+
r = r[s];
|
|
3469
3467
|
break;
|
|
3470
3468
|
}
|
|
3471
3469
|
}
|
|
3472
|
-
|
|
3470
|
+
r = r[n[i]];
|
|
3473
3471
|
} else
|
|
3474
|
-
|
|
3475
|
-
return
|
|
3472
|
+
r = void 0;
|
|
3473
|
+
return r;
|
|
3476
3474
|
}
|
|
3477
|
-
const
|
|
3475
|
+
const O = {}, Cr = (e, t, n) => n && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = n), n), jt = (e, t) => {
|
|
3478
3476
|
if (t == null)
|
|
3479
3477
|
return;
|
|
3480
|
-
if (t in
|
|
3481
|
-
return
|
|
3482
|
-
const
|
|
3483
|
-
for (let
|
|
3484
|
-
const i = r
|
|
3478
|
+
if (t in O && e in O[t])
|
|
3479
|
+
return O[t][e];
|
|
3480
|
+
const n = ne(t);
|
|
3481
|
+
for (let r = 0; r < n.length; r++) {
|
|
3482
|
+
const i = n[r], s = Lr(i, e);
|
|
3485
3483
|
if (s)
|
|
3486
|
-
return
|
|
3484
|
+
return Cr(e, t, s);
|
|
3487
3485
|
}
|
|
3488
3486
|
};
|
|
3489
|
-
let
|
|
3490
|
-
const
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
3487
|
+
let Ve;
|
|
3488
|
+
const te = de({});
|
|
3489
|
+
function Pr(e) {
|
|
3490
|
+
return Ve[e] || null;
|
|
3493
3491
|
}
|
|
3494
|
-
function
|
|
3495
|
-
return e in
|
|
3492
|
+
function kt(e) {
|
|
3493
|
+
return e in Ve;
|
|
3496
3494
|
}
|
|
3497
|
-
function
|
|
3498
|
-
if (!
|
|
3495
|
+
function Lr(e, t) {
|
|
3496
|
+
if (!kt(e))
|
|
3499
3497
|
return null;
|
|
3500
|
-
const
|
|
3501
|
-
return
|
|
3498
|
+
const n = Pr(e);
|
|
3499
|
+
return Or(n, t);
|
|
3502
3500
|
}
|
|
3503
|
-
function
|
|
3501
|
+
function Nr(e) {
|
|
3504
3502
|
if (e == null)
|
|
3505
3503
|
return;
|
|
3506
3504
|
const t = ne(e);
|
|
3507
|
-
for (let
|
|
3508
|
-
const
|
|
3509
|
-
if (
|
|
3510
|
-
return
|
|
3505
|
+
for (let n = 0; n < t.length; n++) {
|
|
3506
|
+
const r = t[n];
|
|
3507
|
+
if (kt(r))
|
|
3508
|
+
return r;
|
|
3511
3509
|
}
|
|
3512
3510
|
}
|
|
3513
|
-
function
|
|
3514
|
-
delete
|
|
3511
|
+
function Vt(e, ...t) {
|
|
3512
|
+
delete O[e], te.update((n) => (n[e] = $n.all([n[e] || {}, ...t]), n));
|
|
3515
3513
|
}
|
|
3516
|
-
|
|
3517
|
-
[
|
|
3514
|
+
X(
|
|
3515
|
+
[te],
|
|
3518
3516
|
([e]) => Object.keys(e)
|
|
3519
3517
|
);
|
|
3520
|
-
|
|
3521
|
-
const
|
|
3522
|
-
function
|
|
3523
|
-
|
|
3518
|
+
te.subscribe((e) => Ve = e);
|
|
3519
|
+
const he = {};
|
|
3520
|
+
function Ir(e, t) {
|
|
3521
|
+
he[e].delete(t), he[e].size === 0 && delete he[e];
|
|
3524
3522
|
}
|
|
3525
|
-
function
|
|
3526
|
-
return
|
|
3523
|
+
function Xt(e) {
|
|
3524
|
+
return he[e];
|
|
3527
3525
|
}
|
|
3528
|
-
function
|
|
3526
|
+
function Mr(e) {
|
|
3529
3527
|
return ne(e).map((t) => {
|
|
3530
|
-
const
|
|
3531
|
-
return [t,
|
|
3528
|
+
const n = Xt(t);
|
|
3529
|
+
return [t, n ? [...n] : []];
|
|
3532
3530
|
}).filter(([, t]) => t.length > 0);
|
|
3533
3531
|
}
|
|
3534
|
-
function
|
|
3532
|
+
function fe(e) {
|
|
3535
3533
|
return e == null ? !1 : ne(e).some(
|
|
3536
3534
|
(t) => {
|
|
3537
|
-
var
|
|
3538
|
-
return (
|
|
3535
|
+
var n;
|
|
3536
|
+
return (n = Xt(t)) == null ? void 0 : n.size;
|
|
3539
3537
|
}
|
|
3540
3538
|
);
|
|
3541
3539
|
}
|
|
3542
|
-
function
|
|
3540
|
+
function Rr(e, t) {
|
|
3543
3541
|
return Promise.all(
|
|
3544
|
-
t.map((
|
|
3545
|
-
).then((
|
|
3542
|
+
t.map((r) => (Ir(e, r), r().then((i) => i.default || i)))
|
|
3543
|
+
).then((r) => Vt(e, ...r));
|
|
3546
3544
|
}
|
|
3547
|
-
const
|
|
3545
|
+
const W = {};
|
|
3548
3546
|
function zt(e) {
|
|
3549
|
-
if (!
|
|
3550
|
-
return e in
|
|
3551
|
-
const t =
|
|
3552
|
-
return
|
|
3547
|
+
if (!fe(e))
|
|
3548
|
+
return e in W ? W[e] : Promise.resolve();
|
|
3549
|
+
const t = Mr(e);
|
|
3550
|
+
return W[e] = Promise.all(
|
|
3553
3551
|
t.map(
|
|
3554
|
-
([
|
|
3552
|
+
([n, r]) => Rr(n, r)
|
|
3555
3553
|
)
|
|
3556
3554
|
).then(() => {
|
|
3557
|
-
if (
|
|
3555
|
+
if (fe(e))
|
|
3558
3556
|
return zt(e);
|
|
3559
|
-
delete
|
|
3560
|
-
}),
|
|
3557
|
+
delete W[e];
|
|
3558
|
+
}), W[e];
|
|
3561
3559
|
}
|
|
3562
|
-
var
|
|
3563
|
-
var
|
|
3564
|
-
for (var
|
|
3565
|
-
|
|
3566
|
-
if (e != null &&
|
|
3567
|
-
for (var
|
|
3568
|
-
t.indexOf(
|
|
3569
|
-
return
|
|
3560
|
+
var st = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable, Dr = (e, t) => {
|
|
3561
|
+
var n = {};
|
|
3562
|
+
for (var r in e)
|
|
3563
|
+
$r.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3564
|
+
if (e != null && st)
|
|
3565
|
+
for (var r of st(e))
|
|
3566
|
+
t.indexOf(r) < 0 && Ur.call(e, r) && (n[r] = e[r]);
|
|
3567
|
+
return n;
|
|
3570
3568
|
};
|
|
3571
|
-
const
|
|
3569
|
+
const Gr = {
|
|
3572
3570
|
number: {
|
|
3573
3571
|
scientific: { notation: "scientific" },
|
|
3574
3572
|
engineering: { notation: "engineering" },
|
|
@@ -3598,174 +3596,174 @@ const Fn = {
|
|
|
3598
3596
|
}
|
|
3599
3597
|
}
|
|
3600
3598
|
};
|
|
3601
|
-
function
|
|
3599
|
+
function Fr({ locale: e, id: t }) {
|
|
3602
3600
|
console.warn(
|
|
3603
3601
|
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3604
3602
|
e
|
|
3605
|
-
).join('", "')}".${
|
|
3603
|
+
).join('", "')}".${fe(P()) ? `
|
|
3606
3604
|
|
|
3607
3605
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3608
3606
|
);
|
|
3609
3607
|
}
|
|
3610
|
-
const
|
|
3608
|
+
const jr = {
|
|
3611
3609
|
fallbackLocale: null,
|
|
3612
3610
|
loadingDelay: 200,
|
|
3613
|
-
formats:
|
|
3611
|
+
formats: Gr,
|
|
3614
3612
|
warnOnMissingMessages: !0,
|
|
3615
3613
|
handleMissingMessage: void 0,
|
|
3616
3614
|
ignoreTag: !0
|
|
3617
|
-
},
|
|
3618
|
-
function
|
|
3619
|
-
return
|
|
3615
|
+
}, Z = jr;
|
|
3616
|
+
function k() {
|
|
3617
|
+
return Z;
|
|
3620
3618
|
}
|
|
3621
|
-
function
|
|
3622
|
-
const t = e, { formats:
|
|
3619
|
+
function kr(e) {
|
|
3620
|
+
const t = e, { formats: n } = t, r = Dr(t, ["formats"]);
|
|
3623
3621
|
let i = e.fallbackLocale;
|
|
3624
3622
|
if (e.initialLocale)
|
|
3625
3623
|
try {
|
|
3626
|
-
|
|
3624
|
+
Ft.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3627
3625
|
} catch {
|
|
3628
3626
|
console.warn(
|
|
3629
3627
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3630
3628
|
);
|
|
3631
3629
|
}
|
|
3632
|
-
return
|
|
3630
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Fr : console.warn(
|
|
3633
3631
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3634
|
-
)), Object.assign(
|
|
3635
|
-
}
|
|
3636
|
-
const
|
|
3637
|
-
var
|
|
3638
|
-
for (var
|
|
3639
|
-
|
|
3640
|
-
if (
|
|
3641
|
-
for (var
|
|
3642
|
-
|
|
3632
|
+
)), Object.assign(Z, r, { initialLocale: i }), n && ("number" in n && Object.assign(Z.formats.number, n.number), "date" in n && Object.assign(Z.formats.date, n.date), "time" in n && Object.assign(Z.formats.time, n.time)), I.set(i);
|
|
3633
|
+
}
|
|
3634
|
+
const Oe = de(!1);
|
|
3635
|
+
var Vr = Object.defineProperty, Xr = Object.defineProperties, zr = Object.getOwnPropertyDescriptors, ot = Object.getOwnPropertySymbols, Wr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable, at = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Qr = (e, t) => {
|
|
3636
|
+
for (var n in t)
|
|
3637
|
+
Wr.call(t, n) && at(e, n, t[n]);
|
|
3638
|
+
if (ot)
|
|
3639
|
+
for (var n of ot(t))
|
|
3640
|
+
Zr.call(t, n) && at(e, n, t[n]);
|
|
3643
3641
|
return e;
|
|
3644
|
-
},
|
|
3645
|
-
let
|
|
3646
|
-
const
|
|
3647
|
-
function
|
|
3648
|
-
return e.split("-").map((t,
|
|
3642
|
+
}, Jr = (e, t) => Xr(e, zr(t));
|
|
3643
|
+
let Ge;
|
|
3644
|
+
const ce = de(null);
|
|
3645
|
+
function ut(e) {
|
|
3646
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3649
3647
|
}
|
|
3650
|
-
function ne(e, t =
|
|
3651
|
-
const
|
|
3652
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3648
|
+
function ne(e, t = k().fallbackLocale) {
|
|
3649
|
+
const n = ut(e);
|
|
3650
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...ut(t)])] : n;
|
|
3653
3651
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3652
|
+
function P() {
|
|
3653
|
+
return Ge ?? void 0;
|
|
3656
3654
|
}
|
|
3657
|
-
|
|
3658
|
-
|
|
3655
|
+
ce.subscribe((e) => {
|
|
3656
|
+
Ge = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3659
3657
|
});
|
|
3660
|
-
const
|
|
3661
|
-
if (e &&
|
|
3662
|
-
const { loadingDelay: t } =
|
|
3663
|
-
let
|
|
3664
|
-
return typeof window < "u" &&
|
|
3665
|
-
() =>
|
|
3658
|
+
const qr = (e) => {
|
|
3659
|
+
if (e && Nr(e) && fe(e)) {
|
|
3660
|
+
const { loadingDelay: t } = k();
|
|
3661
|
+
let n;
|
|
3662
|
+
return typeof window < "u" && P() != null && t ? n = window.setTimeout(
|
|
3663
|
+
() => Oe.set(!0),
|
|
3666
3664
|
t
|
|
3667
|
-
) :
|
|
3668
|
-
|
|
3665
|
+
) : Oe.set(!0), zt(e).then(() => {
|
|
3666
|
+
ce.set(e);
|
|
3669
3667
|
}).finally(() => {
|
|
3670
|
-
clearTimeout(
|
|
3668
|
+
clearTimeout(n), Oe.set(!1);
|
|
3671
3669
|
});
|
|
3672
3670
|
}
|
|
3673
|
-
return
|
|
3674
|
-
},
|
|
3675
|
-
set:
|
|
3676
|
-
}),
|
|
3671
|
+
return ce.set(e);
|
|
3672
|
+
}, I = Jr(Qr({}, ce), {
|
|
3673
|
+
set: qr
|
|
3674
|
+
}), ge = (e) => {
|
|
3677
3675
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3678
|
-
return (
|
|
3679
|
-
const i = JSON.stringify(
|
|
3680
|
-
return i in t ? t[i] : t[i] = e(
|
|
3676
|
+
return (r) => {
|
|
3677
|
+
const i = JSON.stringify(r);
|
|
3678
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3681
3679
|
};
|
|
3682
3680
|
};
|
|
3683
|
-
var
|
|
3684
|
-
for (var
|
|
3685
|
-
|
|
3686
|
-
if (
|
|
3687
|
-
for (var
|
|
3688
|
-
|
|
3681
|
+
var Yr = Object.defineProperty, me = Object.getOwnPropertySymbols, Wt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, ht = (e, t, n) => t in e ? Yr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xe = (e, t) => {
|
|
3682
|
+
for (var n in t || (t = {}))
|
|
3683
|
+
Wt.call(t, n) && ht(e, n, t[n]);
|
|
3684
|
+
if (me)
|
|
3685
|
+
for (var n of me(t))
|
|
3686
|
+
Zt.call(t, n) && ht(e, n, t[n]);
|
|
3689
3687
|
return e;
|
|
3690
3688
|
}, z = (e, t) => {
|
|
3691
|
-
var
|
|
3692
|
-
for (var
|
|
3693
|
-
|
|
3694
|
-
if (e != null &&
|
|
3695
|
-
for (var
|
|
3696
|
-
t.indexOf(
|
|
3697
|
-
return
|
|
3689
|
+
var n = {};
|
|
3690
|
+
for (var r in e)
|
|
3691
|
+
Wt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3692
|
+
if (e != null && me)
|
|
3693
|
+
for (var r of me(e))
|
|
3694
|
+
t.indexOf(r) < 0 && Zt.call(e, r) && (n[r] = e[r]);
|
|
3695
|
+
return n;
|
|
3698
3696
|
};
|
|
3699
|
-
const
|
|
3700
|
-
const { formats:
|
|
3701
|
-
if (e in
|
|
3702
|
-
return
|
|
3697
|
+
const Y = (e, t) => {
|
|
3698
|
+
const { formats: n } = k();
|
|
3699
|
+
if (e in n && t in n[e])
|
|
3700
|
+
return n[e][t];
|
|
3703
3701
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3704
|
-
},
|
|
3702
|
+
}, Kr = ge(
|
|
3705
3703
|
(e) => {
|
|
3706
|
-
var t = e, { locale:
|
|
3707
|
-
if (
|
|
3704
|
+
var t = e, { locale: n, format: r } = t, i = z(t, ["locale", "format"]);
|
|
3705
|
+
if (n == null)
|
|
3708
3706
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3709
|
-
return
|
|
3707
|
+
return r && (i = Y("number", r)), new Intl.NumberFormat(n, i);
|
|
3710
3708
|
}
|
|
3711
|
-
),
|
|
3709
|
+
), ei = ge(
|
|
3712
3710
|
(e) => {
|
|
3713
|
-
var t = e, { locale:
|
|
3714
|
-
if (
|
|
3711
|
+
var t = e, { locale: n, format: r } = t, i = z(t, ["locale", "format"]);
|
|
3712
|
+
if (n == null)
|
|
3715
3713
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3716
|
-
return
|
|
3714
|
+
return r ? i = Y("date", r) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3717
3715
|
}
|
|
3718
|
-
),
|
|
3716
|
+
), ti = ge(
|
|
3719
3717
|
(e) => {
|
|
3720
|
-
var t = e, { locale:
|
|
3721
|
-
if (
|
|
3718
|
+
var t = e, { locale: n, format: r } = t, i = z(t, ["locale", "format"]);
|
|
3719
|
+
if (n == null)
|
|
3722
3720
|
throw new Error(
|
|
3723
3721
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3724
3722
|
);
|
|
3725
|
-
return
|
|
3723
|
+
return r ? i = Y("time", r) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3726
3724
|
}
|
|
3727
3725
|
), ni = (e = {}) => {
|
|
3728
3726
|
var t = e, {
|
|
3729
|
-
locale:
|
|
3730
|
-
} = t,
|
|
3727
|
+
locale: n = P()
|
|
3728
|
+
} = t, r = z(t, [
|
|
3731
3729
|
"locale"
|
|
3732
3730
|
]);
|
|
3733
|
-
return
|
|
3734
|
-
},
|
|
3731
|
+
return Kr(Xe({ locale: n }, r));
|
|
3732
|
+
}, ri = (e = {}) => {
|
|
3735
3733
|
var t = e, {
|
|
3736
|
-
locale:
|
|
3737
|
-
} = t,
|
|
3734
|
+
locale: n = P()
|
|
3735
|
+
} = t, r = z(t, [
|
|
3738
3736
|
"locale"
|
|
3739
3737
|
]);
|
|
3740
|
-
return
|
|
3741
|
-
},
|
|
3738
|
+
return ei(Xe({ locale: n }, r));
|
|
3739
|
+
}, ii = (e = {}) => {
|
|
3742
3740
|
var t = e, {
|
|
3743
|
-
locale:
|
|
3744
|
-
} = t,
|
|
3741
|
+
locale: n = P()
|
|
3742
|
+
} = t, r = z(t, [
|
|
3745
3743
|
"locale"
|
|
3746
3744
|
]);
|
|
3747
|
-
return
|
|
3748
|
-
},
|
|
3745
|
+
return ti(Xe({ locale: n }, r));
|
|
3746
|
+
}, si = ge(
|
|
3749
3747
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3750
|
-
(e, t =
|
|
3751
|
-
ignoreTag:
|
|
3748
|
+
(e, t = P()) => new Ft(e, t, k().formats, {
|
|
3749
|
+
ignoreTag: k().ignoreTag
|
|
3752
3750
|
})
|
|
3753
|
-
),
|
|
3754
|
-
var
|
|
3751
|
+
), oi = (e, t = {}) => {
|
|
3752
|
+
var n, r, i, s;
|
|
3755
3753
|
let u = t;
|
|
3756
3754
|
typeof e == "object" && (u = e, e = u.id);
|
|
3757
3755
|
const {
|
|
3758
3756
|
values: o,
|
|
3759
|
-
locale: l =
|
|
3757
|
+
locale: l = P(),
|
|
3760
3758
|
default: a
|
|
3761
3759
|
} = u;
|
|
3762
3760
|
if (l == null)
|
|
3763
3761
|
throw new Error(
|
|
3764
3762
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3765
3763
|
);
|
|
3766
|
-
let h =
|
|
3764
|
+
let h = jt(e, l);
|
|
3767
3765
|
if (!h)
|
|
3768
|
-
h = (s = (i = (
|
|
3766
|
+
h = (s = (i = (r = (n = k()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3769
3767
|
else if (typeof h != "string")
|
|
3770
3768
|
return console.warn(
|
|
3771
3769
|
`[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.`
|
|
@@ -3774,7 +3772,7 @@ const K = (e, t) => {
|
|
|
3774
3772
|
return h;
|
|
3775
3773
|
let c = h;
|
|
3776
3774
|
try {
|
|
3777
|
-
c =
|
|
3775
|
+
c = si(h, l).format(o);
|
|
3778
3776
|
} catch (m) {
|
|
3779
3777
|
m instanceof Error && console.warn(
|
|
3780
3778
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3782,20 +3780,20 @@ const K = (e, t) => {
|
|
|
3782
3780
|
);
|
|
3783
3781
|
}
|
|
3784
3782
|
return c;
|
|
3785
|
-
},
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
function
|
|
3791
|
-
|
|
3792
|
-
}
|
|
3793
|
-
function
|
|
3794
|
-
|
|
3783
|
+
}, ai = (e, t) => ii(t).format(e), ui = (e, t) => ri(t).format(e), hi = (e, t) => ni(t).format(e), li = (e, t = P()) => jt(e, t), fi = X([I, te], () => oi);
|
|
3784
|
+
X([I], () => ai);
|
|
3785
|
+
X([I], () => ui);
|
|
3786
|
+
X([I], () => hi);
|
|
3787
|
+
X([I, te], () => li);
|
|
3788
|
+
function lt(e, t) {
|
|
3789
|
+
Vt(e, t);
|
|
3790
|
+
}
|
|
3791
|
+
function ci(e) {
|
|
3792
|
+
kr({
|
|
3795
3793
|
fallbackLocale: "en"
|
|
3796
|
-
}),
|
|
3794
|
+
}), I.set(e);
|
|
3797
3795
|
}
|
|
3798
|
-
const
|
|
3796
|
+
const ft = {
|
|
3799
3797
|
en: {
|
|
3800
3798
|
header: {
|
|
3801
3799
|
general: "Cashier",
|
|
@@ -3818,149 +3816,149 @@ const ct = {
|
|
|
3818
3816
|
}
|
|
3819
3817
|
}
|
|
3820
3818
|
};
|
|
3821
|
-
function
|
|
3819
|
+
function mi(e, t) {
|
|
3822
3820
|
if (e) {
|
|
3823
|
-
const
|
|
3824
|
-
|
|
3821
|
+
const n = document.createElement("style");
|
|
3822
|
+
n.innerHTML = t, e.appendChild(n);
|
|
3825
3823
|
}
|
|
3826
3824
|
}
|
|
3827
3825
|
function di(e, t) {
|
|
3828
|
-
const
|
|
3829
|
-
fetch(
|
|
3826
|
+
const n = new URL(t);
|
|
3827
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
3830
3828
|
const i = document.createElement("style");
|
|
3831
|
-
i.innerHTML =
|
|
3832
|
-
}).catch((
|
|
3833
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3829
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
3830
|
+
}).catch((r) => {
|
|
3831
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
3834
3832
|
});
|
|
3835
3833
|
}
|
|
3836
|
-
function bi(e, t,
|
|
3834
|
+
function bi(e, t, n) {
|
|
3837
3835
|
if (window.emMessageBus) {
|
|
3838
|
-
const
|
|
3836
|
+
const r = document.createElement("style");
|
|
3839
3837
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3840
|
-
|
|
3838
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
3841
3839
|
});
|
|
3842
3840
|
}
|
|
3843
3841
|
}
|
|
3844
|
-
function
|
|
3845
|
-
|
|
3842
|
+
function pi(e) {
|
|
3843
|
+
en(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}");
|
|
3846
3844
|
}
|
|
3847
|
-
const
|
|
3845
|
+
const gi = (e) => ({}), ct = (e) => ({}), _i = (e) => ({}), mt = (e) => ({}), yi = (e) => ({}), dt = (e) => ({});
|
|
3848
3846
|
function bt(e) {
|
|
3849
|
-
let t,
|
|
3847
|
+
let t, n, r;
|
|
3850
3848
|
return {
|
|
3851
3849
|
c() {
|
|
3852
|
-
t =
|
|
3850
|
+
t = V("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>', ee(t, "class", "CashierHeaderLeftButton");
|
|
3853
3851
|
},
|
|
3854
3852
|
m(i, s) {
|
|
3855
|
-
|
|
3853
|
+
N(i, t, s), n || (r = vt(
|
|
3856
3854
|
t,
|
|
3857
3855
|
"click",
|
|
3858
3856
|
/*back*/
|
|
3859
3857
|
e[6]
|
|
3860
|
-
),
|
|
3858
|
+
), n = !0);
|
|
3861
3859
|
},
|
|
3862
3860
|
p: B,
|
|
3863
3861
|
d(i) {
|
|
3864
|
-
i && C(t),
|
|
3862
|
+
i && C(t), n = !1, r();
|
|
3865
3863
|
}
|
|
3866
3864
|
};
|
|
3867
3865
|
}
|
|
3868
3866
|
function xi(e) {
|
|
3869
|
-
let t,
|
|
3867
|
+
let t, n = (
|
|
3870
3868
|
/*backButton*/
|
|
3871
3869
|
e[1] && bt(e)
|
|
3872
3870
|
);
|
|
3873
3871
|
return {
|
|
3874
3872
|
c() {
|
|
3875
|
-
|
|
3873
|
+
n && n.c(), t = Et();
|
|
3876
3874
|
},
|
|
3877
|
-
m(
|
|
3878
|
-
|
|
3875
|
+
m(r, i) {
|
|
3876
|
+
n && n.m(r, i), N(r, t, i);
|
|
3879
3877
|
},
|
|
3880
|
-
p(
|
|
3878
|
+
p(r, i) {
|
|
3881
3879
|
/*backButton*/
|
|
3882
|
-
|
|
3880
|
+
r[1] ? n ? n.p(r, i) : (n = bt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3883
3881
|
},
|
|
3884
|
-
d(
|
|
3885
|
-
|
|
3882
|
+
d(r) {
|
|
3883
|
+
r && C(t), n && n.d(r);
|
|
3886
3884
|
}
|
|
3887
3885
|
};
|
|
3888
3886
|
}
|
|
3889
|
-
function
|
|
3890
|
-
let t,
|
|
3887
|
+
function Ei(e) {
|
|
3888
|
+
let t, n = (
|
|
3891
3889
|
/*$_*/
|
|
3892
3890
|
e[4](
|
|
3893
3891
|
/*titleText*/
|
|
3894
3892
|
e[2]
|
|
3895
3893
|
) + ""
|
|
3896
|
-
),
|
|
3894
|
+
), r;
|
|
3897
3895
|
return {
|
|
3898
3896
|
c() {
|
|
3899
|
-
t =
|
|
3897
|
+
t = V("span"), r = je(n), ee(t, "class", "CashierHeaderTitle");
|
|
3900
3898
|
},
|
|
3901
3899
|
m(i, s) {
|
|
3902
|
-
|
|
3900
|
+
N(i, t, s), le(t, r);
|
|
3903
3901
|
},
|
|
3904
3902
|
p(i, s) {
|
|
3905
3903
|
s & /*$_, titleText*/
|
|
3906
|
-
20 &&
|
|
3904
|
+
20 && n !== (n = /*$_*/
|
|
3907
3905
|
i[4](
|
|
3908
3906
|
/*titleText*/
|
|
3909
3907
|
i[2]
|
|
3910
|
-
) + "") &&
|
|
3908
|
+
) + "") && sn(r, n);
|
|
3911
3909
|
},
|
|
3912
3910
|
d(i) {
|
|
3913
3911
|
i && C(t);
|
|
3914
3912
|
}
|
|
3915
3913
|
};
|
|
3916
3914
|
}
|
|
3917
|
-
function
|
|
3918
|
-
let t,
|
|
3915
|
+
function pt(e) {
|
|
3916
|
+
let t, n, r;
|
|
3919
3917
|
return {
|
|
3920
3918
|
c() {
|
|
3921
|
-
t =
|
|
3919
|
+
t = V("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>', ee(t, "class", "CashierHeaderRightButton");
|
|
3922
3920
|
},
|
|
3923
3921
|
m(i, s) {
|
|
3924
|
-
|
|
3922
|
+
N(i, t, s), n || (r = vt(
|
|
3925
3923
|
t,
|
|
3926
3924
|
"click",
|
|
3927
3925
|
/*close*/
|
|
3928
3926
|
e[5]
|
|
3929
|
-
),
|
|
3927
|
+
), n = !0);
|
|
3930
3928
|
},
|
|
3931
3929
|
p: B,
|
|
3932
3930
|
d(i) {
|
|
3933
|
-
i && C(t),
|
|
3931
|
+
i && C(t), n = !1, r();
|
|
3934
3932
|
}
|
|
3935
3933
|
};
|
|
3936
3934
|
}
|
|
3937
|
-
function
|
|
3938
|
-
let t,
|
|
3935
|
+
function vi(e) {
|
|
3936
|
+
let t, n = (
|
|
3939
3937
|
/*closeButton*/
|
|
3940
|
-
e[3] &&
|
|
3938
|
+
e[3] && pt(e)
|
|
3941
3939
|
);
|
|
3942
3940
|
return {
|
|
3943
3941
|
c() {
|
|
3944
|
-
|
|
3942
|
+
n && n.c(), t = Et();
|
|
3945
3943
|
},
|
|
3946
|
-
m(
|
|
3947
|
-
|
|
3944
|
+
m(r, i) {
|
|
3945
|
+
n && n.m(r, i), N(r, t, i);
|
|
3948
3946
|
},
|
|
3949
|
-
p(
|
|
3947
|
+
p(r, i) {
|
|
3950
3948
|
/*closeButton*/
|
|
3951
|
-
|
|
3949
|
+
r[3] ? n ? n.p(r, i) : (n = pt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3952
3950
|
},
|
|
3953
|
-
d(
|
|
3954
|
-
|
|
3951
|
+
d(r) {
|
|
3952
|
+
r && C(t), n && n.d(r);
|
|
3955
3953
|
}
|
|
3956
3954
|
};
|
|
3957
3955
|
}
|
|
3958
|
-
function
|
|
3959
|
-
let t,
|
|
3956
|
+
function Hi(e) {
|
|
3957
|
+
let t, n, r, i;
|
|
3960
3958
|
const s = (
|
|
3961
3959
|
/*#slots*/
|
|
3962
3960
|
e[16].leftButton
|
|
3963
|
-
), u =
|
|
3961
|
+
), u = _e(
|
|
3964
3962
|
s,
|
|
3965
3963
|
e,
|
|
3966
3964
|
/*$$scope*/
|
|
@@ -3969,156 +3967,156 @@ function Bi(e) {
|
|
|
3969
3967
|
), o = u || xi(e), l = (
|
|
3970
3968
|
/*#slots*/
|
|
3971
3969
|
e[16].title
|
|
3972
|
-
), a =
|
|
3970
|
+
), a = _e(
|
|
3973
3971
|
l,
|
|
3974
3972
|
e,
|
|
3975
3973
|
/*$$scope*/
|
|
3976
3974
|
e[15],
|
|
3977
|
-
|
|
3978
|
-
), h = a ||
|
|
3975
|
+
mt
|
|
3976
|
+
), h = a || Ei(e), c = (
|
|
3979
3977
|
/*#slots*/
|
|
3980
3978
|
e[16].rightButton
|
|
3981
|
-
), m =
|
|
3979
|
+
), m = _e(
|
|
3982
3980
|
c,
|
|
3983
3981
|
e,
|
|
3984
3982
|
/*$$scope*/
|
|
3985
3983
|
e[15],
|
|
3986
|
-
|
|
3987
|
-
),
|
|
3984
|
+
ct
|
|
3985
|
+
), d = m || vi(e);
|
|
3988
3986
|
return {
|
|
3989
3987
|
c() {
|
|
3990
|
-
t =
|
|
3988
|
+
t = V("div"), o.c(), n = Ze(), h.c(), r = Ze(), d.c(), ee(t, "class", "CashierHeader");
|
|
3991
3989
|
},
|
|
3992
3990
|
m(f, _) {
|
|
3993
|
-
|
|
3991
|
+
N(f, t, _), o.m(t, null), le(t, n), h.m(t, null), le(t, r), d.m(t, null), e[17](t), i = !0;
|
|
3994
3992
|
},
|
|
3995
3993
|
p(f, [_]) {
|
|
3996
3994
|
u ? u.p && (!i || _ & /*$$scope*/
|
|
3997
|
-
32768) &&
|
|
3995
|
+
32768) && xe(
|
|
3998
3996
|
u,
|
|
3999
3997
|
s,
|
|
4000
3998
|
f,
|
|
4001
3999
|
/*$$scope*/
|
|
4002
4000
|
f[15],
|
|
4003
|
-
i ?
|
|
4001
|
+
i ? ye(
|
|
4004
4002
|
s,
|
|
4005
4003
|
/*$$scope*/
|
|
4006
4004
|
f[15],
|
|
4007
4005
|
_,
|
|
4008
|
-
|
|
4009
|
-
) :
|
|
4006
|
+
yi
|
|
4007
|
+
) : Ee(
|
|
4010
4008
|
/*$$scope*/
|
|
4011
4009
|
f[15]
|
|
4012
4010
|
),
|
|
4013
4011
|
dt
|
|
4014
|
-
) : o
|
|
4012
|
+
) : o.p && (!i || _ & /*backButton*/
|
|
4015
4013
|
2) && o.p(f, i ? _ : -1), a ? a.p && (!i || _ & /*$$scope*/
|
|
4016
|
-
32768) &&
|
|
4014
|
+
32768) && xe(
|
|
4017
4015
|
a,
|
|
4018
4016
|
l,
|
|
4019
4017
|
f,
|
|
4020
4018
|
/*$$scope*/
|
|
4021
4019
|
f[15],
|
|
4022
|
-
i ?
|
|
4020
|
+
i ? ye(
|
|
4023
4021
|
l,
|
|
4024
4022
|
/*$$scope*/
|
|
4025
4023
|
f[15],
|
|
4026
4024
|
_,
|
|
4027
|
-
|
|
4028
|
-
) :
|
|
4025
|
+
_i
|
|
4026
|
+
) : Ee(
|
|
4029
4027
|
/*$$scope*/
|
|
4030
4028
|
f[15]
|
|
4031
4029
|
),
|
|
4032
|
-
|
|
4033
|
-
) : h
|
|
4030
|
+
mt
|
|
4031
|
+
) : h.p && (!i || _ & /*$_, titleText*/
|
|
4034
4032
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4035
|
-
32768) &&
|
|
4033
|
+
32768) && xe(
|
|
4036
4034
|
m,
|
|
4037
4035
|
c,
|
|
4038
4036
|
f,
|
|
4039
4037
|
/*$$scope*/
|
|
4040
4038
|
f[15],
|
|
4041
|
-
i ?
|
|
4039
|
+
i ? ye(
|
|
4042
4040
|
c,
|
|
4043
4041
|
/*$$scope*/
|
|
4044
4042
|
f[15],
|
|
4045
4043
|
_,
|
|
4046
|
-
|
|
4047
|
-
) :
|
|
4044
|
+
gi
|
|
4045
|
+
) : Ee(
|
|
4048
4046
|
/*$$scope*/
|
|
4049
4047
|
f[15]
|
|
4050
4048
|
),
|
|
4051
|
-
|
|
4052
|
-
) :
|
|
4053
|
-
8) &&
|
|
4049
|
+
ct
|
|
4050
|
+
) : d.p && (!i || _ & /*closeButton*/
|
|
4051
|
+
8) && d.p(f, i ? _ : -1);
|
|
4054
4052
|
},
|
|
4055
4053
|
i(f) {
|
|
4056
|
-
i || (
|
|
4054
|
+
i || (oe(o, f), oe(h, f), oe(d, f), i = !0);
|
|
4057
4055
|
},
|
|
4058
4056
|
o(f) {
|
|
4059
|
-
|
|
4057
|
+
He(o, f), He(h, f), He(d, f), i = !1;
|
|
4060
4058
|
},
|
|
4061
4059
|
d(f) {
|
|
4062
|
-
f && C(t), o
|
|
4060
|
+
f && C(t), o.d(f), h.d(f), d.d(f), e[17](null);
|
|
4063
4061
|
}
|
|
4064
4062
|
};
|
|
4065
4063
|
}
|
|
4066
|
-
function
|
|
4067
|
-
let
|
|
4068
|
-
|
|
4069
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4070
|
-
const
|
|
4064
|
+
function Bi(e, t, n) {
|
|
4065
|
+
let r;
|
|
4066
|
+
Kt(e, fi, (g) => n(4, r = g));
|
|
4067
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, f, _ = !1, v, S = !1;
|
|
4068
|
+
const A = () => {
|
|
4071
4069
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4072
4070
|
Object.keys(g).forEach((ze) => {
|
|
4073
|
-
|
|
4071
|
+
lt(ze, g[ze]);
|
|
4074
4072
|
});
|
|
4075
4073
|
}).catch((g) => {
|
|
4076
4074
|
console.log(g);
|
|
4077
4075
|
});
|
|
4078
4076
|
};
|
|
4079
|
-
Object.keys(
|
|
4080
|
-
|
|
4077
|
+
Object.keys(ft).forEach((g) => {
|
|
4078
|
+
lt(g, ft[g]);
|
|
4081
4079
|
});
|
|
4082
4080
|
const H = () => {
|
|
4083
|
-
|
|
4084
|
-
},
|
|
4081
|
+
ci(c);
|
|
4082
|
+
}, L = () => {
|
|
4085
4083
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4086
|
-
},
|
|
4084
|
+
}, w = () => {
|
|
4087
4085
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4088
|
-
},
|
|
4089
|
-
|
|
4090
|
-
},
|
|
4091
|
-
|
|
4092
|
-
},
|
|
4093
|
-
|
|
4086
|
+
}, M = () => {
|
|
4087
|
+
n(1, _ = !!a && a !== "false");
|
|
4088
|
+
}, re = () => {
|
|
4089
|
+
n(3, S = !!m && m !== "false");
|
|
4090
|
+
}, Qt = () => {
|
|
4091
|
+
n(2, v = h || "header.general");
|
|
4094
4092
|
};
|
|
4095
|
-
|
|
4093
|
+
un(() => () => {
|
|
4096
4094
|
});
|
|
4097
|
-
function
|
|
4098
|
-
|
|
4099
|
-
f = g,
|
|
4095
|
+
function Jt(g) {
|
|
4096
|
+
Ce[g ? "unshift" : "push"](() => {
|
|
4097
|
+
f = g, n(0, f);
|
|
4100
4098
|
});
|
|
4101
4099
|
}
|
|
4102
4100
|
return e.$$set = (g) => {
|
|
4103
|
-
"clientstyling" in g &&
|
|
4101
|
+
"clientstyling" in g && n(7, u = g.clientstyling), "clientstylingurl" in g && n(8, o = g.clientstylingurl), "translationurl" in g && n(9, l = g.translationurl), "showbackbutton" in g && n(10, a = g.showbackbutton), "title" in g && n(11, h = g.title), "lang" in g && n(12, c = g.lang), "showclosebutton" in g && n(13, m = g.showclosebutton), "mbsource" in g && n(14, d = g.mbsource), "$$scope" in g && n(15, s = g.$$scope);
|
|
4104
4102
|
}, e.$$.update = () => {
|
|
4105
4103
|
e.$$.dirty & /*lang*/
|
|
4106
4104
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4107
|
-
6144 && c && h &&
|
|
4108
|
-
129 && u && f &&
|
|
4105
|
+
6144 && c && h && Qt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4106
|
+
129 && u && f && mi(f, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4109
4107
|
257 && o && f && di(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4110
|
-
16385 &&
|
|
4111
|
-
4608 && c && l &&
|
|
4112
|
-
1024 && a &&
|
|
4113
|
-
8192 && m &&
|
|
4108
|
+
16385 && d && f && bi(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4109
|
+
4608 && c && l && A(), e.$$.dirty & /*showbackbutton*/
|
|
4110
|
+
1024 && a && M(), e.$$.dirty & /*showclosebutton*/
|
|
4111
|
+
8192 && m && re();
|
|
4114
4112
|
}, [
|
|
4115
4113
|
f,
|
|
4116
4114
|
_,
|
|
4117
4115
|
v,
|
|
4118
|
-
A,
|
|
4119
|
-
n,
|
|
4120
|
-
N,
|
|
4121
4116
|
S,
|
|
4117
|
+
r,
|
|
4118
|
+
L,
|
|
4119
|
+
w,
|
|
4122
4120
|
u,
|
|
4123
4121
|
o,
|
|
4124
4122
|
l,
|
|
@@ -4126,20 +4124,20 @@ function Ti(e, t, r) {
|
|
|
4126
4124
|
h,
|
|
4127
4125
|
c,
|
|
4128
4126
|
m,
|
|
4129
|
-
|
|
4127
|
+
d,
|
|
4130
4128
|
s,
|
|
4131
4129
|
i,
|
|
4132
|
-
|
|
4130
|
+
Jt
|
|
4133
4131
|
];
|
|
4134
4132
|
}
|
|
4135
|
-
class
|
|
4133
|
+
class Ti extends yn {
|
|
4136
4134
|
constructor(t) {
|
|
4137
|
-
super(),
|
|
4135
|
+
super(), gn(
|
|
4138
4136
|
this,
|
|
4139
4137
|
t,
|
|
4140
|
-
Ti,
|
|
4141
4138
|
Bi,
|
|
4142
|
-
|
|
4139
|
+
Hi,
|
|
4140
|
+
_t,
|
|
4143
4141
|
{
|
|
4144
4142
|
clientstyling: 7,
|
|
4145
4143
|
clientstylingurl: 8,
|
|
@@ -4150,7 +4148,7 @@ class wi extends yr {
|
|
|
4150
4148
|
showclosebutton: 13,
|
|
4151
4149
|
mbsource: 14
|
|
4152
4150
|
},
|
|
4153
|
-
|
|
4151
|
+
pi
|
|
4154
4152
|
);
|
|
4155
4153
|
}
|
|
4156
4154
|
get clientstyling() {
|
|
@@ -4202,7 +4200,7 @@ class wi extends yr {
|
|
|
4202
4200
|
this.$$set({ mbsource: t }), T();
|
|
4203
4201
|
}
|
|
4204
4202
|
}
|
|
4205
|
-
|
|
4203
|
+
_n(Ti, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4206
4204
|
export {
|
|
4207
|
-
|
|
4205
|
+
Ti as C
|
|
4208
4206
|
};
|