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