@everymatrix/cashier-iframe-redirect 1.86.4 → 1.86.5
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-BnG2i4Fl.js → CashierHeader-D2XHA52H.js} +635 -631
- package/components/CashierHeader-DF3Mljkl.cjs +5 -0
- package/components/{CashierHeader-D8IE5Tg_.js → CashierHeader-Dn37_6Lk.js} +629 -625
- package/components/{CashierIframeRedirect-ePvFwYtb.js → CashierIframeRedirect-BsxMBzJT.js} +17 -17
- package/components/{CashierIframeRedirect-CC42ez9P.cjs → CashierIframeRedirect-CDDNSIYo.cjs} +1 -1
- package/components/{CashierIframeRedirect-DhY2z5Sw.js → CashierIframeRedirect-DmWbmi10.js} +15 -15
- package/components/{CashierSpinner-BsdZhkYV.js → CashierSpinner-B3lawQbU.js} +15 -15
- package/components/{CashierSpinner-RJMMeyDA.cjs → CashierSpinner-l6siWw78.cjs} +1 -1
- package/components/{CashierSpinner-C2SA4tN-.js → CashierSpinner-sXZN-QNL.js} +15 -15
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-D_PGBTSs.cjs +0 -18
|
@@ -2,15 +2,15 @@ var or = Object.defineProperty, ar = Object.defineProperties;
|
|
|
2
2
|
var ur = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Je = Object.getOwnPropertySymbols;
|
|
4
4
|
var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var ve = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
hr.call(t, r) &&
|
|
7
|
+
hr.call(t, r) && ve(e, r, t[r]);
|
|
8
8
|
if (Je)
|
|
9
9
|
for (var r of Je(t))
|
|
10
|
-
lr.call(t, r) &&
|
|
10
|
+
lr.call(t, r) && ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ke = (e, t) => ar(e, ur(t));
|
|
13
|
-
var B = (e, t, r) => (
|
|
13
|
+
var B = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -43,18 +43,18 @@ function Tt(e) {
|
|
|
43
43
|
function tt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function re(e) {
|
|
47
47
|
e.forEach(Tt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ze(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
52
|
function wt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
let
|
|
56
|
-
function
|
|
57
|
-
return e === t ? !0 : (
|
|
55
|
+
let oe;
|
|
56
|
+
function Gi(e, t) {
|
|
57
|
+
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
58
58
|
}
|
|
59
59
|
function cr(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
@@ -71,7 +71,7 @@ function St(e, ...t) {
|
|
|
71
71
|
function mr(e, t, r) {
|
|
72
72
|
e.$$.on_destroy.push(St(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function He(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
76
|
const i = At(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
@@ -80,7 +80,7 @@ function Ee(e, t, r, n) {
|
|
|
80
80
|
function At(e, t, r, n) {
|
|
81
81
|
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Be(e, t, r, n) {
|
|
84
84
|
if (e[2] && n) {
|
|
85
85
|
const i = e[2](n(r));
|
|
86
86
|
if (t.dirty === void 0)
|
|
@@ -95,13 +95,13 @@ function ve(e, t, r, n) {
|
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Te(e, t, r, n, i, s) {
|
|
99
99
|
if (i) {
|
|
100
100
|
const a = At(t, r, n, s);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function we(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
106
|
const t = [], r = e.ctx.length / 32;
|
|
107
107
|
for (let n = 0; n < r; n++)
|
|
@@ -110,17 +110,17 @@ function Be(e) {
|
|
|
110
110
|
}
|
|
111
111
|
return -1;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function me(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const n =
|
|
116
|
+
function pr(e, t, r) {
|
|
117
|
+
const n = dr(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent = r,
|
|
119
|
+
const i = z("style");
|
|
120
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function dr(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,40 +130,40 @@ function br(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function br(e, t) {
|
|
134
|
+
return me(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
137
137
|
t
|
|
138
138
|
), t.sheet;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function M(e, t, r) {
|
|
141
141
|
e.insertBefore(t, r || null);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function L(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function z(e) {
|
|
147
147
|
return document.createElement(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function We(e) {
|
|
150
150
|
return document.createTextNode(e);
|
|
151
151
|
}
|
|
152
152
|
function rt() {
|
|
153
|
-
return
|
|
153
|
+
return We(" ");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function Ot() {
|
|
156
|
+
return We("");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ct(e, t, r, n) {
|
|
159
159
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function W(e, t, r) {
|
|
162
162
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Fi(e, t, r) {
|
|
165
165
|
const n = t.toLowerCase();
|
|
166
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
166
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
|
|
167
167
|
}
|
|
168
168
|
function gr(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
@@ -181,97 +181,97 @@ function yr(e) {
|
|
|
181
181
|
}
|
|
182
182
|
), t;
|
|
183
183
|
}
|
|
184
|
-
let
|
|
185
|
-
function
|
|
186
|
-
|
|
184
|
+
let K;
|
|
185
|
+
function Y(e) {
|
|
186
|
+
K = e;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
if (!
|
|
188
|
+
function Er() {
|
|
189
|
+
if (!K)
|
|
190
190
|
throw new Error("Function called outside component initialization");
|
|
191
|
-
return
|
|
191
|
+
return K;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function xr(e) {
|
|
194
|
+
Er().$$.on_mount.push(e);
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
let
|
|
196
|
+
const G = [], Me = [];
|
|
197
|
+
let F = [];
|
|
198
198
|
const nt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
199
|
-
let
|
|
199
|
+
let $e = !1;
|
|
200
200
|
function Hr() {
|
|
201
|
-
|
|
201
|
+
$e || ($e = !0, vr.then(w));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
203
|
+
function Re(e) {
|
|
204
|
+
F.push(e);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
207
|
-
let
|
|
206
|
+
const Se = /* @__PURE__ */ new Set();
|
|
207
|
+
let U = 0;
|
|
208
208
|
function w() {
|
|
209
|
-
if (
|
|
209
|
+
if (U !== 0)
|
|
210
210
|
return;
|
|
211
|
-
const e =
|
|
211
|
+
const e = K;
|
|
212
212
|
do {
|
|
213
213
|
try {
|
|
214
|
-
for (;
|
|
215
|
-
const t =
|
|
216
|
-
|
|
214
|
+
for (; U < G.length; ) {
|
|
215
|
+
const t = G[U];
|
|
216
|
+
U++, Y(t), Br(t.$$);
|
|
217
217
|
}
|
|
218
218
|
} catch (t) {
|
|
219
|
-
throw
|
|
219
|
+
throw G.length = 0, U = 0, t;
|
|
220
220
|
}
|
|
221
|
-
for (
|
|
222
|
-
|
|
223
|
-
for (let t = 0; t <
|
|
224
|
-
const r =
|
|
225
|
-
|
|
221
|
+
for (Y(null), G.length = 0, U = 0; Me.length; )
|
|
222
|
+
Me.pop()();
|
|
223
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
224
|
+
const r = F[t];
|
|
225
|
+
Se.has(r) || (Se.add(r), r());
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
} while (
|
|
227
|
+
F.length = 0;
|
|
228
|
+
} while (G.length);
|
|
229
229
|
for (; nt.length; )
|
|
230
230
|
nt.pop()();
|
|
231
|
-
|
|
231
|
+
$e = !1, Se.clear(), Y(e);
|
|
232
232
|
}
|
|
233
233
|
function Br(e) {
|
|
234
234
|
if (e.fragment !== null) {
|
|
235
|
-
e.update(),
|
|
235
|
+
e.update(), re(e.before_update);
|
|
236
236
|
const t = e.dirty;
|
|
237
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
237
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function Tr(e) {
|
|
241
241
|
const t = [], r = [];
|
|
242
|
-
|
|
242
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
243
243
|
}
|
|
244
|
-
const
|
|
244
|
+
const ue = /* @__PURE__ */ new Set();
|
|
245
245
|
let wr;
|
|
246
|
-
function
|
|
247
|
-
e && e.i && (
|
|
246
|
+
function he(e, t) {
|
|
247
|
+
e && e.i && (ue.delete(e), e.i(t));
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Ae(e, t, r, n) {
|
|
250
250
|
if (e && e.o) {
|
|
251
|
-
if (
|
|
251
|
+
if (ue.has(e))
|
|
252
252
|
return;
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
ue.add(e), wr.c.push(() => {
|
|
254
|
+
ue.delete(e);
|
|
255
255
|
}), e.o(t);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
function Sr(e, t, r) {
|
|
259
259
|
const { fragment: n, after_update: i } = e.$$;
|
|
260
|
-
n && n.m(t, r),
|
|
261
|
-
const s = e.$$.on_mount.map(Tt).filter(
|
|
262
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
263
|
-
}), i.forEach(
|
|
260
|
+
n && n.m(t, r), Re(() => {
|
|
261
|
+
const s = e.$$.on_mount.map(Tt).filter(ze);
|
|
262
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
263
|
+
}), i.forEach(Re);
|
|
264
264
|
}
|
|
265
265
|
function Ar(e, t) {
|
|
266
266
|
const r = e.$$;
|
|
267
|
-
r.fragment !== null && (Tr(r.after_update),
|
|
267
|
+
r.fragment !== null && (Tr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
e.$$.dirty[0] === -1 && (
|
|
269
|
+
function Or(e, t) {
|
|
270
|
+
e.$$.dirty[0] === -1 && (G.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
const l =
|
|
274
|
-
|
|
272
|
+
function Cr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
273
|
+
const l = K;
|
|
274
|
+
Y(e);
|
|
275
275
|
const u = e.$$ = {
|
|
276
276
|
fragment: null,
|
|
277
277
|
ctx: [],
|
|
@@ -295,18 +295,18 @@ function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
295
295
|
};
|
|
296
296
|
a && a(u.root);
|
|
297
297
|
let h = !1;
|
|
298
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
299
|
-
const f =
|
|
300
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h &&
|
|
301
|
-
}) : [], u.update(), h = !0,
|
|
298
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
|
|
299
|
+
const f = p.length ? p[0] : m;
|
|
300
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Or(e, c)), m;
|
|
301
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
302
302
|
if (t.hydrate) {
|
|
303
303
|
const c = gr(t.target);
|
|
304
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
304
|
+
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
305
305
|
} else
|
|
306
306
|
u.fragment && u.fragment.c();
|
|
307
|
-
t.intro &&
|
|
307
|
+
t.intro && he(e.$$.fragment), Sr(e, t.target, t.anchor), w();
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
Y(l);
|
|
310
310
|
}
|
|
311
311
|
let Pt;
|
|
312
312
|
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
@@ -353,17 +353,17 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
353
353
|
let a;
|
|
354
354
|
return {
|
|
355
355
|
c: function() {
|
|
356
|
-
a =
|
|
356
|
+
a = z("slot"), s !== "default" && W(a, "name", s);
|
|
357
357
|
},
|
|
358
358
|
/**
|
|
359
359
|
* @param {HTMLElement} target
|
|
360
360
|
* @param {HTMLElement} [anchor]
|
|
361
361
|
*/
|
|
362
362
|
m: function(u, h) {
|
|
363
|
-
|
|
363
|
+
M(u, a, h);
|
|
364
364
|
},
|
|
365
365
|
d: function(u) {
|
|
366
|
-
u &&
|
|
366
|
+
u && L(a);
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
369
|
};
|
|
@@ -375,7 +375,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
375
375
|
s in n && (r[s] = [t(s)]);
|
|
376
376
|
for (const s of this.attributes) {
|
|
377
377
|
const a = this.$$g_p(s.name);
|
|
378
|
-
a in this.$$d || (this.$$d[a] =
|
|
378
|
+
a in this.$$d || (this.$$d[a] = le(a, s.value, this.$$p_d, "toProp"));
|
|
379
379
|
}
|
|
380
380
|
for (const s in this.$$p_d)
|
|
381
381
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
392
392
|
this.$$r = !0;
|
|
393
393
|
for (const s in this.$$p_d)
|
|
394
394
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
395
|
-
const a =
|
|
395
|
+
const a = le(
|
|
396
396
|
s,
|
|
397
397
|
this.$$d[s],
|
|
398
398
|
this.$$p_d,
|
|
@@ -416,7 +416,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
416
416
|
// and setting attributes through setAttribute etc, this is helpful
|
|
417
417
|
attributeChangedCallback(t, r, n) {
|
|
418
418
|
var i;
|
|
419
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
419
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
420
420
|
}
|
|
421
421
|
disconnectedCallback() {
|
|
422
422
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -429,7 +429,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
429
429
|
) || t;
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
|
-
function
|
|
432
|
+
function le(e, t, r, n) {
|
|
433
433
|
var s;
|
|
434
434
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
435
435
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -477,7 +477,7 @@ function Pr(e, t, r, n, i, s) {
|
|
|
477
477
|
},
|
|
478
478
|
set(l) {
|
|
479
479
|
var u;
|
|
480
|
-
l =
|
|
480
|
+
l = le(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
}), n.forEach((o) => {
|
|
@@ -520,7 +520,7 @@ class Lr {
|
|
|
520
520
|
* @returns {() => void}
|
|
521
521
|
*/
|
|
522
522
|
$on(t, r) {
|
|
523
|
-
if (!
|
|
523
|
+
if (!ze(r))
|
|
524
524
|
return T;
|
|
525
525
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
526
526
|
return n.push(r), () => {
|
|
@@ -538,24 +538,24 @@ class Lr {
|
|
|
538
538
|
}
|
|
539
539
|
const Nr = "4";
|
|
540
540
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
541
|
-
const
|
|
541
|
+
const D = [];
|
|
542
542
|
function Ir(e, t) {
|
|
543
543
|
return {
|
|
544
|
-
subscribe:
|
|
544
|
+
subscribe: _e(e, t).subscribe
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function _e(e, t = T) {
|
|
548
548
|
let r;
|
|
549
549
|
const n = /* @__PURE__ */ new Set();
|
|
550
550
|
function i(o) {
|
|
551
551
|
if (wt(e, o) && (e = o, r)) {
|
|
552
|
-
const l = !
|
|
552
|
+
const l = !D.length;
|
|
553
553
|
for (const u of n)
|
|
554
|
-
u[1](),
|
|
554
|
+
u[1](), D.push(u, e);
|
|
555
555
|
if (l) {
|
|
556
|
-
for (let u = 0; u <
|
|
557
|
-
|
|
558
|
-
|
|
556
|
+
for (let u = 0; u < D.length; u += 2)
|
|
557
|
+
D[u][0](D[u + 1]);
|
|
558
|
+
D.length = 0;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
}
|
|
@@ -570,7 +570,7 @@ function pe(e, t = T) {
|
|
|
570
570
|
}
|
|
571
571
|
return { set: i, update: s, subscribe: a };
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Z(e, t, r) {
|
|
574
574
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
575
575
|
if (!i.every(Boolean))
|
|
576
576
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -584,8 +584,8 @@ function W(e, t, r) {
|
|
|
584
584
|
return;
|
|
585
585
|
c();
|
|
586
586
|
const f = t(n ? u[0] : u, a, o);
|
|
587
|
-
s ? a(f) : c =
|
|
588
|
-
},
|
|
587
|
+
s ? a(f) : c = ze(f) ? f : T;
|
|
588
|
+
}, p = i.map(
|
|
589
589
|
(f, _) => St(
|
|
590
590
|
f,
|
|
591
591
|
(v) => {
|
|
@@ -597,7 +597,7 @@ function W(e, t, r) {
|
|
|
597
597
|
)
|
|
598
598
|
);
|
|
599
599
|
return l = !0, m(), function() {
|
|
600
|
-
|
|
600
|
+
re(p), c(), l = !1;
|
|
601
601
|
};
|
|
602
602
|
});
|
|
603
603
|
}
|
|
@@ -621,19 +621,19 @@ function Fr(e) {
|
|
|
621
621
|
function jr(e) {
|
|
622
622
|
return Array.isArray(e) ? [] : {};
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
624
|
+
function ee(e, t) {
|
|
625
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(jr(e), e, t) : e;
|
|
626
626
|
}
|
|
627
627
|
function kr(e, t, r) {
|
|
628
628
|
return e.concat(t).map(function(n) {
|
|
629
|
-
return
|
|
629
|
+
return ee(n, r);
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
function Vr(e, t) {
|
|
633
633
|
if (!t.customMerge)
|
|
634
|
-
return
|
|
634
|
+
return j;
|
|
635
635
|
var r = t.customMerge(e);
|
|
636
|
-
return typeof r == "function" ? r :
|
|
636
|
+
return typeof r == "function" ? r : j;
|
|
637
637
|
}
|
|
638
638
|
function Xr(e) {
|
|
639
639
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -656,65 +656,51 @@ function zr(e, t) {
|
|
|
656
656
|
function Wr(e, t, r) {
|
|
657
657
|
var n = {};
|
|
658
658
|
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
659
|
-
n[i] =
|
|
659
|
+
n[i] = ee(e[i], r);
|
|
660
660
|
}), it(t).forEach(function(i) {
|
|
661
|
-
zr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] =
|
|
661
|
+
zr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
662
662
|
}), n;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified =
|
|
664
|
+
function j(e, t, r) {
|
|
665
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = ee;
|
|
666
666
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
667
|
-
return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) :
|
|
667
|
+
return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : ee(t, r);
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
j.all = function(t, r) {
|
|
670
670
|
if (!Array.isArray(t))
|
|
671
671
|
throw new Error("first argument should be an array");
|
|
672
672
|
return t.reduce(function(n, i) {
|
|
673
|
-
return
|
|
673
|
+
return j(n, i, r);
|
|
674
674
|
}, {});
|
|
675
675
|
};
|
|
676
|
-
var Zr =
|
|
676
|
+
var Zr = j, Qr = Zr;
|
|
677
677
|
const qr = /* @__PURE__ */ Mr(Qr);
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
682
|
-
purpose with or without fee is hereby granted.
|
|
683
|
-
|
|
684
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
685
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
686
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
687
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
688
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
689
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
690
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
691
|
-
***************************************************************************** */
|
|
692
|
-
var $e = function(e, t) {
|
|
693
|
-
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
678
|
+
var Ue = function(e, t) {
|
|
679
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
694
680
|
r.__proto__ = n;
|
|
695
681
|
} || function(r, n) {
|
|
696
682
|
for (var i in n)
|
|
697
683
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
698
|
-
},
|
|
684
|
+
}, Ue(e, t);
|
|
699
685
|
};
|
|
700
|
-
function
|
|
686
|
+
function ye(e, t) {
|
|
701
687
|
if (typeof t != "function" && t !== null)
|
|
702
688
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
703
|
-
|
|
689
|
+
Ue(e, t);
|
|
704
690
|
function r() {
|
|
705
691
|
this.constructor = e;
|
|
706
692
|
}
|
|
707
693
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
708
694
|
}
|
|
709
|
-
var
|
|
710
|
-
return
|
|
695
|
+
var S = function() {
|
|
696
|
+
return S = Object.assign || function(t) {
|
|
711
697
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
712
698
|
r = arguments[n];
|
|
713
699
|
for (var s in r)
|
|
714
700
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
715
701
|
}
|
|
716
702
|
return t;
|
|
717
|
-
},
|
|
703
|
+
}, S.apply(this, arguments);
|
|
718
704
|
};
|
|
719
705
|
function Jr(e, t) {
|
|
720
706
|
var r = {};
|
|
@@ -725,14 +711,14 @@ function Jr(e, t) {
|
|
|
725
711
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
726
712
|
return r;
|
|
727
713
|
}
|
|
728
|
-
function
|
|
729
|
-
if (arguments.length === 2)
|
|
714
|
+
function Oe(e, t, r) {
|
|
715
|
+
if (r || arguments.length === 2)
|
|
730
716
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
731
717
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
732
|
-
return e.concat(s || t);
|
|
718
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
733
719
|
}
|
|
734
|
-
function
|
|
735
|
-
var r = t && t.cache ? t.cache :
|
|
720
|
+
function Ce(e, t) {
|
|
721
|
+
var r = t && t.cache ? t.cache : sn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : en;
|
|
736
722
|
return i(e, {
|
|
737
723
|
cache: r,
|
|
738
724
|
serializer: n
|
|
@@ -741,95 +727,103 @@ function Ae(e, t) {
|
|
|
741
727
|
function Yr(e) {
|
|
742
728
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
743
729
|
}
|
|
744
|
-
function
|
|
730
|
+
function Kr(e, t, r, n) {
|
|
745
731
|
var i = Yr(n) ? n : r(n), s = t.get(i);
|
|
746
732
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
747
733
|
}
|
|
748
|
-
function
|
|
734
|
+
function Nt(e, t, r) {
|
|
749
735
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
750
736
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
751
737
|
}
|
|
752
|
-
function
|
|
738
|
+
function It(e, t, r, n, i) {
|
|
753
739
|
return r.bind(t, e, n, i);
|
|
754
740
|
}
|
|
755
|
-
function Kr(e, t) {
|
|
756
|
-
var r = e.length === 1 ? Nt : It;
|
|
757
|
-
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
758
|
-
}
|
|
759
741
|
function en(e, t) {
|
|
760
|
-
|
|
742
|
+
var r = e.length === 1 ? Kr : Nt;
|
|
743
|
+
return It(e, this, r, t.cache.create(), t.serializer);
|
|
761
744
|
}
|
|
762
745
|
function tn(e, t) {
|
|
763
|
-
return
|
|
746
|
+
return It(e, this, Nt, t.cache.create(), t.serializer);
|
|
764
747
|
}
|
|
765
748
|
var rn = function() {
|
|
766
749
|
return JSON.stringify(arguments);
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
750
|
+
}, nn = (
|
|
751
|
+
/** @class */
|
|
752
|
+
function() {
|
|
753
|
+
function e() {
|
|
754
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
755
|
+
}
|
|
756
|
+
return e.prototype.get = function(t) {
|
|
757
|
+
return this.cache[t];
|
|
758
|
+
}, e.prototype.set = function(t, r) {
|
|
759
|
+
this.cache[t] = r;
|
|
760
|
+
}, e;
|
|
761
|
+
}()
|
|
762
|
+
), sn = {
|
|
778
763
|
create: function() {
|
|
779
|
-
return new
|
|
764
|
+
return new nn();
|
|
780
765
|
}
|
|
781
|
-
},
|
|
782
|
-
variadic:
|
|
783
|
-
|
|
784
|
-
|
|
766
|
+
}, Pe = {
|
|
767
|
+
variadic: tn
|
|
768
|
+
}, pe = function() {
|
|
769
|
+
return pe = Object.assign || function(t) {
|
|
770
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
771
|
+
r = arguments[n];
|
|
772
|
+
for (var s in r)
|
|
773
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
774
|
+
}
|
|
775
|
+
return t;
|
|
776
|
+
}, pe.apply(this, arguments);
|
|
777
|
+
};
|
|
778
|
+
var d;
|
|
785
779
|
(function(e) {
|
|
786
780
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
787
|
-
})(
|
|
788
|
-
var
|
|
781
|
+
})(d || (d = {}));
|
|
782
|
+
var y;
|
|
789
783
|
(function(e) {
|
|
790
784
|
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";
|
|
791
|
-
})(
|
|
792
|
-
var
|
|
785
|
+
})(y || (y = {}));
|
|
786
|
+
var k;
|
|
793
787
|
(function(e) {
|
|
794
788
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
795
|
-
})(
|
|
789
|
+
})(k || (k = {}));
|
|
796
790
|
function st(e) {
|
|
797
|
-
return e.type ===
|
|
791
|
+
return e.type === y.literal;
|
|
798
792
|
}
|
|
799
|
-
function
|
|
800
|
-
return e.type ===
|
|
793
|
+
function on(e) {
|
|
794
|
+
return e.type === y.argument;
|
|
801
795
|
}
|
|
802
796
|
function Mt(e) {
|
|
803
|
-
return e.type ===
|
|
797
|
+
return e.type === y.number;
|
|
804
798
|
}
|
|
805
799
|
function $t(e) {
|
|
806
|
-
return e.type ===
|
|
800
|
+
return e.type === y.date;
|
|
807
801
|
}
|
|
808
802
|
function Rt(e) {
|
|
809
|
-
return e.type ===
|
|
803
|
+
return e.type === y.time;
|
|
810
804
|
}
|
|
811
805
|
function Ut(e) {
|
|
812
|
-
return e.type ===
|
|
806
|
+
return e.type === y.select;
|
|
813
807
|
}
|
|
814
808
|
function Dt(e) {
|
|
815
|
-
return e.type ===
|
|
809
|
+
return e.type === y.plural;
|
|
816
810
|
}
|
|
817
|
-
function
|
|
818
|
-
return e.type ===
|
|
811
|
+
function an(e) {
|
|
812
|
+
return e.type === y.pound;
|
|
819
813
|
}
|
|
820
814
|
function Gt(e) {
|
|
821
|
-
return e.type ===
|
|
815
|
+
return e.type === y.tag;
|
|
822
816
|
}
|
|
823
817
|
function Ft(e) {
|
|
824
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
818
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
825
819
|
}
|
|
826
|
-
function
|
|
827
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
820
|
+
function De(e) {
|
|
821
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
828
822
|
}
|
|
829
|
-
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
830
|
-
function
|
|
823
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, un = /(?:[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;
|
|
824
|
+
function hn(e) {
|
|
831
825
|
var t = {};
|
|
832
|
-
return e.replace(
|
|
826
|
+
return e.replace(un, function(r) {
|
|
833
827
|
var n = r.length;
|
|
834
828
|
switch (r[0]) {
|
|
835
829
|
case "G":
|
|
@@ -918,11 +912,21 @@ function un(e) {
|
|
|
918
912
|
return "";
|
|
919
913
|
}), t;
|
|
920
914
|
}
|
|
921
|
-
var
|
|
922
|
-
function
|
|
915
|
+
var E = function() {
|
|
916
|
+
return E = Object.assign || function(t) {
|
|
917
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
918
|
+
r = arguments[n];
|
|
919
|
+
for (var s in r)
|
|
920
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
921
|
+
}
|
|
922
|
+
return t;
|
|
923
|
+
}, E.apply(this, arguments);
|
|
924
|
+
};
|
|
925
|
+
var ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
926
|
+
function fn(e) {
|
|
923
927
|
if (e.length === 0)
|
|
924
928
|
throw new Error("Number skeleton cannot be empty");
|
|
925
|
-
for (var t = e.split(
|
|
929
|
+
for (var t = e.split(ln).filter(function(m) {
|
|
926
930
|
return m.length > 0;
|
|
927
931
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
928
932
|
var s = i[n], a = s.split("/");
|
|
@@ -937,10 +941,10 @@ function ln(e) {
|
|
|
937
941
|
}
|
|
938
942
|
return r;
|
|
939
943
|
}
|
|
940
|
-
function
|
|
944
|
+
function cn(e) {
|
|
941
945
|
return e.replace(/^(.*?)-/, "");
|
|
942
946
|
}
|
|
943
|
-
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
947
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, mn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
944
948
|
function at(e) {
|
|
945
949
|
var t = {};
|
|
946
950
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
@@ -987,7 +991,7 @@ function Xt(e) {
|
|
|
987
991
|
};
|
|
988
992
|
}
|
|
989
993
|
}
|
|
990
|
-
function
|
|
994
|
+
function pn(e) {
|
|
991
995
|
var t;
|
|
992
996
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
993
997
|
notation: "engineering"
|
|
@@ -1029,7 +1033,7 @@ function dn(e) {
|
|
|
1029
1033
|
continue;
|
|
1030
1034
|
case "measure-unit":
|
|
1031
1035
|
case "unit":
|
|
1032
|
-
t.style = "unit", t.unit =
|
|
1036
|
+
t.style = "unit", t.unit = cn(i.options[0]);
|
|
1033
1037
|
continue;
|
|
1034
1038
|
case "compact-short":
|
|
1035
1039
|
case "K":
|
|
@@ -1040,13 +1044,13 @@ function dn(e) {
|
|
|
1040
1044
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1041
1045
|
continue;
|
|
1042
1046
|
case "scientific":
|
|
1043
|
-
t =
|
|
1044
|
-
return
|
|
1047
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1048
|
+
return E(E({}, l), ut(u));
|
|
1045
1049
|
}, {}));
|
|
1046
1050
|
continue;
|
|
1047
1051
|
case "engineering":
|
|
1048
|
-
t =
|
|
1049
|
-
return
|
|
1052
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1053
|
+
return E(E({}, l), ut(u));
|
|
1050
1054
|
}, {}));
|
|
1051
1055
|
continue;
|
|
1052
1056
|
case "notation-simple":
|
|
@@ -1091,13 +1095,13 @@ function dn(e) {
|
|
|
1091
1095
|
case "integer-width":
|
|
1092
1096
|
if (i.options.length > 1)
|
|
1093
1097
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1094
|
-
i.options[0].replace(
|
|
1098
|
+
i.options[0].replace(mn, function(l, u, h, c, m, p) {
|
|
1095
1099
|
if (u)
|
|
1096
1100
|
t.minimumIntegerDigits = h.length;
|
|
1097
1101
|
else {
|
|
1098
1102
|
if (c && m)
|
|
1099
1103
|
throw new Error("We currently do not support maximum integer digits");
|
|
1100
|
-
if (
|
|
1104
|
+
if (p)
|
|
1101
1105
|
throw new Error("We currently do not support exact integer digits");
|
|
1102
1106
|
}
|
|
1103
1107
|
return "";
|
|
@@ -1111,25 +1115,25 @@ function dn(e) {
|
|
|
1111
1115
|
if (ot.test(i.stem)) {
|
|
1112
1116
|
if (i.options.length > 1)
|
|
1113
1117
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1114
|
-
i.stem.replace(ot, function(l, u, h, c, m,
|
|
1115
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1118
|
+
i.stem.replace(ot, function(l, u, h, c, m, p) {
|
|
1119
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1116
1120
|
});
|
|
1117
1121
|
var s = i.options[0];
|
|
1118
|
-
s === "w" ? t =
|
|
1122
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
|
|
1119
1123
|
continue;
|
|
1120
1124
|
}
|
|
1121
1125
|
if (kt.test(i.stem)) {
|
|
1122
|
-
t =
|
|
1126
|
+
t = E(E({}, t), at(i.stem));
|
|
1123
1127
|
continue;
|
|
1124
1128
|
}
|
|
1125
1129
|
var a = Xt(i.stem);
|
|
1126
|
-
a && (t =
|
|
1127
|
-
var o =
|
|
1128
|
-
o && (t =
|
|
1130
|
+
a && (t = E(E({}, t), a));
|
|
1131
|
+
var o = pn(i.stem);
|
|
1132
|
+
o && (t = E(E({}, t), o));
|
|
1129
1133
|
}
|
|
1130
1134
|
return t;
|
|
1131
1135
|
}
|
|
1132
|
-
var
|
|
1136
|
+
var ae = {
|
|
1133
1137
|
"001": [
|
|
1134
1138
|
"H",
|
|
1135
1139
|
"h"
|
|
@@ -2550,7 +2554,7 @@ function bn(e, t) {
|
|
|
2550
2554
|
if (i === "j") {
|
|
2551
2555
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2552
2556
|
s++, n++;
|
|
2553
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2557
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = gn(t);
|
|
2554
2558
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2555
2559
|
r += l;
|
|
2556
2560
|
for (; a-- > 0; )
|
|
@@ -2560,7 +2564,7 @@ function bn(e, t) {
|
|
|
2560
2564
|
}
|
|
2561
2565
|
return r;
|
|
2562
2566
|
}
|
|
2563
|
-
function
|
|
2567
|
+
function gn(e) {
|
|
2564
2568
|
var t = e.hourCycle;
|
|
2565
2569
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2566
2570
|
e.hourCycles && // @ts-ignore
|
|
@@ -2579,23 +2583,23 @@ function pn(e) {
|
|
|
2579
2583
|
}
|
|
2580
2584
|
var r = e.language, n;
|
|
2581
2585
|
r !== "root" && (n = e.maximize().region);
|
|
2582
|
-
var i =
|
|
2586
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2583
2587
|
return i[0];
|
|
2584
2588
|
}
|
|
2585
|
-
var
|
|
2586
|
-
function
|
|
2589
|
+
var Le, _n = new RegExp("^".concat(jt.source, "*")), yn = new RegExp("".concat(jt.source, "*$"));
|
|
2590
|
+
function b(e, t) {
|
|
2587
2591
|
return { start: e, end: t };
|
|
2588
2592
|
}
|
|
2589
|
-
var
|
|
2593
|
+
var En = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, vn = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, Tn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Sn = wn ? Number.isSafeInteger : function(e) {
|
|
2590
2594
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2591
|
-
},
|
|
2595
|
+
}, Ge = !0;
|
|
2592
2596
|
try {
|
|
2593
|
-
var
|
|
2594
|
-
|
|
2597
|
+
var An = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2598
|
+
Ge = ((Le = An.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2595
2599
|
} catch (e) {
|
|
2596
|
-
|
|
2600
|
+
Ge = !1;
|
|
2597
2601
|
}
|
|
2598
|
-
var ht =
|
|
2602
|
+
var ht = En ? (
|
|
2599
2603
|
// Native
|
|
2600
2604
|
function(t, r, n) {
|
|
2601
2605
|
return t.startsWith(r, n);
|
|
@@ -2605,7 +2609,7 @@ var ht = yn ? (
|
|
|
2605
2609
|
function(t, r, n) {
|
|
2606
2610
|
return t.slice(n, n + r.length) === r;
|
|
2607
2611
|
}
|
|
2608
|
-
),
|
|
2612
|
+
), Fe = xn ? String.fromCodePoint : (
|
|
2609
2613
|
// IE11
|
|
2610
2614
|
function() {
|
|
2611
2615
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2619,7 +2623,7 @@ var ht = yn ? (
|
|
|
2619
2623
|
}
|
|
2620
2624
|
), lt = (
|
|
2621
2625
|
// native
|
|
2622
|
-
|
|
2626
|
+
vn ? Object.fromEntries : (
|
|
2623
2627
|
// Ponyfill
|
|
2624
2628
|
function(t) {
|
|
2625
2629
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2629,7 +2633,7 @@ var ht = yn ? (
|
|
|
2629
2633
|
return r;
|
|
2630
2634
|
}
|
|
2631
2635
|
)
|
|
2632
|
-
), zt =
|
|
2636
|
+
), zt = Hn ? (
|
|
2633
2637
|
// Native
|
|
2634
2638
|
function(t, r) {
|
|
2635
2639
|
return t.codePointAt(r);
|
|
@@ -2643,7 +2647,7 @@ var ht = yn ? (
|
|
|
2643
2647
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2644
2648
|
}
|
|
2645
2649
|
}
|
|
2646
|
-
),
|
|
2650
|
+
), On = Bn ? (
|
|
2647
2651
|
// Native
|
|
2648
2652
|
function(t) {
|
|
2649
2653
|
return t.trimStart();
|
|
@@ -2651,9 +2655,9 @@ var ht = yn ? (
|
|
|
2651
2655
|
) : (
|
|
2652
2656
|
// Ponyfill
|
|
2653
2657
|
function(t) {
|
|
2654
|
-
return t.replace(
|
|
2658
|
+
return t.replace(_n, "");
|
|
2655
2659
|
}
|
|
2656
|
-
), Cn =
|
|
2660
|
+
), Cn = Tn ? (
|
|
2657
2661
|
// Native
|
|
2658
2662
|
function(t) {
|
|
2659
2663
|
return t.trimEnd();
|
|
@@ -2661,32 +2665,32 @@ var ht = yn ? (
|
|
|
2661
2665
|
) : (
|
|
2662
2666
|
// Ponyfill
|
|
2663
2667
|
function(t) {
|
|
2664
|
-
return t.replace(
|
|
2668
|
+
return t.replace(yn, "");
|
|
2665
2669
|
}
|
|
2666
2670
|
);
|
|
2667
2671
|
function Wt(e, t) {
|
|
2668
2672
|
return new RegExp(e, t);
|
|
2669
2673
|
}
|
|
2670
|
-
var
|
|
2671
|
-
if (
|
|
2674
|
+
var je;
|
|
2675
|
+
if (Ge) {
|
|
2672
2676
|
var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2673
|
-
|
|
2677
|
+
je = function(t, r) {
|
|
2674
2678
|
var n;
|
|
2675
2679
|
ft.lastIndex = r;
|
|
2676
2680
|
var i = ft.exec(t);
|
|
2677
2681
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2678
2682
|
};
|
|
2679
2683
|
} else
|
|
2680
|
-
|
|
2684
|
+
je = function(t, r) {
|
|
2681
2685
|
for (var n = []; ; ) {
|
|
2682
2686
|
var i = zt(t, r);
|
|
2683
|
-
if (i === void 0 || Zt(i) ||
|
|
2687
|
+
if (i === void 0 || Zt(i) || In(i))
|
|
2684
2688
|
break;
|
|
2685
2689
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2686
2690
|
}
|
|
2687
|
-
return
|
|
2691
|
+
return Fe.apply(void 0, n);
|
|
2688
2692
|
};
|
|
2689
|
-
var
|
|
2693
|
+
var Pn = (
|
|
2690
2694
|
/** @class */
|
|
2691
2695
|
function() {
|
|
2692
2696
|
function e(t, r) {
|
|
@@ -2710,14 +2714,14 @@ var On = (
|
|
|
2710
2714
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2711
2715
|
var o = this.clonePosition();
|
|
2712
2716
|
this.bump(), i.push({
|
|
2713
|
-
type:
|
|
2714
|
-
location:
|
|
2717
|
+
type: y.pound,
|
|
2718
|
+
location: b(o, this.clonePosition())
|
|
2715
2719
|
});
|
|
2716
2720
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2717
2721
|
if (n)
|
|
2718
2722
|
break;
|
|
2719
|
-
return this.error(
|
|
2720
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2723
|
+
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2724
|
+
} else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2721
2725
|
var a = this.parseTag(t, r);
|
|
2722
2726
|
if (a.err)
|
|
2723
2727
|
return a;
|
|
@@ -2738,9 +2742,9 @@ var On = (
|
|
|
2738
2742
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2739
2743
|
return {
|
|
2740
2744
|
val: {
|
|
2741
|
-
type:
|
|
2745
|
+
type: y.literal,
|
|
2742
2746
|
value: "<".concat(i, "/>"),
|
|
2743
|
-
location:
|
|
2747
|
+
location: b(n, this.clonePosition())
|
|
2744
2748
|
},
|
|
2745
2749
|
err: null
|
|
2746
2750
|
};
|
|
@@ -2750,25 +2754,25 @@ var On = (
|
|
|
2750
2754
|
return s;
|
|
2751
2755
|
var a = s.val, o = this.clonePosition();
|
|
2752
2756
|
if (this.bumpIf("</")) {
|
|
2753
|
-
if (this.isEOF() || !
|
|
2754
|
-
return this.error(
|
|
2757
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2758
|
+
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2755
2759
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2756
|
-
return i !== u ? this.error(
|
|
2760
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2757
2761
|
val: {
|
|
2758
|
-
type:
|
|
2762
|
+
type: y.tag,
|
|
2759
2763
|
value: i,
|
|
2760
2764
|
children: a,
|
|
2761
|
-
location:
|
|
2765
|
+
location: b(n, this.clonePosition())
|
|
2762
2766
|
},
|
|
2763
2767
|
err: null
|
|
2764
|
-
} : this.error(
|
|
2768
|
+
} : this.error(d.INVALID_TAG, b(o, this.clonePosition())));
|
|
2765
2769
|
} else
|
|
2766
|
-
return this.error(
|
|
2770
|
+
return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2767
2771
|
} else
|
|
2768
|
-
return this.error(
|
|
2772
|
+
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2769
2773
|
}, e.prototype.parseTagName = function() {
|
|
2770
2774
|
var t = this.offset();
|
|
2771
|
-
for (this.bump(); !this.isEOF() &&
|
|
2775
|
+
for (this.bump(); !this.isEOF() && Nn(this.char()); )
|
|
2772
2776
|
this.bump();
|
|
2773
2777
|
return this.message.slice(t, this.offset());
|
|
2774
2778
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2790,14 +2794,14 @@ var On = (
|
|
|
2790
2794
|
}
|
|
2791
2795
|
break;
|
|
2792
2796
|
}
|
|
2793
|
-
var l =
|
|
2797
|
+
var l = b(n, this.clonePosition());
|
|
2794
2798
|
return {
|
|
2795
|
-
val: { type:
|
|
2799
|
+
val: { type: y.literal, value: i, location: l },
|
|
2796
2800
|
err: null
|
|
2797
2801
|
};
|
|
2798
2802
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2799
2803
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2800
|
-
!
|
|
2804
|
+
!Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2801
2805
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2802
2806
|
if (this.isEOF() || this.char() !== 39)
|
|
2803
2807
|
return null;
|
|
@@ -2831,49 +2835,49 @@ var On = (
|
|
|
2831
2835
|
r.push(n);
|
|
2832
2836
|
this.bump();
|
|
2833
2837
|
}
|
|
2834
|
-
return
|
|
2838
|
+
return Fe.apply(void 0, r);
|
|
2835
2839
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2836
2840
|
if (this.isEOF())
|
|
2837
2841
|
return null;
|
|
2838
2842
|
var n = this.char();
|
|
2839
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2843
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2840
2844
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2841
2845
|
var n = this.clonePosition();
|
|
2842
2846
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2843
|
-
return this.error(
|
|
2847
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2844
2848
|
if (this.char() === 125)
|
|
2845
|
-
return this.bump(), this.error(
|
|
2849
|
+
return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2846
2850
|
var i = this.parseIdentifierIfPossible().value;
|
|
2847
2851
|
if (!i)
|
|
2848
|
-
return this.error(
|
|
2852
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2849
2853
|
if (this.bumpSpace(), this.isEOF())
|
|
2850
|
-
return this.error(
|
|
2854
|
+
return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2851
2855
|
switch (this.char()) {
|
|
2852
2856
|
case 125:
|
|
2853
2857
|
return this.bump(), {
|
|
2854
2858
|
val: {
|
|
2855
|
-
type:
|
|
2859
|
+
type: y.argument,
|
|
2856
2860
|
// value does not include the opening and closing braces.
|
|
2857
2861
|
value: i,
|
|
2858
|
-
location:
|
|
2862
|
+
location: b(n, this.clonePosition())
|
|
2859
2863
|
},
|
|
2860
2864
|
err: null
|
|
2861
2865
|
};
|
|
2862
2866
|
case 44:
|
|
2863
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2867
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2864
2868
|
default:
|
|
2865
|
-
return this.error(
|
|
2869
|
+
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2866
2870
|
}
|
|
2867
2871
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2868
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2872
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2869
2873
|
this.bumpTo(i);
|
|
2870
|
-
var s = this.clonePosition(), a =
|
|
2874
|
+
var s = this.clonePosition(), a = b(t, s);
|
|
2871
2875
|
return { value: n, location: a };
|
|
2872
2876
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2873
2877
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2874
2878
|
switch (o) {
|
|
2875
2879
|
case "":
|
|
2876
|
-
return this.error(
|
|
2880
|
+
return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2877
2881
|
case "number":
|
|
2878
2882
|
case "date":
|
|
2879
2883
|
case "time": {
|
|
@@ -2886,33 +2890,33 @@ var On = (
|
|
|
2886
2890
|
return c;
|
|
2887
2891
|
var m = Cn(c.val);
|
|
2888
2892
|
if (m.length === 0)
|
|
2889
|
-
return this.error(
|
|
2890
|
-
var
|
|
2891
|
-
u = { style: m, styleLocation:
|
|
2893
|
+
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2894
|
+
var p = b(h, this.clonePosition());
|
|
2895
|
+
u = { style: m, styleLocation: p };
|
|
2892
2896
|
}
|
|
2893
2897
|
var f = this.tryParseArgumentClose(i);
|
|
2894
2898
|
if (f.err)
|
|
2895
2899
|
return f;
|
|
2896
|
-
var _ =
|
|
2900
|
+
var _ = b(i, this.clonePosition());
|
|
2897
2901
|
if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
2898
|
-
var v =
|
|
2902
|
+
var v = On(u.style.slice(2));
|
|
2899
2903
|
if (o === "number") {
|
|
2900
2904
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2901
2905
|
return c.err ? c : {
|
|
2902
|
-
val: { type:
|
|
2906
|
+
val: { type: y.number, value: n, location: _, style: c.val },
|
|
2903
2907
|
err: null
|
|
2904
2908
|
};
|
|
2905
2909
|
} else {
|
|
2906
2910
|
if (v.length === 0)
|
|
2907
|
-
return this.error(
|
|
2908
|
-
var
|
|
2909
|
-
this.locale && (
|
|
2911
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
|
|
2912
|
+
var O = v;
|
|
2913
|
+
this.locale && (O = bn(v, this.locale));
|
|
2910
2914
|
var m = {
|
|
2911
|
-
type:
|
|
2912
|
-
pattern:
|
|
2915
|
+
type: k.dateTime,
|
|
2916
|
+
pattern: O,
|
|
2913
2917
|
location: u.styleLocation,
|
|
2914
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2915
|
-
}, C = o === "date" ?
|
|
2918
|
+
parsedOptions: this.shouldParseSkeletons ? hn(O) : {}
|
|
2919
|
+
}, C = o === "date" ? y.date : y.time;
|
|
2916
2920
|
return {
|
|
2917
2921
|
val: { type: C, value: n, location: _, style: m },
|
|
2918
2922
|
err: null
|
|
@@ -2921,7 +2925,7 @@ var On = (
|
|
|
2921
2925
|
}
|
|
2922
2926
|
return {
|
|
2923
2927
|
val: {
|
|
2924
|
-
type: o === "number" ?
|
|
2928
|
+
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2925
2929
|
value: n,
|
|
2926
2930
|
location: _,
|
|
2927
2931
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2934,50 +2938,50 @@ var On = (
|
|
|
2934
2938
|
case "select": {
|
|
2935
2939
|
var H = this.clonePosition();
|
|
2936
2940
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2937
|
-
return this.error(
|
|
2941
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
|
|
2938
2942
|
this.bumpSpace();
|
|
2939
|
-
var
|
|
2940
|
-
if (o !== "select" &&
|
|
2943
|
+
var I = this.parseIdentifierIfPossible(), A = 0;
|
|
2944
|
+
if (o !== "select" && I.value === "offset") {
|
|
2941
2945
|
if (!this.bumpIf(":"))
|
|
2942
|
-
return this.error(
|
|
2946
|
+
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2943
2947
|
this.bumpSpace();
|
|
2944
|
-
var c = this.tryParseDecimalInteger(
|
|
2948
|
+
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2945
2949
|
if (c.err)
|
|
2946
2950
|
return c;
|
|
2947
|
-
this.bumpSpace(),
|
|
2951
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), A = c.val;
|
|
2948
2952
|
}
|
|
2949
|
-
var
|
|
2950
|
-
if (
|
|
2951
|
-
return
|
|
2953
|
+
var R = this.tryParsePluralOrSelectOptions(t, o, r, I);
|
|
2954
|
+
if (R.err)
|
|
2955
|
+
return R;
|
|
2952
2956
|
var f = this.tryParseArgumentClose(i);
|
|
2953
2957
|
if (f.err)
|
|
2954
2958
|
return f;
|
|
2955
|
-
var
|
|
2959
|
+
var se = b(i, this.clonePosition());
|
|
2956
2960
|
return o === "select" ? {
|
|
2957
2961
|
val: {
|
|
2958
|
-
type:
|
|
2962
|
+
type: y.select,
|
|
2959
2963
|
value: n,
|
|
2960
|
-
options: lt(
|
|
2961
|
-
location:
|
|
2964
|
+
options: lt(R.val),
|
|
2965
|
+
location: se
|
|
2962
2966
|
},
|
|
2963
2967
|
err: null
|
|
2964
2968
|
} : {
|
|
2965
2969
|
val: {
|
|
2966
|
-
type:
|
|
2970
|
+
type: y.plural,
|
|
2967
2971
|
value: n,
|
|
2968
|
-
options: lt(
|
|
2969
|
-
offset:
|
|
2972
|
+
options: lt(R.val),
|
|
2973
|
+
offset: A,
|
|
2970
2974
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2971
|
-
location:
|
|
2975
|
+
location: se
|
|
2972
2976
|
},
|
|
2973
2977
|
err: null
|
|
2974
2978
|
};
|
|
2975
2979
|
}
|
|
2976
2980
|
default:
|
|
2977
|
-
return this.error(
|
|
2981
|
+
return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2978
2982
|
}
|
|
2979
2983
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2980
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2984
|
+
return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2981
2985
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2982
2986
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2983
2987
|
var n = this.char();
|
|
@@ -2986,7 +2990,7 @@ var On = (
|
|
|
2986
2990
|
this.bump();
|
|
2987
2991
|
var i = this.clonePosition();
|
|
2988
2992
|
if (!this.bumpUntil("'"))
|
|
2989
|
-
return this.error(
|
|
2993
|
+
return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2990
2994
|
this.bump();
|
|
2991
2995
|
break;
|
|
2992
2996
|
}
|
|
@@ -3016,13 +3020,13 @@ var On = (
|
|
|
3016
3020
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3017
3021
|
var n = [];
|
|
3018
3022
|
try {
|
|
3019
|
-
n =
|
|
3023
|
+
n = fn(t);
|
|
3020
3024
|
} catch (i) {
|
|
3021
|
-
return this.error(
|
|
3025
|
+
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3022
3026
|
}
|
|
3023
3027
|
return {
|
|
3024
3028
|
val: {
|
|
3025
|
-
type:
|
|
3029
|
+
type: k.number,
|
|
3026
3030
|
tokens: n,
|
|
3027
3031
|
location: r,
|
|
3028
3032
|
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
@@ -3034,34 +3038,34 @@ var On = (
|
|
|
3034
3038
|
if (u.length === 0) {
|
|
3035
3039
|
var c = this.clonePosition();
|
|
3036
3040
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3037
|
-
var m = this.tryParseDecimalInteger(
|
|
3041
|
+
var m = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3038
3042
|
if (m.err)
|
|
3039
3043
|
return m;
|
|
3040
|
-
h =
|
|
3044
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3041
3045
|
} else
|
|
3042
3046
|
break;
|
|
3043
3047
|
}
|
|
3044
3048
|
if (l.has(u))
|
|
3045
|
-
return this.error(r === "select" ?
|
|
3049
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3046
3050
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3047
|
-
var
|
|
3051
|
+
var p = this.clonePosition();
|
|
3048
3052
|
if (!this.bumpIf("{"))
|
|
3049
|
-
return this.error(r === "select" ?
|
|
3053
|
+
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3050
3054
|
var f = this.parseMessage(t + 1, r, n);
|
|
3051
3055
|
if (f.err)
|
|
3052
3056
|
return f;
|
|
3053
|
-
var _ = this.tryParseArgumentClose(
|
|
3057
|
+
var _ = this.tryParseArgumentClose(p);
|
|
3054
3058
|
if (_.err)
|
|
3055
3059
|
return _;
|
|
3056
3060
|
o.push([
|
|
3057
3061
|
u,
|
|
3058
3062
|
{
|
|
3059
3063
|
value: f.val,
|
|
3060
|
-
location: p
|
|
3064
|
+
location: b(p, this.clonePosition())
|
|
3061
3065
|
}
|
|
3062
3066
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3063
3067
|
}
|
|
3064
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3068
|
+
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3065
3069
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3066
3070
|
var n = 1, i = this.clonePosition();
|
|
3067
3071
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3072,8 +3076,8 @@ var On = (
|
|
|
3072
3076
|
else
|
|
3073
3077
|
break;
|
|
3074
3078
|
}
|
|
3075
|
-
var l =
|
|
3076
|
-
return s ? (a *= n,
|
|
3079
|
+
var l = b(i, this.clonePosition());
|
|
3080
|
+
return s ? (a *= n, Sn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3077
3081
|
}, e.prototype.offset = function() {
|
|
3078
3082
|
return this.position.offset;
|
|
3079
3083
|
}, e.prototype.isEOF = function() {
|
|
@@ -3139,47 +3143,47 @@ var On = (
|
|
|
3139
3143
|
}, e;
|
|
3140
3144
|
}()
|
|
3141
3145
|
);
|
|
3142
|
-
function
|
|
3146
|
+
function ke(e) {
|
|
3143
3147
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3144
3148
|
}
|
|
3145
|
-
function Pn(e) {
|
|
3146
|
-
return Fe(e) || e === 47;
|
|
3147
|
-
}
|
|
3148
3149
|
function Ln(e) {
|
|
3150
|
+
return ke(e) || e === 47;
|
|
3151
|
+
}
|
|
3152
|
+
function Nn(e) {
|
|
3149
3153
|
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;
|
|
3150
3154
|
}
|
|
3151
3155
|
function Zt(e) {
|
|
3152
3156
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3153
3157
|
}
|
|
3154
|
-
function
|
|
3158
|
+
function In(e) {
|
|
3155
3159
|
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;
|
|
3156
3160
|
}
|
|
3157
|
-
function
|
|
3161
|
+
function Ve(e) {
|
|
3158
3162
|
e.forEach(function(t) {
|
|
3159
3163
|
if (delete t.location, Ut(t) || Dt(t))
|
|
3160
3164
|
for (var r in t.options)
|
|
3161
|
-
delete t.options[r].location,
|
|
3165
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3162
3166
|
else
|
|
3163
|
-
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) &&
|
|
3167
|
+
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
|
|
3164
3168
|
});
|
|
3165
3169
|
}
|
|
3166
|
-
function
|
|
3167
|
-
t === void 0 && (t = {}), t =
|
|
3168
|
-
var r = new
|
|
3170
|
+
function Mn(e, t) {
|
|
3171
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3172
|
+
var r = new Pn(e, t).parse();
|
|
3169
3173
|
if (r.err) {
|
|
3170
|
-
var n = SyntaxError(
|
|
3174
|
+
var n = SyntaxError(d[r.err.kind]);
|
|
3171
3175
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3172
3176
|
}
|
|
3173
|
-
return t != null && t.captureLocation ||
|
|
3177
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3174
3178
|
}
|
|
3175
|
-
var
|
|
3179
|
+
var V;
|
|
3176
3180
|
(function(e) {
|
|
3177
3181
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3178
|
-
})(
|
|
3179
|
-
var
|
|
3182
|
+
})(V || (V = {}));
|
|
3183
|
+
var Ee = (
|
|
3180
3184
|
/** @class */
|
|
3181
3185
|
function(e) {
|
|
3182
|
-
|
|
3186
|
+
ye(t, e);
|
|
3183
3187
|
function t(r, n, i) {
|
|
3184
3188
|
var s = e.call(this, r) || this;
|
|
3185
3189
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3191,48 +3195,48 @@ var _e = (
|
|
|
3191
3195
|
), ct = (
|
|
3192
3196
|
/** @class */
|
|
3193
3197
|
function(e) {
|
|
3194
|
-
|
|
3198
|
+
ye(t, e);
|
|
3195
3199
|
function t(r, n, i, s) {
|
|
3196
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3200
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3197
3201
|
}
|
|
3198
3202
|
return t;
|
|
3199
|
-
}(
|
|
3200
|
-
),
|
|
3203
|
+
}(Ee)
|
|
3204
|
+
), $n = (
|
|
3201
3205
|
/** @class */
|
|
3202
3206
|
function(e) {
|
|
3203
|
-
|
|
3207
|
+
ye(t, e);
|
|
3204
3208
|
function t(r, n, i) {
|
|
3205
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3209
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3206
3210
|
}
|
|
3207
3211
|
return t;
|
|
3208
|
-
}(
|
|
3209
|
-
),
|
|
3212
|
+
}(Ee)
|
|
3213
|
+
), Rn = (
|
|
3210
3214
|
/** @class */
|
|
3211
3215
|
function(e) {
|
|
3212
|
-
|
|
3216
|
+
ye(t, e);
|
|
3213
3217
|
function t(r, n) {
|
|
3214
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3218
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3215
3219
|
}
|
|
3216
3220
|
return t;
|
|
3217
|
-
}(
|
|
3218
|
-
),
|
|
3221
|
+
}(Ee)
|
|
3222
|
+
), x;
|
|
3219
3223
|
(function(e) {
|
|
3220
3224
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3221
|
-
})(
|
|
3222
|
-
function
|
|
3225
|
+
})(x || (x = {}));
|
|
3226
|
+
function Un(e) {
|
|
3223
3227
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3224
3228
|
var n = t[t.length - 1];
|
|
3225
|
-
return !n || n.type !==
|
|
3229
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3226
3230
|
}, []);
|
|
3227
3231
|
}
|
|
3228
|
-
function
|
|
3232
|
+
function Dn(e) {
|
|
3229
3233
|
return typeof e == "function";
|
|
3230
3234
|
}
|
|
3231
|
-
function
|
|
3235
|
+
function fe(e, t, r, n, i, s, a) {
|
|
3232
3236
|
if (e.length === 1 && st(e[0]))
|
|
3233
3237
|
return [
|
|
3234
3238
|
{
|
|
3235
|
-
type:
|
|
3239
|
+
type: x.literal,
|
|
3236
3240
|
value: e[0].value
|
|
3237
3241
|
}
|
|
3238
3242
|
];
|
|
@@ -3240,64 +3244,64 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3240
3244
|
var h = u[l];
|
|
3241
3245
|
if (st(h)) {
|
|
3242
3246
|
o.push({
|
|
3243
|
-
type:
|
|
3247
|
+
type: x.literal,
|
|
3244
3248
|
value: h.value
|
|
3245
3249
|
});
|
|
3246
3250
|
continue;
|
|
3247
3251
|
}
|
|
3248
|
-
if (
|
|
3252
|
+
if (an(h)) {
|
|
3249
3253
|
typeof s == "number" && o.push({
|
|
3250
|
-
type:
|
|
3254
|
+
type: x.literal,
|
|
3251
3255
|
value: r.getNumberFormat(t).format(s)
|
|
3252
3256
|
});
|
|
3253
3257
|
continue;
|
|
3254
3258
|
}
|
|
3255
3259
|
var c = h.value;
|
|
3256
3260
|
if (!(i && c in i))
|
|
3257
|
-
throw new
|
|
3261
|
+
throw new Rn(c, a);
|
|
3258
3262
|
var m = i[c];
|
|
3259
|
-
if (
|
|
3263
|
+
if (on(h)) {
|
|
3260
3264
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3261
|
-
type: typeof m == "string" ?
|
|
3265
|
+
type: typeof m == "string" ? x.literal : x.object,
|
|
3262
3266
|
value: m
|
|
3263
3267
|
});
|
|
3264
3268
|
continue;
|
|
3265
3269
|
}
|
|
3266
3270
|
if ($t(h)) {
|
|
3267
|
-
var
|
|
3271
|
+
var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3268
3272
|
o.push({
|
|
3269
|
-
type:
|
|
3270
|
-
value: r.getDateTimeFormat(t,
|
|
3273
|
+
type: x.literal,
|
|
3274
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3271
3275
|
});
|
|
3272
3276
|
continue;
|
|
3273
3277
|
}
|
|
3274
3278
|
if (Rt(h)) {
|
|
3275
|
-
var
|
|
3279
|
+
var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3276
3280
|
o.push({
|
|
3277
|
-
type:
|
|
3278
|
-
value: r.getDateTimeFormat(t,
|
|
3281
|
+
type: x.literal,
|
|
3282
|
+
value: r.getDateTimeFormat(t, p).format(m)
|
|
3279
3283
|
});
|
|
3280
3284
|
continue;
|
|
3281
3285
|
}
|
|
3282
3286
|
if (Mt(h)) {
|
|
3283
|
-
var
|
|
3284
|
-
|
|
3285
|
-
type:
|
|
3286
|
-
value: r.getNumberFormat(t,
|
|
3287
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3288
|
+
p && p.scale && (m = m * (p.scale || 1)), o.push({
|
|
3289
|
+
type: x.literal,
|
|
3290
|
+
value: r.getNumberFormat(t, p).format(m)
|
|
3287
3291
|
});
|
|
3288
3292
|
continue;
|
|
3289
3293
|
}
|
|
3290
3294
|
if (Gt(h)) {
|
|
3291
3295
|
var f = h.children, _ = h.value, v = i[_];
|
|
3292
|
-
if (!
|
|
3293
|
-
throw new
|
|
3294
|
-
var
|
|
3295
|
-
return
|
|
3296
|
+
if (!Dn(v))
|
|
3297
|
+
throw new $n(_, "function", a);
|
|
3298
|
+
var O = fe(f, t, r, n, i, s), C = v(O.map(function(A) {
|
|
3299
|
+
return A.value;
|
|
3296
3300
|
}));
|
|
3297
|
-
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(
|
|
3301
|
+
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(A) {
|
|
3298
3302
|
return {
|
|
3299
|
-
type: typeof
|
|
3300
|
-
value:
|
|
3303
|
+
type: typeof A == "string" ? x.literal : x.object,
|
|
3304
|
+
value: A
|
|
3301
3305
|
};
|
|
3302
3306
|
}));
|
|
3303
3307
|
}
|
|
@@ -3305,38 +3309,38 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3305
3309
|
var H = h.options[m] || h.options.other;
|
|
3306
3310
|
if (!H)
|
|
3307
3311
|
throw new ct(h.value, m, Object.keys(h.options), a);
|
|
3308
|
-
o.push.apply(o,
|
|
3312
|
+
o.push.apply(o, fe(H.value, t, r, n, i));
|
|
3309
3313
|
continue;
|
|
3310
3314
|
}
|
|
3311
3315
|
if (Dt(h)) {
|
|
3312
3316
|
var H = h.options["=".concat(m)];
|
|
3313
3317
|
if (!H) {
|
|
3314
3318
|
if (!Intl.PluralRules)
|
|
3315
|
-
throw new
|
|
3319
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3316
3320
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3317
|
-
`,
|
|
3318
|
-
var
|
|
3319
|
-
H = h.options[
|
|
3321
|
+
`, V.MISSING_INTL_API, a);
|
|
3322
|
+
var I = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3323
|
+
H = h.options[I] || h.options.other;
|
|
3320
3324
|
}
|
|
3321
3325
|
if (!H)
|
|
3322
3326
|
throw new ct(h.value, m, Object.keys(h.options), a);
|
|
3323
|
-
o.push.apply(o,
|
|
3327
|
+
o.push.apply(o, fe(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3324
3328
|
continue;
|
|
3325
3329
|
}
|
|
3326
3330
|
}
|
|
3327
|
-
return
|
|
3331
|
+
return Un(o);
|
|
3328
3332
|
}
|
|
3329
|
-
function
|
|
3330
|
-
return t ?
|
|
3331
|
-
return r[n] =
|
|
3333
|
+
function Gn(e, t) {
|
|
3334
|
+
return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3335
|
+
return r[n] = S(S({}, e[n]), t[n] || {}), r;
|
|
3332
3336
|
}, {})) : e;
|
|
3333
3337
|
}
|
|
3334
|
-
function
|
|
3338
|
+
function Fn(e, t) {
|
|
3335
3339
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3336
|
-
return r[n] =
|
|
3337
|
-
},
|
|
3340
|
+
return r[n] = Gn(e[n], t[n]), r;
|
|
3341
|
+
}, S({}, e)) : e;
|
|
3338
3342
|
}
|
|
3339
|
-
function
|
|
3343
|
+
function Ne(e) {
|
|
3340
3344
|
return {
|
|
3341
3345
|
create: function() {
|
|
3342
3346
|
return {
|
|
@@ -3350,35 +3354,35 @@ function Pe(e) {
|
|
|
3350
3354
|
}
|
|
3351
3355
|
};
|
|
3352
3356
|
}
|
|
3353
|
-
function
|
|
3357
|
+
function jn(e) {
|
|
3354
3358
|
return e === void 0 && (e = {
|
|
3355
3359
|
number: {},
|
|
3356
3360
|
dateTime: {},
|
|
3357
3361
|
pluralRules: {}
|
|
3358
3362
|
}), {
|
|
3359
|
-
getNumberFormat:
|
|
3363
|
+
getNumberFormat: Ce(function() {
|
|
3360
3364
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3361
3365
|
r[n] = arguments[n];
|
|
3362
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3366
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3363
3367
|
}, {
|
|
3364
|
-
cache:
|
|
3365
|
-
strategy:
|
|
3368
|
+
cache: Ne(e.number),
|
|
3369
|
+
strategy: Pe.variadic
|
|
3366
3370
|
}),
|
|
3367
|
-
getDateTimeFormat:
|
|
3371
|
+
getDateTimeFormat: Ce(function() {
|
|
3368
3372
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3369
3373
|
r[n] = arguments[n];
|
|
3370
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3374
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3371
3375
|
}, {
|
|
3372
|
-
cache:
|
|
3373
|
-
strategy:
|
|
3376
|
+
cache: Ne(e.dateTime),
|
|
3377
|
+
strategy: Pe.variadic
|
|
3374
3378
|
}),
|
|
3375
|
-
getPluralRules:
|
|
3379
|
+
getPluralRules: Ce(function() {
|
|
3376
3380
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3377
3381
|
r[n] = arguments[n];
|
|
3378
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3382
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3379
3383
|
}, {
|
|
3380
|
-
cache:
|
|
3381
|
-
strategy:
|
|
3384
|
+
cache: Ne(e.pluralRules),
|
|
3385
|
+
strategy: Pe.variadic
|
|
3382
3386
|
})
|
|
3383
3387
|
};
|
|
3384
3388
|
}
|
|
@@ -3397,11 +3401,11 @@ var Qt = (
|
|
|
3397
3401
|
if (u.length === 1)
|
|
3398
3402
|
return u[0].value;
|
|
3399
3403
|
var h = u.reduce(function(c, m) {
|
|
3400
|
-
return !c.length || m.type !==
|
|
3404
|
+
return !c.length || m.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3401
3405
|
}, []);
|
|
3402
3406
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3403
3407
|
}, this.formatToParts = function(l) {
|
|
3404
|
-
return
|
|
3408
|
+
return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3405
3409
|
}, this.resolvedOptions = function() {
|
|
3406
3410
|
var l;
|
|
3407
3411
|
return {
|
|
@@ -3415,12 +3419,12 @@ var Qt = (
|
|
|
3415
3419
|
var a = i || {};
|
|
3416
3420
|
a.formatters;
|
|
3417
3421
|
var o = Jr(a, ["formatters"]);
|
|
3418
|
-
this.ast = e.__parse(t,
|
|
3422
|
+
this.ast = e.__parse(t, S(S({}, o), { locale: this.resolvedLocale }));
|
|
3419
3423
|
} else
|
|
3420
3424
|
this.ast = t;
|
|
3421
3425
|
if (!Array.isArray(this.ast))
|
|
3422
3426
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3423
|
-
this.formats =
|
|
3427
|
+
this.formats = Fn(e.formats, n), this.formatters = i && i.formatters || jn(this.formatterCache);
|
|
3424
3428
|
}
|
|
3425
3429
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3426
3430
|
get: function() {
|
|
@@ -3433,7 +3437,7 @@ var Qt = (
|
|
|
3433
3437
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3434
3438
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3435
3439
|
}
|
|
3436
|
-
}, e.__parse =
|
|
3440
|
+
}, e.__parse = Mn, e.formats = {
|
|
3437
3441
|
number: {
|
|
3438
3442
|
integer: {
|
|
3439
3443
|
maximumFractionDigits: 0
|
|
@@ -3494,7 +3498,7 @@ var Qt = (
|
|
|
3494
3498
|
}, e;
|
|
3495
3499
|
}()
|
|
3496
3500
|
);
|
|
3497
|
-
function
|
|
3501
|
+
function kn(e, t) {
|
|
3498
3502
|
if (t == null)
|
|
3499
3503
|
return;
|
|
3500
3504
|
if (t in e)
|
|
@@ -3515,36 +3519,36 @@ function jn(e, t) {
|
|
|
3515
3519
|
n = void 0;
|
|
3516
3520
|
return n;
|
|
3517
3521
|
}
|
|
3518
|
-
const
|
|
3522
|
+
const P = {}, Vn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), qt = (e, t) => {
|
|
3519
3523
|
if (t == null)
|
|
3520
3524
|
return;
|
|
3521
|
-
if (t in
|
|
3522
|
-
return
|
|
3523
|
-
const r =
|
|
3525
|
+
if (t in P && e in P[t])
|
|
3526
|
+
return P[t][e];
|
|
3527
|
+
const r = ie(t);
|
|
3524
3528
|
for (let n = 0; n < r.length; n++) {
|
|
3525
|
-
const i = r[n], s =
|
|
3529
|
+
const i = r[n], s = zn(i, e);
|
|
3526
3530
|
if (s)
|
|
3527
|
-
return
|
|
3531
|
+
return Vn(e, t, s);
|
|
3528
3532
|
}
|
|
3529
3533
|
};
|
|
3530
3534
|
let Ze;
|
|
3531
|
-
const
|
|
3532
|
-
function
|
|
3535
|
+
const ne = _e({});
|
|
3536
|
+
function Xn(e) {
|
|
3533
3537
|
return Ze[e] || null;
|
|
3534
3538
|
}
|
|
3535
3539
|
function Jt(e) {
|
|
3536
3540
|
return e in Ze;
|
|
3537
3541
|
}
|
|
3538
|
-
function
|
|
3542
|
+
function zn(e, t) {
|
|
3539
3543
|
if (!Jt(e))
|
|
3540
3544
|
return null;
|
|
3541
|
-
const r =
|
|
3542
|
-
return
|
|
3545
|
+
const r = Xn(e);
|
|
3546
|
+
return kn(r, t);
|
|
3543
3547
|
}
|
|
3544
|
-
function
|
|
3548
|
+
function Wn(e) {
|
|
3545
3549
|
if (e == null)
|
|
3546
3550
|
return;
|
|
3547
|
-
const t =
|
|
3551
|
+
const t = ie(e);
|
|
3548
3552
|
for (let r = 0; r < t.length; r++) {
|
|
3549
3553
|
const n = t[r];
|
|
3550
3554
|
if (Jt(n))
|
|
@@ -3552,64 +3556,64 @@ function zn(e) {
|
|
|
3552
3556
|
}
|
|
3553
3557
|
}
|
|
3554
3558
|
function Yt(e, ...t) {
|
|
3555
|
-
delete
|
|
3559
|
+
delete P[e], ne.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
|
|
3556
3560
|
}
|
|
3557
|
-
|
|
3558
|
-
[
|
|
3561
|
+
Z(
|
|
3562
|
+
[ne],
|
|
3559
3563
|
([e]) => Object.keys(e)
|
|
3560
3564
|
);
|
|
3561
|
-
|
|
3562
|
-
const
|
|
3563
|
-
function
|
|
3564
|
-
|
|
3565
|
+
ne.subscribe((e) => Ze = e);
|
|
3566
|
+
const ce = {};
|
|
3567
|
+
function Zn(e, t) {
|
|
3568
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3565
3569
|
}
|
|
3566
3570
|
function Kt(e) {
|
|
3567
|
-
return
|
|
3571
|
+
return ce[e];
|
|
3568
3572
|
}
|
|
3569
|
-
function
|
|
3570
|
-
return
|
|
3573
|
+
function Qn(e) {
|
|
3574
|
+
return ie(e).map((t) => {
|
|
3571
3575
|
const r = Kt(t);
|
|
3572
3576
|
return [t, r ? [...r] : []];
|
|
3573
3577
|
}).filter(([, t]) => t.length > 0);
|
|
3574
3578
|
}
|
|
3575
|
-
function
|
|
3576
|
-
return e == null ? !1 :
|
|
3579
|
+
function de(e) {
|
|
3580
|
+
return e == null ? !1 : ie(e).some(
|
|
3577
3581
|
(t) => {
|
|
3578
3582
|
var r;
|
|
3579
3583
|
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3580
3584
|
}
|
|
3581
3585
|
);
|
|
3582
3586
|
}
|
|
3583
|
-
function
|
|
3587
|
+
function qn(e, t) {
|
|
3584
3588
|
return Promise.all(
|
|
3585
|
-
t.map((n) => (
|
|
3589
|
+
t.map((n) => (Zn(e, n), n().then((i) => i.default || i)))
|
|
3586
3590
|
).then((n) => Yt(e, ...n));
|
|
3587
3591
|
}
|
|
3588
|
-
const
|
|
3592
|
+
const q = {};
|
|
3589
3593
|
function er(e) {
|
|
3590
|
-
if (!
|
|
3591
|
-
return e in
|
|
3592
|
-
const t =
|
|
3593
|
-
return
|
|
3594
|
+
if (!de(e))
|
|
3595
|
+
return e in q ? q[e] : Promise.resolve();
|
|
3596
|
+
const t = Qn(e);
|
|
3597
|
+
return q[e] = Promise.all(
|
|
3594
3598
|
t.map(
|
|
3595
|
-
([r, n]) =>
|
|
3599
|
+
([r, n]) => qn(r, n)
|
|
3596
3600
|
)
|
|
3597
3601
|
).then(() => {
|
|
3598
|
-
if (
|
|
3602
|
+
if (de(e))
|
|
3599
3603
|
return er(e);
|
|
3600
|
-
delete
|
|
3601
|
-
}),
|
|
3604
|
+
delete q[e];
|
|
3605
|
+
}), q[e];
|
|
3602
3606
|
}
|
|
3603
|
-
var mt = Object.getOwnPropertySymbols,
|
|
3607
|
+
var mt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, Kn = (e, t) => {
|
|
3604
3608
|
var r = {};
|
|
3605
3609
|
for (var n in e)
|
|
3606
|
-
|
|
3610
|
+
Jn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3607
3611
|
if (e != null && mt)
|
|
3608
3612
|
for (var n of mt(e))
|
|
3609
|
-
t.indexOf(n) < 0 &&
|
|
3613
|
+
t.indexOf(n) < 0 && Yn.call(e, n) && (r[n] = e[n]);
|
|
3610
3614
|
return r;
|
|
3611
3615
|
};
|
|
3612
|
-
const
|
|
3616
|
+
const ei = {
|
|
3613
3617
|
number: {
|
|
3614
3618
|
scientific: { notation: "scientific" },
|
|
3615
3619
|
engineering: { notation: "engineering" },
|
|
@@ -3639,28 +3643,28 @@ const Kn = {
|
|
|
3639
3643
|
}
|
|
3640
3644
|
}
|
|
3641
3645
|
};
|
|
3642
|
-
function
|
|
3646
|
+
function ti({ locale: e, id: t }) {
|
|
3643
3647
|
console.warn(
|
|
3644
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3648
|
+
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3645
3649
|
e
|
|
3646
|
-
).join('", "')}".${
|
|
3650
|
+
).join('", "')}".${de(N()) ? `
|
|
3647
3651
|
|
|
3648
3652
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3649
3653
|
);
|
|
3650
3654
|
}
|
|
3651
|
-
const
|
|
3655
|
+
const ri = {
|
|
3652
3656
|
fallbackLocale: null,
|
|
3653
3657
|
loadingDelay: 200,
|
|
3654
|
-
formats:
|
|
3658
|
+
formats: ei,
|
|
3655
3659
|
warnOnMissingMessages: !0,
|
|
3656
3660
|
handleMissingMessage: void 0,
|
|
3657
3661
|
ignoreTag: !0
|
|
3658
|
-
},
|
|
3659
|
-
function
|
|
3660
|
-
return
|
|
3662
|
+
}, J = ri;
|
|
3663
|
+
function X() {
|
|
3664
|
+
return J;
|
|
3661
3665
|
}
|
|
3662
|
-
function
|
|
3663
|
-
const t = e, { formats: r } = t, n =
|
|
3666
|
+
function ni(e) {
|
|
3667
|
+
const t = e, { formats: r } = t, n = Kn(t, ["formats"]);
|
|
3664
3668
|
let i = e.fallbackLocale;
|
|
3665
3669
|
if (e.initialLocale)
|
|
3666
3670
|
try {
|
|
@@ -3670,134 +3674,134 @@ function ri(e) {
|
|
|
3670
3674
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3671
3675
|
);
|
|
3672
3676
|
}
|
|
3673
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3677
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ti : console.warn(
|
|
3674
3678
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3675
|
-
)), Object.assign(
|
|
3679
|
+
)), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), $.set(i);
|
|
3676
3680
|
}
|
|
3677
|
-
const
|
|
3678
|
-
var
|
|
3681
|
+
const Ie = _e(!1);
|
|
3682
|
+
var ii = Object.defineProperty, si = Object.defineProperties, oi = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3679
3683
|
for (var r in t || (t = {}))
|
|
3680
|
-
|
|
3681
|
-
if (
|
|
3682
|
-
for (var r of
|
|
3683
|
-
|
|
3684
|
+
ai.call(t, r) && dt(e, r, t[r]);
|
|
3685
|
+
if (pt)
|
|
3686
|
+
for (var r of pt(t))
|
|
3687
|
+
ui.call(t, r) && dt(e, r, t[r]);
|
|
3684
3688
|
return e;
|
|
3685
|
-
},
|
|
3686
|
-
let
|
|
3687
|
-
const
|
|
3688
|
-
function
|
|
3689
|
+
}, li = (e, t) => si(e, oi(t));
|
|
3690
|
+
let Xe;
|
|
3691
|
+
const be = _e(null);
|
|
3692
|
+
function bt(e) {
|
|
3689
3693
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3690
3694
|
}
|
|
3691
|
-
function
|
|
3692
|
-
const r =
|
|
3693
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3695
|
+
function ie(e, t = X().fallbackLocale) {
|
|
3696
|
+
const r = bt(e);
|
|
3697
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3694
3698
|
}
|
|
3695
|
-
function
|
|
3696
|
-
return
|
|
3699
|
+
function N() {
|
|
3700
|
+
return Xe != null ? Xe : void 0;
|
|
3697
3701
|
}
|
|
3698
|
-
|
|
3699
|
-
|
|
3702
|
+
be.subscribe((e) => {
|
|
3703
|
+
Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3700
3704
|
});
|
|
3701
|
-
const
|
|
3702
|
-
if (e &&
|
|
3703
|
-
const { loadingDelay: t } =
|
|
3705
|
+
const fi = (e) => {
|
|
3706
|
+
if (e && Wn(e) && de(e)) {
|
|
3707
|
+
const { loadingDelay: t } = X();
|
|
3704
3708
|
let r;
|
|
3705
|
-
return typeof window != "undefined" &&
|
|
3706
|
-
() =>
|
|
3709
|
+
return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
|
|
3710
|
+
() => Ie.set(!0),
|
|
3707
3711
|
t
|
|
3708
|
-
) :
|
|
3709
|
-
|
|
3712
|
+
) : Ie.set(!0), er(e).then(() => {
|
|
3713
|
+
be.set(e);
|
|
3710
3714
|
}).finally(() => {
|
|
3711
|
-
clearTimeout(r),
|
|
3715
|
+
clearTimeout(r), Ie.set(!1);
|
|
3712
3716
|
});
|
|
3713
3717
|
}
|
|
3714
|
-
return
|
|
3715
|
-
},
|
|
3716
|
-
set:
|
|
3717
|
-
}),
|
|
3718
|
+
return be.set(e);
|
|
3719
|
+
}, $ = li(hi({}, be), {
|
|
3720
|
+
set: fi
|
|
3721
|
+
}), xe = (e) => {
|
|
3718
3722
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3719
3723
|
return (n) => {
|
|
3720
3724
|
const i = JSON.stringify(n);
|
|
3721
3725
|
return i in t ? t[i] : t[i] = e(n);
|
|
3722
3726
|
};
|
|
3723
3727
|
};
|
|
3724
|
-
var
|
|
3728
|
+
var ci = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3725
3729
|
for (var r in t || (t = {}))
|
|
3726
3730
|
tr.call(t, r) && gt(e, r, t[r]);
|
|
3727
|
-
if (
|
|
3728
|
-
for (var r of
|
|
3731
|
+
if (ge)
|
|
3732
|
+
for (var r of ge(t))
|
|
3729
3733
|
rr.call(t, r) && gt(e, r, t[r]);
|
|
3730
3734
|
return e;
|
|
3731
|
-
},
|
|
3735
|
+
}, Q = (e, t) => {
|
|
3732
3736
|
var r = {};
|
|
3733
3737
|
for (var n in e)
|
|
3734
3738
|
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3735
|
-
if (e != null &&
|
|
3736
|
-
for (var n of
|
|
3739
|
+
if (e != null && ge)
|
|
3740
|
+
for (var n of ge(e))
|
|
3737
3741
|
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3738
3742
|
return r;
|
|
3739
3743
|
};
|
|
3740
|
-
const
|
|
3741
|
-
const { formats: r } =
|
|
3744
|
+
const te = (e, t) => {
|
|
3745
|
+
const { formats: r } = X();
|
|
3742
3746
|
if (e in r && t in r[e])
|
|
3743
3747
|
return r[e][t];
|
|
3744
3748
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3745
|
-
},
|
|
3749
|
+
}, mi = xe(
|
|
3746
3750
|
(e) => {
|
|
3747
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3751
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3748
3752
|
if (r == null)
|
|
3749
3753
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3750
|
-
return n && (i =
|
|
3754
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3751
3755
|
}
|
|
3752
|
-
),
|
|
3756
|
+
), pi = xe(
|
|
3753
3757
|
(e) => {
|
|
3754
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3758
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3755
3759
|
if (r == null)
|
|
3756
3760
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3757
|
-
return n ? i =
|
|
3761
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3758
3762
|
}
|
|
3759
|
-
), di =
|
|
3763
|
+
), di = xe(
|
|
3760
3764
|
(e) => {
|
|
3761
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3765
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3762
3766
|
if (r == null)
|
|
3763
3767
|
throw new Error(
|
|
3764
3768
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3765
3769
|
);
|
|
3766
|
-
return n ? i =
|
|
3770
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3767
3771
|
}
|
|
3768
3772
|
), bi = (e = {}) => {
|
|
3769
3773
|
var t = e, {
|
|
3770
|
-
locale: r =
|
|
3771
|
-
} = t, n =
|
|
3774
|
+
locale: r = N()
|
|
3775
|
+
} = t, n = Q(t, [
|
|
3772
3776
|
"locale"
|
|
3773
3777
|
]);
|
|
3774
|
-
return
|
|
3775
|
-
},
|
|
3778
|
+
return mi(Qe({ locale: r }, n));
|
|
3779
|
+
}, gi = (e = {}) => {
|
|
3776
3780
|
var t = e, {
|
|
3777
|
-
locale: r =
|
|
3778
|
-
} = t, n =
|
|
3781
|
+
locale: r = N()
|
|
3782
|
+
} = t, n = Q(t, [
|
|
3779
3783
|
"locale"
|
|
3780
3784
|
]);
|
|
3781
|
-
return
|
|
3782
|
-
},
|
|
3785
|
+
return pi(Qe({ locale: r }, n));
|
|
3786
|
+
}, _i = (e = {}) => {
|
|
3783
3787
|
var t = e, {
|
|
3784
|
-
locale: r =
|
|
3785
|
-
} = t, n =
|
|
3788
|
+
locale: r = N()
|
|
3789
|
+
} = t, n = Q(t, [
|
|
3786
3790
|
"locale"
|
|
3787
3791
|
]);
|
|
3788
3792
|
return di(Qe({ locale: r }, n));
|
|
3789
|
-
},
|
|
3793
|
+
}, yi = xe(
|
|
3790
3794
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3791
|
-
(e, t =
|
|
3792
|
-
ignoreTag:
|
|
3795
|
+
(e, t = N()) => new Qt(e, t, X().formats, {
|
|
3796
|
+
ignoreTag: X().ignoreTag
|
|
3793
3797
|
})
|
|
3794
|
-
),
|
|
3798
|
+
), Ei = (e, t = {}) => {
|
|
3795
3799
|
var r, n, i, s;
|
|
3796
3800
|
let a = t;
|
|
3797
3801
|
typeof e == "object" && (a = e, e = a.id);
|
|
3798
3802
|
const {
|
|
3799
3803
|
values: o,
|
|
3800
|
-
locale: l =
|
|
3804
|
+
locale: l = N(),
|
|
3801
3805
|
default: u
|
|
3802
3806
|
} = a;
|
|
3803
3807
|
if (l == null)
|
|
@@ -3806,7 +3810,7 @@ const ee = (e, t) => {
|
|
|
3806
3810
|
);
|
|
3807
3811
|
let h = qt(e, l);
|
|
3808
3812
|
if (!h)
|
|
3809
|
-
h = (s = (i = (n = (r =
|
|
3813
|
+
h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3810
3814
|
else if (typeof h != "string")
|
|
3811
3815
|
return console.warn(
|
|
3812
3816
|
`[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.`
|
|
@@ -3815,7 +3819,7 @@ const ee = (e, t) => {
|
|
|
3815
3819
|
return h;
|
|
3816
3820
|
let c = h;
|
|
3817
3821
|
try {
|
|
3818
|
-
c =
|
|
3822
|
+
c = yi(h, l).format(o);
|
|
3819
3823
|
} catch (m) {
|
|
3820
3824
|
m instanceof Error && console.warn(
|
|
3821
3825
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3823,18 +3827,18 @@ const ee = (e, t) => {
|
|
|
3823
3827
|
);
|
|
3824
3828
|
}
|
|
3825
3829
|
return c;
|
|
3826
|
-
}, xi = (e, t) =>
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
function
|
|
3830
|
+
}, xi = (e, t) => _i(t).format(e), vi = (e, t) => gi(t).format(e), Hi = (e, t) => bi(t).format(e), Bi = (e, t = N()) => qt(e, t), Ti = Z([$, ne], () => Ei);
|
|
3831
|
+
Z([$], () => xi);
|
|
3832
|
+
Z([$], () => vi);
|
|
3833
|
+
Z([$], () => Hi);
|
|
3834
|
+
Z([$, ne], () => Bi);
|
|
3835
|
+
function wi(e, t) {
|
|
3832
3836
|
if (e) {
|
|
3833
3837
|
const r = document.createElement("style");
|
|
3834
3838
|
r.innerHTML = t, e.appendChild(r);
|
|
3835
3839
|
}
|
|
3836
3840
|
}
|
|
3837
|
-
function
|
|
3841
|
+
function Si(e, t) {
|
|
3838
3842
|
if (!e || !t)
|
|
3839
3843
|
return;
|
|
3840
3844
|
const r = new URL(t);
|
|
@@ -3845,7 +3849,7 @@ function wi(e, t) {
|
|
|
3845
3849
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3846
3850
|
});
|
|
3847
3851
|
}
|
|
3848
|
-
function
|
|
3852
|
+
function Ai(e, t, r) {
|
|
3849
3853
|
if (window.emMessageBus) {
|
|
3850
3854
|
const n = document.createElement("style");
|
|
3851
3855
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3856,10 +3860,10 @@ function Si(e, t, r) {
|
|
|
3856
3860
|
function _t(e, t) {
|
|
3857
3861
|
Yt(e, t);
|
|
3858
3862
|
}
|
|
3859
|
-
function
|
|
3860
|
-
|
|
3863
|
+
function Oi(e) {
|
|
3864
|
+
ni({
|
|
3861
3865
|
fallbackLocale: "en"
|
|
3862
|
-
}),
|
|
3866
|
+
}), $.set(e);
|
|
3863
3867
|
}
|
|
3864
3868
|
const yt = {
|
|
3865
3869
|
en: {
|
|
@@ -3878,17 +3882,17 @@ const yt = {
|
|
|
3878
3882
|
}
|
|
3879
3883
|
};
|
|
3880
3884
|
function Ci(e) {
|
|
3881
|
-
|
|
3885
|
+
pr(e, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;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;fill:var(--emw--color-primary, #F9C405)}");
|
|
3882
3886
|
}
|
|
3883
|
-
const
|
|
3887
|
+
const Pi = (e) => ({}), Et = (e) => ({}), Li = (e) => ({}), xt = (e) => ({}), Ni = (e) => ({}), vt = (e) => ({});
|
|
3884
3888
|
function Ht(e) {
|
|
3885
3889
|
let t, r, n;
|
|
3886
3890
|
return {
|
|
3887
3891
|
c() {
|
|
3888
|
-
t =
|
|
3892
|
+
t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>', W(t, "class", "CashierHeaderLeftButton");
|
|
3889
3893
|
},
|
|
3890
3894
|
m(i, s) {
|
|
3891
|
-
|
|
3895
|
+
M(i, t, s), r || (n = Ct(
|
|
3892
3896
|
t,
|
|
3893
3897
|
"click",
|
|
3894
3898
|
/*back*/
|
|
@@ -3897,32 +3901,32 @@ function Ht(e) {
|
|
|
3897
3901
|
},
|
|
3898
3902
|
p: T,
|
|
3899
3903
|
d(i) {
|
|
3900
|
-
i &&
|
|
3904
|
+
i && L(t), r = !1, n();
|
|
3901
3905
|
}
|
|
3902
3906
|
};
|
|
3903
3907
|
}
|
|
3904
|
-
function
|
|
3908
|
+
function Ii(e) {
|
|
3905
3909
|
let t, r = (
|
|
3906
3910
|
/*backButton*/
|
|
3907
3911
|
e[1] && Ht(e)
|
|
3908
3912
|
);
|
|
3909
3913
|
return {
|
|
3910
3914
|
c() {
|
|
3911
|
-
r && r.c(), t =
|
|
3915
|
+
r && r.c(), t = Ot();
|
|
3912
3916
|
},
|
|
3913
3917
|
m(n, i) {
|
|
3914
|
-
r && r.m(n, i),
|
|
3918
|
+
r && r.m(n, i), M(n, t, i);
|
|
3915
3919
|
},
|
|
3916
3920
|
p(n, i) {
|
|
3917
3921
|
/*backButton*/
|
|
3918
3922
|
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3919
3923
|
},
|
|
3920
3924
|
d(n) {
|
|
3921
|
-
n &&
|
|
3925
|
+
n && L(t), r && r.d(n);
|
|
3922
3926
|
}
|
|
3923
3927
|
};
|
|
3924
3928
|
}
|
|
3925
|
-
function
|
|
3929
|
+
function Mi(e) {
|
|
3926
3930
|
let t, r = (
|
|
3927
3931
|
/*$_*/
|
|
3928
3932
|
e[4](
|
|
@@ -3932,10 +3936,10 @@ function Ii(e) {
|
|
|
3932
3936
|
), n;
|
|
3933
3937
|
return {
|
|
3934
3938
|
c() {
|
|
3935
|
-
t =
|
|
3939
|
+
t = z("span"), n = We(r), W(t, "class", "CashierHeaderTitle");
|
|
3936
3940
|
},
|
|
3937
3941
|
m(i, s) {
|
|
3938
|
-
|
|
3942
|
+
M(i, t, s), me(t, n);
|
|
3939
3943
|
},
|
|
3940
3944
|
p(i, s) {
|
|
3941
3945
|
s & /*$_, titleText*/
|
|
@@ -3946,7 +3950,7 @@ function Ii(e) {
|
|
|
3946
3950
|
) + "") && _r(n, r);
|
|
3947
3951
|
},
|
|
3948
3952
|
d(i) {
|
|
3949
|
-
i &&
|
|
3953
|
+
i && L(t);
|
|
3950
3954
|
}
|
|
3951
3955
|
};
|
|
3952
3956
|
}
|
|
@@ -3954,10 +3958,10 @@ function Bt(e) {
|
|
|
3954
3958
|
let t, r, n;
|
|
3955
3959
|
return {
|
|
3956
3960
|
c() {
|
|
3957
|
-
t =
|
|
3961
|
+
t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>', W(t, "class", "CashierHeaderRightButton");
|
|
3958
3962
|
},
|
|
3959
3963
|
m(i, s) {
|
|
3960
|
-
|
|
3964
|
+
M(i, t, s), r || (n = Ct(
|
|
3961
3965
|
t,
|
|
3962
3966
|
"click",
|
|
3963
3967
|
/*close*/
|
|
@@ -3966,143 +3970,143 @@ function Bt(e) {
|
|
|
3966
3970
|
},
|
|
3967
3971
|
p: T,
|
|
3968
3972
|
d(i) {
|
|
3969
|
-
i &&
|
|
3973
|
+
i && L(t), r = !1, n();
|
|
3970
3974
|
}
|
|
3971
3975
|
};
|
|
3972
3976
|
}
|
|
3973
|
-
function
|
|
3977
|
+
function $i(e) {
|
|
3974
3978
|
let t, r = (
|
|
3975
3979
|
/*closeButton*/
|
|
3976
3980
|
e[3] && Bt(e)
|
|
3977
3981
|
);
|
|
3978
3982
|
return {
|
|
3979
3983
|
c() {
|
|
3980
|
-
r && r.c(), t =
|
|
3984
|
+
r && r.c(), t = Ot();
|
|
3981
3985
|
},
|
|
3982
3986
|
m(n, i) {
|
|
3983
|
-
r && r.m(n, i),
|
|
3987
|
+
r && r.m(n, i), M(n, t, i);
|
|
3984
3988
|
},
|
|
3985
3989
|
p(n, i) {
|
|
3986
3990
|
/*closeButton*/
|
|
3987
3991
|
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3988
3992
|
},
|
|
3989
3993
|
d(n) {
|
|
3990
|
-
n &&
|
|
3994
|
+
n && L(t), r && r.d(n);
|
|
3991
3995
|
}
|
|
3992
3996
|
};
|
|
3993
3997
|
}
|
|
3994
|
-
function
|
|
3998
|
+
function Ri(e) {
|
|
3995
3999
|
let t, r, n, i;
|
|
3996
4000
|
const s = (
|
|
3997
4001
|
/*#slots*/
|
|
3998
4002
|
e[16].leftButton
|
|
3999
|
-
), a =
|
|
4003
|
+
), a = He(
|
|
4000
4004
|
s,
|
|
4001
4005
|
e,
|
|
4002
4006
|
/*$$scope*/
|
|
4003
4007
|
e[15],
|
|
4004
4008
|
vt
|
|
4005
|
-
), o = a ||
|
|
4009
|
+
), o = a || Ii(e), l = (
|
|
4006
4010
|
/*#slots*/
|
|
4007
4011
|
e[16].title
|
|
4008
|
-
), u =
|
|
4012
|
+
), u = He(
|
|
4009
4013
|
l,
|
|
4010
4014
|
e,
|
|
4011
4015
|
/*$$scope*/
|
|
4012
4016
|
e[15],
|
|
4013
|
-
|
|
4014
|
-
), h = u ||
|
|
4017
|
+
xt
|
|
4018
|
+
), h = u || Mi(e), c = (
|
|
4015
4019
|
/*#slots*/
|
|
4016
4020
|
e[16].rightButton
|
|
4017
|
-
), m =
|
|
4021
|
+
), m = He(
|
|
4018
4022
|
c,
|
|
4019
4023
|
e,
|
|
4020
4024
|
/*$$scope*/
|
|
4021
4025
|
e[15],
|
|
4022
|
-
|
|
4023
|
-
),
|
|
4026
|
+
Et
|
|
4027
|
+
), p = m || $i(e);
|
|
4024
4028
|
return {
|
|
4025
4029
|
c() {
|
|
4026
|
-
t =
|
|
4030
|
+
t = z("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), p && p.c(), W(t, "class", "CashierHeader");
|
|
4027
4031
|
},
|
|
4028
4032
|
m(f, _) {
|
|
4029
|
-
|
|
4033
|
+
M(f, t, _), o && o.m(t, null), me(t, r), h && h.m(t, null), me(t, n), p && p.m(t, null), e[17](t), i = !0;
|
|
4030
4034
|
},
|
|
4031
4035
|
p(f, [_]) {
|
|
4032
4036
|
a ? a.p && (!i || _ & /*$$scope*/
|
|
4033
|
-
32768) &&
|
|
4037
|
+
32768) && Te(
|
|
4034
4038
|
a,
|
|
4035
4039
|
s,
|
|
4036
4040
|
f,
|
|
4037
4041
|
/*$$scope*/
|
|
4038
4042
|
f[15],
|
|
4039
|
-
i ?
|
|
4043
|
+
i ? Be(
|
|
4040
4044
|
s,
|
|
4041
4045
|
/*$$scope*/
|
|
4042
4046
|
f[15],
|
|
4043
4047
|
_,
|
|
4044
|
-
|
|
4045
|
-
) :
|
|
4048
|
+
Ni
|
|
4049
|
+
) : we(
|
|
4046
4050
|
/*$$scope*/
|
|
4047
4051
|
f[15]
|
|
4048
4052
|
),
|
|
4049
4053
|
vt
|
|
4050
4054
|
) : o && o.p && (!i || _ & /*backButton*/
|
|
4051
4055
|
2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4052
|
-
32768) &&
|
|
4056
|
+
32768) && Te(
|
|
4053
4057
|
u,
|
|
4054
4058
|
l,
|
|
4055
4059
|
f,
|
|
4056
4060
|
/*$$scope*/
|
|
4057
4061
|
f[15],
|
|
4058
|
-
i ?
|
|
4062
|
+
i ? Be(
|
|
4059
4063
|
l,
|
|
4060
4064
|
/*$$scope*/
|
|
4061
4065
|
f[15],
|
|
4062
4066
|
_,
|
|
4063
|
-
|
|
4064
|
-
) :
|
|
4067
|
+
Li
|
|
4068
|
+
) : we(
|
|
4065
4069
|
/*$$scope*/
|
|
4066
4070
|
f[15]
|
|
4067
4071
|
),
|
|
4068
|
-
|
|
4072
|
+
xt
|
|
4069
4073
|
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4070
4074
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4071
|
-
32768) &&
|
|
4075
|
+
32768) && Te(
|
|
4072
4076
|
m,
|
|
4073
4077
|
c,
|
|
4074
4078
|
f,
|
|
4075
4079
|
/*$$scope*/
|
|
4076
4080
|
f[15],
|
|
4077
|
-
i ?
|
|
4081
|
+
i ? Be(
|
|
4078
4082
|
c,
|
|
4079
4083
|
/*$$scope*/
|
|
4080
4084
|
f[15],
|
|
4081
4085
|
_,
|
|
4082
|
-
|
|
4083
|
-
) :
|
|
4086
|
+
Pi
|
|
4087
|
+
) : we(
|
|
4084
4088
|
/*$$scope*/
|
|
4085
4089
|
f[15]
|
|
4086
4090
|
),
|
|
4087
|
-
|
|
4088
|
-
) :
|
|
4089
|
-
8) &&
|
|
4091
|
+
Et
|
|
4092
|
+
) : p && p.p && (!i || _ & /*closeButton*/
|
|
4093
|
+
8) && p.p(f, i ? _ : -1);
|
|
4090
4094
|
},
|
|
4091
4095
|
i(f) {
|
|
4092
|
-
i || (
|
|
4096
|
+
i || (he(o, f), he(h, f), he(p, f), i = !0);
|
|
4093
4097
|
},
|
|
4094
4098
|
o(f) {
|
|
4095
|
-
|
|
4099
|
+
Ae(o, f), Ae(h, f), Ae(p, f), i = !1;
|
|
4096
4100
|
},
|
|
4097
4101
|
d(f) {
|
|
4098
|
-
f &&
|
|
4102
|
+
f && L(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
|
|
4099
4103
|
}
|
|
4100
4104
|
};
|
|
4101
4105
|
}
|
|
4102
|
-
function
|
|
4106
|
+
function Ui(e, t, r) {
|
|
4103
4107
|
let n;
|
|
4104
|
-
mr(e,
|
|
4105
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4108
|
+
mr(e, Ti, (g) => r(4, n = g));
|
|
4109
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1, v, O = !1;
|
|
4106
4110
|
const C = () => {
|
|
4107
4111
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4108
4112
|
Object.keys(g).forEach((qe) => {
|
|
@@ -4116,45 +4120,45 @@ function Ri(e, t, r) {
|
|
|
4116
4120
|
_t(g, yt[g]);
|
|
4117
4121
|
});
|
|
4118
4122
|
const H = () => {
|
|
4119
|
-
|
|
4120
|
-
},
|
|
4123
|
+
Oi(c);
|
|
4124
|
+
}, I = () => {
|
|
4121
4125
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4122
|
-
},
|
|
4126
|
+
}, A = () => {
|
|
4123
4127
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4124
|
-
},
|
|
4128
|
+
}, R = () => {
|
|
4125
4129
|
r(1, _ = !!u && u !== "false");
|
|
4126
|
-
},
|
|
4127
|
-
r(3,
|
|
4130
|
+
}, se = () => {
|
|
4131
|
+
r(3, O = !!m && m !== "false");
|
|
4128
4132
|
}, ir = () => {
|
|
4129
4133
|
r(2, v = h || "header.general");
|
|
4130
4134
|
};
|
|
4131
|
-
|
|
4135
|
+
xr(() => () => {
|
|
4132
4136
|
});
|
|
4133
4137
|
function sr(g) {
|
|
4134
|
-
|
|
4138
|
+
Me[g ? "unshift" : "push"](() => {
|
|
4135
4139
|
f = g, r(0, f);
|
|
4136
4140
|
});
|
|
4137
4141
|
}
|
|
4138
4142
|
return e.$$set = (g) => {
|
|
4139
|
-
"clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = 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,
|
|
4143
|
+
"clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = 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);
|
|
4140
4144
|
}, e.$$.update = () => {
|
|
4141
4145
|
e.$$.dirty & /*lang*/
|
|
4142
4146
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4143
4147
|
6144 && c && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4144
|
-
129 && a && f &&
|
|
4145
|
-
257 && o && f &&
|
|
4146
|
-
16385 &&
|
|
4148
|
+
129 && a && f && wi(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4149
|
+
257 && o && f && Si(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4150
|
+
16385 && p && f && Ai(f, `${p}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4147
4151
|
4608 && c && l && C(), e.$$.dirty & /*showbackbutton*/
|
|
4148
|
-
1024 && u &&
|
|
4149
|
-
8192 && m &&
|
|
4152
|
+
1024 && u && R(), e.$$.dirty & /*showclosebutton*/
|
|
4153
|
+
8192 && m && se();
|
|
4150
4154
|
}, [
|
|
4151
4155
|
f,
|
|
4152
4156
|
_,
|
|
4153
4157
|
v,
|
|
4154
|
-
|
|
4158
|
+
O,
|
|
4155
4159
|
n,
|
|
4156
|
-
|
|
4157
|
-
|
|
4160
|
+
I,
|
|
4161
|
+
A,
|
|
4158
4162
|
a,
|
|
4159
4163
|
o,
|
|
4160
4164
|
l,
|
|
@@ -4162,7 +4166,7 @@ function Ri(e, t, r) {
|
|
|
4162
4166
|
h,
|
|
4163
4167
|
c,
|
|
4164
4168
|
m,
|
|
4165
|
-
|
|
4169
|
+
p,
|
|
4166
4170
|
s,
|
|
4167
4171
|
i,
|
|
4168
4172
|
sr
|
|
@@ -4170,11 +4174,11 @@ function Ri(e, t, r) {
|
|
|
4170
4174
|
}
|
|
4171
4175
|
class nr extends Lr {
|
|
4172
4176
|
constructor(t) {
|
|
4173
|
-
super(),
|
|
4177
|
+
super(), Cr(
|
|
4174
4178
|
this,
|
|
4175
4179
|
t,
|
|
4180
|
+
Ui,
|
|
4176
4181
|
Ri,
|
|
4177
|
-
$i,
|
|
4178
4182
|
wt,
|
|
4179
4183
|
{
|
|
4180
4184
|
clientstyling: 7,
|
|
@@ -4239,34 +4243,34 @@ class nr extends Lr {
|
|
|
4239
4243
|
}
|
|
4240
4244
|
}
|
|
4241
4245
|
Pr(nr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4242
|
-
const
|
|
4246
|
+
const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4243
4247
|
__proto__: null,
|
|
4244
4248
|
default: nr
|
|
4245
4249
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4246
4250
|
export {
|
|
4247
|
-
|
|
4248
|
-
|
|
4251
|
+
$,
|
|
4252
|
+
ji as C,
|
|
4249
4253
|
Lr as S,
|
|
4250
4254
|
Yt as a,
|
|
4251
|
-
|
|
4255
|
+
Cr as b,
|
|
4252
4256
|
Pr as c,
|
|
4253
|
-
|
|
4254
|
-
|
|
4257
|
+
pr as d,
|
|
4258
|
+
L as e,
|
|
4255
4259
|
w as f,
|
|
4256
|
-
|
|
4260
|
+
Fi as g,
|
|
4257
4261
|
Gi as h,
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4262
|
+
ni as i,
|
|
4263
|
+
W as j,
|
|
4264
|
+
M as k,
|
|
4265
|
+
me as l,
|
|
4266
|
+
Ct as m,
|
|
4267
|
+
T as n,
|
|
4268
|
+
z as o,
|
|
4269
|
+
rt as p,
|
|
4270
|
+
xr as q,
|
|
4271
|
+
Me as r,
|
|
4268
4272
|
wt as s,
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4273
|
+
wi as t,
|
|
4274
|
+
Si as u,
|
|
4275
|
+
Ai as v
|
|
4272
4276
|
};
|