@everymatrix/transaction-history-page 0.2.9 → 0.2.10
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-O2SBlx9E.js → CashierHeader-Cd_IQ7mb.js} +1144 -1148
- package/components/CashierHeader-fdmNbczy.cjs +21 -0
- package/components/{CashierHeader-D2AS2Agh.js → CashierHeader-qz_r8eKP.js} +1121 -1125
- package/components/{CashierPagination-Diod1lF7.js → CashierPagination-DV3fcnSK.js} +17 -17
- package/components/{CashierPagination-n1Rdi6TE.js → CashierPagination-Dtn30JhD.js} +17 -17
- package/components/{CashierPagination-Bns0dhAx.cjs → CashierPagination-Dy5h-yN8.cjs} +1 -1
- package/components/{CashierTransactionHistory-usXO5b0O.js → CashierTransactionHistory-BMaf6Z0P.js} +71 -71
- package/components/{CashierTransactionHistory-CWYRJ-oJ.js → CashierTransactionHistory-Boo_B61Z.js} +71 -71
- package/components/{CashierTransactionHistory-D0veSOum.cjs → CashierTransactionHistory-DOgBFoAF.cjs} +1 -1
- package/components/{EmptyStateIcon-Bvkg_gUP.js → EmptyStateIcon-Q9-7CJOB.js} +6 -6
- package/components/{EmptyStateIcon-CG990aV4.cjs → EmptyStateIcon-idY3pDBO.cjs} +1 -1
- package/components/{EmptyStateIcon-Cnh2o5D9.js → EmptyStateIcon-jDakZhVG.js} +6 -6
- package/components/{Tooltip-D0aX_eaK.js → Tooltip-DKtozLhD.js} +15 -15
- package/components/{Tooltip-CMYgN8-J.cjs → Tooltip-DhUkqLNN.cjs} +1 -1
- package/components/{Tooltip-DwUjXU5S.js → Tooltip-Dr1XhRao.js} +15 -15
- package/components/{TransactionHistoryCalendar-8sJGcA34.js → TransactionHistoryCalendar-DR03MPW1.js} +85 -85
- package/components/{TransactionHistoryCalendar-xg8S4fBR.cjs → TransactionHistoryCalendar-DV3uIclO.cjs} +1 -1
- package/components/{TransactionHistoryCalendar-D2S9yWPU.js → TransactionHistoryCalendar-DvAP3GwO.js} +86 -86
- package/components/{TransactionHistoryPage-DbvtP_wu.js → TransactionHistoryPage-BWenQ53p.js} +71 -71
- package/components/{TransactionHistoryPage-DDog4PKt.cjs → TransactionHistoryPage-CShwsh-h.cjs} +1 -1
- package/components/{TransactionHistoryPage-XoXdz3B9.js → TransactionHistoryPage-DQmmXNuZ.js} +72 -72
- package/components/{TxnStatusIcon-vTgFujrK.cjs → TxnStatusIcon-BM7Yn9hb.cjs} +1 -1
- package/components/{TxnStatusIcon-BhenBY5o.js → TxnStatusIcon-CmwEsXbv.js} +19 -19
- package/components/{TxnStatusIcon-CYWQkX_B.js → TxnStatusIcon-_G33oy6q.js} +19 -19
- package/components/{TxnTypeIcons-D2uk1QXc.js → TxnTypeIcons-BwDBMPnO.js} +14 -14
- package/components/{TxnTypeIcons-waunbeLw.cjs → TxnTypeIcons-ClBY0FSw.cjs} +1 -1
- package/components/{TxnTypeIcons-k1qbeCHp.js → TxnTypeIcons-rLnLSUqr.js} +14 -14
- package/es2015/transaction-history-page.cjs +1 -1
- package/es2015/transaction-history-page.js +1 -1
- package/esnext/transaction-history-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-DmRWEjrp.js → ui-image-BhXCYysO.js} +1 -1
- package/stencil/{ui-image-C0Jfm_O4.js → ui-image-CVwHW7a_.js} +1 -1
- package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DrDalrqH.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CashierHeader-BHRa04VL.cjs +0 -8
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Sn = Object.defineProperty, An = Object.defineProperties;
|
|
2
|
+
var On = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ot = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var Pn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, n) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
Pn.call(t, n) && Ae(e, n, t[n]);
|
|
8
8
|
if (ot)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var n of ot(t))
|
|
10
|
+
Cn.call(t, n) && Ae(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, ut = (e, t) =>
|
|
13
|
-
var S = (e, t,
|
|
14
|
-
var ht = (e, t,
|
|
12
|
+
}, ut = (e, t) => An(e, On(t));
|
|
13
|
+
var S = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var ht = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
o(
|
|
17
|
+
o(n.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
o(
|
|
23
|
+
o(n.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, o = (l) => l.done ?
|
|
28
|
-
o((
|
|
27
|
+
}, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
+
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function B() {
|
|
31
31
|
}
|
|
32
32
|
const It = (e) => e;
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
e[
|
|
33
|
+
function Ln(e, t) {
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
36
36
|
return (
|
|
37
37
|
/** @type {T & S} */
|
|
38
38
|
e
|
|
@@ -44,46 +44,46 @@ function Mt(e) {
|
|
|
44
44
|
function lt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function M(e) {
|
|
48
48
|
e.forEach(Mt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function oe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
53
|
function $t(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
57
|
-
function
|
|
58
|
-
return e === t ? !0 : (
|
|
56
|
+
let le;
|
|
57
|
+
function ss(e, t) {
|
|
58
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Nn(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
63
|
function Rt(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
|
-
for (const
|
|
66
|
-
|
|
65
|
+
for (const r of t)
|
|
66
|
+
r(void 0);
|
|
67
67
|
return B;
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
return
|
|
69
|
+
const n = e.subscribe(...t);
|
|
70
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
e.$$.on_destroy.push(Rt(t,
|
|
72
|
+
function In(e, t, n) {
|
|
73
|
+
e.$$.on_destroy.push(Rt(t, n));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Oe(e, t, n, r) {
|
|
76
76
|
if (e) {
|
|
77
|
-
const i = Ut(e, t,
|
|
77
|
+
const i = Ut(e, t, n, r);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function Ut(e, t,
|
|
82
|
-
return e[1] &&
|
|
81
|
+
function Ut(e, t, n, r) {
|
|
82
|
+
return e[1] && r ? Ln(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
if (e[2] &&
|
|
86
|
-
const i = e[2](n
|
|
84
|
+
function Pe(e, t, n, r) {
|
|
85
|
+
if (e[2] && r) {
|
|
86
|
+
const i = e[2](r(n));
|
|
87
87
|
if (t.dirty === void 0)
|
|
88
88
|
return i;
|
|
89
89
|
if (typeof i == "object") {
|
|
@@ -96,54 +96,54 @@ function Le(e, t, r, n) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ce(e, t, n, r, i, s) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const a = Ut(t,
|
|
101
|
+
const a = Ut(t, n, r, s);
|
|
102
102
|
e.p(a, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Le(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
|
-
const t = [],
|
|
108
|
-
for (let
|
|
109
|
-
t[
|
|
107
|
+
const t = [], n = e.ctx.length / 32;
|
|
108
|
+
for (let r = 0; r < n; r++)
|
|
109
|
+
t[r] = -1;
|
|
110
110
|
return t;
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function os(e) {
|
|
115
115
|
return e == null ? "" : e;
|
|
116
116
|
}
|
|
117
117
|
const Dt = typeof window != "undefined";
|
|
118
|
-
let Gt = Dt ? () => window.performance.now() : () => Date.now(),
|
|
119
|
-
const
|
|
118
|
+
let Gt = Dt ? () => window.performance.now() : () => Date.now(), Ye = Dt ? (e) => requestAnimationFrame(e) : B;
|
|
119
|
+
const k = /* @__PURE__ */ new Set();
|
|
120
120
|
function Ft(e) {
|
|
121
|
-
|
|
122
|
-
t.c(e) || (
|
|
123
|
-
}),
|
|
121
|
+
k.forEach((t) => {
|
|
122
|
+
t.c(e) || (k.delete(t), t.f());
|
|
123
|
+
}), k.size !== 0 && Ye(Ft);
|
|
124
124
|
}
|
|
125
125
|
function jt(e) {
|
|
126
126
|
let t;
|
|
127
|
-
return
|
|
128
|
-
promise: new Promise((
|
|
129
|
-
|
|
127
|
+
return k.size === 0 && Ye(Ft), {
|
|
128
|
+
promise: new Promise((n) => {
|
|
129
|
+
k.add(t = { c: e, f: n });
|
|
130
130
|
}),
|
|
131
131
|
abort() {
|
|
132
|
-
|
|
132
|
+
k.delete(t);
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function be(e, t) {
|
|
137
137
|
e.appendChild(t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
const
|
|
141
|
-
if (!
|
|
142
|
-
const i =
|
|
143
|
-
i.id = t, i.textContent =
|
|
139
|
+
function Mn(e, t, n) {
|
|
140
|
+
const r = Ke(e);
|
|
141
|
+
if (!r.getElementById(t)) {
|
|
142
|
+
const i = R("style");
|
|
143
|
+
i.id = t, i.textContent = n, kt(r, i);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ke(e) {
|
|
147
147
|
if (!e)
|
|
148
148
|
return document;
|
|
149
149
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -153,241 +153,241 @@ function tt(e) {
|
|
|
153
153
|
t
|
|
154
154
|
) : e.ownerDocument;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
const t =
|
|
158
|
-
return t.textContent = "/* empty */", kt(
|
|
156
|
+
function $n(e) {
|
|
157
|
+
const t = R("style");
|
|
158
|
+
return t.textContent = "/* empty */", kt(Ke(e), t), t.sheet;
|
|
159
159
|
}
|
|
160
160
|
function kt(e, t) {
|
|
161
|
-
return
|
|
161
|
+
return be(
|
|
162
162
|
/** @type {Document} */
|
|
163
163
|
e.head || e,
|
|
164
164
|
t
|
|
165
165
|
), t.sheet;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
e.insertBefore(t,
|
|
167
|
+
function $(e, t, n) {
|
|
168
|
+
e.insertBefore(t, n || null);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function C(e) {
|
|
171
171
|
e.parentNode && e.parentNode.removeChild(e);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
for (let
|
|
175
|
-
e[
|
|
173
|
+
function as(e, t) {
|
|
174
|
+
for (let n = 0; n < e.length; n += 1)
|
|
175
|
+
e[n] && e[n].d(t);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function R(e) {
|
|
178
178
|
return document.createElement(e);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function us(e) {
|
|
181
181
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function et(e) {
|
|
184
184
|
return document.createTextNode(e);
|
|
185
185
|
}
|
|
186
186
|
function ft() {
|
|
187
|
-
return
|
|
187
|
+
return et(" ");
|
|
188
188
|
}
|
|
189
189
|
function Vt() {
|
|
190
|
-
return
|
|
190
|
+
return et("");
|
|
191
191
|
}
|
|
192
|
-
function Xt(e, t,
|
|
193
|
-
return e.addEventListener(t,
|
|
192
|
+
function Xt(e, t, n, r) {
|
|
193
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
|
|
195
|
+
function Q(e, t, n) {
|
|
196
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
|
|
198
|
+
function hs(e, t, n) {
|
|
199
|
+
const r = t.toLowerCase();
|
|
200
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : Q(e, t, n);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Rn(e) {
|
|
203
203
|
return Array.from(e.childNodes);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Un(e, t) {
|
|
206
206
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
207
207
|
t);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
|
|
209
|
+
function ls(e, t, n, r) {
|
|
210
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.classList.toggle(t, !!
|
|
212
|
+
function fs(e, t, n) {
|
|
213
|
+
e.classList.toggle(t, !!n);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
215
|
+
function Dn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
216
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Gn(e) {
|
|
219
219
|
const t = {};
|
|
220
220
|
return e.childNodes.forEach(
|
|
221
221
|
/** @param {Element} node */
|
|
222
|
-
(
|
|
223
|
-
t[
|
|
222
|
+
(n) => {
|
|
223
|
+
t[n.slot || "default"] = !0;
|
|
224
224
|
}
|
|
225
225
|
), t;
|
|
226
226
|
}
|
|
227
|
-
const
|
|
228
|
-
let
|
|
229
|
-
function
|
|
230
|
-
let t = 5381,
|
|
231
|
-
for (;
|
|
232
|
-
t = (t << 5) - t ^ e.charCodeAt(
|
|
227
|
+
const _e = /* @__PURE__ */ new Map();
|
|
228
|
+
let ye = 0;
|
|
229
|
+
function Fn(e) {
|
|
230
|
+
let t = 5381, n = e.length;
|
|
231
|
+
for (; n--; )
|
|
232
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
233
233
|
return t >>> 0;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
return
|
|
235
|
+
function jn(e, t) {
|
|
236
|
+
const n = { stylesheet: $n(t), rules: {} };
|
|
237
|
+
return _e.set(e, n), n;
|
|
238
238
|
}
|
|
239
|
-
function zt(e, t,
|
|
240
|
-
const l = 16.666 /
|
|
239
|
+
function zt(e, t, n, r, i, s, a, o = 0) {
|
|
240
|
+
const l = 16.666 / r;
|
|
241
241
|
let u = `{
|
|
242
242
|
`;
|
|
243
243
|
for (let E = 0; E <= 1; E += l) {
|
|
244
|
-
const v = t + (
|
|
244
|
+
const v = t + (n - t) * s(E);
|
|
245
245
|
u += E * 100 + `%{${a(v, 1 - v)}}
|
|
246
246
|
`;
|
|
247
247
|
}
|
|
248
|
-
const h = u + `100% {${a(
|
|
249
|
-
}`, f = `__svelte_${
|
|
250
|
-
c[f] || (c[f] = !0,
|
|
251
|
-
const
|
|
252
|
-
return e.style.animation = `${
|
|
253
|
-
}
|
|
254
|
-
function
|
|
255
|
-
const
|
|
248
|
+
const h = u + `100% {${a(n, 1 - n)}}
|
|
249
|
+
}`, f = `__svelte_${Fn(h)}_${o}`, m = Ke(e), { stylesheet: d, rules: c } = _e.get(m) || jn(m, e);
|
|
250
|
+
c[f] || (c[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
|
|
251
|
+
const p = e.style.animation || "";
|
|
252
|
+
return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, ye += 1, f;
|
|
253
|
+
}
|
|
254
|
+
function Fe(e, t) {
|
|
255
|
+
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
256
256
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
257
257
|
// remove all Svelte animations
|
|
258
|
-
), i =
|
|
259
|
-
i && (e.style.animation =
|
|
258
|
+
), i = n.length - r.length;
|
|
259
|
+
i && (e.style.animation = r.join(", "), ye -= i, ye || kn());
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
function kn() {
|
|
262
|
+
Ye(() => {
|
|
263
|
+
ye || (_e.forEach((e) => {
|
|
264
264
|
const { ownerNode: t } = e.stylesheet;
|
|
265
|
-
t &&
|
|
266
|
-
}),
|
|
265
|
+
t && C(t);
|
|
266
|
+
}), _e.clear());
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
let ne;
|
|
270
|
-
function
|
|
270
|
+
function te(e) {
|
|
271
271
|
ne = e;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Vn() {
|
|
274
274
|
if (!ne)
|
|
275
275
|
throw new Error("Function called outside component initialization");
|
|
276
276
|
return ne;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
|
|
278
|
+
function Xn(e) {
|
|
279
|
+
Vn().$$.on_mount.push(e);
|
|
280
280
|
}
|
|
281
|
-
const
|
|
282
|
-
let
|
|
281
|
+
const j = [], je = [];
|
|
282
|
+
let V = [];
|
|
283
283
|
const ct = [], Wt = /* @__PURE__ */ Promise.resolve();
|
|
284
|
-
let
|
|
284
|
+
let ke = !1;
|
|
285
285
|
function Zt() {
|
|
286
|
-
|
|
286
|
+
ke || (ke = !0, Wt.then(O));
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function cs() {
|
|
289
289
|
return Zt(), Wt;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
291
|
+
function re(e) {
|
|
292
|
+
V.push(e);
|
|
293
293
|
}
|
|
294
|
-
const
|
|
295
|
-
let
|
|
294
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
295
|
+
let G = 0;
|
|
296
296
|
function O() {
|
|
297
|
-
if (
|
|
297
|
+
if (G !== 0)
|
|
298
298
|
return;
|
|
299
299
|
const e = ne;
|
|
300
300
|
do {
|
|
301
301
|
try {
|
|
302
|
-
for (;
|
|
303
|
-
const t =
|
|
304
|
-
|
|
302
|
+
for (; G < j.length; ) {
|
|
303
|
+
const t = j[G];
|
|
304
|
+
G++, te(t), zn(t.$$);
|
|
305
305
|
}
|
|
306
306
|
} catch (t) {
|
|
307
|
-
throw
|
|
307
|
+
throw j.length = 0, G = 0, t;
|
|
308
308
|
}
|
|
309
|
-
for (
|
|
310
|
-
|
|
311
|
-
for (let t = 0; t <
|
|
312
|
-
const
|
|
313
|
-
|
|
309
|
+
for (te(null), j.length = 0, G = 0; je.length; )
|
|
310
|
+
je.pop()();
|
|
311
|
+
for (let t = 0; t < V.length; t += 1) {
|
|
312
|
+
const n = V[t];
|
|
313
|
+
Ne.has(n) || (Ne.add(n), n());
|
|
314
314
|
}
|
|
315
|
-
|
|
316
|
-
} while (
|
|
315
|
+
V.length = 0;
|
|
316
|
+
} while (j.length);
|
|
317
317
|
for (; ct.length; )
|
|
318
318
|
ct.pop()();
|
|
319
|
-
|
|
319
|
+
ke = !1, Ne.clear(), te(e);
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function zn(e) {
|
|
322
322
|
if (e.fragment !== null) {
|
|
323
|
-
e.update(),
|
|
323
|
+
e.update(), M(e.before_update);
|
|
324
324
|
const t = e.dirty;
|
|
325
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
325
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(re);
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
const t = [],
|
|
330
|
-
|
|
328
|
+
function Wn(e) {
|
|
329
|
+
const t = [], n = [];
|
|
330
|
+
V.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), V = t;
|
|
331
331
|
}
|
|
332
|
-
let
|
|
332
|
+
let Y;
|
|
333
333
|
function Qt() {
|
|
334
|
-
return
|
|
335
|
-
|
|
336
|
-
})),
|
|
334
|
+
return Y || (Y = Promise.resolve(), Y.then(() => {
|
|
335
|
+
Y = null;
|
|
336
|
+
})), Y;
|
|
337
337
|
}
|
|
338
|
-
function xe(e, t,
|
|
339
|
-
e.dispatchEvent(
|
|
338
|
+
function xe(e, t, n) {
|
|
339
|
+
e.dispatchEvent(Dn(`${t ? "intro" : "outro"}${n}`));
|
|
340
340
|
}
|
|
341
|
-
const
|
|
342
|
-
let
|
|
343
|
-
function
|
|
344
|
-
|
|
341
|
+
const ce = /* @__PURE__ */ new Set();
|
|
342
|
+
let L;
|
|
343
|
+
function ms() {
|
|
344
|
+
L = {
|
|
345
345
|
r: 0,
|
|
346
346
|
c: [],
|
|
347
|
-
p:
|
|
347
|
+
p: L
|
|
348
348
|
// parent group
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
function ds() {
|
|
352
|
-
|
|
352
|
+
L.r || M(L.c), L = L.p;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
e && e.i && (
|
|
354
|
+
function me(e, t) {
|
|
355
|
+
e && e.i && (ce.delete(e), e.i(t));
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Ie(e, t, n, r) {
|
|
358
358
|
if (e && e.o) {
|
|
359
|
-
if (
|
|
359
|
+
if (ce.has(e))
|
|
360
360
|
return;
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
ce.add(e), L.c.push(() => {
|
|
362
|
+
ce.delete(e), r && (n && e.d(1), r());
|
|
363
363
|
}), e.o(t);
|
|
364
364
|
} else
|
|
365
|
-
|
|
365
|
+
r && r();
|
|
366
366
|
}
|
|
367
367
|
const qt = { duration: 0 };
|
|
368
|
-
function
|
|
369
|
-
const
|
|
370
|
-
let i = t(e,
|
|
368
|
+
function ps(e, t, n) {
|
|
369
|
+
const r = { direction: "in" };
|
|
370
|
+
let i = t(e, n, r), s = !1, a, o, l = 0;
|
|
371
371
|
function u() {
|
|
372
|
-
a &&
|
|
372
|
+
a && Fe(e, a);
|
|
373
373
|
}
|
|
374
374
|
function h() {
|
|
375
375
|
const {
|
|
376
376
|
delay: m = 0,
|
|
377
|
-
duration:
|
|
377
|
+
duration: d = 300,
|
|
378
378
|
easing: c = It,
|
|
379
|
-
tick:
|
|
379
|
+
tick: p = B,
|
|
380
380
|
css: E
|
|
381
381
|
} = i || qt;
|
|
382
|
-
E && (a = zt(e, 0, 1,
|
|
383
|
-
const v = Gt() + m, T = v +
|
|
384
|
-
o && o.abort(), s = !0,
|
|
382
|
+
E && (a = zt(e, 0, 1, d, m, c, E, l++)), p(0, 1);
|
|
383
|
+
const v = Gt() + m, T = v + d;
|
|
384
|
+
o && o.abort(), s = !0, re(() => xe(e, !0, "start")), o = jt((H) => {
|
|
385
385
|
if (s) {
|
|
386
386
|
if (H >= T)
|
|
387
|
-
return
|
|
387
|
+
return p(1, 0), xe(e, !0, "end"), u(), s = !1;
|
|
388
388
|
if (H >= v) {
|
|
389
|
-
const A = c((H - v) /
|
|
390
|
-
|
|
389
|
+
const A = c((H - v) / d);
|
|
390
|
+
p(A, 1 - A);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
return s;
|
|
@@ -396,7 +396,7 @@ function gs(e, t, r) {
|
|
|
396
396
|
let f = !1;
|
|
397
397
|
return {
|
|
398
398
|
start() {
|
|
399
|
-
f || (f = !0,
|
|
399
|
+
f || (f = !0, Fe(e), oe(i) ? (i = i(r), Qt().then(h)) : h());
|
|
400
400
|
},
|
|
401
401
|
invalidate() {
|
|
402
402
|
f = !1;
|
|
@@ -406,10 +406,10 @@ function gs(e, t, r) {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
const
|
|
411
|
-
let i = t(e,
|
|
412
|
-
const o =
|
|
409
|
+
function gs(e, t, n) {
|
|
410
|
+
const r = { direction: "out" };
|
|
411
|
+
let i = t(e, n, r), s = !0, a;
|
|
412
|
+
const o = L;
|
|
413
413
|
o.r += 1;
|
|
414
414
|
let l;
|
|
415
415
|
function u() {
|
|
@@ -417,55 +417,55 @@ function bs(e, t, r) {
|
|
|
417
417
|
delay: h = 0,
|
|
418
418
|
duration: f = 300,
|
|
419
419
|
easing: m = It,
|
|
420
|
-
tick:
|
|
420
|
+
tick: d = B,
|
|
421
421
|
css: c
|
|
422
422
|
} = i || qt;
|
|
423
423
|
c && (a = zt(e, 1, 0, f, h, m, c));
|
|
424
|
-
const
|
|
425
|
-
|
|
424
|
+
const p = Gt() + h, E = p + f;
|
|
425
|
+
re(() => xe(e, !1, "start")), "inert" in e && (l = /** @type {HTMLElement} */
|
|
426
426
|
e.inert, e.inert = !0), jt((v) => {
|
|
427
427
|
if (s) {
|
|
428
428
|
if (v >= E)
|
|
429
|
-
return
|
|
430
|
-
if (v >=
|
|
431
|
-
const T = m((v -
|
|
432
|
-
|
|
429
|
+
return d(0, 1), xe(e, !1, "end"), --o.r || M(o.c), !1;
|
|
430
|
+
if (v >= p) {
|
|
431
|
+
const T = m((v - p) / f);
|
|
432
|
+
d(1 - T, T);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
return s;
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
return
|
|
439
|
-
i = i(
|
|
438
|
+
return oe(i) ? Qt().then(() => {
|
|
439
|
+
i = i(r), u();
|
|
440
440
|
}) : u(), {
|
|
441
441
|
end(h) {
|
|
442
|
-
h && "inert" in e && (e.inert = l), h && i.tick && i.tick(1, 0), s && (a &&
|
|
442
|
+
h && "inert" in e && (e.inert = l), h && i.tick && i.tick(1, 0), s && (a && Fe(e, a), s = !1);
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function bs(e) {
|
|
447
447
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function _s(e) {
|
|
450
450
|
e && e.c();
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
const { fragment:
|
|
454
|
-
|
|
455
|
-
const s = e.$$.on_mount.map(Mt).filter(
|
|
456
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
457
|
-
}), i.forEach(
|
|
452
|
+
function Zn(e, t, n) {
|
|
453
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
454
|
+
r && r.m(t, n), re(() => {
|
|
455
|
+
const s = e.$$.on_mount.map(Mt).filter(oe);
|
|
456
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : M(s), e.$$.on_mount = [];
|
|
457
|
+
}), i.forEach(re);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
const
|
|
461
|
-
|
|
459
|
+
function Qn(e, t) {
|
|
460
|
+
const n = e.$$;
|
|
461
|
+
n.fragment !== null && (Wn(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
e.$$.dirty[0] === -1 && (
|
|
463
|
+
function qn(e, t) {
|
|
464
|
+
e.$$.dirty[0] === -1 && (j.push(e), Zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Jn(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
467
467
|
const l = ne;
|
|
468
|
-
|
|
468
|
+
te(e);
|
|
469
469
|
const u = e.$$ = {
|
|
470
470
|
fragment: null,
|
|
471
471
|
ctx: [],
|
|
@@ -489,22 +489,22 @@ function qr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
489
489
|
};
|
|
490
490
|
a && a(u.root);
|
|
491
491
|
let h = !1;
|
|
492
|
-
if (u.ctx =
|
|
493
|
-
const c =
|
|
494
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = c) && (!u.skip_bound && u.bound[f] && u.bound[f](c), h &&
|
|
495
|
-
}) : [], u.update(), h = !0,
|
|
492
|
+
if (u.ctx = n ? n(e, t.props || {}, (f, m, ...d) => {
|
|
493
|
+
const c = d.length ? d[0] : m;
|
|
494
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = c) && (!u.skip_bound && u.bound[f] && u.bound[f](c), h && qn(e, f)), m;
|
|
495
|
+
}) : [], u.update(), h = !0, M(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
496
496
|
if (t.hydrate) {
|
|
497
|
-
const f =
|
|
498
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
497
|
+
const f = Rn(t.target);
|
|
498
|
+
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
499
499
|
} else
|
|
500
500
|
u.fragment && u.fragment.c();
|
|
501
|
-
t.intro &&
|
|
501
|
+
t.intro && me(e.$$.fragment), Zn(e, t.target, t.anchor), O();
|
|
502
502
|
}
|
|
503
|
-
|
|
503
|
+
te(l);
|
|
504
504
|
}
|
|
505
505
|
let Jt;
|
|
506
506
|
typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
507
|
-
constructor(t,
|
|
507
|
+
constructor(t, n, r) {
|
|
508
508
|
super();
|
|
509
509
|
/** The Svelte component constructor */
|
|
510
510
|
S(this, "$$ctor");
|
|
@@ -524,19 +524,19 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
524
524
|
S(this, "$$l", {});
|
|
525
525
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
526
526
|
S(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
527
|
-
this.$$ctor = t, this.$$s =
|
|
527
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
528
528
|
}
|
|
529
|
-
addEventListener(t,
|
|
530
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
531
|
-
const i = this.$$c.$on(t,
|
|
532
|
-
this.$$l_u.set(
|
|
529
|
+
addEventListener(t, n, r) {
|
|
530
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
531
|
+
const i = this.$$c.$on(t, n);
|
|
532
|
+
this.$$l_u.set(n, i);
|
|
533
533
|
}
|
|
534
|
-
super.addEventListener(t,
|
|
534
|
+
super.addEventListener(t, n, r);
|
|
535
535
|
}
|
|
536
|
-
removeEventListener(t,
|
|
537
|
-
if (super.removeEventListener(t,
|
|
538
|
-
const i = this.$$l_u.get(
|
|
539
|
-
i && (i(), this.$$l_u.delete(
|
|
536
|
+
removeEventListener(t, n, r) {
|
|
537
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
538
|
+
const i = this.$$l_u.get(n);
|
|
539
|
+
i && (i(), this.$$l_u.delete(n));
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
connectedCallback() {
|
|
@@ -547,26 +547,26 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
547
547
|
let a;
|
|
548
548
|
return {
|
|
549
549
|
c: function() {
|
|
550
|
-
a =
|
|
550
|
+
a = R("slot"), s !== "default" && Q(a, "name", s);
|
|
551
551
|
},
|
|
552
552
|
/**
|
|
553
553
|
* @param {HTMLElement} target
|
|
554
554
|
* @param {HTMLElement} [anchor]
|
|
555
555
|
*/
|
|
556
556
|
m: function(u, h) {
|
|
557
|
-
|
|
557
|
+
$(u, a, h);
|
|
558
558
|
},
|
|
559
559
|
d: function(u) {
|
|
560
|
-
u &&
|
|
560
|
+
u && C(a);
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
563
|
};
|
|
564
564
|
};
|
|
565
565
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
566
566
|
return;
|
|
567
|
-
const
|
|
567
|
+
const n = {}, r = Gn(this);
|
|
568
568
|
for (const s of this.$$s)
|
|
569
|
-
s in
|
|
569
|
+
s in r && (n[s] = [t(s)]);
|
|
570
570
|
for (const s of this.attributes) {
|
|
571
571
|
const a = this.$$g_p(s.name);
|
|
572
572
|
a in this.$$d || (this.$$d[a] = de(a, s.value, this.$$p_d, "toProp"));
|
|
@@ -576,7 +576,7 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
576
576
|
this.$$c = new this.$$ctor({
|
|
577
577
|
target: this.shadowRoot || this,
|
|
578
578
|
props: ut(at({}, this.$$d), {
|
|
579
|
-
$$slots:
|
|
579
|
+
$$slots: n,
|
|
580
580
|
$$scope: {
|
|
581
581
|
ctx: []
|
|
582
582
|
}
|
|
@@ -608,9 +608,9 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
608
608
|
}
|
|
609
609
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
610
610
|
// and setting attributes through setAttribute etc, this is helpful
|
|
611
|
-
attributeChangedCallback(t,
|
|
611
|
+
attributeChangedCallback(t, n, r) {
|
|
612
612
|
var i;
|
|
613
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t,
|
|
613
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
614
614
|
}
|
|
615
615
|
disconnectedCallback() {
|
|
616
616
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -619,16 +619,16 @@ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
|
619
619
|
}
|
|
620
620
|
$$g_p(t) {
|
|
621
621
|
return Object.keys(this.$$p_d).find(
|
|
622
|
-
(
|
|
622
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
623
623
|
) || t;
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
|
-
function de(e, t,
|
|
626
|
+
function de(e, t, n, r) {
|
|
627
627
|
var s;
|
|
628
|
-
const i = (s =
|
|
629
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
628
|
+
const i = (s = n[e]) == null ? void 0 : s.type;
|
|
629
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
630
630
|
return t;
|
|
631
|
-
if (
|
|
631
|
+
if (r === "toAttribute")
|
|
632
632
|
switch (i) {
|
|
633
633
|
case "Object":
|
|
634
634
|
case "Array":
|
|
@@ -653,10 +653,10 @@ function de(e, t, r, n) {
|
|
|
653
653
|
return t;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Yn(e, t, n, r, i, s) {
|
|
657
657
|
let a = class extends Jt {
|
|
658
658
|
constructor() {
|
|
659
|
-
super(e,
|
|
659
|
+
super(e, n, i), this.$$p_d = t;
|
|
660
660
|
}
|
|
661
661
|
static get observedAttributes() {
|
|
662
662
|
return Object.keys(t).map(
|
|
@@ -674,7 +674,7 @@ function Jr(e, t, r, n, i, s) {
|
|
|
674
674
|
l = de(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
|
-
}),
|
|
677
|
+
}), r.forEach((o) => {
|
|
678
678
|
Object.defineProperty(a.prototype, o, {
|
|
679
679
|
get() {
|
|
680
680
|
var l;
|
|
@@ -684,7 +684,7 @@ function Jr(e, t, r, n, i, s) {
|
|
|
684
684
|
}), e.element = /** @type {any} */
|
|
685
685
|
a, a;
|
|
686
686
|
}
|
|
687
|
-
class
|
|
687
|
+
class Kn {
|
|
688
688
|
constructor() {
|
|
689
689
|
/**
|
|
690
690
|
* ### PRIVATE API
|
|
@@ -705,7 +705,7 @@ class Yr {
|
|
|
705
705
|
}
|
|
706
706
|
/** @returns {void} */
|
|
707
707
|
$destroy() {
|
|
708
|
-
|
|
708
|
+
Qn(this, 1), this.$destroy = B;
|
|
709
709
|
}
|
|
710
710
|
/**
|
|
711
711
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -713,13 +713,13 @@ class Yr {
|
|
|
713
713
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
714
714
|
* @returns {() => void}
|
|
715
715
|
*/
|
|
716
|
-
$on(t,
|
|
717
|
-
if (!
|
|
716
|
+
$on(t, n) {
|
|
717
|
+
if (!oe(n))
|
|
718
718
|
return B;
|
|
719
|
-
const
|
|
720
|
-
return
|
|
721
|
-
const i =
|
|
722
|
-
i !== -1 &&
|
|
719
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
720
|
+
return r.push(n), () => {
|
|
721
|
+
const i = r.indexOf(n);
|
|
722
|
+
i !== -1 && r.splice(i, 1);
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
725
|
/**
|
|
@@ -727,52 +727,52 @@ class Yr {
|
|
|
727
727
|
* @returns {void}
|
|
728
728
|
*/
|
|
729
729
|
$set(t) {
|
|
730
|
-
this.$$set && !
|
|
730
|
+
this.$$set && !Nn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
const
|
|
734
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
735
|
-
function
|
|
733
|
+
const er = "4";
|
|
734
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
|
735
|
+
function tr(e, t) {
|
|
736
736
|
if (e) {
|
|
737
|
-
const
|
|
738
|
-
|
|
737
|
+
const n = document.createElement("style");
|
|
738
|
+
n.innerHTML = t, e.appendChild(n);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
function
|
|
742
|
-
const
|
|
743
|
-
fetch(
|
|
741
|
+
function nr(e, t) {
|
|
742
|
+
const n = new URL(t);
|
|
743
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
744
744
|
const i = document.createElement("style");
|
|
745
|
-
i.innerHTML =
|
|
746
|
-
}).catch((
|
|
747
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
745
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
746
|
+
}).catch((r) => {
|
|
747
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function rr(e, t, n) {
|
|
751
751
|
if (window.emMessageBus) {
|
|
752
|
-
const
|
|
752
|
+
const r = document.createElement("style");
|
|
753
753
|
window.emMessageBus.subscribe(t, (i) => {
|
|
754
|
-
|
|
754
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
const
|
|
759
|
-
function
|
|
758
|
+
const F = [];
|
|
759
|
+
function ir(e, t) {
|
|
760
760
|
return {
|
|
761
|
-
subscribe:
|
|
761
|
+
subscribe: we(e, t).subscribe
|
|
762
762
|
};
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
let
|
|
766
|
-
const
|
|
764
|
+
function we(e, t = B) {
|
|
765
|
+
let n;
|
|
766
|
+
const r = /* @__PURE__ */ new Set();
|
|
767
767
|
function i(o) {
|
|
768
|
-
if ($t(e, o) && (e = o,
|
|
769
|
-
const l = !
|
|
770
|
-
for (const u of
|
|
771
|
-
u[1](),
|
|
768
|
+
if ($t(e, o) && (e = o, n)) {
|
|
769
|
+
const l = !F.length;
|
|
770
|
+
for (const u of r)
|
|
771
|
+
u[1](), F.push(u, e);
|
|
772
772
|
if (l) {
|
|
773
|
-
for (let u = 0; u <
|
|
774
|
-
|
|
775
|
-
|
|
773
|
+
for (let u = 0; u < F.length; u += 2)
|
|
774
|
+
F[u][0](F[u + 1]);
|
|
775
|
+
F.length = 0;
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
}
|
|
@@ -781,18 +781,18 @@ function Te(e, t = B) {
|
|
|
781
781
|
}
|
|
782
782
|
function a(o, l = B) {
|
|
783
783
|
const u = [o, l];
|
|
784
|
-
return
|
|
785
|
-
|
|
784
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || B), o(e), () => {
|
|
785
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
786
786
|
};
|
|
787
787
|
}
|
|
788
788
|
return { set: i, update: s, subscribe: a };
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
const
|
|
790
|
+
function q(e, t, n) {
|
|
791
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
792
792
|
if (!i.every(Boolean))
|
|
793
793
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
794
794
|
const s = t.length < 2;
|
|
795
|
-
return
|
|
795
|
+
return ir(n, (a, o) => {
|
|
796
796
|
let l = !1;
|
|
797
797
|
const u = [];
|
|
798
798
|
let h = 0, f = B;
|
|
@@ -800,255 +800,261 @@ function J(e, t, r) {
|
|
|
800
800
|
if (h)
|
|
801
801
|
return;
|
|
802
802
|
f();
|
|
803
|
-
const c = t(
|
|
804
|
-
s ? a(c) : f =
|
|
805
|
-
},
|
|
806
|
-
(c,
|
|
803
|
+
const c = t(r ? u[0] : u, a, o);
|
|
804
|
+
s ? a(c) : f = oe(c) ? c : B;
|
|
805
|
+
}, d = i.map(
|
|
806
|
+
(c, p) => Rt(
|
|
807
807
|
c,
|
|
808
808
|
(E) => {
|
|
809
|
-
u[
|
|
809
|
+
u[p] = E, h &= ~(1 << p), l && m();
|
|
810
810
|
},
|
|
811
811
|
() => {
|
|
812
|
-
h |= 1 <<
|
|
812
|
+
h |= 1 << p;
|
|
813
813
|
}
|
|
814
814
|
)
|
|
815
815
|
);
|
|
816
816
|
return l = !0, m(), function() {
|
|
817
|
-
|
|
817
|
+
M(d), f(), l = !1;
|
|
818
818
|
};
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
|
-
var
|
|
822
|
-
function
|
|
821
|
+
var ys = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
822
|
+
function sr(e) {
|
|
823
823
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
824
824
|
}
|
|
825
|
-
var
|
|
826
|
-
return
|
|
825
|
+
var or = function(t) {
|
|
826
|
+
return ar(t) && !ur(t);
|
|
827
827
|
};
|
|
828
|
-
function
|
|
828
|
+
function ar(e) {
|
|
829
829
|
return !!e && typeof e == "object";
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function ur(e) {
|
|
832
832
|
var t = Object.prototype.toString.call(e);
|
|
833
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
833
|
+
return t === "[object RegExp]" || t === "[object Date]" || fr(e);
|
|
834
834
|
}
|
|
835
|
-
var
|
|
836
|
-
function
|
|
837
|
-
return e.$$typeof ===
|
|
835
|
+
var hr = typeof Symbol == "function" && Symbol.for, lr = hr ? Symbol.for("react.element") : 60103;
|
|
836
|
+
function fr(e) {
|
|
837
|
+
return e.$$typeof === lr;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function cr(e) {
|
|
840
840
|
return Array.isArray(e) ? [] : {};
|
|
841
841
|
}
|
|
842
|
-
function
|
|
843
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
842
|
+
function ie(e, t) {
|
|
843
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(cr(e), e, t) : e;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
return e.concat(t).map(function(
|
|
847
|
-
return
|
|
845
|
+
function mr(e, t, n) {
|
|
846
|
+
return e.concat(t).map(function(r) {
|
|
847
|
+
return ie(r, n);
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function dr(e, t) {
|
|
851
851
|
if (!t.customMerge)
|
|
852
|
-
return
|
|
853
|
-
var
|
|
854
|
-
return typeof
|
|
852
|
+
return X;
|
|
853
|
+
var n = t.customMerge(e);
|
|
854
|
+
return typeof n == "function" ? n : X;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function pr(e) {
|
|
857
857
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
858
858
|
return Object.propertyIsEnumerable.call(e, t);
|
|
859
859
|
}) : [];
|
|
860
860
|
}
|
|
861
861
|
function mt(e) {
|
|
862
|
-
return Object.keys(e).concat(
|
|
862
|
+
return Object.keys(e).concat(pr(e));
|
|
863
863
|
}
|
|
864
864
|
function Yt(e, t) {
|
|
865
865
|
try {
|
|
866
866
|
return t in e;
|
|
867
|
-
} catch (
|
|
867
|
+
} catch (n) {
|
|
868
868
|
return !1;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function gr(e, t) {
|
|
872
872
|
return Yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
var
|
|
876
|
-
return
|
|
877
|
-
|
|
874
|
+
function br(e, t, n) {
|
|
875
|
+
var r = {};
|
|
876
|
+
return n.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
877
|
+
r[i] = ie(e[i], n);
|
|
878
878
|
}), mt(t).forEach(function(i) {
|
|
879
|
-
|
|
880
|
-
}),
|
|
879
|
+
gr(e, i) || (Yt(e, i) && n.isMergeableObject(t[i]) ? r[i] = dr(i, n)(e[i], t[i], n) : r[i] = ie(t[i], n));
|
|
880
|
+
}), r;
|
|
881
881
|
}
|
|
882
|
-
function
|
|
883
|
-
|
|
884
|
-
var
|
|
885
|
-
return s ?
|
|
882
|
+
function X(e, t, n) {
|
|
883
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || mr, n.isMergeableObject = n.isMergeableObject || or, n.cloneUnlessOtherwiseSpecified = ie;
|
|
884
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
885
|
+
return s ? r ? n.arrayMerge(e, t, n) : br(e, t, n) : ie(t, n);
|
|
886
886
|
}
|
|
887
|
-
|
|
887
|
+
X.all = function(t, n) {
|
|
888
888
|
if (!Array.isArray(t))
|
|
889
889
|
throw new Error("first argument should be an array");
|
|
890
|
-
return t.reduce(function(
|
|
891
|
-
return
|
|
890
|
+
return t.reduce(function(r, i) {
|
|
891
|
+
return X(r, i, n);
|
|
892
892
|
}, {});
|
|
893
893
|
};
|
|
894
|
-
var
|
|
895
|
-
const
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
894
|
+
var _r = X, yr = _r;
|
|
895
|
+
const xr = /* @__PURE__ */ sr(yr);
|
|
896
|
+
/*! *****************************************************************************
|
|
897
|
+
Copyright (c) Microsoft Corporation.
|
|
898
|
+
|
|
899
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
900
|
+
purpose with or without fee is hereby granted.
|
|
901
|
+
|
|
902
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
903
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
904
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
905
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
906
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
907
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
908
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
909
|
+
***************************************************************************** */
|
|
910
|
+
var Ve = function(e, t) {
|
|
911
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
912
|
+
n.__proto__ = r;
|
|
913
|
+
} || function(n, r) {
|
|
914
|
+
for (var i in r)
|
|
915
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
916
|
+
}, Ve(e, t);
|
|
903
917
|
};
|
|
904
|
-
function
|
|
918
|
+
function Be(e, t) {
|
|
905
919
|
if (typeof t != "function" && t !== null)
|
|
906
920
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
907
|
-
|
|
908
|
-
function
|
|
921
|
+
Ve(e, t);
|
|
922
|
+
function n() {
|
|
909
923
|
this.constructor = e;
|
|
910
924
|
}
|
|
911
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
912
|
-
}
|
|
913
|
-
var
|
|
914
|
-
return
|
|
915
|
-
for (var
|
|
916
|
-
|
|
917
|
-
for (var s in
|
|
918
|
-
Object.prototype.hasOwnProperty.call(
|
|
925
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
926
|
+
}
|
|
927
|
+
var y = function() {
|
|
928
|
+
return y = Object.assign || function(t) {
|
|
929
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
930
|
+
n = arguments[r];
|
|
931
|
+
for (var s in n)
|
|
932
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
919
933
|
}
|
|
920
934
|
return t;
|
|
921
|
-
},
|
|
935
|
+
}, y.apply(this, arguments);
|
|
922
936
|
};
|
|
923
|
-
function
|
|
924
|
-
var
|
|
925
|
-
for (var
|
|
926
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
937
|
+
function Er(e, t) {
|
|
938
|
+
var n = {};
|
|
939
|
+
for (var r in e)
|
|
940
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
927
941
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
928
|
-
for (var i = 0,
|
|
929
|
-
t.indexOf(
|
|
930
|
-
return
|
|
942
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
943
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
944
|
+
return n;
|
|
931
945
|
}
|
|
932
|
-
function
|
|
933
|
-
if (
|
|
934
|
-
for (var
|
|
935
|
-
(s || !(
|
|
936
|
-
return e.concat(s ||
|
|
946
|
+
function Me(e, t, n) {
|
|
947
|
+
if (arguments.length === 2)
|
|
948
|
+
for (var r = 0, i = t.length, s; r < i; r++)
|
|
949
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
950
|
+
return e.concat(s || t);
|
|
937
951
|
}
|
|
938
|
-
function
|
|
939
|
-
var
|
|
952
|
+
function $e(e, t) {
|
|
953
|
+
var n = t && t.cache ? t.cache : Sr, r = t && t.serializer ? t.serializer : Tr, i = t && t.strategy ? t.strategy : Hr;
|
|
940
954
|
return i(e, {
|
|
941
|
-
cache:
|
|
942
|
-
serializer:
|
|
955
|
+
cache: n,
|
|
956
|
+
serializer: r
|
|
943
957
|
});
|
|
944
958
|
}
|
|
945
|
-
function
|
|
959
|
+
function vr(e) {
|
|
946
960
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
947
961
|
}
|
|
948
|
-
function
|
|
949
|
-
var i =
|
|
950
|
-
return typeof s == "undefined" && (s = e.call(this,
|
|
962
|
+
function Kt(e, t, n, r) {
|
|
963
|
+
var i = vr(r) ? r : n(r), s = t.get(i);
|
|
964
|
+
return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
|
|
965
|
+
}
|
|
966
|
+
function en(e, t, n) {
|
|
967
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
968
|
+
return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
951
969
|
}
|
|
952
|
-
function
|
|
953
|
-
|
|
954
|
-
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
970
|
+
function tt(e, t, n, r, i) {
|
|
971
|
+
return n.bind(t, e, r, i);
|
|
955
972
|
}
|
|
956
|
-
function
|
|
957
|
-
|
|
973
|
+
function Hr(e, t) {
|
|
974
|
+
var n = e.length === 1 ? Kt : en;
|
|
975
|
+
return tt(e, this, n, t.cache.create(), t.serializer);
|
|
958
976
|
}
|
|
959
|
-
function
|
|
960
|
-
|
|
961
|
-
return er(e, this, r, t.cache.create(), t.serializer);
|
|
977
|
+
function wr(e, t) {
|
|
978
|
+
return tt(e, this, en, t.cache.create(), t.serializer);
|
|
962
979
|
}
|
|
963
|
-
function
|
|
964
|
-
return
|
|
980
|
+
function Br(e, t) {
|
|
981
|
+
return tt(e, this, Kt, t.cache.create(), t.serializer);
|
|
965
982
|
}
|
|
966
|
-
var
|
|
983
|
+
var Tr = function() {
|
|
967
984
|
return JSON.stringify(arguments);
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}()
|
|
980
|
-
), An = {
|
|
985
|
+
};
|
|
986
|
+
function nt() {
|
|
987
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
988
|
+
}
|
|
989
|
+
nt.prototype.get = function(e) {
|
|
990
|
+
return this.cache[e];
|
|
991
|
+
};
|
|
992
|
+
nt.prototype.set = function(e, t) {
|
|
993
|
+
this.cache[e] = t;
|
|
994
|
+
};
|
|
995
|
+
var Sr = {
|
|
981
996
|
create: function() {
|
|
982
|
-
return new
|
|
997
|
+
return new nt();
|
|
983
998
|
}
|
|
984
|
-
},
|
|
985
|
-
variadic:
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
989
|
-
r = arguments[n];
|
|
990
|
-
for (var s in r)
|
|
991
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
992
|
-
}
|
|
993
|
-
return t;
|
|
994
|
-
}, ve.apply(this, arguments);
|
|
995
|
-
};
|
|
996
|
-
var g;
|
|
999
|
+
}, Re = {
|
|
1000
|
+
variadic: wr,
|
|
1001
|
+
monadic: Br
|
|
1002
|
+
}, g;
|
|
997
1003
|
(function(e) {
|
|
998
1004
|
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";
|
|
999
1005
|
})(g || (g = {}));
|
|
1000
|
-
var
|
|
1006
|
+
var x;
|
|
1001
1007
|
(function(e) {
|
|
1002
1008
|
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";
|
|
1003
|
-
})(
|
|
1004
|
-
var
|
|
1009
|
+
})(x || (x = {}));
|
|
1010
|
+
var z;
|
|
1005
1011
|
(function(e) {
|
|
1006
1012
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1007
|
-
})(
|
|
1008
|
-
function
|
|
1009
|
-
return e.type ===
|
|
1013
|
+
})(z || (z = {}));
|
|
1014
|
+
function dt(e) {
|
|
1015
|
+
return e.type === x.literal;
|
|
1010
1016
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return e.type ===
|
|
1017
|
+
function Ar(e) {
|
|
1018
|
+
return e.type === x.argument;
|
|
1013
1019
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return e.type ===
|
|
1020
|
+
function tn(e) {
|
|
1021
|
+
return e.type === x.number;
|
|
1016
1022
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return e.type ===
|
|
1023
|
+
function nn(e) {
|
|
1024
|
+
return e.type === x.date;
|
|
1019
1025
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return e.type ===
|
|
1026
|
+
function rn(e) {
|
|
1027
|
+
return e.type === x.time;
|
|
1022
1028
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return e.type ===
|
|
1029
|
+
function sn(e) {
|
|
1030
|
+
return e.type === x.select;
|
|
1025
1031
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return e.type ===
|
|
1032
|
+
function on(e) {
|
|
1033
|
+
return e.type === x.plural;
|
|
1028
1034
|
}
|
|
1029
|
-
function
|
|
1030
|
-
return e.type ===
|
|
1035
|
+
function Or(e) {
|
|
1036
|
+
return e.type === x.pound;
|
|
1031
1037
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return e.type ===
|
|
1038
|
+
function an(e) {
|
|
1039
|
+
return e.type === x.tag;
|
|
1034
1040
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1041
|
+
function un(e) {
|
|
1042
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1037
1043
|
}
|
|
1038
|
-
function
|
|
1039
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1044
|
+
function Xe(e) {
|
|
1045
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1040
1046
|
}
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1047
|
+
var hn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
|
|
1048
|
+
function Cr(e) {
|
|
1043
1049
|
var t = {};
|
|
1044
|
-
return e.replace(
|
|
1045
|
-
var
|
|
1046
|
-
switch (
|
|
1050
|
+
return e.replace(Pr, function(n) {
|
|
1051
|
+
var r = n.length;
|
|
1052
|
+
switch (n[0]) {
|
|
1047
1053
|
case "G":
|
|
1048
|
-
t.era =
|
|
1054
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1049
1055
|
break;
|
|
1050
1056
|
case "y":
|
|
1051
|
-
t.year =
|
|
1057
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
1052
1058
|
break;
|
|
1053
1059
|
case "Y":
|
|
1054
1060
|
case "u":
|
|
@@ -1060,30 +1066,30 @@ function Ln(e) {
|
|
|
1060
1066
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1061
1067
|
case "M":
|
|
1062
1068
|
case "L":
|
|
1063
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
1069
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
1064
1070
|
break;
|
|
1065
1071
|
case "w":
|
|
1066
1072
|
case "W":
|
|
1067
1073
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
1068
1074
|
case "d":
|
|
1069
|
-
t.day = ["numeric", "2-digit"][
|
|
1075
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
1070
1076
|
break;
|
|
1071
1077
|
case "D":
|
|
1072
1078
|
case "F":
|
|
1073
1079
|
case "g":
|
|
1074
1080
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1075
1081
|
case "E":
|
|
1076
|
-
t.weekday =
|
|
1082
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
1077
1083
|
break;
|
|
1078
1084
|
case "e":
|
|
1079
|
-
if (
|
|
1085
|
+
if (r < 4)
|
|
1080
1086
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1081
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1087
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1082
1088
|
break;
|
|
1083
1089
|
case "c":
|
|
1084
|
-
if (
|
|
1090
|
+
if (r < 4)
|
|
1085
1091
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1086
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
1092
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
1087
1093
|
break;
|
|
1088
1094
|
case "a":
|
|
1089
1095
|
t.hour12 = !0;
|
|
@@ -1092,32 +1098,32 @@ function Ln(e) {
|
|
|
1092
1098
|
case "B":
|
|
1093
1099
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1094
1100
|
case "h":
|
|
1095
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
1101
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1096
1102
|
break;
|
|
1097
1103
|
case "H":
|
|
1098
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
1104
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1099
1105
|
break;
|
|
1100
1106
|
case "K":
|
|
1101
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
1107
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1102
1108
|
break;
|
|
1103
1109
|
case "k":
|
|
1104
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
1110
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
1105
1111
|
break;
|
|
1106
1112
|
case "j":
|
|
1107
1113
|
case "J":
|
|
1108
1114
|
case "C":
|
|
1109
1115
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1110
1116
|
case "m":
|
|
1111
|
-
t.minute = ["numeric", "2-digit"][
|
|
1117
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
1112
1118
|
break;
|
|
1113
1119
|
case "s":
|
|
1114
|
-
t.second = ["numeric", "2-digit"][
|
|
1120
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
1115
1121
|
break;
|
|
1116
1122
|
case "S":
|
|
1117
1123
|
case "A":
|
|
1118
1124
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1119
1125
|
case "z":
|
|
1120
|
-
t.timeZoneName =
|
|
1126
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
1121
1127
|
break;
|
|
1122
1128
|
case "Z":
|
|
1123
1129
|
case "O":
|
|
@@ -1130,24 +1136,14 @@ function Ln(e) {
|
|
|
1130
1136
|
return "";
|
|
1131
1137
|
}), t;
|
|
1132
1138
|
}
|
|
1133
|
-
var
|
|
1134
|
-
|
|
1135
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1136
|
-
r = arguments[n];
|
|
1137
|
-
for (var s in r)
|
|
1138
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1139
|
-
}
|
|
1140
|
-
return t;
|
|
1141
|
-
}, x.apply(this, arguments);
|
|
1142
|
-
};
|
|
1143
|
-
var Nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1144
|
-
function In(e) {
|
|
1139
|
+
var Lr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1140
|
+
function Nr(e) {
|
|
1145
1141
|
if (e.length === 0)
|
|
1146
1142
|
throw new Error("Number skeleton cannot be empty");
|
|
1147
|
-
for (var t = e.split(
|
|
1143
|
+
for (var t = e.split(Lr).filter(function(m) {
|
|
1148
1144
|
return m.length > 0;
|
|
1149
|
-
}),
|
|
1150
|
-
var s = i[
|
|
1145
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1146
|
+
var s = i[r], a = s.split("/");
|
|
1151
1147
|
if (a.length === 0)
|
|
1152
1148
|
throw new Error("Invalid number skeleton");
|
|
1153
1149
|
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
@@ -1155,21 +1151,21 @@ function In(e) {
|
|
|
1155
1151
|
if (f.length === 0)
|
|
1156
1152
|
throw new Error("Invalid number skeleton");
|
|
1157
1153
|
}
|
|
1158
|
-
|
|
1154
|
+
n.push({ stem: o, options: l });
|
|
1159
1155
|
}
|
|
1160
|
-
return
|
|
1156
|
+
return n;
|
|
1161
1157
|
}
|
|
1162
|
-
function
|
|
1158
|
+
function Ir(e) {
|
|
1163
1159
|
return e.replace(/^(.*?)-/, "");
|
|
1164
1160
|
}
|
|
1165
|
-
var
|
|
1161
|
+
var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ln = /^(@+)?(\+|#+)?[rs]?$/g, Mr = /(\*)(0+)|(#+)(0+)|(0+)/g, fn = /^(0+)$/;
|
|
1166
1162
|
function gt(e) {
|
|
1167
1163
|
var t = {};
|
|
1168
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1169
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
1164
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ln, function(n, r, i) {
|
|
1165
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1170
1166
|
}), t;
|
|
1171
1167
|
}
|
|
1172
|
-
function
|
|
1168
|
+
function cn(e) {
|
|
1173
1169
|
switch (e) {
|
|
1174
1170
|
case "sign-auto":
|
|
1175
1171
|
return {
|
|
@@ -1209,27 +1205,27 @@ function fr(e) {
|
|
|
1209
1205
|
};
|
|
1210
1206
|
}
|
|
1211
1207
|
}
|
|
1212
|
-
function
|
|
1208
|
+
function $r(e) {
|
|
1213
1209
|
var t;
|
|
1214
1210
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1215
1211
|
notation: "engineering"
|
|
1216
1212
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
1217
1213
|
notation: "scientific"
|
|
1218
1214
|
}, e = e.slice(1)), t) {
|
|
1219
|
-
var
|
|
1220
|
-
if (
|
|
1215
|
+
var n = e.slice(0, 2);
|
|
1216
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fn.test(e))
|
|
1221
1217
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1222
1218
|
t.minimumIntegerDigits = e.length;
|
|
1223
1219
|
}
|
|
1224
1220
|
return t;
|
|
1225
1221
|
}
|
|
1226
1222
|
function bt(e) {
|
|
1227
|
-
var t = {},
|
|
1228
|
-
return
|
|
1223
|
+
var t = {}, n = cn(e);
|
|
1224
|
+
return n || t;
|
|
1229
1225
|
}
|
|
1230
|
-
function
|
|
1231
|
-
for (var t = {},
|
|
1232
|
-
var i = n
|
|
1226
|
+
function Rr(e) {
|
|
1227
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1228
|
+
var i = r[n];
|
|
1233
1229
|
switch (i.stem) {
|
|
1234
1230
|
case "percent":
|
|
1235
1231
|
case "%":
|
|
@@ -1251,7 +1247,7 @@ function Un(e) {
|
|
|
1251
1247
|
continue;
|
|
1252
1248
|
case "measure-unit":
|
|
1253
1249
|
case "unit":
|
|
1254
|
-
t.style = "unit", t.unit =
|
|
1250
|
+
t.style = "unit", t.unit = Ir(i.options[0]);
|
|
1255
1251
|
continue;
|
|
1256
1252
|
case "compact-short":
|
|
1257
1253
|
case "K":
|
|
@@ -1262,13 +1258,13 @@ function Un(e) {
|
|
|
1262
1258
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1263
1259
|
continue;
|
|
1264
1260
|
case "scientific":
|
|
1265
|
-
t =
|
|
1266
|
-
return
|
|
1261
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1262
|
+
return y(y({}, l), bt(u));
|
|
1267
1263
|
}, {}));
|
|
1268
1264
|
continue;
|
|
1269
1265
|
case "engineering":
|
|
1270
|
-
t =
|
|
1271
|
-
return
|
|
1266
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1267
|
+
return y(y({}, l), bt(u));
|
|
1272
1268
|
}, {}));
|
|
1273
1269
|
continue;
|
|
1274
1270
|
case "notation-simple":
|
|
@@ -1313,45 +1309,45 @@ function Un(e) {
|
|
|
1313
1309
|
case "integer-width":
|
|
1314
1310
|
if (i.options.length > 1)
|
|
1315
1311
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1316
|
-
i.options[0].replace(
|
|
1312
|
+
i.options[0].replace(Mr, function(l, u, h, f, m, d) {
|
|
1317
1313
|
if (u)
|
|
1318
1314
|
t.minimumIntegerDigits = h.length;
|
|
1319
1315
|
else {
|
|
1320
1316
|
if (f && m)
|
|
1321
1317
|
throw new Error("We currently do not support maximum integer digits");
|
|
1322
|
-
if (
|
|
1318
|
+
if (d)
|
|
1323
1319
|
throw new Error("We currently do not support exact integer digits");
|
|
1324
1320
|
}
|
|
1325
1321
|
return "";
|
|
1326
1322
|
});
|
|
1327
1323
|
continue;
|
|
1328
1324
|
}
|
|
1329
|
-
if (
|
|
1325
|
+
if (fn.test(i.stem)) {
|
|
1330
1326
|
t.minimumIntegerDigits = i.stem.length;
|
|
1331
1327
|
continue;
|
|
1332
1328
|
}
|
|
1333
|
-
if (
|
|
1329
|
+
if (pt.test(i.stem)) {
|
|
1334
1330
|
if (i.options.length > 1)
|
|
1335
1331
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1336
|
-
i.stem.replace(
|
|
1337
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m &&
|
|
1332
|
+
i.stem.replace(pt, function(l, u, h, f, m, d) {
|
|
1333
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1338
1334
|
});
|
|
1339
1335
|
var s = i.options[0];
|
|
1340
|
-
s === "w" ? t =
|
|
1336
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), gt(s)));
|
|
1341
1337
|
continue;
|
|
1342
1338
|
}
|
|
1343
|
-
if (
|
|
1344
|
-
t =
|
|
1339
|
+
if (ln.test(i.stem)) {
|
|
1340
|
+
t = y(y({}, t), gt(i.stem));
|
|
1345
1341
|
continue;
|
|
1346
1342
|
}
|
|
1347
|
-
var a =
|
|
1348
|
-
a && (t =
|
|
1349
|
-
var o =
|
|
1350
|
-
o && (t =
|
|
1343
|
+
var a = cn(i.stem);
|
|
1344
|
+
a && (t = y(y({}, t), a));
|
|
1345
|
+
var o = $r(i.stem);
|
|
1346
|
+
o && (t = y(y({}, t), o));
|
|
1351
1347
|
}
|
|
1352
1348
|
return t;
|
|
1353
1349
|
}
|
|
1354
|
-
var
|
|
1350
|
+
var fe = {
|
|
1355
1351
|
"001": [
|
|
1356
1352
|
"H",
|
|
1357
1353
|
"h"
|
|
@@ -2766,23 +2762,23 @@ var ce = {
|
|
|
2766
2762
|
"h"
|
|
2767
2763
|
]
|
|
2768
2764
|
};
|
|
2769
|
-
function
|
|
2770
|
-
for (var
|
|
2771
|
-
var i = e.charAt(
|
|
2765
|
+
function Ur(e, t) {
|
|
2766
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2767
|
+
var i = e.charAt(r);
|
|
2772
2768
|
if (i === "j") {
|
|
2773
|
-
for (var s = 0;
|
|
2774
|
-
s++,
|
|
2775
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2769
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2770
|
+
s++, r++;
|
|
2771
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Dr(t);
|
|
2776
2772
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2777
|
-
|
|
2773
|
+
n += l;
|
|
2778
2774
|
for (; a-- > 0; )
|
|
2779
|
-
|
|
2775
|
+
n = u + n;
|
|
2780
2776
|
} else
|
|
2781
|
-
i === "J" ?
|
|
2777
|
+
i === "J" ? n += "H" : n += i;
|
|
2782
2778
|
}
|
|
2783
|
-
return
|
|
2779
|
+
return n;
|
|
2784
2780
|
}
|
|
2785
|
-
function
|
|
2781
|
+
function Dr(e) {
|
|
2786
2782
|
var t = e.hourCycle;
|
|
2787
2783
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2788
2784
|
e.hourCycles && // @ts-ignore
|
|
@@ -2799,73 +2795,73 @@ function Gn(e) {
|
|
|
2799
2795
|
default:
|
|
2800
2796
|
throw new Error("Invalid hourCycle");
|
|
2801
2797
|
}
|
|
2802
|
-
var
|
|
2803
|
-
|
|
2804
|
-
var i =
|
|
2798
|
+
var n = e.language, r;
|
|
2799
|
+
n !== "root" && (r = e.maximize().region);
|
|
2800
|
+
var i = fe[r || ""] || fe[n || ""] || fe["".concat(n, "-001")] || fe["001"];
|
|
2805
2801
|
return i[0];
|
|
2806
2802
|
}
|
|
2807
|
-
var
|
|
2803
|
+
var Ue, Gr = new RegExp("^".concat(hn.source, "*")), Fr = new RegExp("".concat(hn.source, "*$"));
|
|
2808
2804
|
function b(e, t) {
|
|
2809
2805
|
return { start: e, end: t };
|
|
2810
2806
|
}
|
|
2811
|
-
var
|
|
2807
|
+
var jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), kr = !!String.fromCodePoint, Vr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, zr = !!String.prototype.trimStart, Wr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Qr = Zr ? Number.isSafeInteger : function(e) {
|
|
2812
2808
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2813
|
-
},
|
|
2809
|
+
}, ze = !0;
|
|
2814
2810
|
try {
|
|
2815
|
-
var
|
|
2816
|
-
|
|
2811
|
+
var qr = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2812
|
+
ze = ((Ue = qr.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
2817
2813
|
} catch (e) {
|
|
2818
|
-
|
|
2814
|
+
ze = !1;
|
|
2819
2815
|
}
|
|
2820
|
-
var _t =
|
|
2816
|
+
var _t = jr ? (
|
|
2821
2817
|
// Native
|
|
2822
|
-
function(t,
|
|
2823
|
-
return t.startsWith(
|
|
2818
|
+
function(t, n, r) {
|
|
2819
|
+
return t.startsWith(n, r);
|
|
2824
2820
|
}
|
|
2825
2821
|
) : (
|
|
2826
2822
|
// For IE11
|
|
2827
|
-
function(t,
|
|
2828
|
-
return t.slice(
|
|
2823
|
+
function(t, n, r) {
|
|
2824
|
+
return t.slice(r, r + n.length) === n;
|
|
2829
2825
|
}
|
|
2830
|
-
),
|
|
2826
|
+
), We = kr ? String.fromCodePoint : (
|
|
2831
2827
|
// IE11
|
|
2832
2828
|
function() {
|
|
2833
|
-
for (var t = [],
|
|
2834
|
-
t[
|
|
2835
|
-
for (var
|
|
2829
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2830
|
+
t[n] = arguments[n];
|
|
2831
|
+
for (var r = "", i = t.length, s = 0, a; i > s; ) {
|
|
2836
2832
|
if (a = t[s++], a > 1114111)
|
|
2837
2833
|
throw RangeError(a + " is not a valid code point");
|
|
2838
|
-
|
|
2834
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2839
2835
|
}
|
|
2840
|
-
return
|
|
2836
|
+
return r;
|
|
2841
2837
|
}
|
|
2842
2838
|
), yt = (
|
|
2843
2839
|
// native
|
|
2844
|
-
|
|
2840
|
+
Vr ? Object.fromEntries : (
|
|
2845
2841
|
// Ponyfill
|
|
2846
2842
|
function(t) {
|
|
2847
|
-
for (var
|
|
2848
|
-
var s = i[
|
|
2849
|
-
|
|
2843
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2844
|
+
var s = i[r], a = s[0], o = s[1];
|
|
2845
|
+
n[a] = o;
|
|
2850
2846
|
}
|
|
2851
|
-
return
|
|
2847
|
+
return n;
|
|
2852
2848
|
}
|
|
2853
2849
|
)
|
|
2854
|
-
),
|
|
2850
|
+
), mn = Xr ? (
|
|
2855
2851
|
// Native
|
|
2856
|
-
function(t,
|
|
2857
|
-
return t.codePointAt(
|
|
2852
|
+
function(t, n) {
|
|
2853
|
+
return t.codePointAt(n);
|
|
2858
2854
|
}
|
|
2859
2855
|
) : (
|
|
2860
2856
|
// IE 11
|
|
2861
|
-
function(t,
|
|
2862
|
-
var
|
|
2863
|
-
if (!(
|
|
2864
|
-
var i = t.charCodeAt(
|
|
2865
|
-
return i < 55296 || i > 56319 ||
|
|
2857
|
+
function(t, n) {
|
|
2858
|
+
var r = t.length;
|
|
2859
|
+
if (!(n < 0 || n >= r)) {
|
|
2860
|
+
var i = t.charCodeAt(n), s;
|
|
2861
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2866
2862
|
}
|
|
2867
2863
|
}
|
|
2868
|
-
),
|
|
2864
|
+
), Jr = zr ? (
|
|
2869
2865
|
// Native
|
|
2870
2866
|
function(t) {
|
|
2871
2867
|
return t.trimStart();
|
|
@@ -2873,9 +2869,9 @@ var _t = kn ? (
|
|
|
2873
2869
|
) : (
|
|
2874
2870
|
// Ponyfill
|
|
2875
2871
|
function(t) {
|
|
2876
|
-
return t.replace(
|
|
2872
|
+
return t.replace(Gr, "");
|
|
2877
2873
|
}
|
|
2878
|
-
),
|
|
2874
|
+
), Yr = Wr ? (
|
|
2879
2875
|
// Native
|
|
2880
2876
|
function(t) {
|
|
2881
2877
|
return t.trimEnd();
|
|
@@ -2883,69 +2879,69 @@ var _t = kn ? (
|
|
|
2883
2879
|
) : (
|
|
2884
2880
|
// Ponyfill
|
|
2885
2881
|
function(t) {
|
|
2886
|
-
return t.replace(
|
|
2882
|
+
return t.replace(Fr, "");
|
|
2887
2883
|
}
|
|
2888
2884
|
);
|
|
2889
|
-
function
|
|
2885
|
+
function dn(e, t) {
|
|
2890
2886
|
return new RegExp(e, t);
|
|
2891
2887
|
}
|
|
2892
|
-
var
|
|
2893
|
-
if (
|
|
2894
|
-
var
|
|
2895
|
-
|
|
2896
|
-
var
|
|
2897
|
-
|
|
2898
|
-
var i =
|
|
2899
|
-
return (
|
|
2888
|
+
var Ze;
|
|
2889
|
+
if (ze) {
|
|
2890
|
+
var xt = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2891
|
+
Ze = function(t, n) {
|
|
2892
|
+
var r;
|
|
2893
|
+
xt.lastIndex = n;
|
|
2894
|
+
var i = xt.exec(t);
|
|
2895
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2900
2896
|
};
|
|
2901
2897
|
} else
|
|
2902
|
-
|
|
2903
|
-
for (var
|
|
2904
|
-
var i =
|
|
2905
|
-
if (i === void 0 ||
|
|
2898
|
+
Ze = function(t, n) {
|
|
2899
|
+
for (var r = []; ; ) {
|
|
2900
|
+
var i = mn(t, n);
|
|
2901
|
+
if (i === void 0 || pn(i) || ni(i))
|
|
2906
2902
|
break;
|
|
2907
|
-
|
|
2903
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2908
2904
|
}
|
|
2909
|
-
return
|
|
2905
|
+
return We.apply(void 0, r);
|
|
2910
2906
|
};
|
|
2911
|
-
var
|
|
2907
|
+
var Kr = (
|
|
2912
2908
|
/** @class */
|
|
2913
2909
|
function() {
|
|
2914
|
-
function e(t,
|
|
2915
|
-
|
|
2910
|
+
function e(t, n) {
|
|
2911
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2916
2912
|
}
|
|
2917
2913
|
return e.prototype.parse = function() {
|
|
2918
2914
|
if (this.offset() !== 0)
|
|
2919
2915
|
throw Error("parser can only be used once");
|
|
2920
2916
|
return this.parseMessage(0, "", !1);
|
|
2921
|
-
}, e.prototype.parseMessage = function(t,
|
|
2917
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2922
2918
|
for (var i = []; !this.isEOF(); ) {
|
|
2923
2919
|
var s = this.char();
|
|
2924
2920
|
if (s === 123) {
|
|
2925
|
-
var a = this.parseArgument(t,
|
|
2921
|
+
var a = this.parseArgument(t, r);
|
|
2926
2922
|
if (a.err)
|
|
2927
2923
|
return a;
|
|
2928
2924
|
i.push(a.val);
|
|
2929
2925
|
} else {
|
|
2930
2926
|
if (s === 125 && t > 0)
|
|
2931
2927
|
break;
|
|
2932
|
-
if (s === 35 && (
|
|
2928
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2933
2929
|
var o = this.clonePosition();
|
|
2934
2930
|
this.bump(), i.push({
|
|
2935
|
-
type:
|
|
2931
|
+
type: x.pound,
|
|
2936
2932
|
location: b(o, this.clonePosition())
|
|
2937
2933
|
});
|
|
2938
2934
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2939
|
-
if (
|
|
2935
|
+
if (r)
|
|
2940
2936
|
break;
|
|
2941
2937
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2942
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2943
|
-
var a = this.parseTag(t,
|
|
2938
|
+
} else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
2939
|
+
var a = this.parseTag(t, n);
|
|
2944
2940
|
if (a.err)
|
|
2945
2941
|
return a;
|
|
2946
2942
|
i.push(a.val);
|
|
2947
2943
|
} else {
|
|
2948
|
-
var a = this.parseLiteral(t,
|
|
2944
|
+
var a = this.parseLiteral(t, n);
|
|
2949
2945
|
if (a.err)
|
|
2950
2946
|
return a;
|
|
2951
2947
|
i.push(a.val);
|
|
@@ -2953,54 +2949,54 @@ var ei = (
|
|
|
2953
2949
|
}
|
|
2954
2950
|
}
|
|
2955
2951
|
return { val: i, err: null };
|
|
2956
|
-
}, e.prototype.parseTag = function(t,
|
|
2957
|
-
var
|
|
2952
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2953
|
+
var r = this.clonePosition();
|
|
2958
2954
|
this.bump();
|
|
2959
2955
|
var i = this.parseTagName();
|
|
2960
2956
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2961
2957
|
return {
|
|
2962
2958
|
val: {
|
|
2963
|
-
type:
|
|
2959
|
+
type: x.literal,
|
|
2964
2960
|
value: "<".concat(i, "/>"),
|
|
2965
|
-
location: b(
|
|
2961
|
+
location: b(r, this.clonePosition())
|
|
2966
2962
|
},
|
|
2967
2963
|
err: null
|
|
2968
2964
|
};
|
|
2969
2965
|
if (this.bumpIf(">")) {
|
|
2970
|
-
var s = this.parseMessage(t + 1,
|
|
2966
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
2971
2967
|
if (s.err)
|
|
2972
2968
|
return s;
|
|
2973
2969
|
var a = s.val, o = this.clonePosition();
|
|
2974
2970
|
if (this.bumpIf("</")) {
|
|
2975
|
-
if (this.isEOF() || !
|
|
2971
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
2976
2972
|
return this.error(g.INVALID_TAG, b(o, this.clonePosition()));
|
|
2977
2973
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2978
2974
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2979
2975
|
val: {
|
|
2980
|
-
type:
|
|
2976
|
+
type: x.tag,
|
|
2981
2977
|
value: i,
|
|
2982
2978
|
children: a,
|
|
2983
|
-
location: b(
|
|
2979
|
+
location: b(r, this.clonePosition())
|
|
2984
2980
|
},
|
|
2985
2981
|
err: null
|
|
2986
2982
|
} : this.error(g.INVALID_TAG, b(o, this.clonePosition())));
|
|
2987
2983
|
} else
|
|
2988
|
-
return this.error(g.UNCLOSED_TAG, b(
|
|
2984
|
+
return this.error(g.UNCLOSED_TAG, b(r, this.clonePosition()));
|
|
2989
2985
|
} else
|
|
2990
|
-
return this.error(g.INVALID_TAG, b(
|
|
2986
|
+
return this.error(g.INVALID_TAG, b(r, this.clonePosition()));
|
|
2991
2987
|
}, e.prototype.parseTagName = function() {
|
|
2992
2988
|
var t = this.offset();
|
|
2993
|
-
for (this.bump(); !this.isEOF() &&
|
|
2989
|
+
for (this.bump(); !this.isEOF() && ti(this.char()); )
|
|
2994
2990
|
this.bump();
|
|
2995
2991
|
return this.message.slice(t, this.offset());
|
|
2996
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2997
|
-
for (var
|
|
2998
|
-
var s = this.tryParseQuote(
|
|
2992
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2993
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2994
|
+
var s = this.tryParseQuote(n);
|
|
2999
2995
|
if (s) {
|
|
3000
2996
|
i += s;
|
|
3001
2997
|
continue;
|
|
3002
2998
|
}
|
|
3003
|
-
var a = this.tryParseUnquoted(t,
|
|
2999
|
+
var a = this.tryParseUnquoted(t, n);
|
|
3004
3000
|
if (a) {
|
|
3005
3001
|
i += a;
|
|
3006
3002
|
continue;
|
|
@@ -3012,14 +3008,14 @@ var ei = (
|
|
|
3012
3008
|
}
|
|
3013
3009
|
break;
|
|
3014
3010
|
}
|
|
3015
|
-
var l = b(
|
|
3011
|
+
var l = b(r, this.clonePosition());
|
|
3016
3012
|
return {
|
|
3017
|
-
val: { type:
|
|
3013
|
+
val: { type: x.literal, value: i, location: l },
|
|
3018
3014
|
err: null
|
|
3019
3015
|
};
|
|
3020
3016
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3021
3017
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3022
|
-
!
|
|
3018
|
+
!ei(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3023
3019
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3024
3020
|
if (this.isEOF() || this.char() !== 39)
|
|
3025
3021
|
return null;
|
|
@@ -3039,59 +3035,59 @@ var ei = (
|
|
|
3039
3035
|
return null;
|
|
3040
3036
|
}
|
|
3041
3037
|
this.bump();
|
|
3042
|
-
var
|
|
3038
|
+
var n = [this.char()];
|
|
3043
3039
|
for (this.bump(); !this.isEOF(); ) {
|
|
3044
|
-
var
|
|
3045
|
-
if (
|
|
3040
|
+
var r = this.char();
|
|
3041
|
+
if (r === 39)
|
|
3046
3042
|
if (this.peek() === 39)
|
|
3047
|
-
|
|
3043
|
+
n.push(39), this.bump();
|
|
3048
3044
|
else {
|
|
3049
3045
|
this.bump();
|
|
3050
3046
|
break;
|
|
3051
3047
|
}
|
|
3052
3048
|
else
|
|
3053
|
-
|
|
3049
|
+
n.push(r);
|
|
3054
3050
|
this.bump();
|
|
3055
3051
|
}
|
|
3056
|
-
return
|
|
3057
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
3052
|
+
return We.apply(void 0, n);
|
|
3053
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3058
3054
|
if (this.isEOF())
|
|
3059
3055
|
return null;
|
|
3060
|
-
var
|
|
3061
|
-
return
|
|
3062
|
-
}, e.prototype.parseArgument = function(t,
|
|
3063
|
-
var
|
|
3056
|
+
var r = this.char();
|
|
3057
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), We(r));
|
|
3058
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
3059
|
+
var r = this.clonePosition();
|
|
3064
3060
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3065
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(
|
|
3061
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
|
|
3066
3062
|
if (this.char() === 125)
|
|
3067
|
-
return this.bump(), this.error(g.EMPTY_ARGUMENT, b(
|
|
3063
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, b(r, this.clonePosition()));
|
|
3068
3064
|
var i = this.parseIdentifierIfPossible().value;
|
|
3069
3065
|
if (!i)
|
|
3070
|
-
return this.error(g.MALFORMED_ARGUMENT, b(
|
|
3066
|
+
return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
|
|
3071
3067
|
if (this.bumpSpace(), this.isEOF())
|
|
3072
|
-
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(
|
|
3068
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition()));
|
|
3073
3069
|
switch (this.char()) {
|
|
3074
3070
|
case 125:
|
|
3075
3071
|
return this.bump(), {
|
|
3076
3072
|
val: {
|
|
3077
|
-
type:
|
|
3073
|
+
type: x.argument,
|
|
3078
3074
|
// value does not include the opening and closing braces.
|
|
3079
3075
|
value: i,
|
|
3080
|
-
location: b(
|
|
3076
|
+
location: b(r, this.clonePosition())
|
|
3081
3077
|
},
|
|
3082
3078
|
err: null
|
|
3083
3079
|
};
|
|
3084
3080
|
case 44:
|
|
3085
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(
|
|
3081
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3086
3082
|
default:
|
|
3087
|
-
return this.error(g.MALFORMED_ARGUMENT, b(
|
|
3083
|
+
return this.error(g.MALFORMED_ARGUMENT, b(r, this.clonePosition()));
|
|
3088
3084
|
}
|
|
3089
3085
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3090
|
-
var t = this.clonePosition(),
|
|
3086
|
+
var t = this.clonePosition(), n = this.offset(), r = Ze(this.message, n), i = n + r.length;
|
|
3091
3087
|
this.bumpTo(i);
|
|
3092
3088
|
var s = this.clonePosition(), a = b(t, s);
|
|
3093
|
-
return { value:
|
|
3094
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
3089
|
+
return { value: r, location: a };
|
|
3090
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3095
3091
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3096
3092
|
switch (o) {
|
|
3097
3093
|
case "":
|
|
@@ -3106,46 +3102,46 @@ var ei = (
|
|
|
3106
3102
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3107
3103
|
if (f.err)
|
|
3108
3104
|
return f;
|
|
3109
|
-
var m =
|
|
3105
|
+
var m = Yr(f.val);
|
|
3110
3106
|
if (m.length === 0)
|
|
3111
3107
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3112
|
-
var
|
|
3113
|
-
u = { style: m, styleLocation:
|
|
3108
|
+
var d = b(h, this.clonePosition());
|
|
3109
|
+
u = { style: m, styleLocation: d };
|
|
3114
3110
|
}
|
|
3115
3111
|
var c = this.tryParseArgumentClose(i);
|
|
3116
3112
|
if (c.err)
|
|
3117
3113
|
return c;
|
|
3118
|
-
var
|
|
3114
|
+
var p = b(i, this.clonePosition());
|
|
3119
3115
|
if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
|
|
3120
|
-
var E =
|
|
3116
|
+
var E = Jr(u.style.slice(2));
|
|
3121
3117
|
if (o === "number") {
|
|
3122
3118
|
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3123
3119
|
return f.err ? f : {
|
|
3124
|
-
val: { type:
|
|
3120
|
+
val: { type: x.number, value: r, location: p, style: f.val },
|
|
3125
3121
|
err: null
|
|
3126
3122
|
};
|
|
3127
3123
|
} else {
|
|
3128
3124
|
if (E.length === 0)
|
|
3129
|
-
return this.error(g.EXPECT_DATE_TIME_SKELETON,
|
|
3125
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
|
|
3130
3126
|
var v = E;
|
|
3131
|
-
this.locale && (v =
|
|
3127
|
+
this.locale && (v = Ur(E, this.locale));
|
|
3132
3128
|
var m = {
|
|
3133
|
-
type:
|
|
3129
|
+
type: z.dateTime,
|
|
3134
3130
|
pattern: v,
|
|
3135
3131
|
location: u.styleLocation,
|
|
3136
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3137
|
-
}, T = o === "date" ?
|
|
3132
|
+
parsedOptions: this.shouldParseSkeletons ? Cr(v) : {}
|
|
3133
|
+
}, T = o === "date" ? x.date : x.time;
|
|
3138
3134
|
return {
|
|
3139
|
-
val: { type: T, value:
|
|
3135
|
+
val: { type: T, value: r, location: p, style: m },
|
|
3140
3136
|
err: null
|
|
3141
3137
|
};
|
|
3142
3138
|
}
|
|
3143
3139
|
}
|
|
3144
3140
|
return {
|
|
3145
3141
|
val: {
|
|
3146
|
-
type: o === "number" ?
|
|
3147
|
-
value:
|
|
3148
|
-
location:
|
|
3142
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
3143
|
+
value: r,
|
|
3144
|
+
location: p,
|
|
3149
3145
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
3150
3146
|
},
|
|
3151
3147
|
err: null
|
|
@@ -3156,9 +3152,9 @@ var ei = (
|
|
|
3156
3152
|
case "select": {
|
|
3157
3153
|
var H = this.clonePosition();
|
|
3158
3154
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3159
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
3155
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
3160
3156
|
this.bumpSpace();
|
|
3161
|
-
var A = this.parseIdentifierIfPossible(),
|
|
3157
|
+
var A = this.parseIdentifierIfPossible(), P = 0;
|
|
3162
3158
|
if (o !== "select" && A.value === "offset") {
|
|
3163
3159
|
if (!this.bumpIf(":"))
|
|
3164
3160
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3166,31 +3162,31 @@ var ei = (
|
|
|
3166
3162
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3167
3163
|
if (f.err)
|
|
3168
3164
|
return f;
|
|
3169
|
-
this.bumpSpace(), A = this.parseIdentifierIfPossible(),
|
|
3165
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), P = f.val;
|
|
3170
3166
|
}
|
|
3171
|
-
var
|
|
3172
|
-
if (
|
|
3173
|
-
return
|
|
3167
|
+
var D = this.tryParsePluralOrSelectOptions(t, o, n, A);
|
|
3168
|
+
if (D.err)
|
|
3169
|
+
return D;
|
|
3174
3170
|
var c = this.tryParseArgumentClose(i);
|
|
3175
3171
|
if (c.err)
|
|
3176
3172
|
return c;
|
|
3177
|
-
var
|
|
3173
|
+
var he = b(i, this.clonePosition());
|
|
3178
3174
|
return o === "select" ? {
|
|
3179
3175
|
val: {
|
|
3180
|
-
type:
|
|
3181
|
-
value:
|
|
3182
|
-
options: yt(
|
|
3183
|
-
location:
|
|
3176
|
+
type: x.select,
|
|
3177
|
+
value: r,
|
|
3178
|
+
options: yt(D.val),
|
|
3179
|
+
location: he
|
|
3184
3180
|
},
|
|
3185
3181
|
err: null
|
|
3186
3182
|
} : {
|
|
3187
3183
|
val: {
|
|
3188
|
-
type:
|
|
3189
|
-
value:
|
|
3190
|
-
options: yt(
|
|
3191
|
-
offset:
|
|
3184
|
+
type: x.plural,
|
|
3185
|
+
value: r,
|
|
3186
|
+
options: yt(D.val),
|
|
3187
|
+
offset: P,
|
|
3192
3188
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
3193
|
-
location:
|
|
3189
|
+
location: he
|
|
3194
3190
|
},
|
|
3195
3191
|
err: null
|
|
3196
3192
|
};
|
|
@@ -3201,9 +3197,9 @@ var ei = (
|
|
|
3201
3197
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3202
3198
|
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3203
3199
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3204
|
-
for (var t = 0,
|
|
3205
|
-
var
|
|
3206
|
-
switch (
|
|
3200
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3201
|
+
var r = this.char();
|
|
3202
|
+
switch (r) {
|
|
3207
3203
|
case 39: {
|
|
3208
3204
|
this.bump();
|
|
3209
3205
|
var i = this.clonePosition();
|
|
@@ -3221,7 +3217,7 @@ var ei = (
|
|
|
3221
3217
|
t -= 1;
|
|
3222
3218
|
else
|
|
3223
3219
|
return {
|
|
3224
|
-
val: this.message.slice(
|
|
3220
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3225
3221
|
err: null
|
|
3226
3222
|
};
|
|
3227
3223
|
break;
|
|
@@ -3232,30 +3228,30 @@ var ei = (
|
|
|
3232
3228
|
}
|
|
3233
3229
|
}
|
|
3234
3230
|
return {
|
|
3235
|
-
val: this.message.slice(
|
|
3231
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3236
3232
|
err: null
|
|
3237
3233
|
};
|
|
3238
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3239
|
-
var
|
|
3234
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3235
|
+
var r = [];
|
|
3240
3236
|
try {
|
|
3241
|
-
|
|
3237
|
+
r = Nr(t);
|
|
3242
3238
|
} catch (i) {
|
|
3243
|
-
return this.error(g.INVALID_NUMBER_SKELETON,
|
|
3239
|
+
return this.error(g.INVALID_NUMBER_SKELETON, n);
|
|
3244
3240
|
}
|
|
3245
3241
|
return {
|
|
3246
3242
|
val: {
|
|
3247
|
-
type:
|
|
3248
|
-
tokens:
|
|
3249
|
-
location:
|
|
3250
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3243
|
+
type: z.number,
|
|
3244
|
+
tokens: r,
|
|
3245
|
+
location: n,
|
|
3246
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(r) : {}
|
|
3251
3247
|
},
|
|
3252
3248
|
err: null
|
|
3253
3249
|
};
|
|
3254
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3250
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3255
3251
|
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3256
3252
|
if (u.length === 0) {
|
|
3257
3253
|
var f = this.clonePosition();
|
|
3258
|
-
if (
|
|
3254
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3259
3255
|
var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3260
3256
|
if (m.err)
|
|
3261
3257
|
return m;
|
|
@@ -3264,29 +3260,29 @@ var ei = (
|
|
|
3264
3260
|
break;
|
|
3265
3261
|
}
|
|
3266
3262
|
if (l.has(u))
|
|
3267
|
-
return this.error(
|
|
3263
|
+
return this.error(n === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3268
3264
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3269
|
-
var
|
|
3265
|
+
var d = this.clonePosition();
|
|
3270
3266
|
if (!this.bumpIf("{"))
|
|
3271
|
-
return this.error(
|
|
3272
|
-
var c = this.parseMessage(t + 1,
|
|
3267
|
+
return this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3268
|
+
var c = this.parseMessage(t + 1, n, r);
|
|
3273
3269
|
if (c.err)
|
|
3274
3270
|
return c;
|
|
3275
|
-
var
|
|
3276
|
-
if (
|
|
3277
|
-
return
|
|
3271
|
+
var p = this.tryParseArgumentClose(d);
|
|
3272
|
+
if (p.err)
|
|
3273
|
+
return p;
|
|
3278
3274
|
o.push([
|
|
3279
3275
|
u,
|
|
3280
3276
|
{
|
|
3281
3277
|
value: c.val,
|
|
3282
|
-
location: b(
|
|
3278
|
+
location: b(d, this.clonePosition())
|
|
3283
3279
|
}
|
|
3284
3280
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3285
3281
|
}
|
|
3286
|
-
return o.length === 0 ? this.error(
|
|
3287
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3288
|
-
var
|
|
3289
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3282
|
+
return o.length === 0 ? this.error(n === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3283
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3284
|
+
var r = 1, i = this.clonePosition();
|
|
3285
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3290
3286
|
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3291
3287
|
var o = this.char();
|
|
3292
3288
|
if (o >= 48 && o <= 57)
|
|
@@ -3295,7 +3291,7 @@ var ei = (
|
|
|
3295
3291
|
break;
|
|
3296
3292
|
}
|
|
3297
3293
|
var l = b(i, this.clonePosition());
|
|
3298
|
-
return s ? (a *=
|
|
3294
|
+
return s ? (a *= r, Qr(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3299
3295
|
}, e.prototype.offset = function() {
|
|
3300
3296
|
return this.position.offset;
|
|
3301
3297
|
}, e.prototype.isEOF = function() {
|
|
@@ -3310,17 +3306,17 @@ var ei = (
|
|
|
3310
3306
|
var t = this.position.offset;
|
|
3311
3307
|
if (t >= this.message.length)
|
|
3312
3308
|
throw Error("out of bound");
|
|
3313
|
-
var
|
|
3314
|
-
if (
|
|
3309
|
+
var n = mn(this.message, t);
|
|
3310
|
+
if (n === void 0)
|
|
3315
3311
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3316
|
-
return
|
|
3317
|
-
}, e.prototype.error = function(t,
|
|
3312
|
+
return n;
|
|
3313
|
+
}, e.prototype.error = function(t, n) {
|
|
3318
3314
|
return {
|
|
3319
3315
|
val: null,
|
|
3320
3316
|
err: {
|
|
3321
3317
|
kind: t,
|
|
3322
3318
|
message: this.message,
|
|
3323
|
-
location:
|
|
3319
|
+
location: n
|
|
3324
3320
|
}
|
|
3325
3321
|
};
|
|
3326
3322
|
}, e.prototype.bump = function() {
|
|
@@ -3330,128 +3326,128 @@ var ei = (
|
|
|
3330
3326
|
}
|
|
3331
3327
|
}, e.prototype.bumpIf = function(t) {
|
|
3332
3328
|
if (_t(this.message, t, this.offset())) {
|
|
3333
|
-
for (var
|
|
3329
|
+
for (var n = 0; n < t.length; n++)
|
|
3334
3330
|
this.bump();
|
|
3335
3331
|
return !0;
|
|
3336
3332
|
}
|
|
3337
3333
|
return !1;
|
|
3338
3334
|
}, e.prototype.bumpUntil = function(t) {
|
|
3339
|
-
var
|
|
3340
|
-
return
|
|
3335
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3336
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3341
3337
|
}, e.prototype.bumpTo = function(t) {
|
|
3342
3338
|
if (this.offset() > t)
|
|
3343
3339
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3344
3340
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3345
|
-
var
|
|
3346
|
-
if (
|
|
3341
|
+
var n = this.offset();
|
|
3342
|
+
if (n === t)
|
|
3347
3343
|
break;
|
|
3348
|
-
if (
|
|
3344
|
+
if (n > t)
|
|
3349
3345
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3350
3346
|
if (this.bump(), this.isEOF())
|
|
3351
3347
|
break;
|
|
3352
3348
|
}
|
|
3353
3349
|
}, e.prototype.bumpSpace = function() {
|
|
3354
|
-
for (; !this.isEOF() &&
|
|
3350
|
+
for (; !this.isEOF() && pn(this.char()); )
|
|
3355
3351
|
this.bump();
|
|
3356
3352
|
}, e.prototype.peek = function() {
|
|
3357
3353
|
if (this.isEOF())
|
|
3358
3354
|
return null;
|
|
3359
|
-
var t = this.char(),
|
|
3360
|
-
return
|
|
3355
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3356
|
+
return r != null ? r : null;
|
|
3361
3357
|
}, e;
|
|
3362
3358
|
}()
|
|
3363
3359
|
);
|
|
3364
|
-
function
|
|
3360
|
+
function Qe(e) {
|
|
3365
3361
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3366
3362
|
}
|
|
3367
|
-
function
|
|
3368
|
-
return
|
|
3363
|
+
function ei(e) {
|
|
3364
|
+
return Qe(e) || e === 47;
|
|
3369
3365
|
}
|
|
3370
|
-
function
|
|
3366
|
+
function ti(e) {
|
|
3371
3367
|
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;
|
|
3372
3368
|
}
|
|
3373
|
-
function
|
|
3369
|
+
function pn(e) {
|
|
3374
3370
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3375
3371
|
}
|
|
3376
3372
|
function ni(e) {
|
|
3377
3373
|
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;
|
|
3378
3374
|
}
|
|
3379
|
-
function
|
|
3375
|
+
function qe(e) {
|
|
3380
3376
|
e.forEach(function(t) {
|
|
3381
|
-
if (delete t.location,
|
|
3382
|
-
for (var
|
|
3383
|
-
delete t.options[
|
|
3377
|
+
if (delete t.location, sn(t) || on(t))
|
|
3378
|
+
for (var n in t.options)
|
|
3379
|
+
delete t.options[n].location, qe(t.options[n].value);
|
|
3384
3380
|
else
|
|
3385
|
-
|
|
3381
|
+
tn(t) && un(t.style) || (nn(t) || rn(t)) && Xe(t.style) ? delete t.style.location : an(t) && qe(t.children);
|
|
3386
3382
|
});
|
|
3387
3383
|
}
|
|
3388
|
-
function
|
|
3389
|
-
t === void 0 && (t = {}), t =
|
|
3390
|
-
var
|
|
3391
|
-
if (
|
|
3392
|
-
var
|
|
3393
|
-
throw
|
|
3384
|
+
function ri(e, t) {
|
|
3385
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3386
|
+
var n = new Kr(e, t).parse();
|
|
3387
|
+
if (n.err) {
|
|
3388
|
+
var r = SyntaxError(g[n.err.kind]);
|
|
3389
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3394
3390
|
}
|
|
3395
|
-
return t != null && t.captureLocation ||
|
|
3391
|
+
return t != null && t.captureLocation || qe(n.val), n.val;
|
|
3396
3392
|
}
|
|
3397
|
-
var
|
|
3393
|
+
var W;
|
|
3398
3394
|
(function(e) {
|
|
3399
3395
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3400
|
-
})(
|
|
3401
|
-
var
|
|
3396
|
+
})(W || (W = {}));
|
|
3397
|
+
var Te = (
|
|
3402
3398
|
/** @class */
|
|
3403
3399
|
function(e) {
|
|
3404
|
-
|
|
3405
|
-
function t(
|
|
3406
|
-
var s = e.call(this,
|
|
3407
|
-
return s.code =
|
|
3400
|
+
Be(t, e);
|
|
3401
|
+
function t(n, r, i) {
|
|
3402
|
+
var s = e.call(this, n) || this;
|
|
3403
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3408
3404
|
}
|
|
3409
3405
|
return t.prototype.toString = function() {
|
|
3410
3406
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3411
3407
|
}, t;
|
|
3412
3408
|
}(Error)
|
|
3413
|
-
),
|
|
3409
|
+
), Et = (
|
|
3414
3410
|
/** @class */
|
|
3415
3411
|
function(e) {
|
|
3416
|
-
|
|
3417
|
-
function t(
|
|
3418
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3412
|
+
Be(t, e);
|
|
3413
|
+
function t(n, r, i, s) {
|
|
3414
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3419
3415
|
}
|
|
3420
3416
|
return t;
|
|
3421
|
-
}(
|
|
3422
|
-
),
|
|
3417
|
+
}(Te)
|
|
3418
|
+
), ii = (
|
|
3423
3419
|
/** @class */
|
|
3424
3420
|
function(e) {
|
|
3425
|
-
|
|
3426
|
-
function t(
|
|
3427
|
-
return e.call(this, 'Value for "'.concat(
|
|
3421
|
+
Be(t, e);
|
|
3422
|
+
function t(n, r, i) {
|
|
3423
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), W.INVALID_VALUE, i) || this;
|
|
3428
3424
|
}
|
|
3429
3425
|
return t;
|
|
3430
|
-
}(
|
|
3431
|
-
),
|
|
3426
|
+
}(Te)
|
|
3427
|
+
), si = (
|
|
3432
3428
|
/** @class */
|
|
3433
3429
|
function(e) {
|
|
3434
|
-
|
|
3435
|
-
function t(
|
|
3436
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3430
|
+
Be(t, e);
|
|
3431
|
+
function t(n, r) {
|
|
3432
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), W.MISSING_VALUE, r) || this;
|
|
3437
3433
|
}
|
|
3438
3434
|
return t;
|
|
3439
|
-
}(
|
|
3435
|
+
}(Te)
|
|
3440
3436
|
), w;
|
|
3441
3437
|
(function(e) {
|
|
3442
3438
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3443
3439
|
})(w || (w = {}));
|
|
3444
|
-
function
|
|
3445
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3446
|
-
var
|
|
3447
|
-
return !
|
|
3440
|
+
function oi(e) {
|
|
3441
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3442
|
+
var r = t[t.length - 1];
|
|
3443
|
+
return !r || r.type !== w.literal || n.type !== w.literal ? t.push(n) : r.value += n.value, t;
|
|
3448
3444
|
}, []);
|
|
3449
3445
|
}
|
|
3450
|
-
function
|
|
3446
|
+
function ai(e) {
|
|
3451
3447
|
return typeof e == "function";
|
|
3452
3448
|
}
|
|
3453
|
-
function
|
|
3454
|
-
if (e.length === 1 &&
|
|
3449
|
+
function pe(e, t, n, r, i, s, a) {
|
|
3450
|
+
if (e.length === 1 && dt(e[0]))
|
|
3455
3451
|
return [
|
|
3456
3452
|
{
|
|
3457
3453
|
type: w.literal,
|
|
@@ -3460,155 +3456,155 @@ function ge(e, t, r, n, i, s, a) {
|
|
|
3460
3456
|
];
|
|
3461
3457
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3462
3458
|
var h = u[l];
|
|
3463
|
-
if (
|
|
3459
|
+
if (dt(h)) {
|
|
3464
3460
|
o.push({
|
|
3465
3461
|
type: w.literal,
|
|
3466
3462
|
value: h.value
|
|
3467
3463
|
});
|
|
3468
3464
|
continue;
|
|
3469
3465
|
}
|
|
3470
|
-
if (
|
|
3466
|
+
if (Or(h)) {
|
|
3471
3467
|
typeof s == "number" && o.push({
|
|
3472
3468
|
type: w.literal,
|
|
3473
|
-
value:
|
|
3469
|
+
value: n.getNumberFormat(t).format(s)
|
|
3474
3470
|
});
|
|
3475
3471
|
continue;
|
|
3476
3472
|
}
|
|
3477
3473
|
var f = h.value;
|
|
3478
3474
|
if (!(i && f in i))
|
|
3479
|
-
throw new
|
|
3475
|
+
throw new si(f, a);
|
|
3480
3476
|
var m = i[f];
|
|
3481
|
-
if (
|
|
3477
|
+
if (Ar(h)) {
|
|
3482
3478
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3483
3479
|
type: typeof m == "string" ? w.literal : w.object,
|
|
3484
3480
|
value: m
|
|
3485
3481
|
});
|
|
3486
3482
|
continue;
|
|
3487
3483
|
}
|
|
3488
|
-
if (
|
|
3489
|
-
var
|
|
3484
|
+
if (nn(h)) {
|
|
3485
|
+
var d = typeof h.style == "string" ? r.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
|
|
3490
3486
|
o.push({
|
|
3491
3487
|
type: w.literal,
|
|
3492
|
-
value:
|
|
3488
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3493
3489
|
});
|
|
3494
3490
|
continue;
|
|
3495
3491
|
}
|
|
3496
|
-
if (
|
|
3497
|
-
var
|
|
3492
|
+
if (rn(h)) {
|
|
3493
|
+
var d = typeof h.style == "string" ? r.time[h.style] : Xe(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3498
3494
|
o.push({
|
|
3499
3495
|
type: w.literal,
|
|
3500
|
-
value:
|
|
3496
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3501
3497
|
});
|
|
3502
3498
|
continue;
|
|
3503
3499
|
}
|
|
3504
|
-
if (
|
|
3505
|
-
var
|
|
3506
|
-
|
|
3500
|
+
if (tn(h)) {
|
|
3501
|
+
var d = typeof h.style == "string" ? r.number[h.style] : un(h.style) ? h.style.parsedOptions : void 0;
|
|
3502
|
+
d && d.scale && (m = m * (d.scale || 1)), o.push({
|
|
3507
3503
|
type: w.literal,
|
|
3508
|
-
value:
|
|
3504
|
+
value: n.getNumberFormat(t, d).format(m)
|
|
3509
3505
|
});
|
|
3510
3506
|
continue;
|
|
3511
3507
|
}
|
|
3512
|
-
if (
|
|
3513
|
-
var c = h.children,
|
|
3514
|
-
if (!
|
|
3515
|
-
throw new
|
|
3516
|
-
var v =
|
|
3517
|
-
return
|
|
3508
|
+
if (an(h)) {
|
|
3509
|
+
var c = h.children, p = h.value, E = i[p];
|
|
3510
|
+
if (!ai(E))
|
|
3511
|
+
throw new ii(p, "function", a);
|
|
3512
|
+
var v = pe(c, t, n, r, i, s), T = E(v.map(function(P) {
|
|
3513
|
+
return P.value;
|
|
3518
3514
|
}));
|
|
3519
|
-
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(
|
|
3515
|
+
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(P) {
|
|
3520
3516
|
return {
|
|
3521
|
-
type: typeof
|
|
3522
|
-
value:
|
|
3517
|
+
type: typeof P == "string" ? w.literal : w.object,
|
|
3518
|
+
value: P
|
|
3523
3519
|
};
|
|
3524
3520
|
}));
|
|
3525
3521
|
}
|
|
3526
|
-
if (
|
|
3522
|
+
if (sn(h)) {
|
|
3527
3523
|
var H = h.options[m] || h.options.other;
|
|
3528
3524
|
if (!H)
|
|
3529
|
-
throw new
|
|
3530
|
-
o.push.apply(o,
|
|
3525
|
+
throw new Et(h.value, m, Object.keys(h.options), a);
|
|
3526
|
+
o.push.apply(o, pe(H.value, t, n, r, i));
|
|
3531
3527
|
continue;
|
|
3532
3528
|
}
|
|
3533
|
-
if (
|
|
3529
|
+
if (on(h)) {
|
|
3534
3530
|
var H = h.options["=".concat(m)];
|
|
3535
3531
|
if (!H) {
|
|
3536
3532
|
if (!Intl.PluralRules)
|
|
3537
|
-
throw new
|
|
3533
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3538
3534
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3539
|
-
`,
|
|
3540
|
-
var A =
|
|
3535
|
+
`, W.MISSING_INTL_API, a);
|
|
3536
|
+
var A = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3541
3537
|
H = h.options[A] || h.options.other;
|
|
3542
3538
|
}
|
|
3543
3539
|
if (!H)
|
|
3544
|
-
throw new
|
|
3545
|
-
o.push.apply(o,
|
|
3540
|
+
throw new Et(h.value, m, Object.keys(h.options), a);
|
|
3541
|
+
o.push.apply(o, pe(H.value, t, n, r, i, m - (h.offset || 0)));
|
|
3546
3542
|
continue;
|
|
3547
3543
|
}
|
|
3548
3544
|
}
|
|
3549
|
-
return
|
|
3545
|
+
return oi(o);
|
|
3550
3546
|
}
|
|
3551
|
-
function
|
|
3552
|
-
return t ?
|
|
3553
|
-
return r
|
|
3547
|
+
function ui(e, t) {
|
|
3548
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3549
|
+
return n[r] = y(y({}, e[r]), t[r] || {}), n;
|
|
3554
3550
|
}, {})) : e;
|
|
3555
3551
|
}
|
|
3556
|
-
function
|
|
3557
|
-
return t ? Object.keys(e).reduce(function(
|
|
3558
|
-
return r
|
|
3559
|
-
},
|
|
3552
|
+
function hi(e, t) {
|
|
3553
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3554
|
+
return n[r] = ui(e[r], t[r]), n;
|
|
3555
|
+
}, y({}, e)) : e;
|
|
3560
3556
|
}
|
|
3561
|
-
function
|
|
3557
|
+
function De(e) {
|
|
3562
3558
|
return {
|
|
3563
3559
|
create: function() {
|
|
3564
3560
|
return {
|
|
3565
3561
|
get: function(t) {
|
|
3566
3562
|
return e[t];
|
|
3567
3563
|
},
|
|
3568
|
-
set: function(t,
|
|
3569
|
-
e[t] =
|
|
3564
|
+
set: function(t, n) {
|
|
3565
|
+
e[t] = n;
|
|
3570
3566
|
}
|
|
3571
3567
|
};
|
|
3572
3568
|
}
|
|
3573
3569
|
};
|
|
3574
3570
|
}
|
|
3575
|
-
function
|
|
3571
|
+
function li(e) {
|
|
3576
3572
|
return e === void 0 && (e = {
|
|
3577
3573
|
number: {},
|
|
3578
3574
|
dateTime: {},
|
|
3579
3575
|
pluralRules: {}
|
|
3580
3576
|
}), {
|
|
3581
|
-
getNumberFormat:
|
|
3582
|
-
for (var t,
|
|
3583
|
-
r
|
|
3584
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3577
|
+
getNumberFormat: $e(function() {
|
|
3578
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3579
|
+
n[r] = arguments[r];
|
|
3580
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Me([void 0], n, !1)))();
|
|
3585
3581
|
}, {
|
|
3586
|
-
cache:
|
|
3587
|
-
strategy:
|
|
3582
|
+
cache: De(e.number),
|
|
3583
|
+
strategy: Re.variadic
|
|
3588
3584
|
}),
|
|
3589
|
-
getDateTimeFormat:
|
|
3590
|
-
for (var t,
|
|
3591
|
-
r
|
|
3592
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3585
|
+
getDateTimeFormat: $e(function() {
|
|
3586
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3587
|
+
n[r] = arguments[r];
|
|
3588
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Me([void 0], n, !1)))();
|
|
3593
3589
|
}, {
|
|
3594
|
-
cache:
|
|
3595
|
-
strategy:
|
|
3590
|
+
cache: De(e.dateTime),
|
|
3591
|
+
strategy: Re.variadic
|
|
3596
3592
|
}),
|
|
3597
|
-
getPluralRules:
|
|
3598
|
-
for (var t,
|
|
3599
|
-
r
|
|
3600
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3593
|
+
getPluralRules: $e(function() {
|
|
3594
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3595
|
+
n[r] = arguments[r];
|
|
3596
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Me([void 0], n, !1)))();
|
|
3601
3597
|
}, {
|
|
3602
|
-
cache:
|
|
3603
|
-
strategy:
|
|
3598
|
+
cache: De(e.pluralRules),
|
|
3599
|
+
strategy: Re.variadic
|
|
3604
3600
|
})
|
|
3605
3601
|
};
|
|
3606
3602
|
}
|
|
3607
|
-
var
|
|
3603
|
+
var gn = (
|
|
3608
3604
|
/** @class */
|
|
3609
3605
|
function() {
|
|
3610
|
-
function e(t,
|
|
3611
|
-
|
|
3606
|
+
function e(t, n, r, i) {
|
|
3607
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3612
3608
|
var s = this;
|
|
3613
3609
|
if (this.formatterCache = {
|
|
3614
3610
|
number: {},
|
|
@@ -3623,7 +3619,7 @@ var dr = (
|
|
|
3623
3619
|
}, []);
|
|
3624
3620
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3625
3621
|
}, this.formatToParts = function(l) {
|
|
3626
|
-
return
|
|
3622
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3627
3623
|
}, this.resolvedOptions = function() {
|
|
3628
3624
|
var l;
|
|
3629
3625
|
return {
|
|
@@ -3631,18 +3627,18 @@ var dr = (
|
|
|
3631
3627
|
};
|
|
3632
3628
|
}, this.getAst = function() {
|
|
3633
3629
|
return s.ast;
|
|
3634
|
-
}, this.locales =
|
|
3630
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3635
3631
|
if (this.message = t, !e.__parse)
|
|
3636
3632
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3637
3633
|
var a = i || {};
|
|
3638
3634
|
a.formatters;
|
|
3639
|
-
var o =
|
|
3640
|
-
this.ast = e.__parse(t,
|
|
3635
|
+
var o = Er(a, ["formatters"]);
|
|
3636
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3641
3637
|
} else
|
|
3642
3638
|
this.ast = t;
|
|
3643
3639
|
if (!Array.isArray(this.ast))
|
|
3644
3640
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3645
|
-
this.formats =
|
|
3641
|
+
this.formats = hi(e.formats, r), this.formatters = i && i.formatters || li(this.formatterCache);
|
|
3646
3642
|
}
|
|
3647
3643
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3648
3644
|
get: function() {
|
|
@@ -3652,10 +3648,10 @@ var dr = (
|
|
|
3652
3648
|
configurable: !0
|
|
3653
3649
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3654
3650
|
if (typeof Intl.Locale != "undefined") {
|
|
3655
|
-
var
|
|
3656
|
-
return
|
|
3651
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3652
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3657
3653
|
}
|
|
3658
|
-
}, e.__parse =
|
|
3654
|
+
}, e.__parse = ri, e.formats = {
|
|
3659
3655
|
number: {
|
|
3660
3656
|
integer: {
|
|
3661
3657
|
maximumFractionDigits: 0
|
|
@@ -3716,122 +3712,122 @@ var dr = (
|
|
|
3716
3712
|
}, e;
|
|
3717
3713
|
}()
|
|
3718
3714
|
);
|
|
3719
|
-
function
|
|
3715
|
+
function fi(e, t) {
|
|
3720
3716
|
if (t == null)
|
|
3721
3717
|
return;
|
|
3722
3718
|
if (t in e)
|
|
3723
3719
|
return e[t];
|
|
3724
|
-
const
|
|
3725
|
-
let
|
|
3726
|
-
for (let i = 0; i <
|
|
3727
|
-
if (typeof
|
|
3720
|
+
const n = t.split(".");
|
|
3721
|
+
let r = e;
|
|
3722
|
+
for (let i = 0; i < n.length; i++)
|
|
3723
|
+
if (typeof r == "object") {
|
|
3728
3724
|
if (i > 0) {
|
|
3729
|
-
const s =
|
|
3730
|
-
if (s in
|
|
3731
|
-
|
|
3725
|
+
const s = n.slice(i, n.length).join(".");
|
|
3726
|
+
if (s in r) {
|
|
3727
|
+
r = r[s];
|
|
3732
3728
|
break;
|
|
3733
3729
|
}
|
|
3734
3730
|
}
|
|
3735
|
-
|
|
3731
|
+
r = r[n[i]];
|
|
3736
3732
|
} else
|
|
3737
|
-
|
|
3738
|
-
return
|
|
3733
|
+
r = void 0;
|
|
3734
|
+
return r;
|
|
3739
3735
|
}
|
|
3740
|
-
const
|
|
3736
|
+
const N = {}, ci = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), bn = (e, t) => {
|
|
3741
3737
|
if (t == null)
|
|
3742
3738
|
return;
|
|
3743
|
-
if (t in
|
|
3744
|
-
return
|
|
3745
|
-
const
|
|
3746
|
-
for (let
|
|
3747
|
-
const i = r
|
|
3739
|
+
if (t in N && e in N[t])
|
|
3740
|
+
return N[t][e];
|
|
3741
|
+
const n = ue(t);
|
|
3742
|
+
for (let r = 0; r < n.length; r++) {
|
|
3743
|
+
const i = n[r], s = di(i, e);
|
|
3748
3744
|
if (s)
|
|
3749
|
-
return
|
|
3745
|
+
return ci(e, t, s);
|
|
3750
3746
|
}
|
|
3751
3747
|
};
|
|
3752
|
-
let
|
|
3753
|
-
const
|
|
3754
|
-
function
|
|
3755
|
-
return
|
|
3748
|
+
let rt;
|
|
3749
|
+
const ae = we({});
|
|
3750
|
+
function mi(e) {
|
|
3751
|
+
return rt[e] || null;
|
|
3756
3752
|
}
|
|
3757
|
-
function
|
|
3758
|
-
return e in
|
|
3753
|
+
function _n(e) {
|
|
3754
|
+
return e in rt;
|
|
3759
3755
|
}
|
|
3760
3756
|
function di(e, t) {
|
|
3761
|
-
if (!
|
|
3757
|
+
if (!_n(e))
|
|
3762
3758
|
return null;
|
|
3763
|
-
const
|
|
3764
|
-
return
|
|
3759
|
+
const n = mi(e);
|
|
3760
|
+
return fi(n, t);
|
|
3765
3761
|
}
|
|
3766
|
-
function
|
|
3762
|
+
function pi(e) {
|
|
3767
3763
|
if (e == null)
|
|
3768
3764
|
return;
|
|
3769
|
-
const t =
|
|
3770
|
-
for (let
|
|
3771
|
-
const
|
|
3772
|
-
if (
|
|
3773
|
-
return
|
|
3765
|
+
const t = ue(e);
|
|
3766
|
+
for (let n = 0; n < t.length; n++) {
|
|
3767
|
+
const r = t[n];
|
|
3768
|
+
if (_n(r))
|
|
3769
|
+
return r;
|
|
3774
3770
|
}
|
|
3775
3771
|
}
|
|
3776
|
-
function
|
|
3777
|
-
delete
|
|
3772
|
+
function yn(e, ...t) {
|
|
3773
|
+
delete N[e], ae.update((n) => (n[e] = xr.all([n[e] || {}, ...t]), n));
|
|
3778
3774
|
}
|
|
3779
|
-
|
|
3780
|
-
[
|
|
3775
|
+
q(
|
|
3776
|
+
[ae],
|
|
3781
3777
|
([e]) => Object.keys(e)
|
|
3782
3778
|
);
|
|
3783
|
-
|
|
3784
|
-
const
|
|
3785
|
-
function
|
|
3786
|
-
|
|
3787
|
-
}
|
|
3788
|
-
function
|
|
3789
|
-
return
|
|
3790
|
-
}
|
|
3791
|
-
function
|
|
3792
|
-
return
|
|
3793
|
-
const
|
|
3794
|
-
return [t,
|
|
3779
|
+
ae.subscribe((e) => rt = e);
|
|
3780
|
+
const ge = {};
|
|
3781
|
+
function gi(e, t) {
|
|
3782
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3783
|
+
}
|
|
3784
|
+
function xn(e) {
|
|
3785
|
+
return ge[e];
|
|
3786
|
+
}
|
|
3787
|
+
function bi(e) {
|
|
3788
|
+
return ue(e).map((t) => {
|
|
3789
|
+
const n = xn(t);
|
|
3790
|
+
return [t, n ? [...n] : []];
|
|
3795
3791
|
}).filter(([, t]) => t.length > 0);
|
|
3796
3792
|
}
|
|
3797
|
-
function
|
|
3798
|
-
return e == null ? !1 :
|
|
3793
|
+
function Ee(e) {
|
|
3794
|
+
return e == null ? !1 : ue(e).some(
|
|
3799
3795
|
(t) => {
|
|
3800
|
-
var
|
|
3801
|
-
return (
|
|
3796
|
+
var n;
|
|
3797
|
+
return (n = xn(t)) == null ? void 0 : n.size;
|
|
3802
3798
|
}
|
|
3803
3799
|
);
|
|
3804
3800
|
}
|
|
3805
|
-
function
|
|
3801
|
+
function _i(e, t) {
|
|
3806
3802
|
return Promise.all(
|
|
3807
|
-
t.map((
|
|
3808
|
-
).then((
|
|
3809
|
-
}
|
|
3810
|
-
const
|
|
3811
|
-
function
|
|
3812
|
-
if (!
|
|
3813
|
-
return e in
|
|
3814
|
-
const t =
|
|
3815
|
-
return
|
|
3803
|
+
t.map((r) => (gi(e, r), r().then((i) => i.default || i)))
|
|
3804
|
+
).then((r) => yn(e, ...r));
|
|
3805
|
+
}
|
|
3806
|
+
const K = {};
|
|
3807
|
+
function En(e) {
|
|
3808
|
+
if (!Ee(e))
|
|
3809
|
+
return e in K ? K[e] : Promise.resolve();
|
|
3810
|
+
const t = bi(e);
|
|
3811
|
+
return K[e] = Promise.all(
|
|
3816
3812
|
t.map(
|
|
3817
|
-
([
|
|
3813
|
+
([n, r]) => _i(n, r)
|
|
3818
3814
|
)
|
|
3819
3815
|
).then(() => {
|
|
3820
|
-
if (
|
|
3821
|
-
return
|
|
3822
|
-
delete
|
|
3823
|
-
}),
|
|
3816
|
+
if (Ee(e))
|
|
3817
|
+
return En(e);
|
|
3818
|
+
delete K[e];
|
|
3819
|
+
}), K[e];
|
|
3824
3820
|
}
|
|
3825
|
-
var vt = Object.getOwnPropertySymbols,
|
|
3826
|
-
var
|
|
3827
|
-
for (var
|
|
3828
|
-
|
|
3821
|
+
var vt = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Ei = (e, t) => {
|
|
3822
|
+
var n = {};
|
|
3823
|
+
for (var r in e)
|
|
3824
|
+
yi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3829
3825
|
if (e != null && vt)
|
|
3830
|
-
for (var
|
|
3831
|
-
t.indexOf(
|
|
3832
|
-
return
|
|
3826
|
+
for (var r of vt(e))
|
|
3827
|
+
t.indexOf(r) < 0 && xi.call(e, r) && (n[r] = e[r]);
|
|
3828
|
+
return n;
|
|
3833
3829
|
};
|
|
3834
|
-
const
|
|
3830
|
+
const vi = {
|
|
3835
3831
|
number: {
|
|
3836
3832
|
scientific: { notation: "scientific" },
|
|
3837
3833
|
engineering: { notation: "engineering" },
|
|
@@ -3861,174 +3857,174 @@ const Hi = {
|
|
|
3861
3857
|
}
|
|
3862
3858
|
}
|
|
3863
3859
|
};
|
|
3864
|
-
function
|
|
3860
|
+
function Hi({ locale: e, id: t }) {
|
|
3865
3861
|
console.warn(
|
|
3866
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3862
|
+
`[svelte-i18n] The message "${t}" was not found in "${ue(
|
|
3867
3863
|
e
|
|
3868
|
-
).join('", "')}".${
|
|
3864
|
+
).join('", "')}".${Ee(I()) ? `
|
|
3869
3865
|
|
|
3870
3866
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3871
3867
|
);
|
|
3872
3868
|
}
|
|
3873
|
-
const
|
|
3869
|
+
const wi = {
|
|
3874
3870
|
fallbackLocale: null,
|
|
3875
3871
|
loadingDelay: 200,
|
|
3876
|
-
formats:
|
|
3872
|
+
formats: vi,
|
|
3877
3873
|
warnOnMissingMessages: !0,
|
|
3878
3874
|
handleMissingMessage: void 0,
|
|
3879
3875
|
ignoreTag: !0
|
|
3880
|
-
},
|
|
3881
|
-
function
|
|
3882
|
-
return
|
|
3876
|
+
}, ee = wi;
|
|
3877
|
+
function Z() {
|
|
3878
|
+
return ee;
|
|
3883
3879
|
}
|
|
3884
|
-
function
|
|
3885
|
-
const t = e, { formats:
|
|
3880
|
+
function Bi(e) {
|
|
3881
|
+
const t = e, { formats: n } = t, r = Ei(t, ["formats"]);
|
|
3886
3882
|
let i = e.fallbackLocale;
|
|
3887
3883
|
if (e.initialLocale)
|
|
3888
3884
|
try {
|
|
3889
|
-
|
|
3885
|
+
gn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3890
3886
|
} catch (s) {
|
|
3891
3887
|
console.warn(
|
|
3892
3888
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3893
3889
|
);
|
|
3894
3890
|
}
|
|
3895
|
-
return
|
|
3891
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Hi : console.warn(
|
|
3896
3892
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3897
|
-
)), Object.assign(
|
|
3893
|
+
)), Object.assign(ee, r, { initialLocale: i }), n && ("number" in n && Object.assign(ee.formats.number, n.number), "date" in n && Object.assign(ee.formats.date, n.date), "time" in n && Object.assign(ee.formats.time, n.time)), U.set(i);
|
|
3898
3894
|
}
|
|
3899
|
-
const
|
|
3900
|
-
var
|
|
3901
|
-
for (var
|
|
3902
|
-
|
|
3895
|
+
const Ge = we(!1);
|
|
3896
|
+
var Ti = Object.defineProperty, Si = Object.defineProperties, Ai = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, wt = (e, t, n) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ci = (e, t) => {
|
|
3897
|
+
for (var n in t || (t = {}))
|
|
3898
|
+
Oi.call(t, n) && wt(e, n, t[n]);
|
|
3903
3899
|
if (Ht)
|
|
3904
|
-
for (var
|
|
3905
|
-
|
|
3900
|
+
for (var n of Ht(t))
|
|
3901
|
+
Pi.call(t, n) && wt(e, n, t[n]);
|
|
3906
3902
|
return e;
|
|
3907
|
-
},
|
|
3908
|
-
let
|
|
3909
|
-
const
|
|
3903
|
+
}, Li = (e, t) => Si(e, Ai(t));
|
|
3904
|
+
let Je;
|
|
3905
|
+
const ve = we(null);
|
|
3910
3906
|
function Bt(e) {
|
|
3911
|
-
return e.split("-").map((t,
|
|
3907
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3912
3908
|
}
|
|
3913
|
-
function
|
|
3914
|
-
const
|
|
3915
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3909
|
+
function ue(e, t = Z().fallbackLocale) {
|
|
3910
|
+
const n = Bt(e);
|
|
3911
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Bt(t)])] : n;
|
|
3916
3912
|
}
|
|
3917
|
-
function
|
|
3918
|
-
return
|
|
3913
|
+
function I() {
|
|
3914
|
+
return Je != null ? Je : void 0;
|
|
3919
3915
|
}
|
|
3920
|
-
|
|
3921
|
-
|
|
3916
|
+
ve.subscribe((e) => {
|
|
3917
|
+
Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3922
3918
|
});
|
|
3923
|
-
const
|
|
3924
|
-
if (e &&
|
|
3925
|
-
const { loadingDelay: t } =
|
|
3926
|
-
let
|
|
3927
|
-
return typeof window != "undefined" &&
|
|
3928
|
-
() =>
|
|
3919
|
+
const Ni = (e) => {
|
|
3920
|
+
if (e && pi(e) && Ee(e)) {
|
|
3921
|
+
const { loadingDelay: t } = Z();
|
|
3922
|
+
let n;
|
|
3923
|
+
return typeof window != "undefined" && I() != null && t ? n = window.setTimeout(
|
|
3924
|
+
() => Ge.set(!0),
|
|
3929
3925
|
t
|
|
3930
|
-
) :
|
|
3931
|
-
|
|
3926
|
+
) : Ge.set(!0), En(e).then(() => {
|
|
3927
|
+
ve.set(e);
|
|
3932
3928
|
}).finally(() => {
|
|
3933
|
-
clearTimeout(
|
|
3929
|
+
clearTimeout(n), Ge.set(!1);
|
|
3934
3930
|
});
|
|
3935
3931
|
}
|
|
3936
|
-
return
|
|
3937
|
-
},
|
|
3938
|
-
set:
|
|
3939
|
-
}),
|
|
3932
|
+
return ve.set(e);
|
|
3933
|
+
}, U = Li(Ci({}, ve), {
|
|
3934
|
+
set: Ni
|
|
3935
|
+
}), Se = (e) => {
|
|
3940
3936
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3941
|
-
return (
|
|
3942
|
-
const i = JSON.stringify(
|
|
3943
|
-
return i in t ? t[i] : t[i] = e(
|
|
3937
|
+
return (r) => {
|
|
3938
|
+
const i = JSON.stringify(r);
|
|
3939
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3944
3940
|
};
|
|
3945
3941
|
};
|
|
3946
|
-
var
|
|
3947
|
-
for (var
|
|
3948
|
-
|
|
3949
|
-
if (
|
|
3950
|
-
for (var
|
|
3951
|
-
|
|
3942
|
+
var Ii = Object.defineProperty, He = Object.getOwnPropertySymbols, vn = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, Tt = (e, t, n) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, it = (e, t) => {
|
|
3943
|
+
for (var n in t || (t = {}))
|
|
3944
|
+
vn.call(t, n) && Tt(e, n, t[n]);
|
|
3945
|
+
if (He)
|
|
3946
|
+
for (var n of He(t))
|
|
3947
|
+
Hn.call(t, n) && Tt(e, n, t[n]);
|
|
3952
3948
|
return e;
|
|
3953
|
-
},
|
|
3954
|
-
var
|
|
3955
|
-
for (var
|
|
3956
|
-
|
|
3957
|
-
if (e != null &&
|
|
3958
|
-
for (var
|
|
3959
|
-
t.indexOf(
|
|
3960
|
-
return
|
|
3949
|
+
}, J = (e, t) => {
|
|
3950
|
+
var n = {};
|
|
3951
|
+
for (var r in e)
|
|
3952
|
+
vn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3953
|
+
if (e != null && He)
|
|
3954
|
+
for (var r of He(e))
|
|
3955
|
+
t.indexOf(r) < 0 && Hn.call(e, r) && (n[r] = e[r]);
|
|
3956
|
+
return n;
|
|
3961
3957
|
};
|
|
3962
|
-
const
|
|
3963
|
-
const { formats:
|
|
3964
|
-
if (e in
|
|
3965
|
-
return
|
|
3958
|
+
const se = (e, t) => {
|
|
3959
|
+
const { formats: n } = Z();
|
|
3960
|
+
if (e in n && t in n[e])
|
|
3961
|
+
return n[e][t];
|
|
3966
3962
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3967
|
-
},
|
|
3963
|
+
}, Mi = Se(
|
|
3968
3964
|
(e) => {
|
|
3969
|
-
var t = e, { locale:
|
|
3970
|
-
if (
|
|
3965
|
+
var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
|
|
3966
|
+
if (n == null)
|
|
3971
3967
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3972
|
-
return
|
|
3968
|
+
return r && (i = se("number", r)), new Intl.NumberFormat(n, i);
|
|
3973
3969
|
}
|
|
3974
|
-
),
|
|
3970
|
+
), $i = Se(
|
|
3975
3971
|
(e) => {
|
|
3976
|
-
var t = e, { locale:
|
|
3977
|
-
if (
|
|
3972
|
+
var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
|
|
3973
|
+
if (n == null)
|
|
3978
3974
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3979
|
-
return
|
|
3975
|
+
return r ? i = se("date", r) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3980
3976
|
}
|
|
3981
|
-
),
|
|
3977
|
+
), Ri = Se(
|
|
3982
3978
|
(e) => {
|
|
3983
|
-
var t = e, { locale:
|
|
3984
|
-
if (
|
|
3979
|
+
var t = e, { locale: n, format: r } = t, i = J(t, ["locale", "format"]);
|
|
3980
|
+
if (n == null)
|
|
3985
3981
|
throw new Error(
|
|
3986
3982
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3987
3983
|
);
|
|
3988
|
-
return
|
|
3984
|
+
return r ? i = se("time", r) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3989
3985
|
}
|
|
3990
|
-
),
|
|
3986
|
+
), Ui = (e = {}) => {
|
|
3991
3987
|
var t = e, {
|
|
3992
|
-
locale:
|
|
3993
|
-
} = t,
|
|
3988
|
+
locale: n = I()
|
|
3989
|
+
} = t, r = J(t, [
|
|
3994
3990
|
"locale"
|
|
3995
3991
|
]);
|
|
3996
|
-
return
|
|
3997
|
-
},
|
|
3992
|
+
return Mi(it({ locale: n }, r));
|
|
3993
|
+
}, Di = (e = {}) => {
|
|
3998
3994
|
var t = e, {
|
|
3999
|
-
locale:
|
|
4000
|
-
} = t,
|
|
3995
|
+
locale: n = I()
|
|
3996
|
+
} = t, r = J(t, [
|
|
4001
3997
|
"locale"
|
|
4002
3998
|
]);
|
|
4003
|
-
return
|
|
4004
|
-
},
|
|
3999
|
+
return $i(it({ locale: n }, r));
|
|
4000
|
+
}, Gi = (e = {}) => {
|
|
4005
4001
|
var t = e, {
|
|
4006
|
-
locale:
|
|
4007
|
-
} = t,
|
|
4002
|
+
locale: n = I()
|
|
4003
|
+
} = t, r = J(t, [
|
|
4008
4004
|
"locale"
|
|
4009
4005
|
]);
|
|
4010
|
-
return
|
|
4011
|
-
},
|
|
4006
|
+
return Ri(it({ locale: n }, r));
|
|
4007
|
+
}, Fi = Se(
|
|
4012
4008
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4013
|
-
(e, t =
|
|
4014
|
-
ignoreTag:
|
|
4009
|
+
(e, t = I()) => new gn(e, t, Z().formats, {
|
|
4010
|
+
ignoreTag: Z().ignoreTag
|
|
4015
4011
|
})
|
|
4016
|
-
),
|
|
4017
|
-
var
|
|
4012
|
+
), ji = (e, t = {}) => {
|
|
4013
|
+
var n, r, i, s;
|
|
4018
4014
|
let a = t;
|
|
4019
4015
|
typeof e == "object" && (a = e, e = a.id);
|
|
4020
4016
|
const {
|
|
4021
4017
|
values: o,
|
|
4022
|
-
locale: l =
|
|
4018
|
+
locale: l = I(),
|
|
4023
4019
|
default: u
|
|
4024
4020
|
} = a;
|
|
4025
4021
|
if (l == null)
|
|
4026
4022
|
throw new Error(
|
|
4027
4023
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4028
4024
|
);
|
|
4029
|
-
let h =
|
|
4025
|
+
let h = bn(e, l);
|
|
4030
4026
|
if (!h)
|
|
4031
|
-
h = (s = (i = (
|
|
4027
|
+
h = (s = (i = (r = (n = Z()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4032
4028
|
else if (typeof h != "string")
|
|
4033
4029
|
return console.warn(
|
|
4034
4030
|
`[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.`
|
|
@@ -4037,7 +4033,7 @@ const oe = (e, t) => {
|
|
|
4037
4033
|
return h;
|
|
4038
4034
|
let f = h;
|
|
4039
4035
|
try {
|
|
4040
|
-
f =
|
|
4036
|
+
f = Fi(h, l).format(o);
|
|
4041
4037
|
} catch (m) {
|
|
4042
4038
|
m instanceof Error && console.warn(
|
|
4043
4039
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4045,18 +4041,18 @@ const oe = (e, t) => {
|
|
|
4045
4041
|
);
|
|
4046
4042
|
}
|
|
4047
4043
|
return f;
|
|
4048
|
-
},
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4044
|
+
}, ki = (e, t) => Gi(t).format(e), Vi = (e, t) => Di(t).format(e), Xi = (e, t) => Ui(t).format(e), zi = (e, t = I()) => bn(e, t), Wi = q([U, ae], () => ji);
|
|
4045
|
+
q([U], () => ki);
|
|
4046
|
+
q([U], () => Vi);
|
|
4047
|
+
q([U], () => Xi);
|
|
4048
|
+
q([U, ae], () => zi);
|
|
4053
4049
|
function St(e, t) {
|
|
4054
|
-
|
|
4050
|
+
yn(e, t);
|
|
4055
4051
|
}
|
|
4056
|
-
function
|
|
4057
|
-
|
|
4052
|
+
function Zi(e) {
|
|
4053
|
+
Bi({
|
|
4058
4054
|
fallbackLocale: "en"
|
|
4059
|
-
}),
|
|
4055
|
+
}), U.set(e);
|
|
4060
4056
|
}
|
|
4061
4057
|
const At = {
|
|
4062
4058
|
en: {
|
|
@@ -4081,232 +4077,232 @@ const At = {
|
|
|
4081
4077
|
}
|
|
4082
4078
|
}
|
|
4083
4079
|
};
|
|
4084
|
-
function
|
|
4085
|
-
|
|
4080
|
+
function Qi(e) {
|
|
4081
|
+
Mn(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}");
|
|
4086
4082
|
}
|
|
4087
|
-
const
|
|
4083
|
+
const qi = (e) => ({}), Ot = (e) => ({}), Ji = (e) => ({}), Pt = (e) => ({}), Yi = (e) => ({}), Ct = (e) => ({});
|
|
4088
4084
|
function Lt(e) {
|
|
4089
|
-
let t,
|
|
4085
|
+
let t, n, r;
|
|
4090
4086
|
return {
|
|
4091
4087
|
c() {
|
|
4092
|
-
t =
|
|
4088
|
+
t = R("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>', Q(t, "class", "CashierHeaderLeftButton");
|
|
4093
4089
|
},
|
|
4094
4090
|
m(i, s) {
|
|
4095
|
-
|
|
4091
|
+
$(i, t, s), n || (r = Xt(
|
|
4096
4092
|
t,
|
|
4097
4093
|
"click",
|
|
4098
4094
|
/*back*/
|
|
4099
4095
|
e[6]
|
|
4100
|
-
),
|
|
4096
|
+
), n = !0);
|
|
4101
4097
|
},
|
|
4102
4098
|
p: B,
|
|
4103
4099
|
d(i) {
|
|
4104
|
-
i &&
|
|
4100
|
+
i && C(t), n = !1, r();
|
|
4105
4101
|
}
|
|
4106
4102
|
};
|
|
4107
4103
|
}
|
|
4108
|
-
function
|
|
4109
|
-
let t,
|
|
4104
|
+
function Ki(e) {
|
|
4105
|
+
let t, n = (
|
|
4110
4106
|
/*backButton*/
|
|
4111
4107
|
e[1] && Lt(e)
|
|
4112
4108
|
);
|
|
4113
4109
|
return {
|
|
4114
4110
|
c() {
|
|
4115
|
-
|
|
4111
|
+
n && n.c(), t = Vt();
|
|
4116
4112
|
},
|
|
4117
|
-
m(
|
|
4118
|
-
|
|
4113
|
+
m(r, i) {
|
|
4114
|
+
n && n.m(r, i), $(r, t, i);
|
|
4119
4115
|
},
|
|
4120
|
-
p(
|
|
4116
|
+
p(r, i) {
|
|
4121
4117
|
/*backButton*/
|
|
4122
|
-
|
|
4118
|
+
r[1] ? n ? n.p(r, i) : (n = Lt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
4123
4119
|
},
|
|
4124
|
-
d(
|
|
4125
|
-
|
|
4120
|
+
d(r) {
|
|
4121
|
+
r && C(t), n && n.d(r);
|
|
4126
4122
|
}
|
|
4127
4123
|
};
|
|
4128
4124
|
}
|
|
4129
|
-
function
|
|
4130
|
-
let t,
|
|
4125
|
+
function es(e) {
|
|
4126
|
+
let t, n = (
|
|
4131
4127
|
/*$_*/
|
|
4132
4128
|
e[4](
|
|
4133
4129
|
/*titleText*/
|
|
4134
4130
|
e[2]
|
|
4135
4131
|
) + ""
|
|
4136
|
-
),
|
|
4132
|
+
), r;
|
|
4137
4133
|
return {
|
|
4138
4134
|
c() {
|
|
4139
|
-
t =
|
|
4135
|
+
t = R("span"), r = et(n), Q(t, "class", "CashierHeaderTitle");
|
|
4140
4136
|
},
|
|
4141
4137
|
m(i, s) {
|
|
4142
|
-
|
|
4138
|
+
$(i, t, s), be(t, r);
|
|
4143
4139
|
},
|
|
4144
4140
|
p(i, s) {
|
|
4145
4141
|
s & /*$_, titleText*/
|
|
4146
|
-
20 &&
|
|
4142
|
+
20 && n !== (n = /*$_*/
|
|
4147
4143
|
i[4](
|
|
4148
4144
|
/*titleText*/
|
|
4149
4145
|
i[2]
|
|
4150
|
-
) + "") &&
|
|
4146
|
+
) + "") && Un(r, n);
|
|
4151
4147
|
},
|
|
4152
4148
|
d(i) {
|
|
4153
|
-
i &&
|
|
4149
|
+
i && C(t);
|
|
4154
4150
|
}
|
|
4155
4151
|
};
|
|
4156
4152
|
}
|
|
4157
4153
|
function Nt(e) {
|
|
4158
|
-
let t,
|
|
4154
|
+
let t, n, r;
|
|
4159
4155
|
return {
|
|
4160
4156
|
c() {
|
|
4161
|
-
t =
|
|
4157
|
+
t = R("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>', Q(t, "class", "CashierHeaderRightButton");
|
|
4162
4158
|
},
|
|
4163
4159
|
m(i, s) {
|
|
4164
|
-
|
|
4160
|
+
$(i, t, s), n || (r = Xt(
|
|
4165
4161
|
t,
|
|
4166
4162
|
"click",
|
|
4167
4163
|
/*close*/
|
|
4168
4164
|
e[5]
|
|
4169
|
-
),
|
|
4165
|
+
), n = !0);
|
|
4170
4166
|
},
|
|
4171
4167
|
p: B,
|
|
4172
4168
|
d(i) {
|
|
4173
|
-
i &&
|
|
4169
|
+
i && C(t), n = !1, r();
|
|
4174
4170
|
}
|
|
4175
4171
|
};
|
|
4176
4172
|
}
|
|
4177
|
-
function
|
|
4178
|
-
let t,
|
|
4173
|
+
function ts(e) {
|
|
4174
|
+
let t, n = (
|
|
4179
4175
|
/*closeButton*/
|
|
4180
4176
|
e[3] && Nt(e)
|
|
4181
4177
|
);
|
|
4182
4178
|
return {
|
|
4183
4179
|
c() {
|
|
4184
|
-
|
|
4180
|
+
n && n.c(), t = Vt();
|
|
4185
4181
|
},
|
|
4186
|
-
m(
|
|
4187
|
-
|
|
4182
|
+
m(r, i) {
|
|
4183
|
+
n && n.m(r, i), $(r, t, i);
|
|
4188
4184
|
},
|
|
4189
|
-
p(
|
|
4185
|
+
p(r, i) {
|
|
4190
4186
|
/*closeButton*/
|
|
4191
|
-
|
|
4187
|
+
r[3] ? n ? n.p(r, i) : (n = Nt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
4192
4188
|
},
|
|
4193
|
-
d(
|
|
4194
|
-
|
|
4189
|
+
d(r) {
|
|
4190
|
+
r && C(t), n && n.d(r);
|
|
4195
4191
|
}
|
|
4196
4192
|
};
|
|
4197
4193
|
}
|
|
4198
4194
|
function ns(e) {
|
|
4199
|
-
let t,
|
|
4195
|
+
let t, n, r, i;
|
|
4200
4196
|
const s = (
|
|
4201
4197
|
/*#slots*/
|
|
4202
4198
|
e[16].leftButton
|
|
4203
|
-
), a =
|
|
4199
|
+
), a = Oe(
|
|
4204
4200
|
s,
|
|
4205
4201
|
e,
|
|
4206
4202
|
/*$$scope*/
|
|
4207
4203
|
e[15],
|
|
4208
4204
|
Ct
|
|
4209
|
-
), o = a ||
|
|
4205
|
+
), o = a || Ki(e), l = (
|
|
4210
4206
|
/*#slots*/
|
|
4211
4207
|
e[16].title
|
|
4212
|
-
), u =
|
|
4208
|
+
), u = Oe(
|
|
4213
4209
|
l,
|
|
4214
4210
|
e,
|
|
4215
4211
|
/*$$scope*/
|
|
4216
4212
|
e[15],
|
|
4217
4213
|
Pt
|
|
4218
|
-
), h = u ||
|
|
4214
|
+
), h = u || es(e), f = (
|
|
4219
4215
|
/*#slots*/
|
|
4220
4216
|
e[16].rightButton
|
|
4221
|
-
), m =
|
|
4217
|
+
), m = Oe(
|
|
4222
4218
|
f,
|
|
4223
4219
|
e,
|
|
4224
4220
|
/*$$scope*/
|
|
4225
4221
|
e[15],
|
|
4226
4222
|
Ot
|
|
4227
|
-
),
|
|
4223
|
+
), d = m || ts(e);
|
|
4228
4224
|
return {
|
|
4229
4225
|
c() {
|
|
4230
|
-
t =
|
|
4226
|
+
t = R("div"), o && o.c(), n = ft(), h && h.c(), r = ft(), d && d.c(), Q(t, "class", "CashierHeader");
|
|
4231
4227
|
},
|
|
4232
|
-
m(c,
|
|
4233
|
-
|
|
4228
|
+
m(c, p) {
|
|
4229
|
+
$(c, t, p), o && o.m(t, null), be(t, n), h && h.m(t, null), be(t, r), d && d.m(t, null), e[17](t), i = !0;
|
|
4234
4230
|
},
|
|
4235
|
-
p(c, [
|
|
4236
|
-
a ? a.p && (!i ||
|
|
4237
|
-
32768) &&
|
|
4231
|
+
p(c, [p]) {
|
|
4232
|
+
a ? a.p && (!i || p & /*$$scope*/
|
|
4233
|
+
32768) && Ce(
|
|
4238
4234
|
a,
|
|
4239
4235
|
s,
|
|
4240
4236
|
c,
|
|
4241
4237
|
/*$$scope*/
|
|
4242
4238
|
c[15],
|
|
4243
|
-
i ?
|
|
4239
|
+
i ? Pe(
|
|
4244
4240
|
s,
|
|
4245
4241
|
/*$$scope*/
|
|
4246
4242
|
c[15],
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
) :
|
|
4243
|
+
p,
|
|
4244
|
+
Yi
|
|
4245
|
+
) : Le(
|
|
4250
4246
|
/*$$scope*/
|
|
4251
4247
|
c[15]
|
|
4252
4248
|
),
|
|
4253
4249
|
Ct
|
|
4254
|
-
) : o && o.p && (!i ||
|
|
4255
|
-
2) && o.p(c, i ?
|
|
4256
|
-
32768) &&
|
|
4250
|
+
) : o && o.p && (!i || p & /*backButton*/
|
|
4251
|
+
2) && o.p(c, i ? p : -1), u ? u.p && (!i || p & /*$$scope*/
|
|
4252
|
+
32768) && Ce(
|
|
4257
4253
|
u,
|
|
4258
4254
|
l,
|
|
4259
4255
|
c,
|
|
4260
4256
|
/*$$scope*/
|
|
4261
4257
|
c[15],
|
|
4262
|
-
i ?
|
|
4258
|
+
i ? Pe(
|
|
4263
4259
|
l,
|
|
4264
4260
|
/*$$scope*/
|
|
4265
4261
|
c[15],
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
) :
|
|
4262
|
+
p,
|
|
4263
|
+
Ji
|
|
4264
|
+
) : Le(
|
|
4269
4265
|
/*$$scope*/
|
|
4270
4266
|
c[15]
|
|
4271
4267
|
),
|
|
4272
4268
|
Pt
|
|
4273
|
-
) : h && h.p && (!i ||
|
|
4274
|
-
20) && h.p(c, i ?
|
|
4275
|
-
32768) &&
|
|
4269
|
+
) : h && h.p && (!i || p & /*$_, titleText*/
|
|
4270
|
+
20) && h.p(c, i ? p : -1), m ? m.p && (!i || p & /*$$scope*/
|
|
4271
|
+
32768) && Ce(
|
|
4276
4272
|
m,
|
|
4277
4273
|
f,
|
|
4278
4274
|
c,
|
|
4279
4275
|
/*$$scope*/
|
|
4280
4276
|
c[15],
|
|
4281
|
-
i ?
|
|
4277
|
+
i ? Pe(
|
|
4282
4278
|
f,
|
|
4283
4279
|
/*$$scope*/
|
|
4284
4280
|
c[15],
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
) :
|
|
4281
|
+
p,
|
|
4282
|
+
qi
|
|
4283
|
+
) : Le(
|
|
4288
4284
|
/*$$scope*/
|
|
4289
4285
|
c[15]
|
|
4290
4286
|
),
|
|
4291
4287
|
Ot
|
|
4292
|
-
) :
|
|
4293
|
-
8) &&
|
|
4288
|
+
) : d && d.p && (!i || p & /*closeButton*/
|
|
4289
|
+
8) && d.p(c, i ? p : -1);
|
|
4294
4290
|
},
|
|
4295
4291
|
i(c) {
|
|
4296
|
-
i || (
|
|
4292
|
+
i || (me(o, c), me(h, c), me(d, c), i = !0);
|
|
4297
4293
|
},
|
|
4298
4294
|
o(c) {
|
|
4299
|
-
|
|
4295
|
+
Ie(o, c), Ie(h, c), Ie(d, c), i = !1;
|
|
4300
4296
|
},
|
|
4301
4297
|
d(c) {
|
|
4302
|
-
c &&
|
|
4298
|
+
c && C(t), o && o.d(c), h && h.d(c), d && d.d(c), e[17](null);
|
|
4303
4299
|
}
|
|
4304
4300
|
};
|
|
4305
4301
|
}
|
|
4306
|
-
function
|
|
4307
|
-
let
|
|
4308
|
-
|
|
4309
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4302
|
+
function rs(e, t, n) {
|
|
4303
|
+
let r;
|
|
4304
|
+
In(e, Wi, (_) => n(4, r = _));
|
|
4305
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, c, p = !1, E, v = !1;
|
|
4310
4306
|
const T = () => {
|
|
4311
4307
|
fetch(l).then((_) => _.json()).then((_) => {
|
|
4312
4308
|
Object.keys(_).forEach((st) => {
|
|
@@ -4320,45 +4316,45 @@ function is(e, t, r) {
|
|
|
4320
4316
|
St(_, At[_]);
|
|
4321
4317
|
});
|
|
4322
4318
|
const H = () => {
|
|
4323
|
-
|
|
4319
|
+
Zi(f);
|
|
4324
4320
|
}, A = () => {
|
|
4325
4321
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4326
|
-
},
|
|
4322
|
+
}, P = () => {
|
|
4327
4323
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4328
|
-
},
|
|
4329
|
-
|
|
4330
|
-
},
|
|
4331
|
-
|
|
4332
|
-
},
|
|
4333
|
-
|
|
4324
|
+
}, D = () => {
|
|
4325
|
+
n(1, p = !!u && u !== "false");
|
|
4326
|
+
}, he = () => {
|
|
4327
|
+
n(3, v = !!m && m !== "false");
|
|
4328
|
+
}, Bn = () => {
|
|
4329
|
+
n(2, E = h || "header.general");
|
|
4334
4330
|
};
|
|
4335
|
-
|
|
4331
|
+
Xn(() => () => {
|
|
4336
4332
|
});
|
|
4337
|
-
function
|
|
4338
|
-
|
|
4339
|
-
c = _,
|
|
4333
|
+
function Tn(_) {
|
|
4334
|
+
je[_ ? "unshift" : "push"](() => {
|
|
4335
|
+
c = _, n(0, c);
|
|
4340
4336
|
});
|
|
4341
4337
|
}
|
|
4342
4338
|
return e.$$set = (_) => {
|
|
4343
|
-
"clientstyling" in _ &&
|
|
4339
|
+
"clientstyling" in _ && n(7, a = _.clientstyling), "clientstylingurl" in _ && n(8, o = _.clientstylingurl), "translationurl" in _ && n(9, l = _.translationurl), "showbackbutton" in _ && n(10, u = _.showbackbutton), "title" in _ && n(11, h = _.title), "lang" in _ && n(12, f = _.lang), "showclosebutton" in _ && n(13, m = _.showclosebutton), "mbsource" in _ && n(14, d = _.mbsource), "$$scope" in _ && n(15, s = _.$$scope);
|
|
4344
4340
|
}, e.$$.update = () => {
|
|
4345
4341
|
e.$$.dirty & /*lang*/
|
|
4346
4342
|
4096 && f && H(), e.$$.dirty & /*lang, title*/
|
|
4347
|
-
6144 && f && h &&
|
|
4348
|
-
129 && a && c &&
|
|
4349
|
-
257 && o && c &&
|
|
4350
|
-
16385 &&
|
|
4343
|
+
6144 && f && h && Bn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4344
|
+
129 && a && c && tr(c, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4345
|
+
257 && o && c && nr(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4346
|
+
16385 && d && c && rr(c, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4351
4347
|
4608 && f && l && T(), e.$$.dirty & /*showbackbutton*/
|
|
4352
|
-
1024 && u &&
|
|
4353
|
-
8192 && m &&
|
|
4348
|
+
1024 && u && D(), e.$$.dirty & /*showclosebutton*/
|
|
4349
|
+
8192 && m && he();
|
|
4354
4350
|
}, [
|
|
4355
4351
|
c,
|
|
4356
|
-
|
|
4352
|
+
p,
|
|
4357
4353
|
E,
|
|
4358
4354
|
v,
|
|
4359
|
-
|
|
4355
|
+
r,
|
|
4360
4356
|
A,
|
|
4361
|
-
|
|
4357
|
+
P,
|
|
4362
4358
|
a,
|
|
4363
4359
|
o,
|
|
4364
4360
|
l,
|
|
@@ -4366,18 +4362,18 @@ function is(e, t, r) {
|
|
|
4366
4362
|
h,
|
|
4367
4363
|
f,
|
|
4368
4364
|
m,
|
|
4369
|
-
|
|
4365
|
+
d,
|
|
4370
4366
|
s,
|
|
4371
4367
|
i,
|
|
4372
|
-
|
|
4368
|
+
Tn
|
|
4373
4369
|
];
|
|
4374
4370
|
}
|
|
4375
|
-
class
|
|
4371
|
+
class wn extends Kn {
|
|
4376
4372
|
constructor(t) {
|
|
4377
|
-
super(),
|
|
4373
|
+
super(), Jn(
|
|
4378
4374
|
this,
|
|
4379
4375
|
t,
|
|
4380
|
-
|
|
4376
|
+
rs,
|
|
4381
4377
|
ns,
|
|
4382
4378
|
$t,
|
|
4383
4379
|
{
|
|
@@ -4390,7 +4386,7 @@ class Hr extends Yr {
|
|
|
4390
4386
|
showclosebutton: 13,
|
|
4391
4387
|
mbsource: 14
|
|
4392
4388
|
},
|
|
4393
|
-
|
|
4389
|
+
Qi
|
|
4394
4390
|
);
|
|
4395
4391
|
}
|
|
4396
4392
|
get clientstyling() {
|
|
@@ -4442,61 +4438,61 @@ class Hr extends Yr {
|
|
|
4442
4438
|
this.$$set({ mbsource: t }), O();
|
|
4443
4439
|
}
|
|
4444
4440
|
}
|
|
4445
|
-
|
|
4441
|
+
Yn(wn, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4446
4442
|
const xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4447
4443
|
__proto__: null,
|
|
4448
|
-
default:
|
|
4444
|
+
default: wn
|
|
4449
4445
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4450
4446
|
export {
|
|
4451
|
-
|
|
4452
|
-
|
|
4447
|
+
U as $,
|
|
4448
|
+
sr as A,
|
|
4453
4449
|
It as B,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4450
|
+
Bi as C,
|
|
4451
|
+
yn as D,
|
|
4452
|
+
Ie as E,
|
|
4453
|
+
ds as F,
|
|
4454
|
+
me as G,
|
|
4455
|
+
In as H,
|
|
4456
|
+
ms as I,
|
|
4457
|
+
hs as J,
|
|
4458
|
+
re as K,
|
|
4459
|
+
ps as L,
|
|
4464
4460
|
gs as M,
|
|
4465
4461
|
Vt as N,
|
|
4466
|
-
|
|
4462
|
+
Wi as O,
|
|
4467
4463
|
os as P,
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4464
|
+
ss as Q,
|
|
4465
|
+
_s as R,
|
|
4466
|
+
Kn as S,
|
|
4467
|
+
Zn as T,
|
|
4468
|
+
Qn as U,
|
|
4469
|
+
ls as V,
|
|
4470
|
+
cs as W,
|
|
4475
4471
|
xs as X,
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4472
|
+
Mn as a,
|
|
4473
|
+
R as b,
|
|
4474
|
+
Yn as c,
|
|
4475
|
+
us as d,
|
|
4476
|
+
bs as e,
|
|
4481
4477
|
O as f,
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4478
|
+
ft as g,
|
|
4479
|
+
Q as h,
|
|
4480
|
+
Jn as i,
|
|
4481
|
+
$ as j,
|
|
4482
|
+
be as k,
|
|
4487
4483
|
Xt as l,
|
|
4488
|
-
|
|
4484
|
+
C as m,
|
|
4489
4485
|
B as n,
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4486
|
+
as as o,
|
|
4487
|
+
Xn as p,
|
|
4488
|
+
nr as q,
|
|
4489
|
+
M as r,
|
|
4494
4490
|
$t as s,
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4491
|
+
rr as t,
|
|
4492
|
+
et as u,
|
|
4493
|
+
fs as v,
|
|
4494
|
+
Un as w,
|
|
4495
|
+
je as x,
|
|
4496
|
+
tr as y,
|
|
4497
|
+
ys as z
|
|
4502
4498
|
};
|