@everymatrix/cashier-iframe-redirect 1.73.0 → 1.73.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierHeader-CoqGcXA4.js → CashierHeader-BEUVhLlY.js} +840 -817
- package/components/CashierHeader-C4g3EugX.cjs +5 -0
- package/components/{CashierHeader-B7Cx4dkg.js → CashierHeader-C9SV7Lec.js} +833 -810
- package/components/CashierIframeRedirect-D2g4LpDZ.cjs +1 -0
- package/components/{CashierIframeRedirect-CXHDllYf.js → CashierIframeRedirect-DGnGEphO.js} +73 -99
- package/components/{CashierIframeRedirect-CdmcyFk8.js → CashierIframeRedirect-gnpyQW9X.js} +79 -109
- package/components/{CashierSpinner-CoVRmmDc.js → CashierSpinner-C1vsS0r_.js} +9 -10
- package/components/{CashierSpinner-D-aDesBN.js → CashierSpinner-DAYJJPhO.js} +9 -10
- package/components/CashierSpinner-DOg7wLjc.cjs +1 -0
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +7 -7
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-zYg0g9Kz.cjs +0 -5
- package/components/CashierIframeRedirect-WBjMe8cc.cjs +0 -1
- package/components/CashierSpinner-Br8xZsdZ.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function er(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,29 +8,29 @@ function rr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function yt(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Qe() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function te(e) {
|
|
18
|
+
e.forEach(yt);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ve(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Et(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
let
|
|
27
|
-
function
|
|
28
|
-
return e === t ? !0 : (
|
|
26
|
+
let se;
|
|
27
|
+
function Ai(e, t) {
|
|
28
|
+
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function tr(e) {
|
|
31
31
|
return Object.keys(e).length === 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function xt(e, ...t) {
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const n of t)
|
|
36
36
|
n(void 0);
|
|
@@ -39,19 +39,19 @@ function vt(e, ...t) {
|
|
|
39
39
|
const r = e.subscribe(...t);
|
|
40
40
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.$$.on_destroy.push(
|
|
42
|
+
function rr(e, t, r) {
|
|
43
|
+
e.$$.on_destroy.push(xt(t, r));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function xe(e, t, r, n) {
|
|
46
46
|
if (e) {
|
|
47
|
-
const i =
|
|
47
|
+
const i = vt(e, t, r, n);
|
|
48
48
|
return e[0](i);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e[1] && n ?
|
|
51
|
+
function vt(e, t, r, n) {
|
|
52
|
+
return e[1] && n ? er(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ve(e, t, r, n) {
|
|
55
55
|
if (e[2] && n) {
|
|
56
56
|
const i = e[2](n(r));
|
|
57
57
|
if (t.dirty === void 0)
|
|
@@ -66,13 +66,13 @@ function Be(e, t, r, n) {
|
|
|
66
66
|
}
|
|
67
67
|
return t.dirty;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function He(e, t, r, n, i, s) {
|
|
70
70
|
if (i) {
|
|
71
|
-
const u =
|
|
71
|
+
const u = vt(t, r, n, s);
|
|
72
72
|
e.p(u, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Be(e) {
|
|
76
76
|
if (e.ctx.length > 32) {
|
|
77
77
|
const t = [], r = e.ctx.length / 32;
|
|
78
78
|
for (let n = 0; n < r; n++)
|
|
@@ -81,17 +81,17 @@ function we(e) {
|
|
|
81
81
|
}
|
|
82
82
|
return -1;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ce(e, t) {
|
|
85
85
|
e.appendChild(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function nr(e, t, r) {
|
|
88
|
+
const n = ir(e);
|
|
89
89
|
if (!n.getElementById(t)) {
|
|
90
|
-
const i =
|
|
91
|
-
i.id = t, i.textContent = r,
|
|
90
|
+
const i = X("style");
|
|
91
|
+
i.id = t, i.textContent = r, sr(n, i);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ir(e) {
|
|
95
95
|
if (!e)
|
|
96
96
|
return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -101,49 +101,49 @@ function or(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function sr(e, t) {
|
|
105
|
+
return ce(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
108
108
|
t
|
|
109
109
|
), t.sheet;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function I(e, t, r) {
|
|
112
112
|
e.insertBefore(t, r || null);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function C(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function X(e) {
|
|
118
118
|
return document.createElement(e);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Xe(e) {
|
|
121
121
|
return document.createTextNode(e);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return
|
|
123
|
+
function qe() {
|
|
124
|
+
return Xe(" ");
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return
|
|
126
|
+
function Ht() {
|
|
127
|
+
return Xe("");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Bt(e, t, r, n) {
|
|
130
130
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function z(e, t, r) {
|
|
133
133
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Oi(e, t, r) {
|
|
136
136
|
const n = t.toLowerCase();
|
|
137
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
137
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function or(e) {
|
|
140
140
|
return Array.from(e.childNodes);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ar(e, t) {
|
|
143
143
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
144
144
|
t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ur(e) {
|
|
147
147
|
const t = {};
|
|
148
148
|
return e.childNodes.forEach(
|
|
149
149
|
/** @param {Element} node */
|
|
@@ -152,97 +152,97 @@ function lr(e) {
|
|
|
152
152
|
}
|
|
153
153
|
), t;
|
|
154
154
|
}
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
let Y;
|
|
156
|
+
function J(e) {
|
|
157
|
+
Y = e;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
if (!
|
|
159
|
+
function hr() {
|
|
160
|
+
if (!Y)
|
|
161
161
|
throw new Error("Function called outside component initialization");
|
|
162
|
-
return
|
|
163
|
-
}
|
|
164
|
-
function Ai(e) {
|
|
165
|
-
fr().$$.on_mount.push(e);
|
|
166
|
-
}
|
|
167
|
-
const F = [], Me = [];
|
|
168
|
-
let j = [];
|
|
169
|
-
const Ye = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
170
|
-
let $e = !1;
|
|
171
|
-
function mr() {
|
|
172
|
-
$e || ($e = !0, cr.then(A));
|
|
173
|
-
}
|
|
174
|
-
function Re(e) {
|
|
175
|
-
j.push(e);
|
|
162
|
+
return Y;
|
|
176
163
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
164
|
+
function lr(e) {
|
|
165
|
+
hr().$$.on_mount.push(e);
|
|
166
|
+
}
|
|
167
|
+
const D = [], Ne = [];
|
|
168
|
+
let G = [];
|
|
169
|
+
const Je = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
170
|
+
let Ie = !1;
|
|
171
|
+
function cr() {
|
|
172
|
+
Ie || (Ie = !0, fr.then(T));
|
|
173
|
+
}
|
|
174
|
+
function Me(e) {
|
|
175
|
+
G.push(e);
|
|
176
|
+
}
|
|
177
|
+
const Te = /* @__PURE__ */ new Set();
|
|
178
|
+
let R = 0;
|
|
179
|
+
function T() {
|
|
180
|
+
if (R !== 0)
|
|
181
181
|
return;
|
|
182
|
-
const e =
|
|
182
|
+
const e = Y;
|
|
183
183
|
do {
|
|
184
184
|
try {
|
|
185
|
-
for (;
|
|
186
|
-
const t =
|
|
187
|
-
|
|
185
|
+
for (; R < D.length; ) {
|
|
186
|
+
const t = D[R];
|
|
187
|
+
R++, J(t), mr(t.$$);
|
|
188
188
|
}
|
|
189
189
|
} catch (t) {
|
|
190
|
-
throw
|
|
190
|
+
throw D.length = 0, R = 0, t;
|
|
191
191
|
}
|
|
192
|
-
for (
|
|
193
|
-
|
|
194
|
-
for (let t = 0; t <
|
|
195
|
-
const r =
|
|
196
|
-
|
|
192
|
+
for (J(null), D.length = 0, R = 0; Ne.length; )
|
|
193
|
+
Ne.pop()();
|
|
194
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
195
|
+
const r = G[t];
|
|
196
|
+
Te.has(r) || (Te.add(r), r());
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
} while (
|
|
200
|
-
for (;
|
|
201
|
-
|
|
202
|
-
|
|
198
|
+
G.length = 0;
|
|
199
|
+
} while (D.length);
|
|
200
|
+
for (; Je.length; )
|
|
201
|
+
Je.pop()();
|
|
202
|
+
Ie = !1, Te.clear(), J(e);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function mr(e) {
|
|
205
205
|
if (e.fragment !== null) {
|
|
206
|
-
e.update(),
|
|
206
|
+
e.update(), te(e.before_update);
|
|
207
207
|
const t = e.dirty;
|
|
208
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
208
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function pr(e) {
|
|
212
212
|
const t = [], r = [];
|
|
213
|
-
|
|
213
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
function
|
|
218
|
-
e && e.i && (
|
|
215
|
+
const ae = /* @__PURE__ */ new Set();
|
|
216
|
+
let dr;
|
|
217
|
+
function ue(e, t) {
|
|
218
|
+
e && e.i && (ae.delete(e), e.i(t));
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function we(e, t, r, n) {
|
|
221
221
|
if (e && e.o) {
|
|
222
|
-
if (
|
|
222
|
+
if (ae.has(e))
|
|
223
223
|
return;
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
ae.add(e), dr.c.push(() => {
|
|
225
|
+
ae.delete(e);
|
|
226
226
|
}), e.o(t);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function br(e, t, r) {
|
|
230
230
|
const { fragment: n, after_update: i } = e.$$;
|
|
231
|
-
n && n.m(t, r),
|
|
232
|
-
const s = e.$$.on_mount.map(
|
|
233
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
234
|
-
}), i.forEach(
|
|
231
|
+
n && n.m(t, r), Me(() => {
|
|
232
|
+
const s = e.$$.on_mount.map(yt).filter(Ve);
|
|
233
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
234
|
+
}), i.forEach(Me);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function gr(e, t) {
|
|
237
237
|
const r = e.$$;
|
|
238
|
-
r.fragment !== null && (
|
|
238
|
+
r.fragment !== null && (pr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
e.$$.dirty[0] === -1 && (
|
|
240
|
+
function _r(e, t) {
|
|
241
|
+
e.$$.dirty[0] === -1 && (D.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const l =
|
|
245
|
-
|
|
243
|
+
function yr(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
244
|
+
const l = Y;
|
|
245
|
+
J(e);
|
|
246
246
|
const a = e.$$ = {
|
|
247
247
|
fragment: null,
|
|
248
248
|
ctx: [],
|
|
@@ -250,7 +250,7 @@ function Er(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
250
250
|
props: s,
|
|
251
251
|
update: B,
|
|
252
252
|
not_equal: i,
|
|
253
|
-
bound:
|
|
253
|
+
bound: Qe(),
|
|
254
254
|
// lifecycle
|
|
255
255
|
on_mount: [],
|
|
256
256
|
on_destroy: [],
|
|
@@ -259,28 +259,28 @@ function Er(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
259
259
|
after_update: [],
|
|
260
260
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
261
261
|
// everything else
|
|
262
|
-
callbacks:
|
|
262
|
+
callbacks: Qe(),
|
|
263
263
|
dirty: o,
|
|
264
264
|
skip_bound: !1,
|
|
265
265
|
root: t.target || l.$$.root
|
|
266
266
|
};
|
|
267
267
|
u && u(a.root);
|
|
268
268
|
let h = !1;
|
|
269
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
|
270
|
-
const
|
|
271
|
-
return a.ctx && i(a.ctx[
|
|
272
|
-
}) : [], a.update(), h = !0,
|
|
269
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
|
|
270
|
+
const f = p.length ? p[0] : m;
|
|
271
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = f) && (!a.skip_bound && a.bound[c] && a.bound[c](f), h && _r(e, c)), m;
|
|
272
|
+
}) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
273
273
|
if (t.hydrate) {
|
|
274
|
-
const
|
|
275
|
-
a.fragment && a.fragment.l(
|
|
274
|
+
const c = or(t.target);
|
|
275
|
+
a.fragment && a.fragment.l(c), c.forEach(C);
|
|
276
276
|
} else
|
|
277
277
|
a.fragment && a.fragment.c();
|
|
278
|
-
t.intro &&
|
|
278
|
+
t.intro && ue(e.$$.fragment), br(e, t.target, t.anchor), T();
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
J(l);
|
|
281
281
|
}
|
|
282
|
-
let
|
|
283
|
-
typeof HTMLElement == "function" && (
|
|
282
|
+
let Tt;
|
|
283
|
+
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
284
284
|
/** The Svelte component constructor */
|
|
285
285
|
$$ctor;
|
|
286
286
|
/** Slots */
|
|
@@ -322,29 +322,29 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
322
322
|
let s;
|
|
323
323
|
return {
|
|
324
324
|
c: function() {
|
|
325
|
-
s =
|
|
325
|
+
s = X("slot"), i !== "default" && z(s, "name", i);
|
|
326
326
|
},
|
|
327
327
|
/**
|
|
328
328
|
* @param {HTMLElement} target
|
|
329
329
|
* @param {HTMLElement} [anchor]
|
|
330
330
|
*/
|
|
331
331
|
m: function(l, a) {
|
|
332
|
-
|
|
332
|
+
I(l, s, a);
|
|
333
333
|
},
|
|
334
334
|
d: function(l) {
|
|
335
|
-
l &&
|
|
335
|
+
l && C(s);
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
341
341
|
return;
|
|
342
|
-
const t = {}, r =
|
|
342
|
+
const t = {}, r = ur(this);
|
|
343
343
|
for (const i of this.$$s)
|
|
344
344
|
i in r && (t[i] = [e(i)]);
|
|
345
345
|
for (const i of this.attributes) {
|
|
346
346
|
const s = this.$$g_p(i.name);
|
|
347
|
-
s in this.$$d || (this.$$d[s] =
|
|
347
|
+
s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
|
|
348
348
|
}
|
|
349
349
|
for (const i in this.$$p_d)
|
|
350
350
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -362,7 +362,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
362
362
|
this.$$r = !0;
|
|
363
363
|
for (const i in this.$$p_d)
|
|
364
364
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
365
|
-
const s =
|
|
365
|
+
const s = he(
|
|
366
366
|
i,
|
|
367
367
|
this.$$d[i],
|
|
368
368
|
this.$$p_d,
|
|
@@ -384,7 +384,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
384
384
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
385
385
|
// and setting attributes through setAttribute etc, this is helpful
|
|
386
386
|
attributeChangedCallback(e, t, r) {
|
|
387
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
387
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
388
388
|
}
|
|
389
389
|
disconnectedCallback() {
|
|
390
390
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -397,7 +397,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
397
397
|
) || e;
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
|
-
function
|
|
400
|
+
function he(e, t, r, n) {
|
|
401
401
|
const i = r[e]?.type;
|
|
402
402
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
403
403
|
return t;
|
|
@@ -426,8 +426,8 @@ function fe(e, t, r, n) {
|
|
|
426
426
|
return t;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
let u = class extends
|
|
429
|
+
function Er(e, t, r, n, i, s) {
|
|
430
|
+
let u = class extends Tt {
|
|
431
431
|
constructor() {
|
|
432
432
|
super(e, r, i), this.$$p_d = t;
|
|
433
433
|
}
|
|
@@ -443,7 +443,7 @@ function xr(e, t, r, n, i, s) {
|
|
|
443
443
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
444
444
|
},
|
|
445
445
|
set(l) {
|
|
446
|
-
l =
|
|
446
|
+
l = he(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
}), n.forEach((o) => {
|
|
@@ -455,7 +455,7 @@ function xr(e, t, r, n, i, s) {
|
|
|
455
455
|
}), e.element = /** @type {any} */
|
|
456
456
|
u, u;
|
|
457
457
|
}
|
|
458
|
-
class
|
|
458
|
+
class xr {
|
|
459
459
|
/**
|
|
460
460
|
* ### PRIVATE API
|
|
461
461
|
*
|
|
@@ -474,7 +474,7 @@ class vr {
|
|
|
474
474
|
$$set = void 0;
|
|
475
475
|
/** @returns {void} */
|
|
476
476
|
$destroy() {
|
|
477
|
-
|
|
477
|
+
gr(this, 1), this.$destroy = B;
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
480
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -483,7 +483,7 @@ class vr {
|
|
|
483
483
|
* @returns {() => void}
|
|
484
484
|
*/
|
|
485
485
|
$on(t, r) {
|
|
486
|
-
if (!
|
|
486
|
+
if (!Ve(r))
|
|
487
487
|
return B;
|
|
488
488
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
489
489
|
return n.push(r), () => {
|
|
@@ -496,29 +496,29 @@ class vr {
|
|
|
496
496
|
* @returns {void}
|
|
497
497
|
*/
|
|
498
498
|
$set(t) {
|
|
499
|
-
this.$$set && !
|
|
499
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
504
|
-
const
|
|
505
|
-
function
|
|
502
|
+
const vr = "4";
|
|
503
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vr);
|
|
504
|
+
const U = [];
|
|
505
|
+
function Hr(e, t) {
|
|
506
506
|
return {
|
|
507
|
-
subscribe:
|
|
507
|
+
subscribe: ge(e, t).subscribe
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function ge(e, t = B) {
|
|
511
511
|
let r;
|
|
512
512
|
const n = /* @__PURE__ */ new Set();
|
|
513
513
|
function i(o) {
|
|
514
|
-
if (
|
|
515
|
-
const l = !
|
|
514
|
+
if (Et(e, o) && (e = o, r)) {
|
|
515
|
+
const l = !U.length;
|
|
516
516
|
for (const a of n)
|
|
517
|
-
a[1](),
|
|
517
|
+
a[1](), U.push(a, e);
|
|
518
518
|
if (l) {
|
|
519
|
-
for (let a = 0; a <
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
for (let a = 0; a < U.length; a += 2)
|
|
520
|
+
U[a][0](U[a + 1]);
|
|
521
|
+
U.length = 0;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
}
|
|
@@ -533,139 +533,139 @@ function ye(e, t = B) {
|
|
|
533
533
|
}
|
|
534
534
|
return { set: i, update: s, subscribe: u };
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function W(e, t, r) {
|
|
537
537
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
538
538
|
if (!i.every(Boolean))
|
|
539
539
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
540
540
|
const s = t.length < 2;
|
|
541
|
-
return
|
|
541
|
+
return Hr(r, (u, o) => {
|
|
542
542
|
let l = !1;
|
|
543
543
|
const a = [];
|
|
544
|
-
let h = 0,
|
|
545
|
-
const
|
|
544
|
+
let h = 0, c = B;
|
|
545
|
+
const m = () => {
|
|
546
546
|
if (h)
|
|
547
547
|
return;
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
s ? u(
|
|
548
|
+
c();
|
|
549
|
+
const f = t(n ? a[0] : a, u, o);
|
|
550
|
+
s ? u(f) : c = Ve(f) ? f : B;
|
|
551
551
|
}, p = i.map(
|
|
552
|
-
(
|
|
553
|
-
|
|
552
|
+
(f, _) => xt(
|
|
553
|
+
f,
|
|
554
554
|
(v) => {
|
|
555
|
-
a[
|
|
555
|
+
a[_] = v, h &= ~(1 << _), l && m();
|
|
556
556
|
},
|
|
557
557
|
() => {
|
|
558
|
-
h |= 1 <<
|
|
558
|
+
h |= 1 << _;
|
|
559
559
|
}
|
|
560
560
|
)
|
|
561
561
|
);
|
|
562
|
-
return l = !0,
|
|
563
|
-
|
|
562
|
+
return l = !0, m(), function() {
|
|
563
|
+
te(p), c(), l = !1;
|
|
564
564
|
};
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Br(e) {
|
|
568
568
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
569
569
|
}
|
|
570
|
-
var
|
|
571
|
-
return
|
|
570
|
+
var Tr = function(t) {
|
|
571
|
+
return wr(t) && !Sr(t);
|
|
572
572
|
};
|
|
573
|
-
function
|
|
573
|
+
function wr(e) {
|
|
574
574
|
return !!e && typeof e == "object";
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Sr(e) {
|
|
577
577
|
var t = Object.prototype.toString.call(e);
|
|
578
578
|
return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
|
|
579
579
|
}
|
|
580
|
-
var
|
|
580
|
+
var Ar = typeof Symbol == "function" && Symbol.for, Or = Ar ? Symbol.for("react.element") : 60103;
|
|
581
581
|
function Pr(e) {
|
|
582
|
-
return e.$$typeof ===
|
|
582
|
+
return e.$$typeof === Or;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Cr(e) {
|
|
585
585
|
return Array.isArray(e) ? [] : {};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
587
|
+
function K(e, t) {
|
|
588
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Cr(e), e, t) : e;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Lr(e, t, r) {
|
|
591
591
|
return e.concat(t).map(function(n) {
|
|
592
|
-
return
|
|
592
|
+
return K(n, r);
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Nr(e, t) {
|
|
596
596
|
if (!t.customMerge)
|
|
597
|
-
return
|
|
597
|
+
return F;
|
|
598
598
|
var r = t.customMerge(e);
|
|
599
|
-
return typeof r == "function" ? r :
|
|
599
|
+
return typeof r == "function" ? r : F;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Ir(e) {
|
|
602
602
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
603
603
|
return Object.propertyIsEnumerable.call(e, t);
|
|
604
604
|
}) : [];
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
return Object.keys(e).concat(
|
|
606
|
+
function Ye(e) {
|
|
607
|
+
return Object.keys(e).concat(Ir(e));
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function wt(e, t) {
|
|
610
610
|
try {
|
|
611
611
|
return t in e;
|
|
612
612
|
} catch {
|
|
613
613
|
return !1;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
616
|
+
function Mr(e, t) {
|
|
617
|
+
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function $r(e, t, r) {
|
|
620
620
|
var n = {};
|
|
621
|
-
return r.isMergeableObject(e) &&
|
|
622
|
-
n[i] =
|
|
623
|
-
}),
|
|
624
|
-
|
|
621
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
622
|
+
n[i] = K(e[i], r);
|
|
623
|
+
}), Ye(t).forEach(function(i) {
|
|
624
|
+
Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
625
625
|
}), n;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
627
|
+
function F(e, t, r) {
|
|
628
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified = K;
|
|
629
629
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
630
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
630
|
+
return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
F.all = function(t, r) {
|
|
633
633
|
if (!Array.isArray(t))
|
|
634
634
|
throw new Error("first argument should be an array");
|
|
635
635
|
return t.reduce(function(n, i) {
|
|
636
|
-
return
|
|
636
|
+
return F(n, i, r);
|
|
637
637
|
}, {});
|
|
638
638
|
};
|
|
639
|
-
var
|
|
640
|
-
const
|
|
641
|
-
var
|
|
642
|
-
return
|
|
639
|
+
var Rr = F, Ur = Rr;
|
|
640
|
+
const Dr = /* @__PURE__ */ Br(Ur);
|
|
641
|
+
var $e = function(e, t) {
|
|
642
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
643
643
|
r.__proto__ = n;
|
|
644
644
|
} || function(r, n) {
|
|
645
645
|
for (var i in n)
|
|
646
646
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
647
|
-
},
|
|
647
|
+
}, $e(e, t);
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function _e(e, t) {
|
|
650
650
|
if (typeof t != "function" && t !== null)
|
|
651
651
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
652
|
-
|
|
652
|
+
$e(e, t);
|
|
653
653
|
function r() {
|
|
654
654
|
this.constructor = e;
|
|
655
655
|
}
|
|
656
656
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
657
657
|
}
|
|
658
|
-
var
|
|
659
|
-
return
|
|
658
|
+
var w = function() {
|
|
659
|
+
return w = Object.assign || function(t) {
|
|
660
660
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
661
661
|
r = arguments[n];
|
|
662
662
|
for (var s in r)
|
|
663
663
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
664
664
|
}
|
|
665
665
|
return t;
|
|
666
|
-
},
|
|
666
|
+
}, w.apply(this, arguments);
|
|
667
667
|
};
|
|
668
|
-
function
|
|
668
|
+
function Gr(e, t) {
|
|
669
669
|
var r = {};
|
|
670
670
|
for (var n in e)
|
|
671
671
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -674,43 +674,43 @@ function Fr(e, t) {
|
|
|
674
674
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
675
675
|
return r;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Se(e, t, r) {
|
|
678
678
|
if (r || arguments.length === 2)
|
|
679
679
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
680
680
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
681
681
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
var r = t && t.cache ? t.cache :
|
|
683
|
+
function Ae(e, t) {
|
|
684
|
+
var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : kr;
|
|
685
685
|
return i(e, {
|
|
686
686
|
cache: r,
|
|
687
687
|
serializer: n
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Fr(e) {
|
|
691
691
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
var i =
|
|
693
|
+
function jr(e, t, r, n) {
|
|
694
|
+
var i = Fr(n) ? n : r(n), s = t.get(i);
|
|
695
695
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function St(e, t, r) {
|
|
698
698
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
699
699
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function At(e, t, r, n, i) {
|
|
702
702
|
return r.bind(t, e, n, i);
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
var r = e.length === 1 ?
|
|
706
|
-
return
|
|
704
|
+
function kr(e, t) {
|
|
705
|
+
var r = e.length === 1 ? jr : St;
|
|
706
|
+
return At(e, this, r, t.cache.create(), t.serializer);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return
|
|
708
|
+
function Vr(e, t) {
|
|
709
|
+
return At(e, this, St, t.cache.create(), t.serializer);
|
|
710
710
|
}
|
|
711
|
-
var
|
|
711
|
+
var Xr = function() {
|
|
712
712
|
return JSON.stringify(arguments);
|
|
713
|
-
},
|
|
713
|
+
}, zr = (
|
|
714
714
|
/** @class */
|
|
715
715
|
function() {
|
|
716
716
|
function e() {
|
|
@@ -722,21 +722,21 @@ var zr = function() {
|
|
|
722
722
|
this.cache[t] = r;
|
|
723
723
|
}, e;
|
|
724
724
|
}()
|
|
725
|
-
),
|
|
725
|
+
), Wr = {
|
|
726
726
|
create: function() {
|
|
727
|
-
return new
|
|
727
|
+
return new zr();
|
|
728
728
|
}
|
|
729
|
-
},
|
|
730
|
-
variadic:
|
|
731
|
-
},
|
|
732
|
-
return
|
|
729
|
+
}, Oe = {
|
|
730
|
+
variadic: Vr
|
|
731
|
+
}, me = function() {
|
|
732
|
+
return me = Object.assign || function(t) {
|
|
733
733
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
734
734
|
r = arguments[n];
|
|
735
735
|
for (var s in r)
|
|
736
736
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
737
737
|
}
|
|
738
738
|
return t;
|
|
739
|
-
},
|
|
739
|
+
}, me.apply(this, arguments);
|
|
740
740
|
};
|
|
741
741
|
var d;
|
|
742
742
|
(function(e) {
|
|
@@ -746,47 +746,47 @@ var y;
|
|
|
746
746
|
(function(e) {
|
|
747
747
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
748
748
|
})(y || (y = {}));
|
|
749
|
-
var
|
|
749
|
+
var j;
|
|
750
750
|
(function(e) {
|
|
751
751
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
752
|
-
})(
|
|
753
|
-
function
|
|
752
|
+
})(j || (j = {}));
|
|
753
|
+
function Ke(e) {
|
|
754
754
|
return e.type === y.literal;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Zr(e) {
|
|
757
757
|
return e.type === y.argument;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Ot(e) {
|
|
760
760
|
return e.type === y.number;
|
|
761
761
|
}
|
|
762
762
|
function Pt(e) {
|
|
763
763
|
return e.type === y.date;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Ct(e) {
|
|
766
766
|
return e.type === y.time;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Lt(e) {
|
|
769
769
|
return e.type === y.select;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Nt(e) {
|
|
772
772
|
return e.type === y.plural;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function Qr(e) {
|
|
775
775
|
return e.type === y.pound;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function It(e) {
|
|
778
778
|
return e.type === y.tag;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
781
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
780
|
+
function Mt(e) {
|
|
781
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
783
|
+
function Re(e) {
|
|
784
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
785
785
|
}
|
|
786
|
-
var
|
|
787
|
-
function
|
|
786
|
+
var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
787
|
+
function Jr(e) {
|
|
788
788
|
var t = {};
|
|
789
|
-
return e.replace(
|
|
789
|
+
return e.replace(qr, function(r) {
|
|
790
790
|
var n = r.length;
|
|
791
791
|
switch (r[0]) {
|
|
792
792
|
case "G":
|
|
@@ -885,36 +885,36 @@ var E = function() {
|
|
|
885
885
|
return t;
|
|
886
886
|
}, E.apply(this, arguments);
|
|
887
887
|
};
|
|
888
|
-
var
|
|
889
|
-
function
|
|
888
|
+
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
889
|
+
function Kr(e) {
|
|
890
890
|
if (e.length === 0)
|
|
891
891
|
throw new Error("Number skeleton cannot be empty");
|
|
892
|
-
for (var t = e.split(
|
|
893
|
-
return
|
|
892
|
+
for (var t = e.split(Yr).filter(function(m) {
|
|
893
|
+
return m.length > 0;
|
|
894
894
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
895
895
|
var s = i[n], u = s.split("/");
|
|
896
896
|
if (u.length === 0)
|
|
897
897
|
throw new Error("Invalid number skeleton");
|
|
898
898
|
for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
899
|
-
var
|
|
900
|
-
if (
|
|
899
|
+
var c = h[a];
|
|
900
|
+
if (c.length === 0)
|
|
901
901
|
throw new Error("Invalid number skeleton");
|
|
902
902
|
}
|
|
903
903
|
r.push({ stem: o, options: l });
|
|
904
904
|
}
|
|
905
905
|
return r;
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function en(e) {
|
|
908
908
|
return e.replace(/^(.*?)-/, "");
|
|
909
909
|
}
|
|
910
|
-
var
|
|
911
|
-
function
|
|
910
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
911
|
+
function tt(e) {
|
|
912
912
|
var t = {};
|
|
913
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
913
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
|
|
914
914
|
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)), "";
|
|
915
915
|
}), t;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Dt(e) {
|
|
918
918
|
switch (e) {
|
|
919
919
|
case "sign-auto":
|
|
920
920
|
return {
|
|
@@ -954,7 +954,7 @@ function Gt(e) {
|
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function rn(e) {
|
|
958
958
|
var t;
|
|
959
959
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
960
960
|
notation: "engineering"
|
|
@@ -962,17 +962,17 @@ function nn(e) {
|
|
|
962
962
|
notation: "scientific"
|
|
963
963
|
}, e = e.slice(1)), t) {
|
|
964
964
|
var r = e.slice(0, 2);
|
|
965
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
965
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
|
|
966
966
|
throw new Error("Malformed concise eng/scientific notation");
|
|
967
967
|
t.minimumIntegerDigits = e.length;
|
|
968
968
|
}
|
|
969
969
|
return t;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
972
|
-
var t = {}, r =
|
|
971
|
+
function rt(e) {
|
|
972
|
+
var t = {}, r = Dt(e);
|
|
973
973
|
return r || t;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function nn(e) {
|
|
976
976
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
977
977
|
var i = n[r];
|
|
978
978
|
switch (i.stem) {
|
|
@@ -996,7 +996,7 @@ function sn(e) {
|
|
|
996
996
|
continue;
|
|
997
997
|
case "measure-unit":
|
|
998
998
|
case "unit":
|
|
999
|
-
t.style = "unit", t.unit =
|
|
999
|
+
t.style = "unit", t.unit = en(i.options[0]);
|
|
1000
1000
|
continue;
|
|
1001
1001
|
case "compact-short":
|
|
1002
1002
|
case "K":
|
|
@@ -1008,12 +1008,12 @@ function sn(e) {
|
|
|
1008
1008
|
continue;
|
|
1009
1009
|
case "scientific":
|
|
1010
1010
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1011
|
-
return E(E({}, l),
|
|
1011
|
+
return E(E({}, l), rt(a));
|
|
1012
1012
|
}, {}));
|
|
1013
1013
|
continue;
|
|
1014
1014
|
case "engineering":
|
|
1015
1015
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1016
|
-
return E(E({}, l),
|
|
1016
|
+
return E(E({}, l), rt(a));
|
|
1017
1017
|
}, {}));
|
|
1018
1018
|
continue;
|
|
1019
1019
|
case "notation-simple":
|
|
@@ -1058,11 +1058,11 @@ function sn(e) {
|
|
|
1058
1058
|
case "integer-width":
|
|
1059
1059
|
if (i.options.length > 1)
|
|
1060
1060
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1061
|
-
i.options[0].replace(
|
|
1061
|
+
i.options[0].replace(tn, function(l, a, h, c, m, p) {
|
|
1062
1062
|
if (a)
|
|
1063
1063
|
t.minimumIntegerDigits = h.length;
|
|
1064
1064
|
else {
|
|
1065
|
-
if (
|
|
1065
|
+
if (c && m)
|
|
1066
1066
|
throw new Error("We currently do not support maximum integer digits");
|
|
1067
1067
|
if (p)
|
|
1068
1068
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1071,32 +1071,32 @@ function sn(e) {
|
|
|
1071
1071
|
});
|
|
1072
1072
|
continue;
|
|
1073
1073
|
}
|
|
1074
|
-
if (
|
|
1074
|
+
if (Ut.test(i.stem)) {
|
|
1075
1075
|
t.minimumIntegerDigits = i.stem.length;
|
|
1076
1076
|
continue;
|
|
1077
1077
|
}
|
|
1078
|
-
if (
|
|
1078
|
+
if (et.test(i.stem)) {
|
|
1079
1079
|
if (i.options.length > 1)
|
|
1080
1080
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1081
|
-
i.stem.replace(
|
|
1082
|
-
return h === "*" ? t.minimumFractionDigits = a.length :
|
|
1081
|
+
i.stem.replace(et, function(l, a, h, c, m, p) {
|
|
1082
|
+
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), "";
|
|
1083
1083
|
});
|
|
1084
1084
|
var s = i.options[0];
|
|
1085
|
-
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t),
|
|
1085
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), tt(s)));
|
|
1086
1086
|
continue;
|
|
1087
1087
|
}
|
|
1088
|
-
if (
|
|
1089
|
-
t = E(E({}, t),
|
|
1088
|
+
if (Rt.test(i.stem)) {
|
|
1089
|
+
t = E(E({}, t), tt(i.stem));
|
|
1090
1090
|
continue;
|
|
1091
1091
|
}
|
|
1092
|
-
var u =
|
|
1092
|
+
var u = Dt(i.stem);
|
|
1093
1093
|
u && (t = E(E({}, t), u));
|
|
1094
|
-
var o =
|
|
1094
|
+
var o = rn(i.stem);
|
|
1095
1095
|
o && (t = E(E({}, t), o));
|
|
1096
1096
|
}
|
|
1097
1097
|
return t;
|
|
1098
1098
|
}
|
|
1099
|
-
var
|
|
1099
|
+
var oe = {
|
|
1100
1100
|
"001": [
|
|
1101
1101
|
"H",
|
|
1102
1102
|
"h"
|
|
@@ -2511,13 +2511,13 @@ var ue = {
|
|
|
2511
2511
|
"h"
|
|
2512
2512
|
]
|
|
2513
2513
|
};
|
|
2514
|
-
function
|
|
2514
|
+
function sn(e, t) {
|
|
2515
2515
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2516
2516
|
var i = e.charAt(n);
|
|
2517
2517
|
if (i === "j") {
|
|
2518
2518
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2519
2519
|
s++, n++;
|
|
2520
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2520
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = on(t);
|
|
2521
2521
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2522
2522
|
r += l;
|
|
2523
2523
|
for (; u-- > 0; )
|
|
@@ -2527,7 +2527,7 @@ function on(e, t) {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
return r;
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function on(e) {
|
|
2531
2531
|
var t = e.hourCycle;
|
|
2532
2532
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2533
2533
|
e.hourCycles && // @ts-ignore
|
|
@@ -2546,23 +2546,23 @@ function an(e) {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
var r = e.language, n;
|
|
2548
2548
|
r !== "root" && (n = e.maximize().region);
|
|
2549
|
-
var i =
|
|
2549
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2550
2550
|
return i[0];
|
|
2551
2551
|
}
|
|
2552
|
-
var
|
|
2552
|
+
var Pe, an = new RegExp("^".concat($t.source, "*")), un = new RegExp("".concat($t.source, "*$"));
|
|
2553
2553
|
function b(e, t) {
|
|
2554
2554
|
return { start: e, end: t };
|
|
2555
2555
|
}
|
|
2556
|
-
var
|
|
2556
|
+
var hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ln = !!String.fromCodePoint, fn = !!Object.fromEntries, cn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, pn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, bn = dn ? Number.isSafeInteger : function(e) {
|
|
2557
2557
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2558
|
-
},
|
|
2558
|
+
}, Ue = !0;
|
|
2559
2559
|
try {
|
|
2560
|
-
var
|
|
2561
|
-
|
|
2560
|
+
var gn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2561
|
+
Ue = ((Pe = gn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2562
2562
|
} catch {
|
|
2563
|
-
|
|
2563
|
+
Ue = !1;
|
|
2564
2564
|
}
|
|
2565
|
-
var
|
|
2565
|
+
var nt = hn ? (
|
|
2566
2566
|
// Native
|
|
2567
2567
|
function(t, r, n) {
|
|
2568
2568
|
return t.startsWith(r, n);
|
|
@@ -2572,7 +2572,7 @@ var it = ln ? (
|
|
|
2572
2572
|
function(t, r, n) {
|
|
2573
2573
|
return t.slice(n, n + r.length) === r;
|
|
2574
2574
|
}
|
|
2575
|
-
),
|
|
2575
|
+
), De = ln ? String.fromCodePoint : (
|
|
2576
2576
|
// IE11
|
|
2577
2577
|
function() {
|
|
2578
2578
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2584,9 +2584,9 @@ var it = ln ? (
|
|
|
2584
2584
|
}
|
|
2585
2585
|
return n;
|
|
2586
2586
|
}
|
|
2587
|
-
),
|
|
2587
|
+
), it = (
|
|
2588
2588
|
// native
|
|
2589
|
-
|
|
2589
|
+
fn ? Object.fromEntries : (
|
|
2590
2590
|
// Ponyfill
|
|
2591
2591
|
function(t) {
|
|
2592
2592
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2596,7 +2596,7 @@ var it = ln ? (
|
|
|
2596
2596
|
return r;
|
|
2597
2597
|
}
|
|
2598
2598
|
)
|
|
2599
|
-
),
|
|
2599
|
+
), Gt = cn ? (
|
|
2600
2600
|
// Native
|
|
2601
2601
|
function(t, r) {
|
|
2602
2602
|
return t.codePointAt(r);
|
|
@@ -2610,7 +2610,7 @@ var it = ln ? (
|
|
|
2610
2610
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
2613
|
-
),
|
|
2613
|
+
), _n = mn ? (
|
|
2614
2614
|
// Native
|
|
2615
2615
|
function(t) {
|
|
2616
2616
|
return t.trimStart();
|
|
@@ -2618,9 +2618,9 @@ var it = ln ? (
|
|
|
2618
2618
|
) : (
|
|
2619
2619
|
// Ponyfill
|
|
2620
2620
|
function(t) {
|
|
2621
|
-
return t.replace(
|
|
2621
|
+
return t.replace(an, "");
|
|
2622
2622
|
}
|
|
2623
|
-
),
|
|
2623
|
+
), yn = pn ? (
|
|
2624
2624
|
// Native
|
|
2625
2625
|
function(t) {
|
|
2626
2626
|
return t.trimEnd();
|
|
@@ -2628,32 +2628,32 @@ var it = ln ? (
|
|
|
2628
2628
|
) : (
|
|
2629
2629
|
// Ponyfill
|
|
2630
2630
|
function(t) {
|
|
2631
|
-
return t.replace(
|
|
2631
|
+
return t.replace(un, "");
|
|
2632
2632
|
}
|
|
2633
2633
|
);
|
|
2634
|
-
function
|
|
2634
|
+
function Ft(e, t) {
|
|
2635
2635
|
return new RegExp(e, t);
|
|
2636
2636
|
}
|
|
2637
|
-
var
|
|
2638
|
-
if (
|
|
2639
|
-
var
|
|
2640
|
-
|
|
2637
|
+
var Ge;
|
|
2638
|
+
if (Ue) {
|
|
2639
|
+
var st = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2640
|
+
Ge = function(t, r) {
|
|
2641
2641
|
var n;
|
|
2642
|
-
|
|
2643
|
-
var i =
|
|
2642
|
+
st.lastIndex = r;
|
|
2643
|
+
var i = st.exec(t);
|
|
2644
2644
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2645
2645
|
};
|
|
2646
2646
|
} else
|
|
2647
|
-
|
|
2647
|
+
Ge = function(t, r) {
|
|
2648
2648
|
for (var n = []; ; ) {
|
|
2649
|
-
var i =
|
|
2650
|
-
if (i === void 0 ||
|
|
2649
|
+
var i = Gt(t, r);
|
|
2650
|
+
if (i === void 0 || jt(i) || Hn(i))
|
|
2651
2651
|
break;
|
|
2652
2652
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2653
2653
|
}
|
|
2654
|
-
return
|
|
2654
|
+
return De.apply(void 0, n);
|
|
2655
2655
|
};
|
|
2656
|
-
var
|
|
2656
|
+
var En = (
|
|
2657
2657
|
/** @class */
|
|
2658
2658
|
function() {
|
|
2659
2659
|
function e(t, r) {
|
|
@@ -2684,7 +2684,7 @@ var xn = (
|
|
|
2684
2684
|
if (n)
|
|
2685
2685
|
break;
|
|
2686
2686
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2687
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2687
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2688
2688
|
var u = this.parseTag(t, r);
|
|
2689
2689
|
if (u.err)
|
|
2690
2690
|
return u;
|
|
@@ -2717,7 +2717,7 @@ var xn = (
|
|
|
2717
2717
|
return s;
|
|
2718
2718
|
var u = s.val, o = this.clonePosition();
|
|
2719
2719
|
if (this.bumpIf("</")) {
|
|
2720
|
-
if (this.isEOF() || !
|
|
2720
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2721
2721
|
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2722
2722
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2723
2723
|
return i !== a ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2735,7 +2735,7 @@ var xn = (
|
|
|
2735
2735
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2736
2736
|
}, e.prototype.parseTagName = function() {
|
|
2737
2737
|
var t = this.offset();
|
|
2738
|
-
for (this.bump(); !this.isEOF() &&
|
|
2738
|
+
for (this.bump(); !this.isEOF() && vn(this.char()); )
|
|
2739
2739
|
this.bump();
|
|
2740
2740
|
return this.message.slice(t, this.offset());
|
|
2741
2741
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2764,7 +2764,7 @@ var xn = (
|
|
|
2764
2764
|
};
|
|
2765
2765
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2766
2766
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2767
|
-
!
|
|
2767
|
+
!xn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2768
2768
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2769
2769
|
if (this.isEOF() || this.char() !== 39)
|
|
2770
2770
|
return null;
|
|
@@ -2798,12 +2798,12 @@ var xn = (
|
|
|
2798
2798
|
r.push(n);
|
|
2799
2799
|
this.bump();
|
|
2800
2800
|
}
|
|
2801
|
-
return
|
|
2801
|
+
return De.apply(void 0, r);
|
|
2802
2802
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2803
2803
|
if (this.isEOF())
|
|
2804
2804
|
return null;
|
|
2805
2805
|
var n = this.char();
|
|
2806
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2806
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2807
2807
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2808
2808
|
var n = this.clonePosition();
|
|
2809
2809
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2832,7 +2832,7 @@ var xn = (
|
|
|
2832
2832
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2833
2833
|
}
|
|
2834
2834
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2835
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2835
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2836
2836
|
this.bumpTo(i);
|
|
2837
2837
|
var s = this.clonePosition(), u = b(t, s);
|
|
2838
2838
|
return { value: n, location: u };
|
|
@@ -2848,40 +2848,40 @@ var xn = (
|
|
|
2848
2848
|
var a = null;
|
|
2849
2849
|
if (this.bumpIf(",")) {
|
|
2850
2850
|
this.bumpSpace();
|
|
2851
|
-
var h = this.clonePosition(),
|
|
2852
|
-
if (
|
|
2853
|
-
return
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2851
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2852
|
+
if (c.err)
|
|
2853
|
+
return c;
|
|
2854
|
+
var m = yn(c.val);
|
|
2855
|
+
if (m.length === 0)
|
|
2856
2856
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2857
2857
|
var p = b(h, this.clonePosition());
|
|
2858
|
-
a = { style:
|
|
2858
|
+
a = { style: m, styleLocation: p };
|
|
2859
2859
|
}
|
|
2860
|
-
var
|
|
2861
|
-
if (
|
|
2862
|
-
return
|
|
2863
|
-
var
|
|
2864
|
-
if (a &&
|
|
2865
|
-
var v =
|
|
2860
|
+
var f = this.tryParseArgumentClose(i);
|
|
2861
|
+
if (f.err)
|
|
2862
|
+
return f;
|
|
2863
|
+
var _ = b(i, this.clonePosition());
|
|
2864
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2865
|
+
var v = _n(a.style.slice(2));
|
|
2866
2866
|
if (o === "number") {
|
|
2867
|
-
var
|
|
2868
|
-
return
|
|
2869
|
-
val: { type: y.number, value: n, location:
|
|
2867
|
+
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2868
|
+
return c.err ? c : {
|
|
2869
|
+
val: { type: y.number, value: n, location: _, style: c.val },
|
|
2870
2870
|
err: null
|
|
2871
2871
|
};
|
|
2872
2872
|
} else {
|
|
2873
2873
|
if (v.length === 0)
|
|
2874
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON,
|
|
2875
|
-
var
|
|
2876
|
-
this.locale && (
|
|
2877
|
-
var
|
|
2878
|
-
type:
|
|
2879
|
-
pattern:
|
|
2874
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
|
|
2875
|
+
var A = v;
|
|
2876
|
+
this.locale && (A = sn(v, this.locale));
|
|
2877
|
+
var m = {
|
|
2878
|
+
type: j.dateTime,
|
|
2879
|
+
pattern: A,
|
|
2880
2880
|
location: a.styleLocation,
|
|
2881
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2881
|
+
parsedOptions: this.shouldParseSkeletons ? Jr(A) : {}
|
|
2882
2882
|
}, O = o === "date" ? y.date : y.time;
|
|
2883
2883
|
return {
|
|
2884
|
-
val: { type: O, value: n, location:
|
|
2884
|
+
val: { type: O, value: n, location: _, style: m },
|
|
2885
2885
|
err: null
|
|
2886
2886
|
};
|
|
2887
2887
|
}
|
|
@@ -2890,7 +2890,7 @@ var xn = (
|
|
|
2890
2890
|
val: {
|
|
2891
2891
|
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2892
2892
|
value: n,
|
|
2893
|
-
location:
|
|
2893
|
+
location: _,
|
|
2894
2894
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2895
2895
|
},
|
|
2896
2896
|
err: null
|
|
@@ -2901,41 +2901,41 @@ var xn = (
|
|
|
2901
2901
|
case "select": {
|
|
2902
2902
|
var H = this.clonePosition();
|
|
2903
2903
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2904
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
2904
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, me({}, H)));
|
|
2905
2905
|
this.bumpSpace();
|
|
2906
|
-
var
|
|
2907
|
-
if (o !== "select" &&
|
|
2906
|
+
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2907
|
+
if (o !== "select" && N.value === "offset") {
|
|
2908
2908
|
if (!this.bumpIf(":"))
|
|
2909
2909
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2910
2910
|
this.bumpSpace();
|
|
2911
|
-
var
|
|
2912
|
-
if (
|
|
2913
|
-
return
|
|
2914
|
-
this.bumpSpace(),
|
|
2911
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2912
|
+
if (c.err)
|
|
2913
|
+
return c;
|
|
2914
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2915
2915
|
}
|
|
2916
|
-
var
|
|
2917
|
-
if (
|
|
2918
|
-
return
|
|
2919
|
-
var
|
|
2920
|
-
if (
|
|
2921
|
-
return
|
|
2922
|
-
var
|
|
2916
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2917
|
+
if ($.err)
|
|
2918
|
+
return $;
|
|
2919
|
+
var f = this.tryParseArgumentClose(i);
|
|
2920
|
+
if (f.err)
|
|
2921
|
+
return f;
|
|
2922
|
+
var ie = b(i, this.clonePosition());
|
|
2923
2923
|
return o === "select" ? {
|
|
2924
2924
|
val: {
|
|
2925
2925
|
type: y.select,
|
|
2926
2926
|
value: n,
|
|
2927
|
-
options:
|
|
2928
|
-
location:
|
|
2927
|
+
options: it($.val),
|
|
2928
|
+
location: ie
|
|
2929
2929
|
},
|
|
2930
2930
|
err: null
|
|
2931
2931
|
} : {
|
|
2932
2932
|
val: {
|
|
2933
2933
|
type: y.plural,
|
|
2934
2934
|
value: n,
|
|
2935
|
-
options:
|
|
2936
|
-
offset:
|
|
2935
|
+
options: it($.val),
|
|
2936
|
+
offset: S,
|
|
2937
2937
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2938
|
-
location:
|
|
2938
|
+
location: ie
|
|
2939
2939
|
},
|
|
2940
2940
|
err: null
|
|
2941
2941
|
};
|
|
@@ -2983,28 +2983,28 @@ var xn = (
|
|
|
2983
2983
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2984
2984
|
var n = [];
|
|
2985
2985
|
try {
|
|
2986
|
-
n =
|
|
2986
|
+
n = Kr(t);
|
|
2987
2987
|
} catch {
|
|
2988
2988
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2989
2989
|
}
|
|
2990
2990
|
return {
|
|
2991
2991
|
val: {
|
|
2992
|
-
type:
|
|
2992
|
+
type: j.number,
|
|
2993
2993
|
tokens: n,
|
|
2994
2994
|
location: r,
|
|
2995
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2995
|
+
parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
|
|
2996
2996
|
},
|
|
2997
2997
|
err: null
|
|
2998
2998
|
};
|
|
2999
2999
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3000
3000
|
for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
3001
3001
|
if (a.length === 0) {
|
|
3002
|
-
var
|
|
3002
|
+
var c = this.clonePosition();
|
|
3003
3003
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3004
|
-
var
|
|
3005
|
-
if (
|
|
3006
|
-
return
|
|
3007
|
-
h = b(
|
|
3004
|
+
var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3005
|
+
if (m.err)
|
|
3006
|
+
return m;
|
|
3007
|
+
h = b(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3008
3008
|
} else
|
|
3009
3009
|
break;
|
|
3010
3010
|
}
|
|
@@ -3014,16 +3014,16 @@ var xn = (
|
|
|
3014
3014
|
var p = this.clonePosition();
|
|
3015
3015
|
if (!this.bumpIf("{"))
|
|
3016
3016
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3017
|
-
var
|
|
3018
|
-
if (
|
|
3019
|
-
return
|
|
3020
|
-
var
|
|
3021
|
-
if (
|
|
3022
|
-
return
|
|
3017
|
+
var f = this.parseMessage(t + 1, r, n);
|
|
3018
|
+
if (f.err)
|
|
3019
|
+
return f;
|
|
3020
|
+
var _ = this.tryParseArgumentClose(p);
|
|
3021
|
+
if (_.err)
|
|
3022
|
+
return _;
|
|
3023
3023
|
o.push([
|
|
3024
3024
|
a,
|
|
3025
3025
|
{
|
|
3026
|
-
value:
|
|
3026
|
+
value: f.val,
|
|
3027
3027
|
location: b(p, this.clonePosition())
|
|
3028
3028
|
}
|
|
3029
3029
|
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
@@ -3040,7 +3040,7 @@ var xn = (
|
|
|
3040
3040
|
break;
|
|
3041
3041
|
}
|
|
3042
3042
|
var l = b(i, this.clonePosition());
|
|
3043
|
-
return s ? (u *= n,
|
|
3043
|
+
return s ? (u *= n, bn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3044
3044
|
}, e.prototype.offset = function() {
|
|
3045
3045
|
return this.position.offset;
|
|
3046
3046
|
}, e.prototype.isEOF = function() {
|
|
@@ -3055,7 +3055,7 @@ var xn = (
|
|
|
3055
3055
|
var t = this.position.offset;
|
|
3056
3056
|
if (t >= this.message.length)
|
|
3057
3057
|
throw Error("out of bound");
|
|
3058
|
-
var r =
|
|
3058
|
+
var r = Gt(this.message, t);
|
|
3059
3059
|
if (r === void 0)
|
|
3060
3060
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3061
3061
|
return r;
|
|
@@ -3074,7 +3074,7 @@ var xn = (
|
|
|
3074
3074
|
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);
|
|
3075
3075
|
}
|
|
3076
3076
|
}, e.prototype.bumpIf = function(t) {
|
|
3077
|
-
if (
|
|
3077
|
+
if (nt(this.message, t, this.offset())) {
|
|
3078
3078
|
for (var r = 0; r < t.length; r++)
|
|
3079
3079
|
this.bump();
|
|
3080
3080
|
return !0;
|
|
@@ -3096,7 +3096,7 @@ var xn = (
|
|
|
3096
3096
|
break;
|
|
3097
3097
|
}
|
|
3098
3098
|
}, e.prototype.bumpSpace = function() {
|
|
3099
|
-
for (; !this.isEOF() &&
|
|
3099
|
+
for (; !this.isEOF() && jt(this.char()); )
|
|
3100
3100
|
this.bump();
|
|
3101
3101
|
}, e.prototype.peek = function() {
|
|
3102
3102
|
if (this.isEOF())
|
|
@@ -3106,47 +3106,47 @@ var xn = (
|
|
|
3106
3106
|
}, e;
|
|
3107
3107
|
}()
|
|
3108
3108
|
);
|
|
3109
|
-
function
|
|
3109
|
+
function Fe(e) {
|
|
3110
3110
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3113
|
-
return
|
|
3112
|
+
function xn(e) {
|
|
3113
|
+
return Fe(e) || e === 47;
|
|
3114
3114
|
}
|
|
3115
|
-
function
|
|
3115
|
+
function vn(e) {
|
|
3116
3116
|
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;
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function jt(e) {
|
|
3119
3119
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3120
3120
|
}
|
|
3121
|
-
function
|
|
3121
|
+
function Hn(e) {
|
|
3122
3122
|
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;
|
|
3123
3123
|
}
|
|
3124
|
-
function
|
|
3124
|
+
function je(e) {
|
|
3125
3125
|
e.forEach(function(t) {
|
|
3126
|
-
if (delete t.location,
|
|
3126
|
+
if (delete t.location, Lt(t) || Nt(t))
|
|
3127
3127
|
for (var r in t.options)
|
|
3128
|
-
delete t.options[r].location,
|
|
3128
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3129
3129
|
else
|
|
3130
|
-
|
|
3130
|
+
Ot(t) && Mt(t.style) || (Pt(t) || Ct(t)) && Re(t.style) ? delete t.style.location : It(t) && je(t.children);
|
|
3131
3131
|
});
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3134
|
-
t === void 0 && (t = {}), t =
|
|
3135
|
-
var r = new
|
|
3133
|
+
function Bn(e, t) {
|
|
3134
|
+
t === void 0 && (t = {}), t = me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3135
|
+
var r = new En(e, t).parse();
|
|
3136
3136
|
if (r.err) {
|
|
3137
3137
|
var n = SyntaxError(d[r.err.kind]);
|
|
3138
3138
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3139
3139
|
}
|
|
3140
|
-
return t?.captureLocation ||
|
|
3140
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3141
3141
|
}
|
|
3142
|
-
var
|
|
3142
|
+
var k;
|
|
3143
3143
|
(function(e) {
|
|
3144
3144
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3145
|
-
})(
|
|
3146
|
-
var
|
|
3145
|
+
})(k || (k = {}));
|
|
3146
|
+
var ye = (
|
|
3147
3147
|
/** @class */
|
|
3148
3148
|
function(e) {
|
|
3149
|
-
|
|
3149
|
+
_e(t, e);
|
|
3150
3150
|
function t(r, n, i) {
|
|
3151
3151
|
var s = e.call(this, r) || this;
|
|
3152
3152
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3155,48 +3155,48 @@ var xe = (
|
|
|
3155
3155
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3156
3156
|
}, t;
|
|
3157
3157
|
}(Error)
|
|
3158
|
-
),
|
|
3158
|
+
), ot = (
|
|
3159
3159
|
/** @class */
|
|
3160
3160
|
function(e) {
|
|
3161
|
-
|
|
3161
|
+
_e(t, e);
|
|
3162
3162
|
function t(r, n, i, s) {
|
|
3163
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3163
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3164
3164
|
}
|
|
3165
3165
|
return t;
|
|
3166
|
-
}(
|
|
3167
|
-
),
|
|
3166
|
+
}(ye)
|
|
3167
|
+
), Tn = (
|
|
3168
3168
|
/** @class */
|
|
3169
3169
|
function(e) {
|
|
3170
|
-
|
|
3170
|
+
_e(t, e);
|
|
3171
3171
|
function t(r, n, i) {
|
|
3172
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3172
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3173
3173
|
}
|
|
3174
3174
|
return t;
|
|
3175
|
-
}(
|
|
3176
|
-
),
|
|
3175
|
+
}(ye)
|
|
3176
|
+
), wn = (
|
|
3177
3177
|
/** @class */
|
|
3178
3178
|
function(e) {
|
|
3179
|
-
|
|
3179
|
+
_e(t, e);
|
|
3180
3180
|
function t(r, n) {
|
|
3181
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3181
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3182
3182
|
}
|
|
3183
3183
|
return t;
|
|
3184
|
-
}(
|
|
3184
|
+
}(ye)
|
|
3185
3185
|
), x;
|
|
3186
3186
|
(function(e) {
|
|
3187
3187
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3188
3188
|
})(x || (x = {}));
|
|
3189
|
-
function
|
|
3189
|
+
function Sn(e) {
|
|
3190
3190
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3191
3191
|
var n = t[t.length - 1];
|
|
3192
3192
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3193
3193
|
}, []);
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3195
|
+
function An(e) {
|
|
3196
3196
|
return typeof e == "function";
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3199
|
-
if (e.length === 1 &&
|
|
3198
|
+
function le(e, t, r, n, i, s, u) {
|
|
3199
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3200
3200
|
return [
|
|
3201
3201
|
{
|
|
3202
3202
|
type: x.literal,
|
|
@@ -3205,105 +3205,105 @@ function ce(e, t, r, n, i, s, u) {
|
|
|
3205
3205
|
];
|
|
3206
3206
|
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3207
3207
|
var h = a[l];
|
|
3208
|
-
if (
|
|
3208
|
+
if (Ke(h)) {
|
|
3209
3209
|
o.push({
|
|
3210
3210
|
type: x.literal,
|
|
3211
3211
|
value: h.value
|
|
3212
3212
|
});
|
|
3213
3213
|
continue;
|
|
3214
3214
|
}
|
|
3215
|
-
if (
|
|
3215
|
+
if (Qr(h)) {
|
|
3216
3216
|
typeof s == "number" && o.push({
|
|
3217
3217
|
type: x.literal,
|
|
3218
3218
|
value: r.getNumberFormat(t).format(s)
|
|
3219
3219
|
});
|
|
3220
3220
|
continue;
|
|
3221
3221
|
}
|
|
3222
|
-
var
|
|
3223
|
-
if (!(i &&
|
|
3224
|
-
throw new
|
|
3225
|
-
var
|
|
3226
|
-
if (
|
|
3227
|
-
(!
|
|
3228
|
-
type: typeof
|
|
3229
|
-
value:
|
|
3222
|
+
var c = h.value;
|
|
3223
|
+
if (!(i && c in i))
|
|
3224
|
+
throw new wn(c, u);
|
|
3225
|
+
var m = i[c];
|
|
3226
|
+
if (Zr(h)) {
|
|
3227
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3228
|
+
type: typeof m == "string" ? x.literal : x.object,
|
|
3229
|
+
value: m
|
|
3230
3230
|
});
|
|
3231
3231
|
continue;
|
|
3232
3232
|
}
|
|
3233
3233
|
if (Pt(h)) {
|
|
3234
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3234
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3235
3235
|
o.push({
|
|
3236
3236
|
type: x.literal,
|
|
3237
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3237
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3238
3238
|
});
|
|
3239
3239
|
continue;
|
|
3240
3240
|
}
|
|
3241
|
-
if (
|
|
3242
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3241
|
+
if (Ct(h)) {
|
|
3242
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3243
3243
|
o.push({
|
|
3244
3244
|
type: x.literal,
|
|
3245
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3245
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3246
3246
|
});
|
|
3247
3247
|
continue;
|
|
3248
3248
|
}
|
|
3249
|
-
if (
|
|
3250
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3251
|
-
p && p.scale && (
|
|
3249
|
+
if (Ot(h)) {
|
|
3250
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Mt(h.style) ? h.style.parsedOptions : void 0;
|
|
3251
|
+
p && p.scale && (m = m * (p.scale || 1)), o.push({
|
|
3252
3252
|
type: x.literal,
|
|
3253
|
-
value: r.getNumberFormat(t, p).format(
|
|
3253
|
+
value: r.getNumberFormat(t, p).format(m)
|
|
3254
3254
|
});
|
|
3255
3255
|
continue;
|
|
3256
3256
|
}
|
|
3257
|
-
if (
|
|
3258
|
-
var
|
|
3259
|
-
if (!
|
|
3260
|
-
throw new
|
|
3261
|
-
var
|
|
3262
|
-
return
|
|
3257
|
+
if (It(h)) {
|
|
3258
|
+
var f = h.children, _ = h.value, v = i[_];
|
|
3259
|
+
if (!An(v))
|
|
3260
|
+
throw new Tn(_, "function", u);
|
|
3261
|
+
var A = le(f, t, r, n, i, s), O = v(A.map(function(S) {
|
|
3262
|
+
return S.value;
|
|
3263
3263
|
}));
|
|
3264
|
-
Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(
|
|
3264
|
+
Array.isArray(O) || (O = [O]), o.push.apply(o, O.map(function(S) {
|
|
3265
3265
|
return {
|
|
3266
|
-
type: typeof
|
|
3267
|
-
value:
|
|
3266
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3267
|
+
value: S
|
|
3268
3268
|
};
|
|
3269
3269
|
}));
|
|
3270
3270
|
}
|
|
3271
|
-
if (
|
|
3272
|
-
var H = h.options[
|
|
3271
|
+
if (Lt(h)) {
|
|
3272
|
+
var H = h.options[m] || h.options.other;
|
|
3273
3273
|
if (!H)
|
|
3274
|
-
throw new
|
|
3275
|
-
o.push.apply(o,
|
|
3274
|
+
throw new ot(h.value, m, Object.keys(h.options), u);
|
|
3275
|
+
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3276
3276
|
continue;
|
|
3277
3277
|
}
|
|
3278
|
-
if (
|
|
3279
|
-
var H = h.options["=".concat(
|
|
3278
|
+
if (Nt(h)) {
|
|
3279
|
+
var H = h.options["=".concat(m)];
|
|
3280
3280
|
if (!H) {
|
|
3281
3281
|
if (!Intl.PluralRules)
|
|
3282
|
-
throw new
|
|
3282
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3283
3283
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3284
|
-
`,
|
|
3285
|
-
var
|
|
3286
|
-
H = h.options[
|
|
3284
|
+
`, k.MISSING_INTL_API, u);
|
|
3285
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3286
|
+
H = h.options[N] || h.options.other;
|
|
3287
3287
|
}
|
|
3288
3288
|
if (!H)
|
|
3289
|
-
throw new
|
|
3290
|
-
o.push.apply(o,
|
|
3289
|
+
throw new ot(h.value, m, Object.keys(h.options), u);
|
|
3290
|
+
o.push.apply(o, le(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3291
3291
|
continue;
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
|
-
return
|
|
3294
|
+
return Sn(o);
|
|
3295
3295
|
}
|
|
3296
|
-
function
|
|
3297
|
-
return t ?
|
|
3298
|
-
return r[n] =
|
|
3296
|
+
function On(e, t) {
|
|
3297
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3298
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3299
3299
|
}, {})) : e;
|
|
3300
3300
|
}
|
|
3301
3301
|
function Pn(e, t) {
|
|
3302
3302
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3303
|
-
return r[n] =
|
|
3304
|
-
},
|
|
3303
|
+
return r[n] = On(e[n], t[n]), r;
|
|
3304
|
+
}, w({}, e)) : e;
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function Ce(e) {
|
|
3307
3307
|
return {
|
|
3308
3308
|
create: function() {
|
|
3309
3309
|
return {
|
|
@@ -3317,39 +3317,39 @@ function Ne(e) {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
};
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3320
|
+
function Cn(e) {
|
|
3321
3321
|
return e === void 0 && (e = {
|
|
3322
3322
|
number: {},
|
|
3323
3323
|
dateTime: {},
|
|
3324
3324
|
pluralRules: {}
|
|
3325
3325
|
}), {
|
|
3326
|
-
getNumberFormat:
|
|
3326
|
+
getNumberFormat: Ae(function() {
|
|
3327
3327
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3328
3328
|
r[n] = arguments[n];
|
|
3329
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3329
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3330
3330
|
}, {
|
|
3331
|
-
cache:
|
|
3332
|
-
strategy:
|
|
3331
|
+
cache: Ce(e.number),
|
|
3332
|
+
strategy: Oe.variadic
|
|
3333
3333
|
}),
|
|
3334
|
-
getDateTimeFormat:
|
|
3334
|
+
getDateTimeFormat: Ae(function() {
|
|
3335
3335
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3336
3336
|
r[n] = arguments[n];
|
|
3337
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3337
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3338
3338
|
}, {
|
|
3339
|
-
cache:
|
|
3340
|
-
strategy:
|
|
3339
|
+
cache: Ce(e.dateTime),
|
|
3340
|
+
strategy: Oe.variadic
|
|
3341
3341
|
}),
|
|
3342
|
-
getPluralRules:
|
|
3342
|
+
getPluralRules: Ae(function() {
|
|
3343
3343
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3344
3344
|
r[n] = arguments[n];
|
|
3345
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3345
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3346
3346
|
}, {
|
|
3347
|
-
cache:
|
|
3348
|
-
strategy:
|
|
3347
|
+
cache: Ce(e.pluralRules),
|
|
3348
|
+
strategy: Oe.variadic
|
|
3349
3349
|
})
|
|
3350
3350
|
};
|
|
3351
3351
|
}
|
|
3352
|
-
var
|
|
3352
|
+
var kt = (
|
|
3353
3353
|
/** @class */
|
|
3354
3354
|
function() {
|
|
3355
3355
|
function e(t, r, n, i) {
|
|
@@ -3363,12 +3363,12 @@ var Vt = (
|
|
|
3363
3363
|
var a = s.formatToParts(l);
|
|
3364
3364
|
if (a.length === 1)
|
|
3365
3365
|
return a[0].value;
|
|
3366
|
-
var h = a.reduce(function(
|
|
3367
|
-
return !
|
|
3366
|
+
var h = a.reduce(function(c, m) {
|
|
3367
|
+
return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3368
3368
|
}, []);
|
|
3369
3369
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3370
3370
|
}, this.formatToParts = function(l) {
|
|
3371
|
-
return
|
|
3371
|
+
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3372
3372
|
}, this.resolvedOptions = function() {
|
|
3373
3373
|
var l;
|
|
3374
3374
|
return {
|
|
@@ -3381,13 +3381,13 @@ var Vt = (
|
|
|
3381
3381
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3382
3382
|
var u = i || {};
|
|
3383
3383
|
u.formatters;
|
|
3384
|
-
var o =
|
|
3385
|
-
this.ast = e.__parse(t,
|
|
3384
|
+
var o = Gr(u, ["formatters"]);
|
|
3385
|
+
this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
|
|
3386
3386
|
} else
|
|
3387
3387
|
this.ast = t;
|
|
3388
3388
|
if (!Array.isArray(this.ast))
|
|
3389
3389
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3390
|
-
this.formats = Pn(e.formats, n), this.formatters = i && i.formatters ||
|
|
3390
|
+
this.formats = Pn(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
|
|
3391
3391
|
}
|
|
3392
3392
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3393
3393
|
get: function() {
|
|
@@ -3400,7 +3400,7 @@ var Vt = (
|
|
|
3400
3400
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3401
3401
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3402
3402
|
}
|
|
3403
|
-
}, e.__parse =
|
|
3403
|
+
}, e.__parse = Bn, e.formats = {
|
|
3404
3404
|
number: {
|
|
3405
3405
|
integer: {
|
|
3406
3406
|
maximumFractionDigits: 0
|
|
@@ -3461,7 +3461,7 @@ var Vt = (
|
|
|
3461
3461
|
}, e;
|
|
3462
3462
|
}()
|
|
3463
3463
|
);
|
|
3464
|
-
function
|
|
3464
|
+
function Ln(e, t) {
|
|
3465
3465
|
if (t == null)
|
|
3466
3466
|
return;
|
|
3467
3467
|
if (t in e)
|
|
@@ -3482,101 +3482,101 @@ function Nn(e, t) {
|
|
|
3482
3482
|
n = void 0;
|
|
3483
3483
|
return n;
|
|
3484
3484
|
}
|
|
3485
|
-
const
|
|
3485
|
+
const P = {}, Nn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Vt = (e, t) => {
|
|
3486
3486
|
if (t == null)
|
|
3487
3487
|
return;
|
|
3488
|
-
if (t in
|
|
3489
|
-
return
|
|
3490
|
-
const r =
|
|
3488
|
+
if (t in P && e in P[t])
|
|
3489
|
+
return P[t][e];
|
|
3490
|
+
const r = ne(t);
|
|
3491
3491
|
for (let n = 0; n < r.length; n++) {
|
|
3492
|
-
const i = r[n], s =
|
|
3492
|
+
const i = r[n], s = Mn(i, e);
|
|
3493
3493
|
if (s)
|
|
3494
|
-
return
|
|
3494
|
+
return Nn(e, t, s);
|
|
3495
3495
|
}
|
|
3496
3496
|
};
|
|
3497
|
-
let
|
|
3498
|
-
const
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3497
|
+
let ze;
|
|
3498
|
+
const re = ge({});
|
|
3499
|
+
function In(e) {
|
|
3500
|
+
return ze[e] || null;
|
|
3501
3501
|
}
|
|
3502
|
-
function
|
|
3503
|
-
return e in
|
|
3502
|
+
function Xt(e) {
|
|
3503
|
+
return e in ze;
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3506
|
-
if (!
|
|
3505
|
+
function Mn(e, t) {
|
|
3506
|
+
if (!Xt(e))
|
|
3507
3507
|
return null;
|
|
3508
|
-
const r =
|
|
3509
|
-
return
|
|
3508
|
+
const r = In(e);
|
|
3509
|
+
return Ln(r, t);
|
|
3510
3510
|
}
|
|
3511
|
-
function
|
|
3511
|
+
function $n(e) {
|
|
3512
3512
|
if (e == null)
|
|
3513
3513
|
return;
|
|
3514
|
-
const t =
|
|
3514
|
+
const t = ne(e);
|
|
3515
3515
|
for (let r = 0; r < t.length; r++) {
|
|
3516
3516
|
const n = t[r];
|
|
3517
|
-
if (
|
|
3517
|
+
if (Xt(n))
|
|
3518
3518
|
return n;
|
|
3519
3519
|
}
|
|
3520
3520
|
}
|
|
3521
|
-
function
|
|
3522
|
-
delete
|
|
3521
|
+
function zt(e, ...t) {
|
|
3522
|
+
delete P[e], re.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
|
|
3523
3523
|
}
|
|
3524
|
-
|
|
3525
|
-
[
|
|
3524
|
+
W(
|
|
3525
|
+
[re],
|
|
3526
3526
|
([e]) => Object.keys(e)
|
|
3527
3527
|
);
|
|
3528
|
-
|
|
3529
|
-
const
|
|
3530
|
-
function
|
|
3531
|
-
|
|
3528
|
+
re.subscribe((e) => ze = e);
|
|
3529
|
+
const fe = {};
|
|
3530
|
+
function Rn(e, t) {
|
|
3531
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3532
3532
|
}
|
|
3533
|
-
function
|
|
3534
|
-
return
|
|
3533
|
+
function Wt(e) {
|
|
3534
|
+
return fe[e];
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return
|
|
3538
|
-
const r =
|
|
3536
|
+
function Un(e) {
|
|
3537
|
+
return ne(e).map((t) => {
|
|
3538
|
+
const r = Wt(t);
|
|
3539
3539
|
return [t, r ? [...r] : []];
|
|
3540
3540
|
}).filter(([, t]) => t.length > 0);
|
|
3541
3541
|
}
|
|
3542
|
-
function
|
|
3543
|
-
return e == null ? !1 :
|
|
3542
|
+
function pe(e) {
|
|
3543
|
+
return e == null ? !1 : ne(e).some(
|
|
3544
3544
|
(t) => {
|
|
3545
3545
|
var r;
|
|
3546
|
-
return (r =
|
|
3546
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3547
3547
|
}
|
|
3548
3548
|
);
|
|
3549
3549
|
}
|
|
3550
|
-
function
|
|
3550
|
+
function Dn(e, t) {
|
|
3551
3551
|
return Promise.all(
|
|
3552
|
-
t.map((n) => (
|
|
3553
|
-
).then((n) =>
|
|
3554
|
-
}
|
|
3555
|
-
const
|
|
3556
|
-
function
|
|
3557
|
-
if (!
|
|
3558
|
-
return e in
|
|
3559
|
-
const t =
|
|
3560
|
-
return
|
|
3552
|
+
t.map((n) => (Rn(e, n), n().then((i) => i.default || i)))
|
|
3553
|
+
).then((n) => zt(e, ...n));
|
|
3554
|
+
}
|
|
3555
|
+
const Q = {};
|
|
3556
|
+
function Zt(e) {
|
|
3557
|
+
if (!pe(e))
|
|
3558
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3559
|
+
const t = Un(e);
|
|
3560
|
+
return Q[e] = Promise.all(
|
|
3561
3561
|
t.map(
|
|
3562
|
-
([r, n]) =>
|
|
3562
|
+
([r, n]) => Dn(r, n)
|
|
3563
3563
|
)
|
|
3564
3564
|
).then(() => {
|
|
3565
|
-
if (
|
|
3566
|
-
return
|
|
3567
|
-
delete
|
|
3568
|
-
}),
|
|
3565
|
+
if (pe(e))
|
|
3566
|
+
return Zt(e);
|
|
3567
|
+
delete Q[e];
|
|
3568
|
+
}), Q[e];
|
|
3569
3569
|
}
|
|
3570
|
-
var
|
|
3570
|
+
var at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, jn = (e, t) => {
|
|
3571
3571
|
var r = {};
|
|
3572
3572
|
for (var n in e)
|
|
3573
|
-
|
|
3574
|
-
if (e != null &&
|
|
3575
|
-
for (var n of
|
|
3576
|
-
t.indexOf(n) < 0 &&
|
|
3573
|
+
Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3574
|
+
if (e != null && at)
|
|
3575
|
+
for (var n of at(e))
|
|
3576
|
+
t.indexOf(n) < 0 && Fn.call(e, n) && (r[n] = e[n]);
|
|
3577
3577
|
return r;
|
|
3578
3578
|
};
|
|
3579
|
-
const
|
|
3579
|
+
const kn = {
|
|
3580
3580
|
number: {
|
|
3581
3581
|
scientific: { notation: "scientific" },
|
|
3582
3582
|
engineering: { notation: "engineering" },
|
|
@@ -3606,159 +3606,159 @@ const Vn = {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
3608
|
};
|
|
3609
|
-
function
|
|
3609
|
+
function Vn({ locale: e, id: t }) {
|
|
3610
3610
|
console.warn(
|
|
3611
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3611
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3612
3612
|
e
|
|
3613
|
-
).join('", "')}".${
|
|
3613
|
+
).join('", "')}".${pe(L()) ? `
|
|
3614
3614
|
|
|
3615
3615
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3616
3616
|
);
|
|
3617
3617
|
}
|
|
3618
|
-
const
|
|
3618
|
+
const Xn = {
|
|
3619
3619
|
fallbackLocale: null,
|
|
3620
3620
|
loadingDelay: 200,
|
|
3621
|
-
formats:
|
|
3621
|
+
formats: kn,
|
|
3622
3622
|
warnOnMissingMessages: !0,
|
|
3623
3623
|
handleMissingMessage: void 0,
|
|
3624
3624
|
ignoreTag: !0
|
|
3625
|
-
},
|
|
3626
|
-
function
|
|
3627
|
-
return
|
|
3625
|
+
}, q = Xn;
|
|
3626
|
+
function V() {
|
|
3627
|
+
return q;
|
|
3628
3628
|
}
|
|
3629
|
-
function
|
|
3630
|
-
const t = e, { formats: r } = t, n =
|
|
3629
|
+
function zn(e) {
|
|
3630
|
+
const t = e, { formats: r } = t, n = jn(t, ["formats"]);
|
|
3631
3631
|
let i = e.fallbackLocale;
|
|
3632
3632
|
if (e.initialLocale)
|
|
3633
3633
|
try {
|
|
3634
|
-
|
|
3634
|
+
kt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3635
3635
|
} catch {
|
|
3636
3636
|
console.warn(
|
|
3637
3637
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3638
3638
|
);
|
|
3639
3639
|
}
|
|
3640
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3640
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Vn : console.warn(
|
|
3641
3641
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3642
|
-
)), Object.assign(
|
|
3642
|
+
)), 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);
|
|
3643
3643
|
}
|
|
3644
|
-
const
|
|
3645
|
-
var
|
|
3644
|
+
const Le = ge(!1);
|
|
3645
|
+
var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
|
|
3646
3646
|
for (var r in t || (t = {}))
|
|
3647
|
-
|
|
3648
|
-
if (
|
|
3649
|
-
for (var r of
|
|
3650
|
-
|
|
3647
|
+
qn.call(t, r) && ht(e, r, t[r]);
|
|
3648
|
+
if (ut)
|
|
3649
|
+
for (var r of ut(t))
|
|
3650
|
+
Jn.call(t, r) && ht(e, r, t[r]);
|
|
3651
3651
|
return e;
|
|
3652
|
-
},
|
|
3653
|
-
let
|
|
3654
|
-
const
|
|
3655
|
-
function
|
|
3652
|
+
}, Kn = (e, t) => Zn(e, Qn(t));
|
|
3653
|
+
let ke;
|
|
3654
|
+
const de = ge(null);
|
|
3655
|
+
function lt(e) {
|
|
3656
3656
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3657
3657
|
}
|
|
3658
|
-
function
|
|
3659
|
-
const r =
|
|
3660
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3658
|
+
function ne(e, t = V().fallbackLocale) {
|
|
3659
|
+
const r = lt(e);
|
|
3660
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
|
|
3661
3661
|
}
|
|
3662
3662
|
function L() {
|
|
3663
|
-
return
|
|
3663
|
+
return ke ?? void 0;
|
|
3664
3664
|
}
|
|
3665
|
-
|
|
3666
|
-
|
|
3665
|
+
de.subscribe((e) => {
|
|
3666
|
+
ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3667
3667
|
});
|
|
3668
|
-
const
|
|
3669
|
-
if (e &&
|
|
3670
|
-
const { loadingDelay: t } =
|
|
3668
|
+
const ei = (e) => {
|
|
3669
|
+
if (e && $n(e) && pe(e)) {
|
|
3670
|
+
const { loadingDelay: t } = V();
|
|
3671
3671
|
let r;
|
|
3672
3672
|
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
3673
|
-
() =>
|
|
3673
|
+
() => Le.set(!0),
|
|
3674
3674
|
t
|
|
3675
|
-
) :
|
|
3676
|
-
|
|
3675
|
+
) : Le.set(!0), Zt(e).then(() => {
|
|
3676
|
+
de.set(e);
|
|
3677
3677
|
}).finally(() => {
|
|
3678
|
-
clearTimeout(r),
|
|
3678
|
+
clearTimeout(r), Le.set(!1);
|
|
3679
3679
|
});
|
|
3680
3680
|
}
|
|
3681
|
-
return
|
|
3682
|
-
},
|
|
3683
|
-
set:
|
|
3684
|
-
}),
|
|
3681
|
+
return de.set(e);
|
|
3682
|
+
}, M = Kn(Yn({}, de), {
|
|
3683
|
+
set: ei
|
|
3684
|
+
}), Ee = (e) => {
|
|
3685
3685
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3686
3686
|
return (n) => {
|
|
3687
3687
|
const i = JSON.stringify(n);
|
|
3688
3688
|
return i in t ? t[i] : t[i] = e(n);
|
|
3689
3689
|
};
|
|
3690
3690
|
};
|
|
3691
|
-
var
|
|
3691
|
+
var ti = Object.defineProperty, be = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3692
3692
|
for (var r in t || (t = {}))
|
|
3693
|
-
|
|
3694
|
-
if (
|
|
3695
|
-
for (var r of
|
|
3696
|
-
|
|
3693
|
+
Qt.call(t, r) && ft(e, r, t[r]);
|
|
3694
|
+
if (be)
|
|
3695
|
+
for (var r of be(t))
|
|
3696
|
+
qt.call(t, r) && ft(e, r, t[r]);
|
|
3697
3697
|
return e;
|
|
3698
|
-
},
|
|
3698
|
+
}, Z = (e, t) => {
|
|
3699
3699
|
var r = {};
|
|
3700
3700
|
for (var n in e)
|
|
3701
|
-
|
|
3702
|
-
if (e != null &&
|
|
3703
|
-
for (var n of
|
|
3704
|
-
t.indexOf(n) < 0 &&
|
|
3701
|
+
Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3702
|
+
if (e != null && be)
|
|
3703
|
+
for (var n of be(e))
|
|
3704
|
+
t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
|
|
3705
3705
|
return r;
|
|
3706
3706
|
};
|
|
3707
|
-
const
|
|
3708
|
-
const { formats: r } =
|
|
3707
|
+
const ee = (e, t) => {
|
|
3708
|
+
const { formats: r } = V();
|
|
3709
3709
|
if (e in r && t in r[e])
|
|
3710
3710
|
return r[e][t];
|
|
3711
3711
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3712
|
-
},
|
|
3712
|
+
}, ri = Ee(
|
|
3713
3713
|
(e) => {
|
|
3714
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3714
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3715
3715
|
if (r == null)
|
|
3716
3716
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3717
|
-
return n && (i =
|
|
3717
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3718
3718
|
}
|
|
3719
|
-
),
|
|
3719
|
+
), ni = Ee(
|
|
3720
3720
|
(e) => {
|
|
3721
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3721
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3722
3722
|
if (r == null)
|
|
3723
3723
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3724
|
-
return n ? i =
|
|
3724
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3725
3725
|
}
|
|
3726
|
-
),
|
|
3726
|
+
), ii = Ee(
|
|
3727
3727
|
(e) => {
|
|
3728
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3728
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3729
3729
|
if (r == null)
|
|
3730
3730
|
throw new Error(
|
|
3731
3731
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3732
3732
|
);
|
|
3733
|
-
return n ? i =
|
|
3733
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3734
3734
|
}
|
|
3735
|
-
),
|
|
3735
|
+
), si = (e = {}) => {
|
|
3736
3736
|
var t = e, {
|
|
3737
3737
|
locale: r = L()
|
|
3738
|
-
} = t, n =
|
|
3738
|
+
} = t, n = Z(t, [
|
|
3739
3739
|
"locale"
|
|
3740
3740
|
]);
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3741
|
+
return ri(We({ locale: r }, n));
|
|
3742
|
+
}, oi = (e = {}) => {
|
|
3743
3743
|
var t = e, {
|
|
3744
3744
|
locale: r = L()
|
|
3745
|
-
} = t, n =
|
|
3745
|
+
} = t, n = Z(t, [
|
|
3746
3746
|
"locale"
|
|
3747
3747
|
]);
|
|
3748
|
-
return
|
|
3749
|
-
},
|
|
3748
|
+
return ni(We({ locale: r }, n));
|
|
3749
|
+
}, ai = (e = {}) => {
|
|
3750
3750
|
var t = e, {
|
|
3751
3751
|
locale: r = L()
|
|
3752
|
-
} = t, n =
|
|
3752
|
+
} = t, n = Z(t, [
|
|
3753
3753
|
"locale"
|
|
3754
3754
|
]);
|
|
3755
|
-
return
|
|
3756
|
-
},
|
|
3755
|
+
return ii(We({ locale: r }, n));
|
|
3756
|
+
}, ui = Ee(
|
|
3757
3757
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3758
|
-
(e, t = L()) => new
|
|
3759
|
-
ignoreTag:
|
|
3758
|
+
(e, t = L()) => new kt(e, t, V().formats, {
|
|
3759
|
+
ignoreTag: V().ignoreTag
|
|
3760
3760
|
})
|
|
3761
|
-
),
|
|
3761
|
+
), hi = (e, t = {}) => {
|
|
3762
3762
|
var r, n, i, s;
|
|
3763
3763
|
let u = t;
|
|
3764
3764
|
typeof e == "object" && (u = e, e = u.id);
|
|
@@ -3771,39 +3771,62 @@ const re = (e, t) => {
|
|
|
3771
3771
|
throw new Error(
|
|
3772
3772
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3773
3773
|
);
|
|
3774
|
-
let h =
|
|
3774
|
+
let h = Vt(e, l);
|
|
3775
3775
|
if (!h)
|
|
3776
|
-
h = (s = (i = (n = (r =
|
|
3776
|
+
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;
|
|
3777
3777
|
else if (typeof h != "string")
|
|
3778
3778
|
return console.warn(
|
|
3779
3779
|
`[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.`
|
|
3780
3780
|
), h;
|
|
3781
3781
|
if (!o)
|
|
3782
3782
|
return h;
|
|
3783
|
-
let
|
|
3783
|
+
let c = h;
|
|
3784
3784
|
try {
|
|
3785
|
-
|
|
3786
|
-
} catch (
|
|
3787
|
-
|
|
3785
|
+
c = ui(h, l).format(o);
|
|
3786
|
+
} catch (m) {
|
|
3787
|
+
m instanceof Error && console.warn(
|
|
3788
3788
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3789
|
-
|
|
3789
|
+
m.message
|
|
3790
3790
|
);
|
|
3791
3791
|
}
|
|
3792
|
-
return
|
|
3793
|
-
},
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
function
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3792
|
+
return c;
|
|
3793
|
+
}, li = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), ci = (e, t) => si(t).format(e), mi = (e, t = L()) => Vt(e, t), pi = W([M, re], () => hi);
|
|
3794
|
+
W([M], () => li);
|
|
3795
|
+
W([M], () => fi);
|
|
3796
|
+
W([M], () => ci);
|
|
3797
|
+
W([M, re], () => mi);
|
|
3798
|
+
function di(e, t) {
|
|
3799
|
+
if (e) {
|
|
3800
|
+
const r = document.createElement("style");
|
|
3801
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
function bi(e, t) {
|
|
3805
|
+
const r = new URL(t);
|
|
3806
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3807
|
+
const i = document.createElement("style");
|
|
3808
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3809
|
+
}).catch((n) => {
|
|
3810
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3811
|
+
});
|
|
3812
|
+
}
|
|
3813
|
+
function gi(e, t, r) {
|
|
3814
|
+
if (window.emMessageBus) {
|
|
3815
|
+
const n = document.createElement("style");
|
|
3816
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3817
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3818
|
+
});
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
function ct(e, t) {
|
|
3822
|
+
zt(e, t);
|
|
3823
|
+
}
|
|
3824
|
+
function _i(e) {
|
|
3825
|
+
zn({
|
|
3803
3826
|
fallbackLocale: "en"
|
|
3804
|
-
}),
|
|
3827
|
+
}), M.set(e);
|
|
3805
3828
|
}
|
|
3806
|
-
const
|
|
3829
|
+
const mt = {
|
|
3807
3830
|
en: {
|
|
3808
3831
|
header: {
|
|
3809
3832
|
general: "Cashier",
|
|
@@ -3826,18 +3849,18 @@ const pt = {
|
|
|
3826
3849
|
}
|
|
3827
3850
|
}
|
|
3828
3851
|
};
|
|
3829
|
-
function
|
|
3830
|
-
|
|
3852
|
+
function yi(e) {
|
|
3853
|
+
nr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
3831
3854
|
}
|
|
3832
|
-
const
|
|
3833
|
-
function
|
|
3855
|
+
const Ei = (e) => ({}), pt = (e) => ({}), xi = (e) => ({}), dt = (e) => ({}), vi = (e) => ({}), bt = (e) => ({});
|
|
3856
|
+
function gt(e) {
|
|
3834
3857
|
let t, r, n;
|
|
3835
3858
|
return {
|
|
3836
3859
|
c() {
|
|
3837
|
-
t =
|
|
3860
|
+
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>', z(t, "class", "CashierHeaderLeftButton");
|
|
3838
3861
|
},
|
|
3839
3862
|
m(i, s) {
|
|
3840
|
-
|
|
3863
|
+
I(i, t, s), r || (n = Bt(
|
|
3841
3864
|
t,
|
|
3842
3865
|
"click",
|
|
3843
3866
|
/*back*/
|
|
@@ -3846,32 +3869,32 @@ function _t(e) {
|
|
|
3846
3869
|
},
|
|
3847
3870
|
p: B,
|
|
3848
3871
|
d(i) {
|
|
3849
|
-
i &&
|
|
3872
|
+
i && C(t), r = !1, n();
|
|
3850
3873
|
}
|
|
3851
3874
|
};
|
|
3852
3875
|
}
|
|
3853
|
-
function
|
|
3876
|
+
function Hi(e) {
|
|
3854
3877
|
let t, r = (
|
|
3855
3878
|
/*backButton*/
|
|
3856
|
-
e[1] &&
|
|
3879
|
+
e[1] && gt(e)
|
|
3857
3880
|
);
|
|
3858
3881
|
return {
|
|
3859
3882
|
c() {
|
|
3860
|
-
r && r.c(), t =
|
|
3883
|
+
r && r.c(), t = Ht();
|
|
3861
3884
|
},
|
|
3862
3885
|
m(n, i) {
|
|
3863
|
-
r && r.m(n, i),
|
|
3886
|
+
r && r.m(n, i), I(n, t, i);
|
|
3864
3887
|
},
|
|
3865
3888
|
p(n, i) {
|
|
3866
3889
|
/*backButton*/
|
|
3867
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3890
|
+
n[1] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3868
3891
|
},
|
|
3869
3892
|
d(n) {
|
|
3870
|
-
n &&
|
|
3893
|
+
n && C(t), r && r.d(n);
|
|
3871
3894
|
}
|
|
3872
3895
|
};
|
|
3873
3896
|
}
|
|
3874
|
-
function
|
|
3897
|
+
function Bi(e) {
|
|
3875
3898
|
let t, r = (
|
|
3876
3899
|
/*$_*/
|
|
3877
3900
|
e[4](
|
|
@@ -3881,10 +3904,10 @@ function vi(e) {
|
|
|
3881
3904
|
), n;
|
|
3882
3905
|
return {
|
|
3883
3906
|
c() {
|
|
3884
|
-
t =
|
|
3907
|
+
t = X("span"), n = Xe(r), z(t, "class", "CashierHeaderTitle");
|
|
3885
3908
|
},
|
|
3886
3909
|
m(i, s) {
|
|
3887
|
-
|
|
3910
|
+
I(i, t, s), ce(t, n);
|
|
3888
3911
|
},
|
|
3889
3912
|
p(i, s) {
|
|
3890
3913
|
s & /*$_, titleText*/
|
|
@@ -3892,21 +3915,21 @@ function vi(e) {
|
|
|
3892
3915
|
i[4](
|
|
3893
3916
|
/*titleText*/
|
|
3894
3917
|
i[2]
|
|
3895
|
-
) + "") &&
|
|
3918
|
+
) + "") && ar(n, r);
|
|
3896
3919
|
},
|
|
3897
3920
|
d(i) {
|
|
3898
|
-
i &&
|
|
3921
|
+
i && C(t);
|
|
3899
3922
|
}
|
|
3900
3923
|
};
|
|
3901
3924
|
}
|
|
3902
|
-
function
|
|
3925
|
+
function _t(e) {
|
|
3903
3926
|
let t, r, n;
|
|
3904
3927
|
return {
|
|
3905
3928
|
c() {
|
|
3906
|
-
t =
|
|
3929
|
+
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>', z(t, "class", "CashierHeaderRightButton");
|
|
3907
3930
|
},
|
|
3908
3931
|
m(i, s) {
|
|
3909
|
-
|
|
3932
|
+
I(i, t, s), r || (n = Bt(
|
|
3910
3933
|
t,
|
|
3911
3934
|
"click",
|
|
3912
3935
|
/*close*/
|
|
@@ -3915,226 +3938,216 @@ function yt(e) {
|
|
|
3915
3938
|
},
|
|
3916
3939
|
p: B,
|
|
3917
3940
|
d(i) {
|
|
3918
|
-
i &&
|
|
3941
|
+
i && C(t), r = !1, n();
|
|
3919
3942
|
}
|
|
3920
3943
|
};
|
|
3921
3944
|
}
|
|
3922
|
-
function
|
|
3945
|
+
function Ti(e) {
|
|
3923
3946
|
let t, r = (
|
|
3924
3947
|
/*closeButton*/
|
|
3925
|
-
e[3] &&
|
|
3948
|
+
e[3] && _t(e)
|
|
3926
3949
|
);
|
|
3927
3950
|
return {
|
|
3928
3951
|
c() {
|
|
3929
|
-
r && r.c(), t =
|
|
3952
|
+
r && r.c(), t = Ht();
|
|
3930
3953
|
},
|
|
3931
3954
|
m(n, i) {
|
|
3932
|
-
r && r.m(n, i),
|
|
3955
|
+
r && r.m(n, i), I(n, t, i);
|
|
3933
3956
|
},
|
|
3934
3957
|
p(n, i) {
|
|
3935
3958
|
/*closeButton*/
|
|
3936
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3959
|
+
n[3] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3937
3960
|
},
|
|
3938
3961
|
d(n) {
|
|
3939
|
-
n &&
|
|
3962
|
+
n && C(t), r && r.d(n);
|
|
3940
3963
|
}
|
|
3941
3964
|
};
|
|
3942
3965
|
}
|
|
3943
|
-
function
|
|
3966
|
+
function wi(e) {
|
|
3944
3967
|
let t, r, n, i;
|
|
3945
3968
|
const s = (
|
|
3946
3969
|
/*#slots*/
|
|
3947
|
-
e[
|
|
3948
|
-
), u =
|
|
3970
|
+
e[16].leftButton
|
|
3971
|
+
), u = xe(
|
|
3949
3972
|
s,
|
|
3950
3973
|
e,
|
|
3951
3974
|
/*$$scope*/
|
|
3952
|
-
e[
|
|
3953
|
-
|
|
3954
|
-
), o = u ||
|
|
3975
|
+
e[15],
|
|
3976
|
+
bt
|
|
3977
|
+
), o = u || Hi(e), l = (
|
|
3955
3978
|
/*#slots*/
|
|
3956
|
-
e[
|
|
3957
|
-
), a =
|
|
3979
|
+
e[16].title
|
|
3980
|
+
), a = xe(
|
|
3958
3981
|
l,
|
|
3959
3982
|
e,
|
|
3960
3983
|
/*$$scope*/
|
|
3961
|
-
e[
|
|
3962
|
-
|
|
3963
|
-
), h = a ||
|
|
3984
|
+
e[15],
|
|
3985
|
+
dt
|
|
3986
|
+
), h = a || Bi(e), c = (
|
|
3964
3987
|
/*#slots*/
|
|
3965
|
-
e[
|
|
3966
|
-
),
|
|
3967
|
-
|
|
3988
|
+
e[16].rightButton
|
|
3989
|
+
), m = xe(
|
|
3990
|
+
c,
|
|
3968
3991
|
e,
|
|
3969
3992
|
/*$$scope*/
|
|
3970
|
-
e[
|
|
3971
|
-
|
|
3972
|
-
), p =
|
|
3993
|
+
e[15],
|
|
3994
|
+
pt
|
|
3995
|
+
), p = m || Ti(e);
|
|
3973
3996
|
return {
|
|
3974
3997
|
c() {
|
|
3975
|
-
t =
|
|
3998
|
+
t = X("div"), o && o.c(), r = qe(), h && h.c(), n = qe(), p && p.c(), z(t, "class", "CashierHeader");
|
|
3976
3999
|
},
|
|
3977
|
-
m(
|
|
3978
|
-
|
|
4000
|
+
m(f, _) {
|
|
4001
|
+
I(f, t, _), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), p && p.m(t, null), e[17](t), i = !0;
|
|
3979
4002
|
},
|
|
3980
|
-
p(
|
|
3981
|
-
u ? u.p && (!i ||
|
|
3982
|
-
|
|
4003
|
+
p(f, [_]) {
|
|
4004
|
+
u ? u.p && (!i || _ & /*$$scope*/
|
|
4005
|
+
32768) && He(
|
|
3983
4006
|
u,
|
|
3984
4007
|
s,
|
|
3985
|
-
|
|
4008
|
+
f,
|
|
3986
4009
|
/*$$scope*/
|
|
3987
|
-
|
|
3988
|
-
i ?
|
|
4010
|
+
f[15],
|
|
4011
|
+
i ? ve(
|
|
3989
4012
|
s,
|
|
3990
4013
|
/*$$scope*/
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
) :
|
|
4014
|
+
f[15],
|
|
4015
|
+
_,
|
|
4016
|
+
vi
|
|
4017
|
+
) : Be(
|
|
3995
4018
|
/*$$scope*/
|
|
3996
|
-
|
|
4019
|
+
f[15]
|
|
3997
4020
|
),
|
|
3998
|
-
|
|
3999
|
-
) : o && o.p && (!i ||
|
|
4000
|
-
2) && o.p(
|
|
4001
|
-
|
|
4021
|
+
bt
|
|
4022
|
+
) : o && o.p && (!i || _ & /*backButton*/
|
|
4023
|
+
2) && o.p(f, i ? _ : -1), a ? a.p && (!i || _ & /*$$scope*/
|
|
4024
|
+
32768) && He(
|
|
4002
4025
|
a,
|
|
4003
4026
|
l,
|
|
4004
|
-
|
|
4027
|
+
f,
|
|
4005
4028
|
/*$$scope*/
|
|
4006
|
-
|
|
4007
|
-
i ?
|
|
4029
|
+
f[15],
|
|
4030
|
+
i ? ve(
|
|
4008
4031
|
l,
|
|
4009
4032
|
/*$$scope*/
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
) :
|
|
4033
|
+
f[15],
|
|
4034
|
+
_,
|
|
4035
|
+
xi
|
|
4036
|
+
) : Be(
|
|
4014
4037
|
/*$$scope*/
|
|
4015
|
-
|
|
4038
|
+
f[15]
|
|
4016
4039
|
),
|
|
4017
|
-
|
|
4018
|
-
) : h && h.p && (!i ||
|
|
4019
|
-
20) && h.p(
|
|
4020
|
-
|
|
4040
|
+
dt
|
|
4041
|
+
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4042
|
+
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4043
|
+
32768) && He(
|
|
4044
|
+
m,
|
|
4021
4045
|
c,
|
|
4022
4046
|
f,
|
|
4023
|
-
m,
|
|
4024
4047
|
/*$$scope*/
|
|
4025
|
-
|
|
4026
|
-
i ?
|
|
4027
|
-
|
|
4048
|
+
f[15],
|
|
4049
|
+
i ? ve(
|
|
4050
|
+
c,
|
|
4028
4051
|
/*$$scope*/
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
) :
|
|
4052
|
+
f[15],
|
|
4053
|
+
_,
|
|
4054
|
+
Ei
|
|
4055
|
+
) : Be(
|
|
4033
4056
|
/*$$scope*/
|
|
4034
|
-
|
|
4057
|
+
f[15]
|
|
4035
4058
|
),
|
|
4036
|
-
|
|
4037
|
-
) : p && p.p && (!i ||
|
|
4038
|
-
8) && p.p(
|
|
4059
|
+
pt
|
|
4060
|
+
) : p && p.p && (!i || _ & /*closeButton*/
|
|
4061
|
+
8) && p.p(f, i ? _ : -1);
|
|
4039
4062
|
},
|
|
4040
|
-
i(
|
|
4041
|
-
i || (
|
|
4063
|
+
i(f) {
|
|
4064
|
+
i || (ue(o, f), ue(h, f), ue(p, f), i = !0);
|
|
4042
4065
|
},
|
|
4043
|
-
o(
|
|
4044
|
-
|
|
4066
|
+
o(f) {
|
|
4067
|
+
we(o, f), we(h, f), we(p, f), i = !1;
|
|
4045
4068
|
},
|
|
4046
|
-
d(
|
|
4047
|
-
|
|
4069
|
+
d(f) {
|
|
4070
|
+
f && C(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
|
|
4048
4071
|
}
|
|
4049
4072
|
};
|
|
4050
4073
|
}
|
|
4051
|
-
function
|
|
4074
|
+
function Si(e, t, r) {
|
|
4052
4075
|
let n;
|
|
4053
|
-
|
|
4054
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang:
|
|
4055
|
-
const
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
mt(U, S[U]);
|
|
4076
|
+
rr(e, pi, (g) => r(4, n = g));
|
|
4077
|
+
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;
|
|
4078
|
+
const O = () => {
|
|
4079
|
+
fetch(l).then((g) => g.json()).then((g) => {
|
|
4080
|
+
Object.keys(g).forEach((Ze) => {
|
|
4081
|
+
ct(Ze, g[Ze]);
|
|
4060
4082
|
});
|
|
4061
|
-
}).catch((
|
|
4062
|
-
console.log(
|
|
4083
|
+
}).catch((g) => {
|
|
4084
|
+
console.log(g);
|
|
4063
4085
|
});
|
|
4064
4086
|
};
|
|
4065
|
-
Object.keys(
|
|
4066
|
-
|
|
4087
|
+
Object.keys(mt).forEach((g) => {
|
|
4088
|
+
ct(g, mt[g]);
|
|
4067
4089
|
});
|
|
4068
|
-
const
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
}, H = () => {
|
|
4072
|
-
let _ = new URL(o), S = document.createElement("style");
|
|
4073
|
-
fetch(_.href).then((U) => U.text()).then((U) => {
|
|
4074
|
-
S.innerHTML = U, setTimeout(
|
|
4075
|
-
() => {
|
|
4076
|
-
p.appendChild(S);
|
|
4077
|
-
},
|
|
4078
|
-
1
|
|
4079
|
-
);
|
|
4080
|
-
});
|
|
4081
|
-
}, I = () => {
|
|
4082
|
-
bi(f);
|
|
4083
|
-
}, w = () => {
|
|
4090
|
+
const H = () => {
|
|
4091
|
+
_i(c);
|
|
4092
|
+
}, N = () => {
|
|
4084
4093
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4085
|
-
},
|
|
4094
|
+
}, S = () => {
|
|
4086
4095
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4087
|
-
},
|
|
4088
|
-
r(1,
|
|
4089
|
-
},
|
|
4090
|
-
r(3,
|
|
4091
|
-
},
|
|
4092
|
-
r(2,
|
|
4096
|
+
}, $ = () => {
|
|
4097
|
+
r(1, _ = !!a && a !== "false");
|
|
4098
|
+
}, ie = () => {
|
|
4099
|
+
r(3, A = !!m && m !== "false");
|
|
4100
|
+
}, Yt = () => {
|
|
4101
|
+
r(2, v = h || "header.general");
|
|
4093
4102
|
};
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4103
|
+
lr(() => () => {
|
|
4104
|
+
});
|
|
4105
|
+
function Kt(g) {
|
|
4106
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4107
|
+
f = g, r(0, f);
|
|
4097
4108
|
});
|
|
4098
4109
|
}
|
|
4099
|
-
return e.$$set = (
|
|
4100
|
-
"clientstyling" in
|
|
4110
|
+
return e.$$set = (g) => {
|
|
4111
|
+
"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);
|
|
4101
4112
|
}, e.$$.update = () => {
|
|
4102
4113
|
e.$$.dirty & /*lang*/
|
|
4103
|
-
4096 &&
|
|
4104
|
-
6144 &&
|
|
4105
|
-
129 && u &&
|
|
4106
|
-
257 && o &&
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4114
|
+
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4115
|
+
6144 && c && h && Yt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4116
|
+
129 && u && f && di(f, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4117
|
+
257 && o && f && bi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4118
|
+
16385 && p && f && gi(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4119
|
+
4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
|
|
4120
|
+
1024 && a && $(), e.$$.dirty & /*showclosebutton*/
|
|
4121
|
+
8192 && m && ie();
|
|
4110
4122
|
}, [
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
g,
|
|
4123
|
+
f,
|
|
4124
|
+
_,
|
|
4114
4125
|
v,
|
|
4126
|
+
A,
|
|
4115
4127
|
n,
|
|
4116
|
-
|
|
4117
|
-
|
|
4128
|
+
N,
|
|
4129
|
+
S,
|
|
4118
4130
|
u,
|
|
4119
4131
|
o,
|
|
4120
4132
|
l,
|
|
4121
4133
|
a,
|
|
4122
4134
|
h,
|
|
4123
|
-
f,
|
|
4124
4135
|
c,
|
|
4136
|
+
m,
|
|
4137
|
+
p,
|
|
4125
4138
|
s,
|
|
4126
4139
|
i,
|
|
4127
|
-
|
|
4140
|
+
Kt
|
|
4128
4141
|
];
|
|
4129
4142
|
}
|
|
4130
|
-
class
|
|
4143
|
+
class Jt extends xr {
|
|
4131
4144
|
constructor(t) {
|
|
4132
|
-
super(),
|
|
4145
|
+
super(), yr(
|
|
4133
4146
|
this,
|
|
4134
4147
|
t,
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4148
|
+
Si,
|
|
4149
|
+
wi,
|
|
4150
|
+
Et,
|
|
4138
4151
|
{
|
|
4139
4152
|
clientstyling: 7,
|
|
4140
4153
|
clientstylingurl: 8,
|
|
@@ -4142,80 +4155,90 @@ class Yt extends vr {
|
|
|
4142
4155
|
showbackbutton: 10,
|
|
4143
4156
|
title: 11,
|
|
4144
4157
|
lang: 12,
|
|
4145
|
-
showclosebutton: 13
|
|
4158
|
+
showclosebutton: 13,
|
|
4159
|
+
mbsource: 14
|
|
4146
4160
|
},
|
|
4147
|
-
|
|
4161
|
+
yi
|
|
4148
4162
|
);
|
|
4149
4163
|
}
|
|
4150
4164
|
get clientstyling() {
|
|
4151
4165
|
return this.$$.ctx[7];
|
|
4152
4166
|
}
|
|
4153
4167
|
set clientstyling(t) {
|
|
4154
|
-
this.$$set({ clientstyling: t }),
|
|
4168
|
+
this.$$set({ clientstyling: t }), T();
|
|
4155
4169
|
}
|
|
4156
4170
|
get clientstylingurl() {
|
|
4157
4171
|
return this.$$.ctx[8];
|
|
4158
4172
|
}
|
|
4159
4173
|
set clientstylingurl(t) {
|
|
4160
|
-
this.$$set({ clientstylingurl: t }),
|
|
4174
|
+
this.$$set({ clientstylingurl: t }), T();
|
|
4161
4175
|
}
|
|
4162
4176
|
get translationurl() {
|
|
4163
4177
|
return this.$$.ctx[9];
|
|
4164
4178
|
}
|
|
4165
4179
|
set translationurl(t) {
|
|
4166
|
-
this.$$set({ translationurl: t }),
|
|
4180
|
+
this.$$set({ translationurl: t }), T();
|
|
4167
4181
|
}
|
|
4168
4182
|
get showbackbutton() {
|
|
4169
4183
|
return this.$$.ctx[10];
|
|
4170
4184
|
}
|
|
4171
4185
|
set showbackbutton(t) {
|
|
4172
|
-
this.$$set({ showbackbutton: t }),
|
|
4186
|
+
this.$$set({ showbackbutton: t }), T();
|
|
4173
4187
|
}
|
|
4174
4188
|
get title() {
|
|
4175
4189
|
return this.$$.ctx[11];
|
|
4176
4190
|
}
|
|
4177
4191
|
set title(t) {
|
|
4178
|
-
this.$$set({ title: t }),
|
|
4192
|
+
this.$$set({ title: t }), T();
|
|
4179
4193
|
}
|
|
4180
4194
|
get lang() {
|
|
4181
4195
|
return this.$$.ctx[12];
|
|
4182
4196
|
}
|
|
4183
4197
|
set lang(t) {
|
|
4184
|
-
this.$$set({ lang: t }),
|
|
4198
|
+
this.$$set({ lang: t }), T();
|
|
4185
4199
|
}
|
|
4186
4200
|
get showclosebutton() {
|
|
4187
4201
|
return this.$$.ctx[13];
|
|
4188
4202
|
}
|
|
4189
4203
|
set showclosebutton(t) {
|
|
4190
|
-
this.$$set({ showclosebutton: t }),
|
|
4204
|
+
this.$$set({ showclosebutton: t }), T();
|
|
4205
|
+
}
|
|
4206
|
+
get mbsource() {
|
|
4207
|
+
return this.$$.ctx[14];
|
|
4208
|
+
}
|
|
4209
|
+
set mbsource(t) {
|
|
4210
|
+
this.$$set({ mbsource: t }), T();
|
|
4191
4211
|
}
|
|
4192
4212
|
}
|
|
4193
|
-
|
|
4194
|
-
const
|
|
4213
|
+
Er(Jt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4214
|
+
const Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4195
4215
|
__proto__: null,
|
|
4196
|
-
default:
|
|
4216
|
+
default: Jt
|
|
4197
4217
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4198
4218
|
export {
|
|
4199
|
-
$,
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4219
|
+
M as $,
|
|
4220
|
+
Pi as C,
|
|
4221
|
+
xr as S,
|
|
4222
|
+
zt as a,
|
|
4223
|
+
yr as b,
|
|
4224
|
+
Er as c,
|
|
4225
|
+
nr as d,
|
|
4226
|
+
C as e,
|
|
4227
|
+
T as f,
|
|
4228
|
+
Oi as g,
|
|
4229
|
+
Ai as h,
|
|
4230
|
+
zn as i,
|
|
4231
|
+
z as j,
|
|
4232
|
+
I as k,
|
|
4233
|
+
ce as l,
|
|
4234
|
+
Bt as m,
|
|
4215
4235
|
B as n,
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4236
|
+
X as o,
|
|
4237
|
+
qe as p,
|
|
4238
|
+
lr as q,
|
|
4239
|
+
Ne as r,
|
|
4240
|
+
Et as s,
|
|
4241
|
+
di as t,
|
|
4242
|
+
bi as u,
|
|
4243
|
+
gi as v
|
|
4221
4244
|
};
|