@everymatrix/cashier-iframe-redirect 1.53.12 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierHeader-DZf8BaSf.js → CashierHeader-BAc6VgBD.js} +974 -937
- package/components/CashierHeader-Bpt7u9Tk.cjs +5 -0
- package/components/{CashierIframeRedirect-Dqa-gIDO.js → CashierIframeRedirect-D9eXm7aX.js} +20 -20
- package/components/CashierIframeRedirect-lNKEL2Km.cjs +1 -0
- package/components/CashierSpinner-Bx0feaVh.cjs +1 -0
- package/components/{CashierSpinner-D8Wjf0gj.js → CashierSpinner-DEj529Pa.js} +1 -1
- package/es2015/cashier-iframe-redirect.cjs +1 -0
- package/es2015/cashier-iframe-redirect.js +16 -0
- package/package.json +12 -12
- package/esnext/cashier-iframe-redirect.js +0 -14
|
@@ -1,77 +1,106 @@
|
|
|
1
|
-
|
|
1
|
+
var ar = Object.defineProperty, ur = Object.defineProperties;
|
|
2
|
+
var hr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Je = Object.getOwnPropertySymbols;
|
|
4
|
+
var lr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
lr.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (Je)
|
|
9
|
+
for (var r of Je(t))
|
|
10
|
+
fr.call(t, r) && xe(e, r, t[r]);
|
|
11
|
+
return e;
|
|
12
|
+
}, Ke = (e, t) => ur(e, hr(t));
|
|
13
|
+
var B = (e, t, r) => xe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (l) => {
|
|
16
|
+
try {
|
|
17
|
+
a(r.next(l));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
|
+
}
|
|
21
|
+
}, o = (l) => {
|
|
22
|
+
try {
|
|
23
|
+
a(r.throw(l));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
|
+
}
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
|
+
a((r = r.apply(e, t)).next());
|
|
29
|
+
});
|
|
30
|
+
function T() {
|
|
2
31
|
}
|
|
3
|
-
function
|
|
32
|
+
function cr(e, t) {
|
|
4
33
|
for (const r in t) e[r] = t[r];
|
|
5
34
|
return (
|
|
6
35
|
/** @type {T & S} */
|
|
7
36
|
e
|
|
8
37
|
);
|
|
9
38
|
}
|
|
10
|
-
function
|
|
39
|
+
function Tt(e) {
|
|
11
40
|
return e();
|
|
12
41
|
}
|
|
13
|
-
function
|
|
42
|
+
function tt() {
|
|
14
43
|
return /* @__PURE__ */ Object.create(null);
|
|
15
44
|
}
|
|
16
|
-
function
|
|
17
|
-
e.forEach(
|
|
45
|
+
function re(e) {
|
|
46
|
+
e.forEach(Tt);
|
|
18
47
|
}
|
|
19
|
-
function
|
|
48
|
+
function Xe(e) {
|
|
20
49
|
return typeof e == "function";
|
|
21
50
|
}
|
|
22
|
-
function
|
|
51
|
+
function wt(e, t) {
|
|
23
52
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
24
53
|
}
|
|
25
|
-
let
|
|
26
|
-
function
|
|
27
|
-
return e === t ? !0 : (
|
|
54
|
+
let oe;
|
|
55
|
+
function $i(e, t) {
|
|
56
|
+
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
28
57
|
}
|
|
29
|
-
function
|
|
58
|
+
function mr(e) {
|
|
30
59
|
return Object.keys(e).length === 0;
|
|
31
60
|
}
|
|
32
|
-
function
|
|
61
|
+
function St(e, ...t) {
|
|
33
62
|
if (e == null) {
|
|
34
63
|
for (const n of t)
|
|
35
64
|
n(void 0);
|
|
36
|
-
return
|
|
65
|
+
return T;
|
|
37
66
|
}
|
|
38
67
|
const r = e.subscribe(...t);
|
|
39
68
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
40
69
|
}
|
|
41
|
-
function
|
|
42
|
-
e.$$.on_destroy.push(
|
|
70
|
+
function dr(e, t, r) {
|
|
71
|
+
e.$$.on_destroy.push(St(t, r));
|
|
43
72
|
}
|
|
44
|
-
function
|
|
73
|
+
function ve(e, t, r, n) {
|
|
45
74
|
if (e) {
|
|
46
|
-
const i =
|
|
75
|
+
const i = At(e, t, r, n);
|
|
47
76
|
return e[0](i);
|
|
48
77
|
}
|
|
49
78
|
}
|
|
50
|
-
function
|
|
51
|
-
return e[1] && n ?
|
|
79
|
+
function At(e, t, r, n) {
|
|
80
|
+
return e[1] && n ? cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
52
81
|
}
|
|
53
|
-
function
|
|
82
|
+
function He(e, t, r, n) {
|
|
54
83
|
if (e[2] && n) {
|
|
55
84
|
const i = e[2](n(r));
|
|
56
85
|
if (t.dirty === void 0)
|
|
57
86
|
return i;
|
|
58
87
|
if (typeof i == "object") {
|
|
59
|
-
const s = [],
|
|
60
|
-
for (let
|
|
61
|
-
s[
|
|
88
|
+
const s = [], o = Math.max(t.dirty.length, i.length);
|
|
89
|
+
for (let a = 0; a < o; a += 1)
|
|
90
|
+
s[a] = t.dirty[a] | i[a];
|
|
62
91
|
return s;
|
|
63
92
|
}
|
|
64
93
|
return t.dirty | i;
|
|
65
94
|
}
|
|
66
95
|
return t.dirty;
|
|
67
96
|
}
|
|
68
|
-
function
|
|
97
|
+
function Be(e, t, r, n, i, s) {
|
|
69
98
|
if (i) {
|
|
70
|
-
const
|
|
71
|
-
e.p(
|
|
99
|
+
const o = At(t, r, n, s);
|
|
100
|
+
e.p(o, i);
|
|
72
101
|
}
|
|
73
102
|
}
|
|
74
|
-
function
|
|
103
|
+
function Te(e) {
|
|
75
104
|
if (e.ctx.length > 32) {
|
|
76
105
|
const t = [], r = e.ctx.length / 32;
|
|
77
106
|
for (let n = 0; n < r; n++)
|
|
@@ -80,17 +109,17 @@ function He(e) {
|
|
|
80
109
|
}
|
|
81
110
|
return -1;
|
|
82
111
|
}
|
|
83
|
-
function
|
|
112
|
+
function me(e, t) {
|
|
84
113
|
e.appendChild(t);
|
|
85
114
|
}
|
|
86
|
-
function
|
|
87
|
-
const n =
|
|
115
|
+
function pr(e, t, r) {
|
|
116
|
+
const n = br(e);
|
|
88
117
|
if (!n.getElementById(t)) {
|
|
89
|
-
const i =
|
|
90
|
-
i.id = t, i.textContent = r,
|
|
118
|
+
const i = W("style");
|
|
119
|
+
i.id = t, i.textContent = r, gr(n, i);
|
|
91
120
|
}
|
|
92
121
|
}
|
|
93
|
-
function
|
|
122
|
+
function br(e) {
|
|
94
123
|
if (!e) return document;
|
|
95
124
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
96
125
|
return t && /** @type {ShadowRoot} */
|
|
@@ -99,49 +128,49 @@ function sr(e) {
|
|
|
99
128
|
t
|
|
100
129
|
) : e.ownerDocument;
|
|
101
130
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
131
|
+
function gr(e, t) {
|
|
132
|
+
return me(
|
|
104
133
|
/** @type {Document} */
|
|
105
134
|
e.head || e,
|
|
106
135
|
t
|
|
107
136
|
), t.sheet;
|
|
108
137
|
}
|
|
109
|
-
function
|
|
138
|
+
function M(e, t, r) {
|
|
110
139
|
e.insertBefore(t, r || null);
|
|
111
140
|
}
|
|
112
|
-
function
|
|
141
|
+
function P(e) {
|
|
113
142
|
e.parentNode && e.parentNode.removeChild(e);
|
|
114
143
|
}
|
|
115
|
-
function
|
|
144
|
+
function W(e) {
|
|
116
145
|
return document.createElement(e);
|
|
117
146
|
}
|
|
118
|
-
function
|
|
147
|
+
function ze(e) {
|
|
119
148
|
return document.createTextNode(e);
|
|
120
149
|
}
|
|
121
|
-
function
|
|
122
|
-
return
|
|
150
|
+
function rt() {
|
|
151
|
+
return ze(" ");
|
|
123
152
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
153
|
+
function Ct() {
|
|
154
|
+
return ze("");
|
|
126
155
|
}
|
|
127
|
-
function
|
|
156
|
+
function Ot(e, t, r, n) {
|
|
128
157
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
129
158
|
}
|
|
130
|
-
function
|
|
159
|
+
function Z(e, t, r) {
|
|
131
160
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
132
161
|
}
|
|
133
|
-
function
|
|
162
|
+
function Ri(e, t, r) {
|
|
134
163
|
const n = t.toLowerCase();
|
|
135
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
164
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : Z(e, t, r);
|
|
136
165
|
}
|
|
137
|
-
function
|
|
166
|
+
function _r(e) {
|
|
138
167
|
return Array.from(e.childNodes);
|
|
139
168
|
}
|
|
140
|
-
function
|
|
169
|
+
function yr(e, t) {
|
|
141
170
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
142
171
|
t);
|
|
143
172
|
}
|
|
144
|
-
function
|
|
173
|
+
function Er(e) {
|
|
145
174
|
const t = {};
|
|
146
175
|
return e.childNodes.forEach(
|
|
147
176
|
/** @param {Element} node */
|
|
@@ -150,95 +179,95 @@ function hr(e) {
|
|
|
150
179
|
}
|
|
151
180
|
), t;
|
|
152
181
|
}
|
|
153
|
-
let
|
|
154
|
-
function
|
|
155
|
-
|
|
182
|
+
let We;
|
|
183
|
+
function K(e) {
|
|
184
|
+
We = e;
|
|
156
185
|
}
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
function
|
|
162
|
-
|
|
186
|
+
const F = [], Ie = [];
|
|
187
|
+
let j = [];
|
|
188
|
+
const nt = [], xr = /* @__PURE__ */ Promise.resolve();
|
|
189
|
+
let Me = !1;
|
|
190
|
+
function vr() {
|
|
191
|
+
Me || (Me = !0, xr.then(A));
|
|
163
192
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
193
|
+
function $e(e) {
|
|
194
|
+
j.push(e);
|
|
166
195
|
}
|
|
167
|
-
const
|
|
168
|
-
let
|
|
169
|
-
function
|
|
170
|
-
if (
|
|
196
|
+
const we = /* @__PURE__ */ new Set();
|
|
197
|
+
let D = 0;
|
|
198
|
+
function A() {
|
|
199
|
+
if (D !== 0)
|
|
171
200
|
return;
|
|
172
|
-
const e =
|
|
201
|
+
const e = We;
|
|
173
202
|
do {
|
|
174
203
|
try {
|
|
175
|
-
for (;
|
|
176
|
-
const t =
|
|
177
|
-
|
|
204
|
+
for (; D < F.length; ) {
|
|
205
|
+
const t = F[D];
|
|
206
|
+
D++, K(t), Hr(t.$$);
|
|
178
207
|
}
|
|
179
208
|
} catch (t) {
|
|
180
|
-
throw
|
|
209
|
+
throw F.length = 0, D = 0, t;
|
|
181
210
|
}
|
|
182
|
-
for (
|
|
183
|
-
for (let t = 0; t <
|
|
184
|
-
const r =
|
|
185
|
-
|
|
211
|
+
for (K(null), F.length = 0, D = 0; Ie.length; ) Ie.pop()();
|
|
212
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
213
|
+
const r = j[t];
|
|
214
|
+
we.has(r) || (we.add(r), r());
|
|
186
215
|
}
|
|
187
|
-
|
|
188
|
-
} while (
|
|
189
|
-
for (;
|
|
190
|
-
|
|
191
|
-
|
|
216
|
+
j.length = 0;
|
|
217
|
+
} while (F.length);
|
|
218
|
+
for (; nt.length; )
|
|
219
|
+
nt.pop()();
|
|
220
|
+
Me = !1, we.clear(), K(e);
|
|
192
221
|
}
|
|
193
|
-
function
|
|
222
|
+
function Hr(e) {
|
|
194
223
|
if (e.fragment !== null) {
|
|
195
|
-
e.update(),
|
|
224
|
+
e.update(), re(e.before_update);
|
|
196
225
|
const t = e.dirty;
|
|
197
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
226
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
198
227
|
}
|
|
199
228
|
}
|
|
200
|
-
function
|
|
229
|
+
function Br(e) {
|
|
201
230
|
const t = [], r = [];
|
|
202
|
-
|
|
231
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
203
232
|
}
|
|
204
|
-
const
|
|
205
|
-
let
|
|
206
|
-
function
|
|
207
|
-
e && e.i && (
|
|
233
|
+
const ue = /* @__PURE__ */ new Set();
|
|
234
|
+
let Tr;
|
|
235
|
+
function he(e, t) {
|
|
236
|
+
e && e.i && (ue.delete(e), e.i(t));
|
|
208
237
|
}
|
|
209
|
-
function
|
|
238
|
+
function Se(e, t, r, n) {
|
|
210
239
|
if (e && e.o) {
|
|
211
|
-
if (
|
|
212
|
-
|
|
213
|
-
|
|
240
|
+
if (ue.has(e)) return;
|
|
241
|
+
ue.add(e), Tr.c.push(() => {
|
|
242
|
+
ue.delete(e);
|
|
214
243
|
}), e.o(t);
|
|
215
244
|
}
|
|
216
245
|
}
|
|
217
|
-
function
|
|
246
|
+
function wr(e, t, r) {
|
|
218
247
|
const { fragment: n, after_update: i } = e.$$;
|
|
219
|
-
n && n.m(t, r),
|
|
220
|
-
const s = e.$$.on_mount.map(
|
|
221
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
222
|
-
}), i.forEach(
|
|
248
|
+
n && n.m(t, r), $e(() => {
|
|
249
|
+
const s = e.$$.on_mount.map(Tt).filter(Xe);
|
|
250
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
251
|
+
}), i.forEach($e);
|
|
223
252
|
}
|
|
224
|
-
function
|
|
253
|
+
function Sr(e, t) {
|
|
225
254
|
const r = e.$$;
|
|
226
|
-
r.fragment !== null && (
|
|
255
|
+
r.fragment !== null && (Br(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
227
256
|
}
|
|
228
|
-
function
|
|
229
|
-
e.$$.dirty[0] === -1 && (
|
|
257
|
+
function Ar(e, t) {
|
|
258
|
+
e.$$.dirty[0] === -1 && (F.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
230
259
|
}
|
|
231
|
-
function
|
|
232
|
-
const l =
|
|
233
|
-
|
|
234
|
-
const
|
|
260
|
+
function Cr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
261
|
+
const l = We;
|
|
262
|
+
K(e);
|
|
263
|
+
const u = e.$$ = {
|
|
235
264
|
fragment: null,
|
|
236
265
|
ctx: [],
|
|
237
266
|
// state
|
|
238
267
|
props: s,
|
|
239
|
-
update:
|
|
268
|
+
update: T,
|
|
240
269
|
not_equal: i,
|
|
241
|
-
bound:
|
|
270
|
+
bound: tt(),
|
|
242
271
|
// lifecycle
|
|
243
272
|
on_mount: [],
|
|
244
273
|
on_destroy: [],
|
|
@@ -247,146 +276,150 @@ function _r(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
247
276
|
after_update: [],
|
|
248
277
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
249
278
|
// everything else
|
|
250
|
-
callbacks:
|
|
251
|
-
dirty:
|
|
279
|
+
callbacks: tt(),
|
|
280
|
+
dirty: a,
|
|
252
281
|
skip_bound: !1,
|
|
253
282
|
root: t.target || l.$$.root
|
|
254
283
|
};
|
|
255
|
-
|
|
284
|
+
o && o(u.root);
|
|
256
285
|
let h = !1;
|
|
257
|
-
if (
|
|
286
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
258
287
|
const m = d.length ? d[0] : c;
|
|
259
|
-
return
|
|
260
|
-
}) : [],
|
|
288
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Ar(e, f)), c;
|
|
289
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
261
290
|
if (t.hydrate) {
|
|
262
|
-
const f =
|
|
263
|
-
|
|
291
|
+
const f = _r(t.target);
|
|
292
|
+
u.fragment && u.fragment.l(f), f.forEach(P);
|
|
264
293
|
} else
|
|
265
|
-
|
|
266
|
-
t.intro &&
|
|
294
|
+
u.fragment && u.fragment.c();
|
|
295
|
+
t.intro && he(e.$$.fragment), wr(e, t.target, t.anchor), A();
|
|
267
296
|
}
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
let
|
|
271
|
-
typeof HTMLElement == "function" && (
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
297
|
+
K(l);
|
|
298
|
+
}
|
|
299
|
+
let Pt;
|
|
300
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
301
|
+
constructor(t, r, n) {
|
|
302
|
+
super();
|
|
303
|
+
/** The Svelte component constructor */
|
|
304
|
+
B(this, "$$ctor");
|
|
305
|
+
/** Slots */
|
|
306
|
+
B(this, "$$s");
|
|
307
|
+
/** The Svelte component instance */
|
|
308
|
+
B(this, "$$c");
|
|
309
|
+
/** Whether or not the custom element is connected */
|
|
310
|
+
B(this, "$$cn", !1);
|
|
311
|
+
/** Component props data */
|
|
312
|
+
B(this, "$$d", {});
|
|
313
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
314
|
+
B(this, "$$r", !1);
|
|
315
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
316
|
+
B(this, "$$p_d", {});
|
|
317
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
318
|
+
B(this, "$$l", {});
|
|
319
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
320
|
+
B(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
321
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
292
322
|
}
|
|
293
|
-
addEventListener(
|
|
294
|
-
if (this.$$l[
|
|
295
|
-
const
|
|
296
|
-
this.$$l_u.set(
|
|
323
|
+
addEventListener(t, r, n) {
|
|
324
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
325
|
+
const i = this.$$c.$on(t, r);
|
|
326
|
+
this.$$l_u.set(r, i);
|
|
297
327
|
}
|
|
298
|
-
super.addEventListener(
|
|
328
|
+
super.addEventListener(t, r, n);
|
|
299
329
|
}
|
|
300
|
-
removeEventListener(
|
|
301
|
-
if (super.removeEventListener(
|
|
302
|
-
const
|
|
303
|
-
|
|
330
|
+
removeEventListener(t, r, n) {
|
|
331
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
332
|
+
const i = this.$$l_u.get(r);
|
|
333
|
+
i && (i(), this.$$l_u.delete(r));
|
|
304
334
|
}
|
|
305
335
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
336
|
+
connectedCallback() {
|
|
337
|
+
return et(this, null, function* () {
|
|
338
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
339
|
+
let t = function(s) {
|
|
340
|
+
return () => {
|
|
341
|
+
let o;
|
|
342
|
+
return {
|
|
343
|
+
c: function() {
|
|
344
|
+
o = W("slot"), s !== "default" && Z(o, "name", s);
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* @param {HTMLElement} target
|
|
348
|
+
* @param {HTMLElement} [anchor]
|
|
349
|
+
*/
|
|
350
|
+
m: function(u, h) {
|
|
351
|
+
M(u, o, h);
|
|
352
|
+
},
|
|
353
|
+
d: function(u) {
|
|
354
|
+
u && P(o);
|
|
355
|
+
}
|
|
356
|
+
};
|
|
325
357
|
};
|
|
326
358
|
};
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
s in this.$$d || (this.$$d[s] = he(s, i.value, this.$$p_d, "toProp"));
|
|
336
|
-
}
|
|
337
|
-
for (const i in this.$$p_d)
|
|
338
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
339
|
-
this.$$c = new this.$$ctor({
|
|
340
|
-
target: this.shadowRoot || this,
|
|
341
|
-
props: {
|
|
342
|
-
...this.$$d,
|
|
343
|
-
$$slots: t,
|
|
344
|
-
$$scope: {
|
|
345
|
-
ctx: []
|
|
346
|
-
}
|
|
359
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
360
|
+
return;
|
|
361
|
+
const r = {}, n = Er(this);
|
|
362
|
+
for (const s of this.$$s)
|
|
363
|
+
s in n && (r[s] = [t(s)]);
|
|
364
|
+
for (const s of this.attributes) {
|
|
365
|
+
const o = this.$$g_p(s.name);
|
|
366
|
+
o in this.$$d || (this.$$d[o] = le(o, s.value, this.$$p_d, "toProp"));
|
|
347
367
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
this.$$
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
368
|
+
for (const s in this.$$p_d)
|
|
369
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
370
|
+
this.$$c = new this.$$ctor({
|
|
371
|
+
target: this.shadowRoot || this,
|
|
372
|
+
props: Ke(Ye({}, this.$$d), {
|
|
373
|
+
$$slots: r,
|
|
374
|
+
$$scope: {
|
|
375
|
+
ctx: []
|
|
376
|
+
}
|
|
377
|
+
})
|
|
378
|
+
});
|
|
379
|
+
const i = () => {
|
|
380
|
+
this.$$r = !0;
|
|
381
|
+
for (const s in this.$$p_d)
|
|
382
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
383
|
+
const o = le(
|
|
384
|
+
s,
|
|
385
|
+
this.$$d[s],
|
|
386
|
+
this.$$p_d,
|
|
387
|
+
"toAttribute"
|
|
388
|
+
);
|
|
389
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
390
|
+
}
|
|
391
|
+
this.$$r = !1;
|
|
392
|
+
};
|
|
393
|
+
this.$$c.$$.after_update.push(i), i();
|
|
394
|
+
for (const s in this.$$l)
|
|
395
|
+
for (const o of this.$$l[s]) {
|
|
396
|
+
const a = this.$$c.$on(s, o);
|
|
397
|
+
this.$$l_u.set(o, a);
|
|
360
398
|
}
|
|
361
|
-
this.$$
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
for (const i in this.$$l)
|
|
365
|
-
for (const s of this.$$l[i]) {
|
|
366
|
-
const u = this.$$c.$on(i, s);
|
|
367
|
-
this.$$l_u.set(s, u);
|
|
368
|
-
}
|
|
369
|
-
this.$$l = {};
|
|
370
|
-
}
|
|
399
|
+
this.$$l = {};
|
|
400
|
+
}
|
|
401
|
+
});
|
|
371
402
|
}
|
|
372
403
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
373
404
|
// and setting attributes through setAttribute etc, this is helpful
|
|
374
|
-
attributeChangedCallback(
|
|
375
|
-
|
|
405
|
+
attributeChangedCallback(t, r, n) {
|
|
406
|
+
var i;
|
|
407
|
+
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] }));
|
|
376
408
|
}
|
|
377
409
|
disconnectedCallback() {
|
|
378
410
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
379
411
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
380
412
|
});
|
|
381
413
|
}
|
|
382
|
-
$$g_p(
|
|
414
|
+
$$g_p(t) {
|
|
383
415
|
return Object.keys(this.$$p_d).find(
|
|
384
|
-
(
|
|
385
|
-
) ||
|
|
416
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
417
|
+
) || t;
|
|
386
418
|
}
|
|
387
419
|
});
|
|
388
|
-
function
|
|
389
|
-
|
|
420
|
+
function le(e, t, r, n) {
|
|
421
|
+
var s;
|
|
422
|
+
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
390
423
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
391
424
|
return t;
|
|
392
425
|
if (n === "toAttribute")
|
|
@@ -397,7 +430,7 @@ function he(e, t, r, n) {
|
|
|
397
430
|
case "Boolean":
|
|
398
431
|
return t ? "" : null;
|
|
399
432
|
case "Number":
|
|
400
|
-
return t
|
|
433
|
+
return t == null ? null : t;
|
|
401
434
|
default:
|
|
402
435
|
return t;
|
|
403
436
|
}
|
|
@@ -414,55 +447,59 @@ function he(e, t, r, n) {
|
|
|
414
447
|
return t;
|
|
415
448
|
}
|
|
416
449
|
}
|
|
417
|
-
function
|
|
418
|
-
let
|
|
450
|
+
function Or(e, t, r, n, i, s) {
|
|
451
|
+
let o = class extends Pt {
|
|
419
452
|
constructor() {
|
|
420
453
|
super(e, r, i), this.$$p_d = t;
|
|
421
454
|
}
|
|
422
455
|
static get observedAttributes() {
|
|
423
456
|
return Object.keys(t).map(
|
|
424
|
-
(
|
|
457
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
425
458
|
);
|
|
426
459
|
}
|
|
427
460
|
};
|
|
428
|
-
return Object.keys(t).forEach((
|
|
429
|
-
Object.defineProperty(
|
|
461
|
+
return Object.keys(t).forEach((a) => {
|
|
462
|
+
Object.defineProperty(o.prototype, a, {
|
|
430
463
|
get() {
|
|
431
|
-
return this.$$c &&
|
|
464
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
432
465
|
},
|
|
433
466
|
set(l) {
|
|
434
|
-
|
|
467
|
+
var u;
|
|
468
|
+
l = le(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
435
469
|
}
|
|
436
470
|
});
|
|
437
|
-
}), n.forEach((
|
|
438
|
-
Object.defineProperty(
|
|
471
|
+
}), n.forEach((a) => {
|
|
472
|
+
Object.defineProperty(o.prototype, a, {
|
|
439
473
|
get() {
|
|
440
|
-
|
|
474
|
+
var l;
|
|
475
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
441
476
|
}
|
|
442
477
|
});
|
|
443
478
|
}), e.element = /** @type {any} */
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
class
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
479
|
+
o, o;
|
|
480
|
+
}
|
|
481
|
+
class Pr {
|
|
482
|
+
constructor() {
|
|
483
|
+
/**
|
|
484
|
+
* ### PRIVATE API
|
|
485
|
+
*
|
|
486
|
+
* Do not use, may change at any time
|
|
487
|
+
*
|
|
488
|
+
* @type {any}
|
|
489
|
+
*/
|
|
490
|
+
B(this, "$$");
|
|
491
|
+
/**
|
|
492
|
+
* ### PRIVATE API
|
|
493
|
+
*
|
|
494
|
+
* Do not use, may change at any time
|
|
495
|
+
*
|
|
496
|
+
* @type {any}
|
|
497
|
+
*/
|
|
498
|
+
B(this, "$$set");
|
|
499
|
+
}
|
|
463
500
|
/** @returns {void} */
|
|
464
501
|
$destroy() {
|
|
465
|
-
|
|
502
|
+
Sr(this, 1), this.$destroy = T;
|
|
466
503
|
}
|
|
467
504
|
/**
|
|
468
505
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -471,8 +508,8 @@ class Er {
|
|
|
471
508
|
* @returns {() => void}
|
|
472
509
|
*/
|
|
473
510
|
$on(t, r) {
|
|
474
|
-
if (!
|
|
475
|
-
return
|
|
511
|
+
if (!Xe(r))
|
|
512
|
+
return T;
|
|
476
513
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
477
514
|
return n.push(r), () => {
|
|
478
515
|
const i = n.indexOf(r);
|
|
@@ -484,63 +521,63 @@ class Er {
|
|
|
484
521
|
* @returns {void}
|
|
485
522
|
*/
|
|
486
523
|
$set(t) {
|
|
487
|
-
this.$$set && !
|
|
524
|
+
this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
488
525
|
}
|
|
489
526
|
}
|
|
490
|
-
const
|
|
491
|
-
typeof window
|
|
492
|
-
const
|
|
493
|
-
function
|
|
527
|
+
const Lr = "4";
|
|
528
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
529
|
+
const G = [];
|
|
530
|
+
function Nr(e, t) {
|
|
494
531
|
return {
|
|
495
|
-
subscribe:
|
|
532
|
+
subscribe: ge(e, t).subscribe
|
|
496
533
|
};
|
|
497
534
|
}
|
|
498
|
-
function
|
|
535
|
+
function ge(e, t = T) {
|
|
499
536
|
let r;
|
|
500
537
|
const n = /* @__PURE__ */ new Set();
|
|
501
|
-
function i(
|
|
502
|
-
if (
|
|
503
|
-
const l = !
|
|
504
|
-
for (const
|
|
505
|
-
|
|
538
|
+
function i(a) {
|
|
539
|
+
if (wt(e, a) && (e = a, r)) {
|
|
540
|
+
const l = !G.length;
|
|
541
|
+
for (const u of n)
|
|
542
|
+
u[1](), G.push(u, e);
|
|
506
543
|
if (l) {
|
|
507
|
-
for (let
|
|
508
|
-
|
|
509
|
-
|
|
544
|
+
for (let u = 0; u < G.length; u += 2)
|
|
545
|
+
G[u][0](G[u + 1]);
|
|
546
|
+
G.length = 0;
|
|
510
547
|
}
|
|
511
548
|
}
|
|
512
549
|
}
|
|
513
|
-
function s(
|
|
514
|
-
i(
|
|
550
|
+
function s(a) {
|
|
551
|
+
i(a(e));
|
|
515
552
|
}
|
|
516
|
-
function
|
|
517
|
-
const
|
|
518
|
-
return n.add(
|
|
519
|
-
n.delete(
|
|
553
|
+
function o(a, l = T) {
|
|
554
|
+
const u = [a, l];
|
|
555
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), a(e), () => {
|
|
556
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
520
557
|
};
|
|
521
558
|
}
|
|
522
|
-
return { set: i, update: s, subscribe:
|
|
559
|
+
return { set: i, update: s, subscribe: o };
|
|
523
560
|
}
|
|
524
|
-
function
|
|
561
|
+
function Q(e, t, r) {
|
|
525
562
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
526
563
|
if (!i.every(Boolean))
|
|
527
564
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
528
565
|
const s = t.length < 2;
|
|
529
|
-
return
|
|
566
|
+
return Nr(r, (o, a) => {
|
|
530
567
|
let l = !1;
|
|
531
|
-
const
|
|
532
|
-
let h = 0, f =
|
|
568
|
+
const u = [];
|
|
569
|
+
let h = 0, f = T;
|
|
533
570
|
const c = () => {
|
|
534
571
|
if (h)
|
|
535
572
|
return;
|
|
536
573
|
f();
|
|
537
|
-
const m = t(n ?
|
|
538
|
-
s ?
|
|
574
|
+
const m = t(n ? u[0] : u, o, a);
|
|
575
|
+
s ? o(m) : f = Xe(m) ? m : T;
|
|
539
576
|
}, d = i.map(
|
|
540
|
-
(m, g) =>
|
|
577
|
+
(m, g) => St(
|
|
541
578
|
m,
|
|
542
579
|
(v) => {
|
|
543
|
-
|
|
580
|
+
u[g] = v, h &= ~(1 << g), l && c();
|
|
544
581
|
},
|
|
545
582
|
() => {
|
|
546
583
|
h |= 1 << g;
|
|
@@ -548,95 +585,95 @@ function Z(e, t, r) {
|
|
|
548
585
|
)
|
|
549
586
|
);
|
|
550
587
|
return l = !0, c(), function() {
|
|
551
|
-
|
|
588
|
+
re(d), f(), l = !1;
|
|
552
589
|
};
|
|
553
590
|
});
|
|
554
591
|
}
|
|
555
|
-
function
|
|
592
|
+
function Ir(e) {
|
|
556
593
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
557
594
|
}
|
|
558
|
-
var
|
|
559
|
-
return
|
|
595
|
+
var Mr = function(t) {
|
|
596
|
+
return $r(t) && !Rr(t);
|
|
560
597
|
};
|
|
561
|
-
function
|
|
598
|
+
function $r(e) {
|
|
562
599
|
return !!e && typeof e == "object";
|
|
563
600
|
}
|
|
564
|
-
function
|
|
601
|
+
function Rr(e) {
|
|
565
602
|
var t = Object.prototype.toString.call(e);
|
|
566
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
603
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
|
|
567
604
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
570
|
-
return e.$$typeof ===
|
|
605
|
+
var Ur = typeof Symbol == "function" && Symbol.for, Dr = Ur ? Symbol.for("react.element") : 60103;
|
|
606
|
+
function Gr(e) {
|
|
607
|
+
return e.$$typeof === Dr;
|
|
571
608
|
}
|
|
572
|
-
function
|
|
609
|
+
function Fr(e) {
|
|
573
610
|
return Array.isArray(e) ? [] : {};
|
|
574
611
|
}
|
|
575
|
-
function
|
|
576
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
612
|
+
function ee(e, t) {
|
|
613
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Fr(e), e, t) : e;
|
|
577
614
|
}
|
|
578
|
-
function
|
|
615
|
+
function jr(e, t, r) {
|
|
579
616
|
return e.concat(t).map(function(n) {
|
|
580
|
-
return
|
|
617
|
+
return ee(n, r);
|
|
581
618
|
});
|
|
582
619
|
}
|
|
583
|
-
function
|
|
620
|
+
function kr(e, t) {
|
|
584
621
|
if (!t.customMerge)
|
|
585
|
-
return
|
|
622
|
+
return k;
|
|
586
623
|
var r = t.customMerge(e);
|
|
587
|
-
return typeof r == "function" ? r :
|
|
624
|
+
return typeof r == "function" ? r : k;
|
|
588
625
|
}
|
|
589
|
-
function
|
|
626
|
+
function Vr(e) {
|
|
590
627
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
591
628
|
return Object.propertyIsEnumerable.call(e, t);
|
|
592
629
|
}) : [];
|
|
593
630
|
}
|
|
594
|
-
function
|
|
595
|
-
return Object.keys(e).concat(
|
|
631
|
+
function it(e) {
|
|
632
|
+
return Object.keys(e).concat(Vr(e));
|
|
596
633
|
}
|
|
597
|
-
function
|
|
634
|
+
function Lt(e, t) {
|
|
598
635
|
try {
|
|
599
636
|
return t in e;
|
|
600
|
-
} catch {
|
|
637
|
+
} catch (r) {
|
|
601
638
|
return !1;
|
|
602
639
|
}
|
|
603
640
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
641
|
+
function Xr(e, t) {
|
|
642
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
606
643
|
}
|
|
607
|
-
function
|
|
644
|
+
function zr(e, t, r) {
|
|
608
645
|
var n = {};
|
|
609
|
-
return r.isMergeableObject(e) &&
|
|
610
|
-
n[i] =
|
|
611
|
-
}),
|
|
612
|
-
|
|
646
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
647
|
+
n[i] = ee(e[i], r);
|
|
648
|
+
}), it(t).forEach(function(i) {
|
|
649
|
+
Xr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = kr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
613
650
|
}), n;
|
|
614
651
|
}
|
|
615
|
-
function
|
|
616
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
652
|
+
function k(e, t, r) {
|
|
653
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || Mr, r.cloneUnlessOtherwiseSpecified = ee;
|
|
617
654
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
618
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
655
|
+
return s ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : ee(t, r);
|
|
619
656
|
}
|
|
620
|
-
|
|
657
|
+
k.all = function(t, r) {
|
|
621
658
|
if (!Array.isArray(t))
|
|
622
659
|
throw new Error("first argument should be an array");
|
|
623
660
|
return t.reduce(function(n, i) {
|
|
624
|
-
return
|
|
661
|
+
return k(n, i, r);
|
|
625
662
|
}, {});
|
|
626
663
|
};
|
|
627
|
-
var
|
|
628
|
-
const
|
|
629
|
-
var
|
|
630
|
-
return
|
|
664
|
+
var Wr = k, Zr = Wr;
|
|
665
|
+
const Qr = /* @__PURE__ */ Ir(Zr);
|
|
666
|
+
var Re = function(e, t) {
|
|
667
|
+
return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
631
668
|
r.__proto__ = n;
|
|
632
669
|
} || function(r, n) {
|
|
633
670
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
634
|
-
},
|
|
671
|
+
}, Re(e, t);
|
|
635
672
|
};
|
|
636
|
-
function
|
|
673
|
+
function _e(e, t) {
|
|
637
674
|
if (typeof t != "function" && t !== null)
|
|
638
675
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
639
|
-
|
|
676
|
+
Re(e, t);
|
|
640
677
|
function r() {
|
|
641
678
|
this.constructor = e;
|
|
642
679
|
}
|
|
@@ -651,7 +688,7 @@ var y = function() {
|
|
|
651
688
|
return t;
|
|
652
689
|
}, y.apply(this, arguments);
|
|
653
690
|
};
|
|
654
|
-
function
|
|
691
|
+
function qr(e, t) {
|
|
655
692
|
var r = {};
|
|
656
693
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
657
694
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -659,45 +696,45 @@ function Dr(e, t) {
|
|
|
659
696
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
660
697
|
return r;
|
|
661
698
|
}
|
|
662
|
-
function
|
|
699
|
+
function Ae(e, t, r) {
|
|
663
700
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
664
701
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
665
702
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
666
703
|
}
|
|
667
|
-
function
|
|
668
|
-
var r = t && t.cache ? t.cache :
|
|
704
|
+
function Ce(e, t) {
|
|
705
|
+
var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : tn, i = t && t.strategy ? t.strategy : Yr;
|
|
669
706
|
return i(e, {
|
|
670
707
|
cache: r,
|
|
671
708
|
serializer: n
|
|
672
709
|
});
|
|
673
710
|
}
|
|
674
|
-
function
|
|
711
|
+
function Jr(e) {
|
|
675
712
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
676
713
|
}
|
|
677
|
-
function
|
|
678
|
-
var i =
|
|
679
|
-
return typeof s
|
|
714
|
+
function Nt(e, t, r, n) {
|
|
715
|
+
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
716
|
+
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
680
717
|
}
|
|
681
|
-
function
|
|
718
|
+
function It(e, t, r) {
|
|
682
719
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
683
|
-
return typeof s
|
|
720
|
+
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
684
721
|
}
|
|
685
|
-
function
|
|
722
|
+
function Ze(e, t, r, n, i) {
|
|
686
723
|
return r.bind(t, e, n, i);
|
|
687
724
|
}
|
|
688
|
-
function
|
|
689
|
-
var r = e.length === 1 ?
|
|
690
|
-
return
|
|
725
|
+
function Yr(e, t) {
|
|
726
|
+
var r = e.length === 1 ? Nt : It;
|
|
727
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
691
728
|
}
|
|
692
|
-
function
|
|
693
|
-
return
|
|
729
|
+
function Kr(e, t) {
|
|
730
|
+
return Ze(e, this, It, t.cache.create(), t.serializer);
|
|
694
731
|
}
|
|
695
|
-
function
|
|
696
|
-
return
|
|
732
|
+
function en(e, t) {
|
|
733
|
+
return Ze(e, this, Nt, t.cache.create(), t.serializer);
|
|
697
734
|
}
|
|
698
|
-
var
|
|
735
|
+
var tn = function() {
|
|
699
736
|
return JSON.stringify(arguments);
|
|
700
|
-
},
|
|
737
|
+
}, rn = (
|
|
701
738
|
/** @class */
|
|
702
739
|
function() {
|
|
703
740
|
function e() {
|
|
@@ -709,13 +746,13 @@ var Vr = function() {
|
|
|
709
746
|
this.cache[t] = r;
|
|
710
747
|
}, e;
|
|
711
748
|
}()
|
|
712
|
-
),
|
|
749
|
+
), nn = {
|
|
713
750
|
create: function() {
|
|
714
|
-
return new
|
|
751
|
+
return new rn();
|
|
715
752
|
}
|
|
716
|
-
},
|
|
717
|
-
variadic:
|
|
718
|
-
monadic:
|
|
753
|
+
}, Oe = {
|
|
754
|
+
variadic: Kr,
|
|
755
|
+
monadic: en
|
|
719
756
|
}, p;
|
|
720
757
|
(function(e) {
|
|
721
758
|
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";
|
|
@@ -724,47 +761,47 @@ var E;
|
|
|
724
761
|
(function(e) {
|
|
725
762
|
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";
|
|
726
763
|
})(E || (E = {}));
|
|
727
|
-
var
|
|
764
|
+
var V;
|
|
728
765
|
(function(e) {
|
|
729
766
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
730
|
-
})(
|
|
731
|
-
function
|
|
767
|
+
})(V || (V = {}));
|
|
768
|
+
function st(e) {
|
|
732
769
|
return e.type === E.literal;
|
|
733
770
|
}
|
|
734
|
-
function
|
|
771
|
+
function sn(e) {
|
|
735
772
|
return e.type === E.argument;
|
|
736
773
|
}
|
|
737
|
-
function
|
|
774
|
+
function Mt(e) {
|
|
738
775
|
return e.type === E.number;
|
|
739
776
|
}
|
|
740
|
-
function
|
|
777
|
+
function $t(e) {
|
|
741
778
|
return e.type === E.date;
|
|
742
779
|
}
|
|
743
|
-
function
|
|
780
|
+
function Rt(e) {
|
|
744
781
|
return e.type === E.time;
|
|
745
782
|
}
|
|
746
|
-
function
|
|
783
|
+
function Ut(e) {
|
|
747
784
|
return e.type === E.select;
|
|
748
785
|
}
|
|
749
|
-
function
|
|
786
|
+
function Dt(e) {
|
|
750
787
|
return e.type === E.plural;
|
|
751
788
|
}
|
|
752
|
-
function
|
|
789
|
+
function on(e) {
|
|
753
790
|
return e.type === E.pound;
|
|
754
791
|
}
|
|
755
|
-
function
|
|
792
|
+
function Gt(e) {
|
|
756
793
|
return e.type === E.tag;
|
|
757
794
|
}
|
|
758
|
-
function
|
|
759
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
795
|
+
function Ft(e) {
|
|
796
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
760
797
|
}
|
|
761
|
-
function
|
|
762
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
798
|
+
function Ue(e) {
|
|
799
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
763
800
|
}
|
|
764
|
-
var
|
|
765
|
-
function
|
|
801
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
|
|
802
|
+
function un(e) {
|
|
766
803
|
var t = {};
|
|
767
|
-
return e.replace(
|
|
804
|
+
return e.replace(an, function(r) {
|
|
768
805
|
var n = r.length;
|
|
769
806
|
switch (r[0]) {
|
|
770
807
|
case "G":
|
|
@@ -853,36 +890,36 @@ function qr(e) {
|
|
|
853
890
|
return "";
|
|
854
891
|
}), t;
|
|
855
892
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
893
|
+
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
894
|
+
function ln(e) {
|
|
858
895
|
if (e.length === 0)
|
|
859
896
|
throw new Error("Number skeleton cannot be empty");
|
|
860
|
-
for (var t = e.split(
|
|
897
|
+
for (var t = e.split(hn).filter(function(c) {
|
|
861
898
|
return c.length > 0;
|
|
862
899
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
863
|
-
var s = i[n],
|
|
864
|
-
if (
|
|
900
|
+
var s = i[n], o = s.split("/");
|
|
901
|
+
if (o.length === 0)
|
|
865
902
|
throw new Error("Invalid number skeleton");
|
|
866
|
-
for (var
|
|
867
|
-
var f = h[
|
|
903
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
904
|
+
var f = h[u];
|
|
868
905
|
if (f.length === 0)
|
|
869
906
|
throw new Error("Invalid number skeleton");
|
|
870
907
|
}
|
|
871
|
-
r.push({ stem:
|
|
908
|
+
r.push({ stem: a, options: l });
|
|
872
909
|
}
|
|
873
910
|
return r;
|
|
874
911
|
}
|
|
875
|
-
function
|
|
912
|
+
function fn(e) {
|
|
876
913
|
return e.replace(/^(.*?)-/, "");
|
|
877
914
|
}
|
|
878
|
-
var
|
|
879
|
-
function
|
|
915
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
916
|
+
function at(e) {
|
|
880
917
|
var t = {};
|
|
881
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
918
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
882
919
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
883
920
|
}), t;
|
|
884
921
|
}
|
|
885
|
-
function
|
|
922
|
+
function Xt(e) {
|
|
886
923
|
switch (e) {
|
|
887
924
|
case "sign-auto":
|
|
888
925
|
return {
|
|
@@ -922,7 +959,7 @@ function Dt(e) {
|
|
|
922
959
|
};
|
|
923
960
|
}
|
|
924
961
|
}
|
|
925
|
-
function
|
|
962
|
+
function mn(e) {
|
|
926
963
|
var t;
|
|
927
964
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
928
965
|
notation: "engineering"
|
|
@@ -930,17 +967,17 @@ function tn(e) {
|
|
|
930
967
|
notation: "scientific"
|
|
931
968
|
}, e = e.slice(1)), t) {
|
|
932
969
|
var r = e.slice(0, 2);
|
|
933
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
970
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
934
971
|
throw new Error("Malformed concise eng/scientific notation");
|
|
935
972
|
t.minimumIntegerDigits = e.length;
|
|
936
973
|
}
|
|
937
974
|
return t;
|
|
938
975
|
}
|
|
939
|
-
function
|
|
940
|
-
var t = {}, r =
|
|
976
|
+
function ut(e) {
|
|
977
|
+
var t = {}, r = Xt(e);
|
|
941
978
|
return r || t;
|
|
942
979
|
}
|
|
943
|
-
function
|
|
980
|
+
function dn(e) {
|
|
944
981
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
945
982
|
var i = n[r];
|
|
946
983
|
switch (i.stem) {
|
|
@@ -964,7 +1001,7 @@ function rn(e) {
|
|
|
964
1001
|
continue;
|
|
965
1002
|
case "measure-unit":
|
|
966
1003
|
case "unit":
|
|
967
|
-
t.style = "unit", t.unit =
|
|
1004
|
+
t.style = "unit", t.unit = fn(i.options[0]);
|
|
968
1005
|
continue;
|
|
969
1006
|
case "compact-short":
|
|
970
1007
|
case "K":
|
|
@@ -975,13 +1012,13 @@ function rn(e) {
|
|
|
975
1012
|
t.notation = "compact", t.compactDisplay = "long";
|
|
976
1013
|
continue;
|
|
977
1014
|
case "scientific":
|
|
978
|
-
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
979
|
-
return y(y({}, l),
|
|
1015
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1016
|
+
return y(y({}, l), ut(u));
|
|
980
1017
|
}, {}));
|
|
981
1018
|
continue;
|
|
982
1019
|
case "engineering":
|
|
983
|
-
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
984
|
-
return y(y({}, l),
|
|
1020
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1021
|
+
return y(y({}, l), ut(u));
|
|
985
1022
|
}, {}));
|
|
986
1023
|
continue;
|
|
987
1024
|
case "notation-simple":
|
|
@@ -1026,8 +1063,8 @@ function rn(e) {
|
|
|
1026
1063
|
case "integer-width":
|
|
1027
1064
|
if (i.options.length > 1)
|
|
1028
1065
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1029
|
-
i.options[0].replace(
|
|
1030
|
-
if (
|
|
1066
|
+
i.options[0].replace(cn, function(l, u, h, f, c, d) {
|
|
1067
|
+
if (u)
|
|
1031
1068
|
t.minimumIntegerDigits = h.length;
|
|
1032
1069
|
else {
|
|
1033
1070
|
if (f && c)
|
|
@@ -1039,32 +1076,32 @@ function rn(e) {
|
|
|
1039
1076
|
});
|
|
1040
1077
|
continue;
|
|
1041
1078
|
}
|
|
1042
|
-
if (
|
|
1079
|
+
if (Vt.test(i.stem)) {
|
|
1043
1080
|
t.minimumIntegerDigits = i.stem.length;
|
|
1044
1081
|
continue;
|
|
1045
1082
|
}
|
|
1046
|
-
if (
|
|
1083
|
+
if (ot.test(i.stem)) {
|
|
1047
1084
|
if (i.options.length > 1)
|
|
1048
1085
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1049
|
-
i.stem.replace(
|
|
1050
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1086
|
+
i.stem.replace(ot, function(l, u, h, f, c, d) {
|
|
1087
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1051
1088
|
});
|
|
1052
1089
|
var s = i.options[0];
|
|
1053
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1090
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), at(s)));
|
|
1054
1091
|
continue;
|
|
1055
1092
|
}
|
|
1056
|
-
if (
|
|
1057
|
-
t = y(y({}, t),
|
|
1093
|
+
if (kt.test(i.stem)) {
|
|
1094
|
+
t = y(y({}, t), at(i.stem));
|
|
1058
1095
|
continue;
|
|
1059
1096
|
}
|
|
1060
|
-
var
|
|
1061
|
-
u && (t = y(y({}, t), u));
|
|
1062
|
-
var o = tn(i.stem);
|
|
1097
|
+
var o = Xt(i.stem);
|
|
1063
1098
|
o && (t = y(y({}, t), o));
|
|
1099
|
+
var a = mn(i.stem);
|
|
1100
|
+
a && (t = y(y({}, t), a));
|
|
1064
1101
|
}
|
|
1065
1102
|
return t;
|
|
1066
1103
|
}
|
|
1067
|
-
var
|
|
1104
|
+
var ae = {
|
|
1068
1105
|
"001": [
|
|
1069
1106
|
"H",
|
|
1070
1107
|
"h"
|
|
@@ -2479,22 +2516,22 @@ var oe = {
|
|
|
2479
2516
|
"h"
|
|
2480
2517
|
]
|
|
2481
2518
|
};
|
|
2482
|
-
function
|
|
2519
|
+
function pn(e, t) {
|
|
2483
2520
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2484
2521
|
var i = e.charAt(n);
|
|
2485
2522
|
if (i === "j") {
|
|
2486
2523
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2487
2524
|
s++, n++;
|
|
2488
|
-
var
|
|
2489
|
-
for ((
|
|
2525
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = bn(t);
|
|
2526
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2490
2527
|
r += l;
|
|
2491
|
-
for (;
|
|
2492
|
-
r =
|
|
2528
|
+
for (; o-- > 0; )
|
|
2529
|
+
r = u + r;
|
|
2493
2530
|
} else i === "J" ? r += "H" : r += i;
|
|
2494
2531
|
}
|
|
2495
2532
|
return r;
|
|
2496
2533
|
}
|
|
2497
|
-
function
|
|
2534
|
+
function bn(e) {
|
|
2498
2535
|
var t = e.hourCycle;
|
|
2499
2536
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2500
2537
|
e.hourCycles && // @ts-ignore
|
|
@@ -2513,23 +2550,23 @@ function sn(e) {
|
|
|
2513
2550
|
}
|
|
2514
2551
|
var r = e.language, n;
|
|
2515
2552
|
r !== "root" && (n = e.maximize().region);
|
|
2516
|
-
var i =
|
|
2553
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2517
2554
|
return i[0];
|
|
2518
2555
|
}
|
|
2519
|
-
var
|
|
2556
|
+
var Pe, gn = new RegExp("^".concat(jt.source, "*")), _n = new RegExp("".concat(jt.source, "*$"));
|
|
2520
2557
|
function b(e, t) {
|
|
2521
2558
|
return { start: e, end: t };
|
|
2522
2559
|
}
|
|
2523
|
-
var
|
|
2560
|
+
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), En = !!String.fromCodePoint, xn = !!Object.fromEntries, vn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, wn = Tn ? Number.isSafeInteger : function(e) {
|
|
2524
2561
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2525
|
-
},
|
|
2562
|
+
}, De = !0;
|
|
2526
2563
|
try {
|
|
2527
|
-
var
|
|
2528
|
-
|
|
2529
|
-
} catch {
|
|
2530
|
-
|
|
2564
|
+
var Sn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2565
|
+
De = ((Pe = Sn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2566
|
+
} catch (e) {
|
|
2567
|
+
De = !1;
|
|
2531
2568
|
}
|
|
2532
|
-
var
|
|
2569
|
+
var ht = yn ? (
|
|
2533
2570
|
// Native
|
|
2534
2571
|
function(t, r, n) {
|
|
2535
2572
|
return t.startsWith(r, n);
|
|
@@ -2539,31 +2576,31 @@ var nt = un ? (
|
|
|
2539
2576
|
function(t, r, n) {
|
|
2540
2577
|
return t.slice(n, n + r.length) === r;
|
|
2541
2578
|
}
|
|
2542
|
-
),
|
|
2579
|
+
), Ge = En ? String.fromCodePoint : (
|
|
2543
2580
|
// IE11
|
|
2544
2581
|
function() {
|
|
2545
2582
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2546
2583
|
t[r] = arguments[r];
|
|
2547
|
-
for (var n = "", i = t.length, s = 0,
|
|
2548
|
-
if (
|
|
2549
|
-
throw RangeError(
|
|
2550
|
-
n +=
|
|
2584
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
2585
|
+
if (o = t[s++], o > 1114111)
|
|
2586
|
+
throw RangeError(o + " is not a valid code point");
|
|
2587
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2551
2588
|
}
|
|
2552
2589
|
return n;
|
|
2553
2590
|
}
|
|
2554
|
-
),
|
|
2591
|
+
), lt = (
|
|
2555
2592
|
// native
|
|
2556
|
-
|
|
2593
|
+
xn ? Object.fromEntries : (
|
|
2557
2594
|
// Ponyfill
|
|
2558
2595
|
function(t) {
|
|
2559
2596
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2560
|
-
var s = i[n],
|
|
2561
|
-
r[
|
|
2597
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2598
|
+
r[o] = a;
|
|
2562
2599
|
}
|
|
2563
2600
|
return r;
|
|
2564
2601
|
}
|
|
2565
2602
|
)
|
|
2566
|
-
),
|
|
2603
|
+
), zt = vn ? (
|
|
2567
2604
|
// Native
|
|
2568
2605
|
function(t, r) {
|
|
2569
2606
|
return t.codePointAt(r);
|
|
@@ -2577,7 +2614,7 @@ var nt = un ? (
|
|
|
2577
2614
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2578
2615
|
}
|
|
2579
2616
|
}
|
|
2580
|
-
),
|
|
2617
|
+
), An = Hn ? (
|
|
2581
2618
|
// Native
|
|
2582
2619
|
function(t) {
|
|
2583
2620
|
return t.trimStart();
|
|
@@ -2585,9 +2622,9 @@ var nt = un ? (
|
|
|
2585
2622
|
) : (
|
|
2586
2623
|
// Ponyfill
|
|
2587
2624
|
function(t) {
|
|
2588
|
-
return t.replace(
|
|
2625
|
+
return t.replace(gn, "");
|
|
2589
2626
|
}
|
|
2590
|
-
),
|
|
2627
|
+
), Cn = Bn ? (
|
|
2591
2628
|
// Native
|
|
2592
2629
|
function(t) {
|
|
2593
2630
|
return t.trimEnd();
|
|
@@ -2595,32 +2632,32 @@ var nt = un ? (
|
|
|
2595
2632
|
) : (
|
|
2596
2633
|
// Ponyfill
|
|
2597
2634
|
function(t) {
|
|
2598
|
-
return t.replace(
|
|
2635
|
+
return t.replace(_n, "");
|
|
2599
2636
|
}
|
|
2600
2637
|
);
|
|
2601
|
-
function
|
|
2638
|
+
function Wt(e, t) {
|
|
2602
2639
|
return new RegExp(e, t);
|
|
2603
2640
|
}
|
|
2604
|
-
var
|
|
2605
|
-
if (
|
|
2606
|
-
var
|
|
2607
|
-
|
|
2641
|
+
var Fe;
|
|
2642
|
+
if (De) {
|
|
2643
|
+
var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2644
|
+
Fe = function(t, r) {
|
|
2608
2645
|
var n;
|
|
2609
|
-
|
|
2610
|
-
var i =
|
|
2646
|
+
ft.lastIndex = r;
|
|
2647
|
+
var i = ft.exec(t);
|
|
2611
2648
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2612
2649
|
};
|
|
2613
2650
|
} else
|
|
2614
|
-
|
|
2651
|
+
Fe = function(t, r) {
|
|
2615
2652
|
for (var n = []; ; ) {
|
|
2616
|
-
var i =
|
|
2617
|
-
if (i === void 0 ||
|
|
2653
|
+
var i = zt(t, r);
|
|
2654
|
+
if (i === void 0 || Zt(i) || Nn(i))
|
|
2618
2655
|
break;
|
|
2619
2656
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2620
2657
|
}
|
|
2621
|
-
return
|
|
2658
|
+
return Ge.apply(void 0, n);
|
|
2622
2659
|
};
|
|
2623
|
-
var
|
|
2660
|
+
var On = (
|
|
2624
2661
|
/** @class */
|
|
2625
2662
|
function() {
|
|
2626
2663
|
function e(t, r) {
|
|
@@ -2634,33 +2671,33 @@ var yn = (
|
|
|
2634
2671
|
for (var i = []; !this.isEOF(); ) {
|
|
2635
2672
|
var s = this.char();
|
|
2636
2673
|
if (s === 123) {
|
|
2637
|
-
var
|
|
2638
|
-
if (
|
|
2639
|
-
return
|
|
2640
|
-
i.push(
|
|
2674
|
+
var o = this.parseArgument(t, n);
|
|
2675
|
+
if (o.err)
|
|
2676
|
+
return o;
|
|
2677
|
+
i.push(o.val);
|
|
2641
2678
|
} else {
|
|
2642
2679
|
if (s === 125 && t > 0)
|
|
2643
2680
|
break;
|
|
2644
2681
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2645
|
-
var
|
|
2682
|
+
var a = this.clonePosition();
|
|
2646
2683
|
this.bump(), i.push({
|
|
2647
2684
|
type: E.pound,
|
|
2648
|
-
location: b(
|
|
2685
|
+
location: b(a, this.clonePosition())
|
|
2649
2686
|
});
|
|
2650
2687
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2651
2688
|
if (n)
|
|
2652
2689
|
break;
|
|
2653
2690
|
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2654
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2655
|
-
var
|
|
2656
|
-
if (
|
|
2657
|
-
return
|
|
2658
|
-
i.push(
|
|
2691
|
+
} else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2692
|
+
var o = this.parseTag(t, r);
|
|
2693
|
+
if (o.err)
|
|
2694
|
+
return o;
|
|
2695
|
+
i.push(o.val);
|
|
2659
2696
|
} else {
|
|
2660
|
-
var
|
|
2661
|
-
if (
|
|
2662
|
-
return
|
|
2663
|
-
i.push(
|
|
2697
|
+
var o = this.parseLiteral(t, r);
|
|
2698
|
+
if (o.err)
|
|
2699
|
+
return o;
|
|
2700
|
+
i.push(o.val);
|
|
2664
2701
|
}
|
|
2665
2702
|
}
|
|
2666
2703
|
}
|
|
@@ -2682,27 +2719,27 @@ var yn = (
|
|
|
2682
2719
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2683
2720
|
if (s.err)
|
|
2684
2721
|
return s;
|
|
2685
|
-
var
|
|
2722
|
+
var o = s.val, a = this.clonePosition();
|
|
2686
2723
|
if (this.bumpIf("</")) {
|
|
2687
|
-
if (this.isEOF() || !
|
|
2688
|
-
return this.error(p.INVALID_TAG, b(
|
|
2689
|
-
var l = this.clonePosition(),
|
|
2690
|
-
return i !==
|
|
2724
|
+
if (this.isEOF() || !je(this.char()))
|
|
2725
|
+
return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
|
|
2726
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2727
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2691
2728
|
val: {
|
|
2692
2729
|
type: E.tag,
|
|
2693
2730
|
value: i,
|
|
2694
|
-
children:
|
|
2731
|
+
children: o,
|
|
2695
2732
|
location: b(n, this.clonePosition())
|
|
2696
2733
|
},
|
|
2697
2734
|
err: null
|
|
2698
|
-
} : this.error(p.INVALID_TAG, b(
|
|
2735
|
+
} : this.error(p.INVALID_TAG, b(a, this.clonePosition())));
|
|
2699
2736
|
} else
|
|
2700
2737
|
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2701
2738
|
} else
|
|
2702
2739
|
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2703
2740
|
}, e.prototype.parseTagName = function() {
|
|
2704
2741
|
var t = this.offset();
|
|
2705
|
-
for (this.bump(); !this.isEOF() &&
|
|
2742
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2706
2743
|
this.bump();
|
|
2707
2744
|
return this.message.slice(t, this.offset());
|
|
2708
2745
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2712,16 +2749,16 @@ var yn = (
|
|
|
2712
2749
|
i += s;
|
|
2713
2750
|
continue;
|
|
2714
2751
|
}
|
|
2715
|
-
var
|
|
2716
|
-
if (u) {
|
|
2717
|
-
i += u;
|
|
2718
|
-
continue;
|
|
2719
|
-
}
|
|
2720
|
-
var o = this.tryParseLeftAngleBracket();
|
|
2752
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2721
2753
|
if (o) {
|
|
2722
2754
|
i += o;
|
|
2723
2755
|
continue;
|
|
2724
2756
|
}
|
|
2757
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2758
|
+
if (a) {
|
|
2759
|
+
i += a;
|
|
2760
|
+
continue;
|
|
2761
|
+
}
|
|
2725
2762
|
break;
|
|
2726
2763
|
}
|
|
2727
2764
|
var l = b(n, this.clonePosition());
|
|
@@ -2731,7 +2768,7 @@ var yn = (
|
|
|
2731
2768
|
};
|
|
2732
2769
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2733
2770
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2734
|
-
!
|
|
2771
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2735
2772
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2736
2773
|
if (this.isEOF() || this.char() !== 39)
|
|
2737
2774
|
return null;
|
|
@@ -2765,12 +2802,12 @@ var yn = (
|
|
|
2765
2802
|
r.push(n);
|
|
2766
2803
|
this.bump();
|
|
2767
2804
|
}
|
|
2768
|
-
return
|
|
2805
|
+
return Ge.apply(void 0, r);
|
|
2769
2806
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2770
2807
|
if (this.isEOF())
|
|
2771
2808
|
return null;
|
|
2772
2809
|
var n = this.char();
|
|
2773
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2810
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2774
2811
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2775
2812
|
var n = this.clonePosition();
|
|
2776
2813
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2799,39 +2836,39 @@ var yn = (
|
|
|
2799
2836
|
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2800
2837
|
}
|
|
2801
2838
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2802
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2839
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2803
2840
|
this.bumpTo(i);
|
|
2804
|
-
var s = this.clonePosition(),
|
|
2805
|
-
return { value: n, location:
|
|
2841
|
+
var s = this.clonePosition(), o = b(t, s);
|
|
2842
|
+
return { value: n, location: o };
|
|
2806
2843
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2807
|
-
var s,
|
|
2808
|
-
switch (
|
|
2844
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2845
|
+
switch (a) {
|
|
2809
2846
|
case "":
|
|
2810
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, b(
|
|
2847
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(o, l));
|
|
2811
2848
|
case "number":
|
|
2812
2849
|
case "date":
|
|
2813
2850
|
case "time": {
|
|
2814
2851
|
this.bumpSpace();
|
|
2815
|
-
var
|
|
2852
|
+
var u = null;
|
|
2816
2853
|
if (this.bumpIf(",")) {
|
|
2817
2854
|
this.bumpSpace();
|
|
2818
2855
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2819
2856
|
if (f.err)
|
|
2820
2857
|
return f;
|
|
2821
|
-
var c =
|
|
2858
|
+
var c = Cn(f.val);
|
|
2822
2859
|
if (c.length === 0)
|
|
2823
2860
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2824
2861
|
var d = b(h, this.clonePosition());
|
|
2825
|
-
|
|
2862
|
+
u = { style: c, styleLocation: d };
|
|
2826
2863
|
}
|
|
2827
2864
|
var m = this.tryParseArgumentClose(i);
|
|
2828
2865
|
if (m.err)
|
|
2829
2866
|
return m;
|
|
2830
2867
|
var g = b(i, this.clonePosition());
|
|
2831
|
-
if (
|
|
2832
|
-
var v =
|
|
2833
|
-
if (
|
|
2834
|
-
var f = this.parseNumberSkeletonFromString(v,
|
|
2868
|
+
if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
2869
|
+
var v = An(u.style.slice(2));
|
|
2870
|
+
if (a === "number") {
|
|
2871
|
+
var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2835
2872
|
return f.err ? f : {
|
|
2836
2873
|
val: { type: E.number, value: n, location: g, style: f.val },
|
|
2837
2874
|
err: null
|
|
@@ -2839,26 +2876,26 @@ var yn = (
|
|
|
2839
2876
|
} else {
|
|
2840
2877
|
if (v.length === 0)
|
|
2841
2878
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2842
|
-
var
|
|
2843
|
-
this.locale && (
|
|
2879
|
+
var N = v;
|
|
2880
|
+
this.locale && (N = pn(v, this.locale));
|
|
2844
2881
|
var c = {
|
|
2845
|
-
type:
|
|
2846
|
-
pattern:
|
|
2847
|
-
location:
|
|
2848
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2849
|
-
},
|
|
2882
|
+
type: V.dateTime,
|
|
2883
|
+
pattern: N,
|
|
2884
|
+
location: u.styleLocation,
|
|
2885
|
+
parsedOptions: this.shouldParseSkeletons ? un(N) : {}
|
|
2886
|
+
}, C = a === "date" ? E.date : E.time;
|
|
2850
2887
|
return {
|
|
2851
|
-
val: { type:
|
|
2888
|
+
val: { type: C, value: n, location: g, style: c },
|
|
2852
2889
|
err: null
|
|
2853
2890
|
};
|
|
2854
2891
|
}
|
|
2855
2892
|
}
|
|
2856
2893
|
return {
|
|
2857
2894
|
val: {
|
|
2858
|
-
type:
|
|
2895
|
+
type: a === "number" ? E.number : a === "date" ? E.date : E.time,
|
|
2859
2896
|
value: n,
|
|
2860
2897
|
location: g,
|
|
2861
|
-
style: (s =
|
|
2898
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2862
2899
|
},
|
|
2863
2900
|
err: null
|
|
2864
2901
|
};
|
|
@@ -2870,45 +2907,45 @@ var yn = (
|
|
|
2870
2907
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2871
2908
|
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2872
2909
|
this.bumpSpace();
|
|
2873
|
-
var
|
|
2874
|
-
if (
|
|
2910
|
+
var I = this.parseIdentifierIfPossible(), w = 0;
|
|
2911
|
+
if (a !== "select" && I.value === "offset") {
|
|
2875
2912
|
if (!this.bumpIf(":"))
|
|
2876
2913
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2877
2914
|
this.bumpSpace();
|
|
2878
2915
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2879
2916
|
if (f.err)
|
|
2880
2917
|
return f;
|
|
2881
|
-
this.bumpSpace(),
|
|
2918
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), w = f.val;
|
|
2882
2919
|
}
|
|
2883
|
-
var
|
|
2884
|
-
if (
|
|
2885
|
-
return
|
|
2920
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
|
2921
|
+
if (R.err)
|
|
2922
|
+
return R;
|
|
2886
2923
|
var m = this.tryParseArgumentClose(i);
|
|
2887
2924
|
if (m.err)
|
|
2888
2925
|
return m;
|
|
2889
|
-
var
|
|
2890
|
-
return
|
|
2926
|
+
var se = b(i, this.clonePosition());
|
|
2927
|
+
return a === "select" ? {
|
|
2891
2928
|
val: {
|
|
2892
2929
|
type: E.select,
|
|
2893
2930
|
value: n,
|
|
2894
|
-
options:
|
|
2895
|
-
location:
|
|
2931
|
+
options: lt(R.val),
|
|
2932
|
+
location: se
|
|
2896
2933
|
},
|
|
2897
2934
|
err: null
|
|
2898
2935
|
} : {
|
|
2899
2936
|
val: {
|
|
2900
2937
|
type: E.plural,
|
|
2901
2938
|
value: n,
|
|
2902
|
-
options:
|
|
2903
|
-
offset:
|
|
2904
|
-
pluralType:
|
|
2905
|
-
location:
|
|
2939
|
+
options: lt(R.val),
|
|
2940
|
+
offset: w,
|
|
2941
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2942
|
+
location: se
|
|
2906
2943
|
},
|
|
2907
2944
|
err: null
|
|
2908
2945
|
};
|
|
2909
2946
|
}
|
|
2910
2947
|
default:
|
|
2911
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, b(
|
|
2948
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(o, l));
|
|
2912
2949
|
}
|
|
2913
2950
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2914
2951
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2950,34 +2987,34 @@ var yn = (
|
|
|
2950
2987
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2951
2988
|
var n = [];
|
|
2952
2989
|
try {
|
|
2953
|
-
n =
|
|
2954
|
-
} catch {
|
|
2990
|
+
n = ln(t);
|
|
2991
|
+
} catch (i) {
|
|
2955
2992
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2956
2993
|
}
|
|
2957
2994
|
return {
|
|
2958
2995
|
val: {
|
|
2959
|
-
type:
|
|
2996
|
+
type: V.number,
|
|
2960
2997
|
tokens: n,
|
|
2961
2998
|
location: r,
|
|
2962
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2999
|
+
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
2963
3000
|
},
|
|
2964
3001
|
err: null
|
|
2965
3002
|
};
|
|
2966
3003
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2967
|
-
for (var s,
|
|
2968
|
-
if (
|
|
3004
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3005
|
+
if (u.length === 0) {
|
|
2969
3006
|
var f = this.clonePosition();
|
|
2970
3007
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2971
3008
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2972
3009
|
if (c.err)
|
|
2973
3010
|
return c;
|
|
2974
|
-
h = b(f, this.clonePosition()),
|
|
3011
|
+
h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
2975
3012
|
} else
|
|
2976
3013
|
break;
|
|
2977
3014
|
}
|
|
2978
|
-
if (l.has(
|
|
3015
|
+
if (l.has(u))
|
|
2979
3016
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2980
|
-
|
|
3017
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
2981
3018
|
var d = this.clonePosition();
|
|
2982
3019
|
if (!this.bumpIf("{"))
|
|
2983
3020
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -2987,27 +3024,27 @@ var yn = (
|
|
|
2987
3024
|
var g = this.tryParseArgumentClose(d);
|
|
2988
3025
|
if (g.err)
|
|
2989
3026
|
return g;
|
|
2990
|
-
|
|
2991
|
-
|
|
3027
|
+
a.push([
|
|
3028
|
+
u,
|
|
2992
3029
|
{
|
|
2993
3030
|
value: m.val,
|
|
2994
3031
|
location: b(d, this.clonePosition())
|
|
2995
3032
|
}
|
|
2996
|
-
]), l.add(
|
|
3033
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2997
3034
|
}
|
|
2998
|
-
return
|
|
3035
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2999
3036
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3000
3037
|
var n = 1, i = this.clonePosition();
|
|
3001
3038
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3002
|
-
for (var s = !1,
|
|
3003
|
-
var
|
|
3004
|
-
if (
|
|
3005
|
-
s = !0,
|
|
3039
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3040
|
+
var a = this.char();
|
|
3041
|
+
if (a >= 48 && a <= 57)
|
|
3042
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3006
3043
|
else
|
|
3007
3044
|
break;
|
|
3008
3045
|
}
|
|
3009
3046
|
var l = b(i, this.clonePosition());
|
|
3010
|
-
return s ? (
|
|
3047
|
+
return s ? (o *= n, wn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3011
3048
|
}, e.prototype.offset = function() {
|
|
3012
3049
|
return this.position.offset;
|
|
3013
3050
|
}, e.prototype.isEOF = function() {
|
|
@@ -3022,7 +3059,7 @@ var yn = (
|
|
|
3022
3059
|
var t = this.position.offset;
|
|
3023
3060
|
if (t >= this.message.length)
|
|
3024
3061
|
throw Error("out of bound");
|
|
3025
|
-
var r =
|
|
3062
|
+
var r = zt(this.message, t);
|
|
3026
3063
|
if (r === void 0)
|
|
3027
3064
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3028
3065
|
return r;
|
|
@@ -3041,7 +3078,7 @@ var yn = (
|
|
|
3041
3078
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3042
3079
|
}
|
|
3043
3080
|
}, e.prototype.bumpIf = function(t) {
|
|
3044
|
-
if (
|
|
3081
|
+
if (ht(this.message, t, this.offset())) {
|
|
3045
3082
|
for (var r = 0; r < t.length; r++)
|
|
3046
3083
|
this.bump();
|
|
3047
3084
|
return !0;
|
|
@@ -3063,56 +3100,56 @@ var yn = (
|
|
|
3063
3100
|
break;
|
|
3064
3101
|
}
|
|
3065
3102
|
}, e.prototype.bumpSpace = function() {
|
|
3066
|
-
for (; !this.isEOF() &&
|
|
3103
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3067
3104
|
this.bump();
|
|
3068
3105
|
}, e.prototype.peek = function() {
|
|
3069
3106
|
if (this.isEOF())
|
|
3070
3107
|
return null;
|
|
3071
3108
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3072
|
-
return n
|
|
3109
|
+
return n != null ? n : null;
|
|
3073
3110
|
}, e;
|
|
3074
3111
|
}()
|
|
3075
3112
|
);
|
|
3076
|
-
function
|
|
3113
|
+
function je(e) {
|
|
3077
3114
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3078
3115
|
}
|
|
3079
|
-
function
|
|
3080
|
-
return
|
|
3116
|
+
function Pn(e) {
|
|
3117
|
+
return je(e) || e === 47;
|
|
3081
3118
|
}
|
|
3082
|
-
function
|
|
3119
|
+
function Ln(e) {
|
|
3083
3120
|
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;
|
|
3084
3121
|
}
|
|
3085
|
-
function
|
|
3122
|
+
function Zt(e) {
|
|
3086
3123
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3087
3124
|
}
|
|
3088
|
-
function
|
|
3125
|
+
function Nn(e) {
|
|
3089
3126
|
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;
|
|
3090
3127
|
}
|
|
3091
|
-
function
|
|
3128
|
+
function ke(e) {
|
|
3092
3129
|
e.forEach(function(t) {
|
|
3093
|
-
if (delete t.location,
|
|
3130
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3094
3131
|
for (var r in t.options)
|
|
3095
|
-
delete t.options[r].location,
|
|
3096
|
-
else
|
|
3132
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3133
|
+
else Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && Ue(t.style) ? delete t.style.location : Gt(t) && ke(t.children);
|
|
3097
3134
|
});
|
|
3098
3135
|
}
|
|
3099
|
-
function
|
|
3136
|
+
function In(e, t) {
|
|
3100
3137
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3101
|
-
var r = new
|
|
3138
|
+
var r = new On(e, t).parse();
|
|
3102
3139
|
if (r.err) {
|
|
3103
3140
|
var n = SyntaxError(p[r.err.kind]);
|
|
3104
3141
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3105
3142
|
}
|
|
3106
|
-
return t
|
|
3143
|
+
return t != null && t.captureLocation || ke(r.val), r.val;
|
|
3107
3144
|
}
|
|
3108
|
-
var
|
|
3145
|
+
var X;
|
|
3109
3146
|
(function(e) {
|
|
3110
3147
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3111
|
-
})(
|
|
3112
|
-
var
|
|
3148
|
+
})(X || (X = {}));
|
|
3149
|
+
var ye = (
|
|
3113
3150
|
/** @class */
|
|
3114
3151
|
function(e) {
|
|
3115
|
-
|
|
3152
|
+
_e(t, e);
|
|
3116
3153
|
function t(r, n, i) {
|
|
3117
3154
|
var s = e.call(this, r) || this;
|
|
3118
3155
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3121,65 +3158,65 @@ var _e = (
|
|
|
3121
3158
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3122
3159
|
}, t;
|
|
3123
3160
|
}(Error)
|
|
3124
|
-
),
|
|
3161
|
+
), ct = (
|
|
3125
3162
|
/** @class */
|
|
3126
3163
|
function(e) {
|
|
3127
|
-
|
|
3164
|
+
_e(t, e);
|
|
3128
3165
|
function t(r, n, i, s) {
|
|
3129
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3166
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
|
|
3130
3167
|
}
|
|
3131
3168
|
return t;
|
|
3132
|
-
}(
|
|
3133
|
-
),
|
|
3169
|
+
}(ye)
|
|
3170
|
+
), Mn = (
|
|
3134
3171
|
/** @class */
|
|
3135
3172
|
function(e) {
|
|
3136
|
-
|
|
3173
|
+
_e(t, e);
|
|
3137
3174
|
function t(r, n, i) {
|
|
3138
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3175
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3139
3176
|
}
|
|
3140
3177
|
return t;
|
|
3141
|
-
}(
|
|
3142
|
-
),
|
|
3178
|
+
}(ye)
|
|
3179
|
+
), $n = (
|
|
3143
3180
|
/** @class */
|
|
3144
3181
|
function(e) {
|
|
3145
|
-
|
|
3182
|
+
_e(t, e);
|
|
3146
3183
|
function t(r, n) {
|
|
3147
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3184
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3148
3185
|
}
|
|
3149
3186
|
return t;
|
|
3150
|
-
}(
|
|
3187
|
+
}(ye)
|
|
3151
3188
|
), x;
|
|
3152
3189
|
(function(e) {
|
|
3153
3190
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3154
3191
|
})(x || (x = {}));
|
|
3155
|
-
function
|
|
3192
|
+
function Rn(e) {
|
|
3156
3193
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3157
3194
|
var n = t[t.length - 1];
|
|
3158
3195
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3159
3196
|
}, []);
|
|
3160
3197
|
}
|
|
3161
|
-
function
|
|
3198
|
+
function Un(e) {
|
|
3162
3199
|
return typeof e == "function";
|
|
3163
3200
|
}
|
|
3164
|
-
function
|
|
3165
|
-
if (e.length === 1 &&
|
|
3201
|
+
function fe(e, t, r, n, i, s, o) {
|
|
3202
|
+
if (e.length === 1 && st(e[0]))
|
|
3166
3203
|
return [
|
|
3167
3204
|
{
|
|
3168
3205
|
type: x.literal,
|
|
3169
3206
|
value: e[0].value
|
|
3170
3207
|
}
|
|
3171
3208
|
];
|
|
3172
|
-
for (var
|
|
3173
|
-
var h =
|
|
3174
|
-
if (
|
|
3175
|
-
|
|
3209
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3210
|
+
var h = u[l];
|
|
3211
|
+
if (st(h)) {
|
|
3212
|
+
a.push({
|
|
3176
3213
|
type: x.literal,
|
|
3177
3214
|
value: h.value
|
|
3178
3215
|
});
|
|
3179
3216
|
continue;
|
|
3180
3217
|
}
|
|
3181
|
-
if (
|
|
3182
|
-
typeof s == "number" &&
|
|
3218
|
+
if (on(h)) {
|
|
3219
|
+
typeof s == "number" && a.push({
|
|
3183
3220
|
type: x.literal,
|
|
3184
3221
|
value: r.getNumberFormat(t).format(s)
|
|
3185
3222
|
});
|
|
@@ -3187,89 +3224,89 @@ function le(e, t, r, n, i, s, u) {
|
|
|
3187
3224
|
}
|
|
3188
3225
|
var f = h.value;
|
|
3189
3226
|
if (!(i && f in i))
|
|
3190
|
-
throw new
|
|
3227
|
+
throw new $n(f, o);
|
|
3191
3228
|
var c = i[f];
|
|
3192
|
-
if (
|
|
3193
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3229
|
+
if (sn(h)) {
|
|
3230
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3194
3231
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3195
3232
|
value: c
|
|
3196
3233
|
});
|
|
3197
3234
|
continue;
|
|
3198
3235
|
}
|
|
3199
|
-
if (
|
|
3200
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3201
|
-
|
|
3236
|
+
if ($t(h)) {
|
|
3237
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
|
|
3238
|
+
a.push({
|
|
3202
3239
|
type: x.literal,
|
|
3203
3240
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3204
3241
|
});
|
|
3205
3242
|
continue;
|
|
3206
3243
|
}
|
|
3207
|
-
if (
|
|
3208
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3209
|
-
|
|
3244
|
+
if (Rt(h)) {
|
|
3245
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3246
|
+
a.push({
|
|
3210
3247
|
type: x.literal,
|
|
3211
3248
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3212
3249
|
});
|
|
3213
3250
|
continue;
|
|
3214
3251
|
}
|
|
3215
|
-
if (
|
|
3216
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3217
|
-
d && d.scale && (c = c * (d.scale || 1)),
|
|
3252
|
+
if (Mt(h)) {
|
|
3253
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3254
|
+
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3218
3255
|
type: x.literal,
|
|
3219
3256
|
value: r.getNumberFormat(t, d).format(c)
|
|
3220
3257
|
});
|
|
3221
3258
|
continue;
|
|
3222
3259
|
}
|
|
3223
|
-
if (
|
|
3260
|
+
if (Gt(h)) {
|
|
3224
3261
|
var m = h.children, g = h.value, v = i[g];
|
|
3225
|
-
if (!
|
|
3226
|
-
throw new
|
|
3227
|
-
var
|
|
3228
|
-
return
|
|
3262
|
+
if (!Un(v))
|
|
3263
|
+
throw new Mn(g, "function", o);
|
|
3264
|
+
var N = fe(m, t, r, n, i, s), C = v(N.map(function(w) {
|
|
3265
|
+
return w.value;
|
|
3229
3266
|
}));
|
|
3230
|
-
Array.isArray(
|
|
3267
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(w) {
|
|
3231
3268
|
return {
|
|
3232
|
-
type: typeof
|
|
3233
|
-
value:
|
|
3269
|
+
type: typeof w == "string" ? x.literal : x.object,
|
|
3270
|
+
value: w
|
|
3234
3271
|
};
|
|
3235
3272
|
}));
|
|
3236
3273
|
}
|
|
3237
|
-
if (
|
|
3274
|
+
if (Ut(h)) {
|
|
3238
3275
|
var H = h.options[c] || h.options.other;
|
|
3239
3276
|
if (!H)
|
|
3240
|
-
throw new
|
|
3241
|
-
|
|
3277
|
+
throw new ct(h.value, c, Object.keys(h.options), o);
|
|
3278
|
+
a.push.apply(a, fe(H.value, t, r, n, i));
|
|
3242
3279
|
continue;
|
|
3243
3280
|
}
|
|
3244
|
-
if (
|
|
3281
|
+
if (Dt(h)) {
|
|
3245
3282
|
var H = h.options["=".concat(c)];
|
|
3246
3283
|
if (!H) {
|
|
3247
3284
|
if (!Intl.PluralRules)
|
|
3248
|
-
throw new
|
|
3285
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3249
3286
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3250
|
-
`,
|
|
3251
|
-
var
|
|
3252
|
-
H = h.options[
|
|
3287
|
+
`, X.MISSING_INTL_API, o);
|
|
3288
|
+
var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3289
|
+
H = h.options[I] || h.options.other;
|
|
3253
3290
|
}
|
|
3254
3291
|
if (!H)
|
|
3255
|
-
throw new
|
|
3256
|
-
|
|
3292
|
+
throw new ct(h.value, c, Object.keys(h.options), o);
|
|
3293
|
+
a.push.apply(a, fe(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3257
3294
|
continue;
|
|
3258
3295
|
}
|
|
3259
3296
|
}
|
|
3260
|
-
return
|
|
3297
|
+
return Rn(a);
|
|
3261
3298
|
}
|
|
3262
|
-
function
|
|
3299
|
+
function Dn(e, t) {
|
|
3263
3300
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3264
3301
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3265
3302
|
}, {})) : e;
|
|
3266
3303
|
}
|
|
3267
|
-
function
|
|
3304
|
+
function Gn(e, t) {
|
|
3268
3305
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3269
|
-
return r[n] =
|
|
3306
|
+
return r[n] = Dn(e[n], t[n]), r;
|
|
3270
3307
|
}, y({}, e)) : e;
|
|
3271
3308
|
}
|
|
3272
|
-
function
|
|
3309
|
+
function Le(e) {
|
|
3273
3310
|
return {
|
|
3274
3311
|
create: function() {
|
|
3275
3312
|
return {
|
|
@@ -3283,39 +3320,39 @@ function Oe(e) {
|
|
|
3283
3320
|
}
|
|
3284
3321
|
};
|
|
3285
3322
|
}
|
|
3286
|
-
function
|
|
3323
|
+
function Fn(e) {
|
|
3287
3324
|
return e === void 0 && (e = {
|
|
3288
3325
|
number: {},
|
|
3289
3326
|
dateTime: {},
|
|
3290
3327
|
pluralRules: {}
|
|
3291
3328
|
}), {
|
|
3292
|
-
getNumberFormat:
|
|
3329
|
+
getNumberFormat: Ce(function() {
|
|
3293
3330
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3294
3331
|
r[n] = arguments[n];
|
|
3295
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3332
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3296
3333
|
}, {
|
|
3297
|
-
cache:
|
|
3298
|
-
strategy:
|
|
3334
|
+
cache: Le(e.number),
|
|
3335
|
+
strategy: Oe.variadic
|
|
3299
3336
|
}),
|
|
3300
|
-
getDateTimeFormat:
|
|
3337
|
+
getDateTimeFormat: Ce(function() {
|
|
3301
3338
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3302
3339
|
r[n] = arguments[n];
|
|
3303
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3340
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3304
3341
|
}, {
|
|
3305
|
-
cache:
|
|
3306
|
-
strategy:
|
|
3342
|
+
cache: Le(e.dateTime),
|
|
3343
|
+
strategy: Oe.variadic
|
|
3307
3344
|
}),
|
|
3308
|
-
getPluralRules:
|
|
3345
|
+
getPluralRules: Ce(function() {
|
|
3309
3346
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3310
3347
|
r[n] = arguments[n];
|
|
3311
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3348
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3312
3349
|
}, {
|
|
3313
|
-
cache:
|
|
3314
|
-
strategy:
|
|
3350
|
+
cache: Le(e.pluralRules),
|
|
3351
|
+
strategy: Oe.variadic
|
|
3315
3352
|
})
|
|
3316
3353
|
};
|
|
3317
3354
|
}
|
|
3318
|
-
var
|
|
3355
|
+
var Qt = (
|
|
3319
3356
|
/** @class */
|
|
3320
3357
|
function() {
|
|
3321
3358
|
function e(t, r, n, i) {
|
|
@@ -3326,15 +3363,15 @@ var kt = (
|
|
|
3326
3363
|
dateTime: {},
|
|
3327
3364
|
pluralRules: {}
|
|
3328
3365
|
}, this.format = function(l) {
|
|
3329
|
-
var
|
|
3330
|
-
if (
|
|
3331
|
-
return
|
|
3332
|
-
var h =
|
|
3366
|
+
var u = s.formatToParts(l);
|
|
3367
|
+
if (u.length === 1)
|
|
3368
|
+
return u[0].value;
|
|
3369
|
+
var h = u.reduce(function(f, c) {
|
|
3333
3370
|
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3334
3371
|
}, []);
|
|
3335
3372
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3336
3373
|
}, this.formatToParts = function(l) {
|
|
3337
|
-
return
|
|
3374
|
+
return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3338
3375
|
}, this.resolvedOptions = function() {
|
|
3339
3376
|
var l;
|
|
3340
3377
|
return {
|
|
@@ -3345,15 +3382,15 @@ var kt = (
|
|
|
3345
3382
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3346
3383
|
if (this.message = t, !e.__parse)
|
|
3347
3384
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3348
|
-
var
|
|
3349
|
-
|
|
3350
|
-
var
|
|
3351
|
-
this.ast = e.__parse(t, y(y({},
|
|
3385
|
+
var o = i || {};
|
|
3386
|
+
o.formatters;
|
|
3387
|
+
var a = qr(o, ["formatters"]);
|
|
3388
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3352
3389
|
} else
|
|
3353
3390
|
this.ast = t;
|
|
3354
3391
|
if (!Array.isArray(this.ast))
|
|
3355
3392
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3356
|
-
this.formats =
|
|
3393
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3357
3394
|
}
|
|
3358
3395
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3359
3396
|
get: function() {
|
|
@@ -3362,11 +3399,11 @@ var kt = (
|
|
|
3362
3399
|
enumerable: !1,
|
|
3363
3400
|
configurable: !0
|
|
3364
3401
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3365
|
-
if (
|
|
3402
|
+
if (typeof Intl.Locale != "undefined") {
|
|
3366
3403
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3367
3404
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3368
3405
|
}
|
|
3369
|
-
}, e.__parse =
|
|
3406
|
+
}, e.__parse = In, e.formats = {
|
|
3370
3407
|
number: {
|
|
3371
3408
|
integer: {
|
|
3372
3409
|
maximumFractionDigits: 0
|
|
@@ -3427,7 +3464,7 @@ var kt = (
|
|
|
3427
3464
|
}, e;
|
|
3428
3465
|
}()
|
|
3429
3466
|
);
|
|
3430
|
-
function
|
|
3467
|
+
function jn(e, t) {
|
|
3431
3468
|
if (t == null)
|
|
3432
3469
|
return;
|
|
3433
3470
|
if (t in e)
|
|
@@ -3448,101 +3485,101 @@ function Pn(e, t) {
|
|
|
3448
3485
|
n = void 0;
|
|
3449
3486
|
return n;
|
|
3450
3487
|
}
|
|
3451
|
-
const
|
|
3488
|
+
const O = {}, kn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), qt = (e, t) => {
|
|
3452
3489
|
if (t == null)
|
|
3453
3490
|
return;
|
|
3454
|
-
if (t in
|
|
3455
|
-
return
|
|
3456
|
-
const r =
|
|
3491
|
+
if (t in O && e in O[t])
|
|
3492
|
+
return O[t][e];
|
|
3493
|
+
const r = ie(t);
|
|
3457
3494
|
for (let n = 0; n < r.length; n++) {
|
|
3458
|
-
const i = r[n], s =
|
|
3495
|
+
const i = r[n], s = Xn(i, e);
|
|
3459
3496
|
if (s)
|
|
3460
|
-
return
|
|
3497
|
+
return kn(e, t, s);
|
|
3461
3498
|
}
|
|
3462
3499
|
};
|
|
3463
|
-
let
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3466
|
-
return
|
|
3500
|
+
let Qe;
|
|
3501
|
+
const ne = ge({});
|
|
3502
|
+
function Vn(e) {
|
|
3503
|
+
return Qe[e] || null;
|
|
3467
3504
|
}
|
|
3468
|
-
function
|
|
3469
|
-
return e in
|
|
3505
|
+
function Jt(e) {
|
|
3506
|
+
return e in Qe;
|
|
3470
3507
|
}
|
|
3471
|
-
function
|
|
3472
|
-
if (!
|
|
3508
|
+
function Xn(e, t) {
|
|
3509
|
+
if (!Jt(e))
|
|
3473
3510
|
return null;
|
|
3474
|
-
const r =
|
|
3475
|
-
return
|
|
3511
|
+
const r = Vn(e);
|
|
3512
|
+
return jn(r, t);
|
|
3476
3513
|
}
|
|
3477
|
-
function
|
|
3514
|
+
function zn(e) {
|
|
3478
3515
|
if (e == null)
|
|
3479
3516
|
return;
|
|
3480
|
-
const t =
|
|
3517
|
+
const t = ie(e);
|
|
3481
3518
|
for (let r = 0; r < t.length; r++) {
|
|
3482
3519
|
const n = t[r];
|
|
3483
|
-
if (
|
|
3520
|
+
if (Jt(n))
|
|
3484
3521
|
return n;
|
|
3485
3522
|
}
|
|
3486
3523
|
}
|
|
3487
|
-
function
|
|
3488
|
-
delete
|
|
3524
|
+
function Yt(e, ...t) {
|
|
3525
|
+
delete O[e], ne.update((r) => (r[e] = Qr.all([r[e] || {}, ...t]), r));
|
|
3489
3526
|
}
|
|
3490
|
-
|
|
3491
|
-
[
|
|
3527
|
+
Q(
|
|
3528
|
+
[ne],
|
|
3492
3529
|
([e]) => Object.keys(e)
|
|
3493
3530
|
);
|
|
3494
|
-
|
|
3495
|
-
const
|
|
3496
|
-
function
|
|
3497
|
-
|
|
3531
|
+
ne.subscribe((e) => Qe = e);
|
|
3532
|
+
const ce = {};
|
|
3533
|
+
function Wn(e, t) {
|
|
3534
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3498
3535
|
}
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3536
|
+
function Kt(e) {
|
|
3537
|
+
return ce[e];
|
|
3501
3538
|
}
|
|
3502
|
-
function
|
|
3503
|
-
return
|
|
3504
|
-
const r =
|
|
3539
|
+
function Zn(e) {
|
|
3540
|
+
return ie(e).map((t) => {
|
|
3541
|
+
const r = Kt(t);
|
|
3505
3542
|
return [t, r ? [...r] : []];
|
|
3506
3543
|
}).filter(([, t]) => t.length > 0);
|
|
3507
3544
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return e == null ? !1 :
|
|
3545
|
+
function de(e) {
|
|
3546
|
+
return e == null ? !1 : ie(e).some(
|
|
3510
3547
|
(t) => {
|
|
3511
3548
|
var r;
|
|
3512
|
-
return (r =
|
|
3549
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3513
3550
|
}
|
|
3514
3551
|
);
|
|
3515
3552
|
}
|
|
3516
|
-
function
|
|
3553
|
+
function Qn(e, t) {
|
|
3517
3554
|
return Promise.all(
|
|
3518
|
-
t.map((n) => (
|
|
3519
|
-
).then((n) =>
|
|
3520
|
-
}
|
|
3521
|
-
const
|
|
3522
|
-
function
|
|
3523
|
-
if (!
|
|
3524
|
-
return e in
|
|
3525
|
-
const t =
|
|
3526
|
-
return
|
|
3555
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3556
|
+
).then((n) => Yt(e, ...n));
|
|
3557
|
+
}
|
|
3558
|
+
const J = {};
|
|
3559
|
+
function er(e) {
|
|
3560
|
+
if (!de(e))
|
|
3561
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3562
|
+
const t = Zn(e);
|
|
3563
|
+
return J[e] = Promise.all(
|
|
3527
3564
|
t.map(
|
|
3528
|
-
([r, n]) =>
|
|
3565
|
+
([r, n]) => Qn(r, n)
|
|
3529
3566
|
)
|
|
3530
3567
|
).then(() => {
|
|
3531
|
-
if (
|
|
3532
|
-
return
|
|
3533
|
-
delete
|
|
3534
|
-
}),
|
|
3568
|
+
if (de(e))
|
|
3569
|
+
return er(e);
|
|
3570
|
+
delete J[e];
|
|
3571
|
+
}), J[e];
|
|
3535
3572
|
}
|
|
3536
|
-
var
|
|
3573
|
+
var mt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
|
|
3537
3574
|
var r = {};
|
|
3538
3575
|
for (var n in e)
|
|
3539
|
-
|
|
3540
|
-
if (e != null &&
|
|
3541
|
-
for (var n of
|
|
3542
|
-
t.indexOf(n) < 0 &&
|
|
3576
|
+
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3577
|
+
if (e != null && mt)
|
|
3578
|
+
for (var n of mt(e))
|
|
3579
|
+
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3543
3580
|
return r;
|
|
3544
3581
|
};
|
|
3545
|
-
const
|
|
3582
|
+
const Kn = {
|
|
3546
3583
|
number: {
|
|
3547
3584
|
scientific: { notation: "scientific" },
|
|
3548
3585
|
engineering: { notation: "engineering" },
|
|
@@ -3572,183 +3609,183 @@ const jn = {
|
|
|
3572
3609
|
}
|
|
3573
3610
|
}
|
|
3574
3611
|
};
|
|
3575
|
-
function
|
|
3612
|
+
function ei({ locale: e, id: t }) {
|
|
3576
3613
|
console.warn(
|
|
3577
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3614
|
+
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3578
3615
|
e
|
|
3579
|
-
).join('", "')}".${
|
|
3616
|
+
).join('", "')}".${de(L()) ? `
|
|
3580
3617
|
|
|
3581
3618
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3582
3619
|
);
|
|
3583
3620
|
}
|
|
3584
|
-
const
|
|
3621
|
+
const ti = {
|
|
3585
3622
|
fallbackLocale: null,
|
|
3586
3623
|
loadingDelay: 200,
|
|
3587
|
-
formats:
|
|
3624
|
+
formats: Kn,
|
|
3588
3625
|
warnOnMissingMessages: !0,
|
|
3589
3626
|
handleMissingMessage: void 0,
|
|
3590
3627
|
ignoreTag: !0
|
|
3591
|
-
},
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3628
|
+
}, Y = ti;
|
|
3629
|
+
function z() {
|
|
3630
|
+
return Y;
|
|
3594
3631
|
}
|
|
3595
|
-
function
|
|
3596
|
-
const t = e, { formats: r } = t, n =
|
|
3632
|
+
function ri(e) {
|
|
3633
|
+
const t = e, { formats: r } = t, n = Yn(t, ["formats"]);
|
|
3597
3634
|
let i = e.fallbackLocale;
|
|
3598
3635
|
if (e.initialLocale)
|
|
3599
3636
|
try {
|
|
3600
|
-
|
|
3601
|
-
} catch {
|
|
3637
|
+
Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3638
|
+
} catch (s) {
|
|
3602
3639
|
console.warn(
|
|
3603
3640
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3604
3641
|
);
|
|
3605
3642
|
}
|
|
3606
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3643
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ei : console.warn(
|
|
3607
3644
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3608
|
-
)), Object.assign(
|
|
3645
|
+
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), $.set(i);
|
|
3609
3646
|
}
|
|
3610
|
-
const
|
|
3611
|
-
var
|
|
3647
|
+
const Ne = ge(!1);
|
|
3648
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
|
|
3612
3649
|
for (var r in t)
|
|
3613
|
-
|
|
3614
|
-
if (
|
|
3615
|
-
for (var r of
|
|
3616
|
-
|
|
3650
|
+
oi.call(t, r) && pt(e, r, t[r]);
|
|
3651
|
+
if (dt)
|
|
3652
|
+
for (var r of dt(t))
|
|
3653
|
+
ai.call(t, r) && pt(e, r, t[r]);
|
|
3617
3654
|
return e;
|
|
3618
|
-
},
|
|
3619
|
-
let
|
|
3620
|
-
const
|
|
3621
|
-
function
|
|
3655
|
+
}, hi = (e, t) => ii(e, si(t));
|
|
3656
|
+
let Ve;
|
|
3657
|
+
const pe = ge(null);
|
|
3658
|
+
function bt(e) {
|
|
3622
3659
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3623
3660
|
}
|
|
3624
|
-
function
|
|
3625
|
-
const r =
|
|
3626
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3661
|
+
function ie(e, t = z().fallbackLocale) {
|
|
3662
|
+
const r = bt(e);
|
|
3663
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3627
3664
|
}
|
|
3628
|
-
function
|
|
3629
|
-
return
|
|
3665
|
+
function L() {
|
|
3666
|
+
return Ve != null ? Ve : void 0;
|
|
3630
3667
|
}
|
|
3631
|
-
|
|
3632
|
-
|
|
3668
|
+
pe.subscribe((e) => {
|
|
3669
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3633
3670
|
});
|
|
3634
|
-
const
|
|
3635
|
-
if (e &&
|
|
3636
|
-
const { loadingDelay: t } =
|
|
3671
|
+
const li = (e) => {
|
|
3672
|
+
if (e && zn(e) && de(e)) {
|
|
3673
|
+
const { loadingDelay: t } = z();
|
|
3637
3674
|
let r;
|
|
3638
|
-
return typeof window
|
|
3639
|
-
() =>
|
|
3675
|
+
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3676
|
+
() => Ne.set(!0),
|
|
3640
3677
|
t
|
|
3641
|
-
) :
|
|
3642
|
-
|
|
3678
|
+
) : Ne.set(!0), er(e).then(() => {
|
|
3679
|
+
pe.set(e);
|
|
3643
3680
|
}).finally(() => {
|
|
3644
|
-
clearTimeout(r),
|
|
3681
|
+
clearTimeout(r), Ne.set(!1);
|
|
3645
3682
|
});
|
|
3646
3683
|
}
|
|
3647
|
-
return
|
|
3648
|
-
},
|
|
3649
|
-
set:
|
|
3650
|
-
}),
|
|
3684
|
+
return pe.set(e);
|
|
3685
|
+
}, $ = hi(ui({}, pe), {
|
|
3686
|
+
set: li
|
|
3687
|
+
}), Ee = (e) => {
|
|
3651
3688
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3652
3689
|
return (n) => {
|
|
3653
3690
|
const i = JSON.stringify(n);
|
|
3654
3691
|
return i in t ? t[i] : t[i] = e(n);
|
|
3655
3692
|
};
|
|
3656
3693
|
};
|
|
3657
|
-
var
|
|
3694
|
+
var fi = Object.defineProperty, be = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
3658
3695
|
for (var r in t || (t = {}))
|
|
3659
|
-
|
|
3660
|
-
if (
|
|
3661
|
-
for (var r of
|
|
3662
|
-
|
|
3696
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3697
|
+
if (be)
|
|
3698
|
+
for (var r of be(t))
|
|
3699
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
3663
3700
|
return e;
|
|
3664
|
-
},
|
|
3701
|
+
}, q = (e, t) => {
|
|
3665
3702
|
var r = {};
|
|
3666
3703
|
for (var n in e)
|
|
3667
|
-
|
|
3668
|
-
if (e != null &&
|
|
3669
|
-
for (var n of
|
|
3670
|
-
t.indexOf(n) < 0 &&
|
|
3704
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3705
|
+
if (e != null && be)
|
|
3706
|
+
for (var n of be(e))
|
|
3707
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3671
3708
|
return r;
|
|
3672
3709
|
};
|
|
3673
|
-
const
|
|
3674
|
-
const { formats: r } =
|
|
3710
|
+
const te = (e, t) => {
|
|
3711
|
+
const { formats: r } = z();
|
|
3675
3712
|
if (e in r && t in r[e])
|
|
3676
3713
|
return r[e][t];
|
|
3677
3714
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3678
|
-
},
|
|
3715
|
+
}, ci = Ee(
|
|
3679
3716
|
(e) => {
|
|
3680
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3717
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3681
3718
|
if (r == null)
|
|
3682
3719
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3683
|
-
return n && (i =
|
|
3720
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3684
3721
|
}
|
|
3685
|
-
),
|
|
3722
|
+
), mi = Ee(
|
|
3686
3723
|
(e) => {
|
|
3687
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3724
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3688
3725
|
if (r == null)
|
|
3689
3726
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3690
|
-
return n ? i =
|
|
3727
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3691
3728
|
}
|
|
3692
|
-
),
|
|
3729
|
+
), di = Ee(
|
|
3693
3730
|
(e) => {
|
|
3694
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3731
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3695
3732
|
if (r == null)
|
|
3696
3733
|
throw new Error(
|
|
3697
3734
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3698
3735
|
);
|
|
3699
|
-
return n ? i =
|
|
3736
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3700
3737
|
}
|
|
3701
|
-
),
|
|
3738
|
+
), pi = (e = {}) => {
|
|
3702
3739
|
var t = e, {
|
|
3703
|
-
locale: r =
|
|
3704
|
-
} = t, n =
|
|
3740
|
+
locale: r = L()
|
|
3741
|
+
} = t, n = q(t, [
|
|
3705
3742
|
"locale"
|
|
3706
3743
|
]);
|
|
3707
|
-
return
|
|
3708
|
-
},
|
|
3744
|
+
return ci(qe({ locale: r }, n));
|
|
3745
|
+
}, bi = (e = {}) => {
|
|
3709
3746
|
var t = e, {
|
|
3710
|
-
locale: r =
|
|
3711
|
-
} = t, n =
|
|
3747
|
+
locale: r = L()
|
|
3748
|
+
} = t, n = q(t, [
|
|
3712
3749
|
"locale"
|
|
3713
3750
|
]);
|
|
3714
|
-
return
|
|
3715
|
-
},
|
|
3751
|
+
return mi(qe({ locale: r }, n));
|
|
3752
|
+
}, gi = (e = {}) => {
|
|
3716
3753
|
var t = e, {
|
|
3717
|
-
locale: r =
|
|
3718
|
-
} = t, n =
|
|
3754
|
+
locale: r = L()
|
|
3755
|
+
} = t, n = q(t, [
|
|
3719
3756
|
"locale"
|
|
3720
3757
|
]);
|
|
3721
|
-
return
|
|
3722
|
-
},
|
|
3758
|
+
return di(qe({ locale: r }, n));
|
|
3759
|
+
}, _i = Ee(
|
|
3723
3760
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3724
|
-
(e, t =
|
|
3725
|
-
ignoreTag:
|
|
3761
|
+
(e, t = L()) => new Qt(e, t, z().formats, {
|
|
3762
|
+
ignoreTag: z().ignoreTag
|
|
3726
3763
|
})
|
|
3727
|
-
),
|
|
3764
|
+
), yi = (e, t = {}) => {
|
|
3728
3765
|
var r, n, i, s;
|
|
3729
|
-
let
|
|
3730
|
-
typeof e == "object" && (
|
|
3766
|
+
let o = t;
|
|
3767
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3731
3768
|
const {
|
|
3732
|
-
values:
|
|
3733
|
-
locale: l =
|
|
3734
|
-
default:
|
|
3735
|
-
} =
|
|
3769
|
+
values: a,
|
|
3770
|
+
locale: l = L(),
|
|
3771
|
+
default: u
|
|
3772
|
+
} = o;
|
|
3736
3773
|
if (l == null)
|
|
3737
3774
|
throw new Error(
|
|
3738
3775
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3739
3776
|
);
|
|
3740
|
-
let h =
|
|
3777
|
+
let h = qt(e, l);
|
|
3741
3778
|
if (!h)
|
|
3742
|
-
h = (s = (i = (n = (r =
|
|
3779
|
+
h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3743
3780
|
else if (typeof h != "string")
|
|
3744
3781
|
return console.warn(
|
|
3745
3782
|
`[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.`
|
|
3746
3783
|
), h;
|
|
3747
|
-
if (!
|
|
3784
|
+
if (!a)
|
|
3748
3785
|
return h;
|
|
3749
3786
|
let f = h;
|
|
3750
3787
|
try {
|
|
3751
|
-
f =
|
|
3788
|
+
f = _i(h, l).format(a);
|
|
3752
3789
|
} catch (c) {
|
|
3753
3790
|
c instanceof Error && console.warn(
|
|
3754
3791
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3756,20 +3793,20 @@ const ee = (e, t) => {
|
|
|
3756
3793
|
);
|
|
3757
3794
|
}
|
|
3758
3795
|
return f;
|
|
3759
|
-
},
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3766
|
-
}
|
|
3767
|
-
function
|
|
3768
|
-
|
|
3796
|
+
}, Ei = (e, t) => gi(t).format(e), xi = (e, t) => bi(t).format(e), vi = (e, t) => pi(t).format(e), Hi = (e, t = L()) => qt(e, t), Bi = Q([$, ne], () => yi);
|
|
3797
|
+
Q([$], () => Ei);
|
|
3798
|
+
Q([$], () => xi);
|
|
3799
|
+
Q([$], () => vi);
|
|
3800
|
+
Q([$, ne], () => Hi);
|
|
3801
|
+
function _t(e, t) {
|
|
3802
|
+
Yt(e, t);
|
|
3803
|
+
}
|
|
3804
|
+
function Ti(e) {
|
|
3805
|
+
ri({
|
|
3769
3806
|
fallbackLocale: "en"
|
|
3770
|
-
}),
|
|
3807
|
+
}), $.set(e);
|
|
3771
3808
|
}
|
|
3772
|
-
const
|
|
3809
|
+
const yt = {
|
|
3773
3810
|
en: {
|
|
3774
3811
|
header: {
|
|
3775
3812
|
general: "Cashier",
|
|
@@ -3792,52 +3829,52 @@ const mt = {
|
|
|
3792
3829
|
}
|
|
3793
3830
|
}
|
|
3794
3831
|
};
|
|
3795
|
-
function
|
|
3796
|
-
|
|
3832
|
+
function wi(e) {
|
|
3833
|
+
pr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}");
|
|
3797
3834
|
}
|
|
3798
|
-
const
|
|
3799
|
-
function
|
|
3835
|
+
const Si = (e) => ({}), Et = (e) => ({}), Ai = (e) => ({}), xt = (e) => ({}), Ci = (e) => ({}), vt = (e) => ({});
|
|
3836
|
+
function Ht(e) {
|
|
3800
3837
|
let t, r, n;
|
|
3801
3838
|
return {
|
|
3802
3839
|
c() {
|
|
3803
|
-
t =
|
|
3840
|
+
t = W("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderLeftButton");
|
|
3804
3841
|
},
|
|
3805
3842
|
m(i, s) {
|
|
3806
|
-
|
|
3843
|
+
M(i, t, s), r || (n = Ot(
|
|
3807
3844
|
t,
|
|
3808
3845
|
"click",
|
|
3809
3846
|
/*back*/
|
|
3810
3847
|
e[6]
|
|
3811
3848
|
), r = !0);
|
|
3812
3849
|
},
|
|
3813
|
-
p:
|
|
3850
|
+
p: T,
|
|
3814
3851
|
d(i) {
|
|
3815
|
-
i &&
|
|
3852
|
+
i && P(t), r = !1, n();
|
|
3816
3853
|
}
|
|
3817
3854
|
};
|
|
3818
3855
|
}
|
|
3819
|
-
function
|
|
3856
|
+
function Oi(e) {
|
|
3820
3857
|
let t, r = (
|
|
3821
3858
|
/*backButton*/
|
|
3822
|
-
e[1] &&
|
|
3859
|
+
e[1] && Ht(e)
|
|
3823
3860
|
);
|
|
3824
3861
|
return {
|
|
3825
3862
|
c() {
|
|
3826
|
-
r && r.c(), t =
|
|
3863
|
+
r && r.c(), t = Ct();
|
|
3827
3864
|
},
|
|
3828
3865
|
m(n, i) {
|
|
3829
|
-
r && r.m(n, i),
|
|
3866
|
+
r && r.m(n, i), M(n, t, i);
|
|
3830
3867
|
},
|
|
3831
3868
|
p(n, i) {
|
|
3832
3869
|
/*backButton*/
|
|
3833
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3870
|
+
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3834
3871
|
},
|
|
3835
3872
|
d(n) {
|
|
3836
|
-
n &&
|
|
3873
|
+
n && P(t), r && r.d(n);
|
|
3837
3874
|
}
|
|
3838
3875
|
};
|
|
3839
3876
|
}
|
|
3840
|
-
function
|
|
3877
|
+
function Pi(e) {
|
|
3841
3878
|
let t, r = (
|
|
3842
3879
|
/*$_*/
|
|
3843
3880
|
e[4](
|
|
@@ -3847,10 +3884,10 @@ function Ei(e) {
|
|
|
3847
3884
|
), n;
|
|
3848
3885
|
return {
|
|
3849
3886
|
c() {
|
|
3850
|
-
t =
|
|
3887
|
+
t = W("span"), n = ze(r), Z(t, "class", "CashierHeaderTitle");
|
|
3851
3888
|
},
|
|
3852
3889
|
m(i, s) {
|
|
3853
|
-
|
|
3890
|
+
M(i, t, s), me(t, n);
|
|
3854
3891
|
},
|
|
3855
3892
|
p(i, s) {
|
|
3856
3893
|
s & /*$_, titleText*/
|
|
@@ -3858,249 +3895,249 @@ function Ei(e) {
|
|
|
3858
3895
|
i[4](
|
|
3859
3896
|
/*titleText*/
|
|
3860
3897
|
i[2]
|
|
3861
|
-
) + "") &&
|
|
3898
|
+
) + "") && yr(n, r);
|
|
3862
3899
|
},
|
|
3863
3900
|
d(i) {
|
|
3864
|
-
i &&
|
|
3901
|
+
i && P(t);
|
|
3865
3902
|
}
|
|
3866
3903
|
};
|
|
3867
3904
|
}
|
|
3868
|
-
function
|
|
3905
|
+
function Bt(e) {
|
|
3869
3906
|
let t, r, n;
|
|
3870
3907
|
return {
|
|
3871
3908
|
c() {
|
|
3872
|
-
t =
|
|
3909
|
+
t = W("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', Z(t, "class", "CashierHeaderRightButton");
|
|
3873
3910
|
},
|
|
3874
3911
|
m(i, s) {
|
|
3875
|
-
|
|
3912
|
+
M(i, t, s), r || (n = Ot(
|
|
3876
3913
|
t,
|
|
3877
3914
|
"click",
|
|
3878
3915
|
/*close*/
|
|
3879
3916
|
e[5]
|
|
3880
3917
|
), r = !0);
|
|
3881
3918
|
},
|
|
3882
|
-
p:
|
|
3919
|
+
p: T,
|
|
3883
3920
|
d(i) {
|
|
3884
|
-
i &&
|
|
3921
|
+
i && P(t), r = !1, n();
|
|
3885
3922
|
}
|
|
3886
3923
|
};
|
|
3887
3924
|
}
|
|
3888
|
-
function
|
|
3925
|
+
function Li(e) {
|
|
3889
3926
|
let t, r = (
|
|
3890
3927
|
/*closeButton*/
|
|
3891
|
-
e[3] &&
|
|
3928
|
+
e[3] && Bt(e)
|
|
3892
3929
|
);
|
|
3893
3930
|
return {
|
|
3894
3931
|
c() {
|
|
3895
|
-
r && r.c(), t =
|
|
3932
|
+
r && r.c(), t = Ct();
|
|
3896
3933
|
},
|
|
3897
3934
|
m(n, i) {
|
|
3898
|
-
r && r.m(n, i),
|
|
3935
|
+
r && r.m(n, i), M(n, t, i);
|
|
3899
3936
|
},
|
|
3900
3937
|
p(n, i) {
|
|
3901
3938
|
/*closeButton*/
|
|
3902
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3939
|
+
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3903
3940
|
},
|
|
3904
3941
|
d(n) {
|
|
3905
|
-
n &&
|
|
3942
|
+
n && P(t), r && r.d(n);
|
|
3906
3943
|
}
|
|
3907
3944
|
};
|
|
3908
3945
|
}
|
|
3909
|
-
function
|
|
3946
|
+
function Ni(e) {
|
|
3910
3947
|
let t, r, n, i;
|
|
3911
3948
|
const s = (
|
|
3912
3949
|
/*#slots*/
|
|
3913
3950
|
e[15].leftButton
|
|
3914
|
-
),
|
|
3951
|
+
), o = ve(
|
|
3915
3952
|
s,
|
|
3916
3953
|
e,
|
|
3917
3954
|
/*$$scope*/
|
|
3918
3955
|
e[14],
|
|
3919
|
-
|
|
3920
|
-
),
|
|
3956
|
+
vt
|
|
3957
|
+
), a = o || Oi(e), l = (
|
|
3921
3958
|
/*#slots*/
|
|
3922
3959
|
e[15].title
|
|
3923
|
-
),
|
|
3960
|
+
), u = ve(
|
|
3924
3961
|
l,
|
|
3925
3962
|
e,
|
|
3926
3963
|
/*$$scope*/
|
|
3927
3964
|
e[14],
|
|
3928
|
-
|
|
3929
|
-
), h =
|
|
3965
|
+
xt
|
|
3966
|
+
), h = u || Pi(e), f = (
|
|
3930
3967
|
/*#slots*/
|
|
3931
3968
|
e[15].rightButton
|
|
3932
|
-
), c =
|
|
3969
|
+
), c = ve(
|
|
3933
3970
|
f,
|
|
3934
3971
|
e,
|
|
3935
3972
|
/*$$scope*/
|
|
3936
3973
|
e[14],
|
|
3937
|
-
|
|
3938
|
-
), d = c ||
|
|
3974
|
+
Et
|
|
3975
|
+
), d = c || Li(e);
|
|
3939
3976
|
return {
|
|
3940
3977
|
c() {
|
|
3941
|
-
t =
|
|
3978
|
+
t = W("div"), a.c(), r = rt(), h.c(), n = rt(), d.c(), Z(t, "class", "CashierHeader");
|
|
3942
3979
|
},
|
|
3943
3980
|
m(m, g) {
|
|
3944
|
-
|
|
3981
|
+
M(m, t, g), a.m(t, null), me(t, r), h.m(t, null), me(t, n), d.m(t, null), e[16](t), i = !0;
|
|
3945
3982
|
},
|
|
3946
3983
|
p(m, [g]) {
|
|
3947
|
-
|
|
3948
|
-
16384) &&
|
|
3949
|
-
|
|
3984
|
+
o ? o.p && (!i || g & /*$$scope*/
|
|
3985
|
+
16384) && Be(
|
|
3986
|
+
o,
|
|
3950
3987
|
s,
|
|
3951
3988
|
m,
|
|
3952
3989
|
/*$$scope*/
|
|
3953
3990
|
m[14],
|
|
3954
|
-
i ?
|
|
3991
|
+
i ? He(
|
|
3955
3992
|
s,
|
|
3956
3993
|
/*$$scope*/
|
|
3957
3994
|
m[14],
|
|
3958
3995
|
g,
|
|
3959
|
-
|
|
3960
|
-
) :
|
|
3996
|
+
Ci
|
|
3997
|
+
) : Te(
|
|
3961
3998
|
/*$$scope*/
|
|
3962
3999
|
m[14]
|
|
3963
4000
|
),
|
|
3964
|
-
|
|
3965
|
-
) :
|
|
3966
|
-
2) &&
|
|
3967
|
-
16384) &&
|
|
3968
|
-
|
|
4001
|
+
vt
|
|
4002
|
+
) : a.p && (!i || g & /*backButton*/
|
|
4003
|
+
2) && a.p(m, i ? g : -1), u ? u.p && (!i || g & /*$$scope*/
|
|
4004
|
+
16384) && Be(
|
|
4005
|
+
u,
|
|
3969
4006
|
l,
|
|
3970
4007
|
m,
|
|
3971
4008
|
/*$$scope*/
|
|
3972
4009
|
m[14],
|
|
3973
|
-
i ?
|
|
4010
|
+
i ? He(
|
|
3974
4011
|
l,
|
|
3975
4012
|
/*$$scope*/
|
|
3976
4013
|
m[14],
|
|
3977
4014
|
g,
|
|
3978
|
-
|
|
3979
|
-
) :
|
|
4015
|
+
Ai
|
|
4016
|
+
) : Te(
|
|
3980
4017
|
/*$$scope*/
|
|
3981
4018
|
m[14]
|
|
3982
4019
|
),
|
|
3983
|
-
|
|
4020
|
+
xt
|
|
3984
4021
|
) : h.p && (!i || g & /*$_, titleText*/
|
|
3985
4022
|
20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
3986
|
-
16384) &&
|
|
4023
|
+
16384) && Be(
|
|
3987
4024
|
c,
|
|
3988
4025
|
f,
|
|
3989
4026
|
m,
|
|
3990
4027
|
/*$$scope*/
|
|
3991
4028
|
m[14],
|
|
3992
|
-
i ?
|
|
4029
|
+
i ? He(
|
|
3993
4030
|
f,
|
|
3994
4031
|
/*$$scope*/
|
|
3995
4032
|
m[14],
|
|
3996
4033
|
g,
|
|
3997
|
-
|
|
3998
|
-
) :
|
|
4034
|
+
Si
|
|
4035
|
+
) : Te(
|
|
3999
4036
|
/*$$scope*/
|
|
4000
4037
|
m[14]
|
|
4001
4038
|
),
|
|
4002
|
-
|
|
4039
|
+
Et
|
|
4003
4040
|
) : d.p && (!i || g & /*closeButton*/
|
|
4004
4041
|
8) && d.p(m, i ? g : -1);
|
|
4005
4042
|
},
|
|
4006
4043
|
i(m) {
|
|
4007
|
-
i || (
|
|
4044
|
+
i || (he(a, m), he(h, m), he(d, m), i = !0);
|
|
4008
4045
|
},
|
|
4009
4046
|
o(m) {
|
|
4010
|
-
|
|
4047
|
+
Se(a, m), Se(h, m), Se(d, m), i = !1;
|
|
4011
4048
|
},
|
|
4012
4049
|
d(m) {
|
|
4013
|
-
m &&
|
|
4050
|
+
m && P(t), a.d(m), h.d(m), d.d(m), e[16](null);
|
|
4014
4051
|
}
|
|
4015
4052
|
};
|
|
4016
4053
|
}
|
|
4017
|
-
function
|
|
4054
|
+
function Ii(e, t, r) {
|
|
4018
4055
|
let n;
|
|
4019
|
-
|
|
4020
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4021
|
-
const
|
|
4056
|
+
dr(e, Bi, (_) => r(4, n = _));
|
|
4057
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: o = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
|
|
4058
|
+
const N = () => {
|
|
4022
4059
|
let _ = l;
|
|
4023
|
-
_ && fetch(_).then((
|
|
4024
|
-
Object.keys(
|
|
4025
|
-
|
|
4060
|
+
_ && fetch(_).then((S) => S.json()).then((S) => {
|
|
4061
|
+
Object.keys(S).forEach((U) => {
|
|
4062
|
+
_t(U, S[U]);
|
|
4026
4063
|
});
|
|
4027
|
-
}).catch((
|
|
4028
|
-
console.log(
|
|
4064
|
+
}).catch((S) => {
|
|
4065
|
+
console.log(S);
|
|
4029
4066
|
});
|
|
4030
4067
|
};
|
|
4031
|
-
Object.keys(
|
|
4032
|
-
|
|
4068
|
+
Object.keys(yt).forEach((_) => {
|
|
4069
|
+
_t(_, yt[_]);
|
|
4033
4070
|
});
|
|
4034
|
-
const
|
|
4071
|
+
const C = () => {
|
|
4035
4072
|
let _ = document.createElement("style");
|
|
4036
|
-
_.innerHTML =
|
|
4073
|
+
_.innerHTML = o, d.appendChild(_);
|
|
4037
4074
|
}, H = () => {
|
|
4038
|
-
let _ = new URL(
|
|
4039
|
-
fetch(_.href).then((
|
|
4040
|
-
|
|
4075
|
+
let _ = new URL(a), S = document.createElement("style");
|
|
4076
|
+
fetch(_.href).then((U) => U.text()).then((U) => {
|
|
4077
|
+
S.innerHTML = U, setTimeout(
|
|
4041
4078
|
() => {
|
|
4042
|
-
d.appendChild(
|
|
4079
|
+
d.appendChild(S);
|
|
4043
4080
|
},
|
|
4044
4081
|
1
|
|
4045
4082
|
);
|
|
4046
4083
|
});
|
|
4047
|
-
},
|
|
4048
|
-
|
|
4049
|
-
},
|
|
4084
|
+
}, I = () => {
|
|
4085
|
+
Ti(f);
|
|
4086
|
+
}, w = () => {
|
|
4050
4087
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4051
|
-
},
|
|
4088
|
+
}, R = () => {
|
|
4052
4089
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4053
|
-
},
|
|
4054
|
-
r(1, m = !!
|
|
4055
|
-
},
|
|
4090
|
+
}, se = () => {
|
|
4091
|
+
r(1, m = !!u && u !== "false");
|
|
4092
|
+
}, ir = () => {
|
|
4056
4093
|
r(3, v = !!c && c !== "false");
|
|
4057
|
-
},
|
|
4094
|
+
}, sr = () => {
|
|
4058
4095
|
r(2, g = h || "header.general");
|
|
4059
4096
|
};
|
|
4060
|
-
function
|
|
4061
|
-
|
|
4097
|
+
function or(_) {
|
|
4098
|
+
Ie[_ ? "unshift" : "push"](() => {
|
|
4062
4099
|
d = _, r(0, d);
|
|
4063
4100
|
});
|
|
4064
4101
|
}
|
|
4065
4102
|
return e.$$set = (_) => {
|
|
4066
|
-
"clientstyling" in _ && r(7,
|
|
4103
|
+
"clientstyling" in _ && r(7, o = _.clientstyling), "clientstylingurl" in _ && r(8, a = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4067
4104
|
}, e.$$.update = () => {
|
|
4068
4105
|
e.$$.dirty & /*lang*/
|
|
4069
|
-
4096 && f &&
|
|
4070
|
-
6144 && f && h &&
|
|
4071
|
-
129 &&
|
|
4072
|
-
257 &&
|
|
4073
|
-
4608 && f && l &&
|
|
4074
|
-
1024 &&
|
|
4075
|
-
8192 && c &&
|
|
4106
|
+
4096 && f && I(), e.$$.dirty & /*lang, title*/
|
|
4107
|
+
6144 && f && h && sr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4108
|
+
129 && o && d && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4109
|
+
257 && a && d && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4110
|
+
4608 && f && l && N(), e.$$.dirty & /*showbackbutton*/
|
|
4111
|
+
1024 && u && se(), e.$$.dirty & /*showclosebutton*/
|
|
4112
|
+
8192 && c && ir();
|
|
4076
4113
|
}, [
|
|
4077
4114
|
d,
|
|
4078
4115
|
m,
|
|
4079
4116
|
g,
|
|
4080
4117
|
v,
|
|
4081
4118
|
n,
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
u,
|
|
4119
|
+
w,
|
|
4120
|
+
R,
|
|
4085
4121
|
o,
|
|
4086
|
-
l,
|
|
4087
4122
|
a,
|
|
4123
|
+
l,
|
|
4124
|
+
u,
|
|
4088
4125
|
h,
|
|
4089
4126
|
f,
|
|
4090
4127
|
c,
|
|
4091
4128
|
s,
|
|
4092
4129
|
i,
|
|
4093
|
-
|
|
4130
|
+
or
|
|
4094
4131
|
];
|
|
4095
4132
|
}
|
|
4096
|
-
class
|
|
4133
|
+
class nr extends Pr {
|
|
4097
4134
|
constructor(t) {
|
|
4098
|
-
super(),
|
|
4135
|
+
super(), Cr(
|
|
4099
4136
|
this,
|
|
4100
4137
|
t,
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4138
|
+
Ii,
|
|
4139
|
+
Ni,
|
|
4140
|
+
wt,
|
|
4104
4141
|
{
|
|
4105
4142
|
clientstyling: 7,
|
|
4106
4143
|
clientstylingurl: 8,
|
|
@@ -4110,77 +4147,77 @@ class Jt extends Er {
|
|
|
4110
4147
|
lang: 12,
|
|
4111
4148
|
showclosebutton: 13
|
|
4112
4149
|
},
|
|
4113
|
-
|
|
4150
|
+
wi
|
|
4114
4151
|
);
|
|
4115
4152
|
}
|
|
4116
4153
|
get clientstyling() {
|
|
4117
4154
|
return this.$$.ctx[7];
|
|
4118
4155
|
}
|
|
4119
4156
|
set clientstyling(t) {
|
|
4120
|
-
this.$$set({ clientstyling: t }),
|
|
4157
|
+
this.$$set({ clientstyling: t }), A();
|
|
4121
4158
|
}
|
|
4122
4159
|
get clientstylingurl() {
|
|
4123
4160
|
return this.$$.ctx[8];
|
|
4124
4161
|
}
|
|
4125
4162
|
set clientstylingurl(t) {
|
|
4126
|
-
this.$$set({ clientstylingurl: t }),
|
|
4163
|
+
this.$$set({ clientstylingurl: t }), A();
|
|
4127
4164
|
}
|
|
4128
4165
|
get translationurl() {
|
|
4129
4166
|
return this.$$.ctx[9];
|
|
4130
4167
|
}
|
|
4131
4168
|
set translationurl(t) {
|
|
4132
|
-
this.$$set({ translationurl: t }),
|
|
4169
|
+
this.$$set({ translationurl: t }), A();
|
|
4133
4170
|
}
|
|
4134
4171
|
get showbackbutton() {
|
|
4135
4172
|
return this.$$.ctx[10];
|
|
4136
4173
|
}
|
|
4137
4174
|
set showbackbutton(t) {
|
|
4138
|
-
this.$$set({ showbackbutton: t }),
|
|
4175
|
+
this.$$set({ showbackbutton: t }), A();
|
|
4139
4176
|
}
|
|
4140
4177
|
get title() {
|
|
4141
4178
|
return this.$$.ctx[11];
|
|
4142
4179
|
}
|
|
4143
4180
|
set title(t) {
|
|
4144
|
-
this.$$set({ title: t }),
|
|
4181
|
+
this.$$set({ title: t }), A();
|
|
4145
4182
|
}
|
|
4146
4183
|
get lang() {
|
|
4147
4184
|
return this.$$.ctx[12];
|
|
4148
4185
|
}
|
|
4149
4186
|
set lang(t) {
|
|
4150
|
-
this.$$set({ lang: t }),
|
|
4187
|
+
this.$$set({ lang: t }), A();
|
|
4151
4188
|
}
|
|
4152
4189
|
get showclosebutton() {
|
|
4153
4190
|
return this.$$.ctx[13];
|
|
4154
4191
|
}
|
|
4155
4192
|
set showclosebutton(t) {
|
|
4156
|
-
this.$$set({ showclosebutton: t }),
|
|
4193
|
+
this.$$set({ showclosebutton: t }), A();
|
|
4157
4194
|
}
|
|
4158
4195
|
}
|
|
4159
|
-
|
|
4160
|
-
const
|
|
4196
|
+
Or(nr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4197
|
+
const Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4161
4198
|
__proto__: null,
|
|
4162
|
-
default:
|
|
4199
|
+
default: nr
|
|
4163
4200
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4164
4201
|
export {
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4202
|
+
$,
|
|
4203
|
+
Ui as C,
|
|
4204
|
+
Pr as S,
|
|
4205
|
+
Yt as a,
|
|
4206
|
+
Cr as b,
|
|
4207
|
+
Or as c,
|
|
4208
|
+
pr as d,
|
|
4209
|
+
W as e,
|
|
4210
|
+
A as f,
|
|
4211
|
+
rt as g,
|
|
4212
|
+
Ri as h,
|
|
4213
|
+
ri as i,
|
|
4214
|
+
$i as j,
|
|
4215
|
+
Z as k,
|
|
4216
|
+
M as l,
|
|
4217
|
+
me as m,
|
|
4218
|
+
Ot as n,
|
|
4219
|
+
T as o,
|
|
4220
|
+
P as p,
|
|
4221
|
+
Ie as q,
|
|
4222
|
+
wt as s
|
|
4186
4223
|
};
|