@everymatrix/cashier-methods-list 1.54.0 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierMethodsList-Dy51MdHF.js → CashierMethodsList-BtUC3T4Y.js} +1235 -1271
- package/esnext/cashier-methods-list.js +14 -0
- package/package.json +10 -8
- package/components/CashierMethodsList-NzFbbBgx.cjs +0 -5
- package/es2015/cashier-methods-list.cjs +0 -1
- package/es2015/cashier-methods-list.js +0 -16
|
@@ -1,79 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var Dn = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var St = Object.getOwnPropertySymbols;
|
|
4
|
-
var Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var qe = (e, t, n) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, De = (e, t) => {
|
|
6
|
-
for (var n in t || (t = {}))
|
|
7
|
-
Rn.call(t, n) && qe(e, n, t[n]);
|
|
8
|
-
if (St)
|
|
9
|
-
for (var n of St(t))
|
|
10
|
-
Un.call(t, n) && qe(e, n, t[n]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Re = (e, t) => In(e, Dn(t));
|
|
13
|
-
var te = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
-
var Tt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var s = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
o(n.next(l));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, a = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
o(n.throw(l));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
-
o((n = n.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function ie() {
|
|
1
|
+
function ne() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function Yt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function _t() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function Se(e) {
|
|
10
|
+
e.forEach(Yt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function dt(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function Zt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
18
|
+
let Ce;
|
|
19
|
+
function xt(e, t) {
|
|
20
|
+
return e === t ? !0 : (Ce || (Ce = document.createElement("a")), Ce.href = t, e === Ce.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function Lr(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function Jt(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
|
-
for (const
|
|
57
|
-
|
|
58
|
-
return
|
|
27
|
+
for (const n of t)
|
|
28
|
+
n(void 0);
|
|
29
|
+
return ne;
|
|
59
30
|
}
|
|
60
|
-
const
|
|
61
|
-
return
|
|
31
|
+
const r = e.subscribe(...t);
|
|
32
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Ar(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Jt(t, r));
|
|
65
36
|
}
|
|
66
37
|
function B(e, t) {
|
|
67
38
|
e.appendChild(t);
|
|
68
39
|
}
|
|
69
|
-
function
|
|
70
|
-
const
|
|
71
|
-
if (!
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent =
|
|
40
|
+
function Or(e, t, r) {
|
|
41
|
+
const n = $r(e);
|
|
42
|
+
if (!n.getElementById(t)) {
|
|
43
|
+
const i = z("style");
|
|
44
|
+
i.id = t, i.textContent = r, Br(n, i);
|
|
74
45
|
}
|
|
75
46
|
}
|
|
76
|
-
function
|
|
47
|
+
function $r(e) {
|
|
77
48
|
if (!e) return document;
|
|
78
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,88 +53,88 @@ function jn(e) {
|
|
|
82
53
|
t
|
|
83
54
|
) : e.ownerDocument;
|
|
84
55
|
}
|
|
85
|
-
function
|
|
56
|
+
function Br(e, t) {
|
|
86
57
|
return B(
|
|
87
58
|
/** @type {Document} */
|
|
88
59
|
e.head || e,
|
|
89
60
|
t
|
|
90
61
|
), t.sheet;
|
|
91
62
|
}
|
|
92
|
-
function
|
|
93
|
-
e.insertBefore(t,
|
|
63
|
+
function le(e, t, r) {
|
|
64
|
+
e.insertBefore(t, r || null);
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function oe(e) {
|
|
96
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
68
|
}
|
|
98
|
-
function
|
|
99
|
-
for (let
|
|
100
|
-
e[
|
|
69
|
+
function Pr(e, t) {
|
|
70
|
+
for (let r = 0; r < e.length; r += 1)
|
|
71
|
+
e[r] && e[r].d(t);
|
|
101
72
|
}
|
|
102
|
-
function
|
|
73
|
+
function z(e) {
|
|
103
74
|
return document.createElement(e);
|
|
104
75
|
}
|
|
105
76
|
function re(e) {
|
|
106
77
|
return document.createTextNode(e);
|
|
107
78
|
}
|
|
108
|
-
function
|
|
79
|
+
function te() {
|
|
109
80
|
return re(" ");
|
|
110
81
|
}
|
|
111
|
-
function
|
|
82
|
+
function Nr() {
|
|
112
83
|
return re("");
|
|
113
84
|
}
|
|
114
|
-
function
|
|
115
|
-
return e.addEventListener(t,
|
|
85
|
+
function rt(e, t, r, n) {
|
|
86
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
87
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
88
|
+
function W(e, t, r) {
|
|
89
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
90
|
}
|
|
120
|
-
function J(e, t,
|
|
121
|
-
const
|
|
122
|
-
|
|
91
|
+
function J(e, t, r) {
|
|
92
|
+
const n = t.toLowerCase();
|
|
93
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
|
|
123
94
|
}
|
|
124
|
-
function
|
|
95
|
+
function Cr(e) {
|
|
125
96
|
return Array.from(e.childNodes);
|
|
126
97
|
}
|
|
127
|
-
function
|
|
98
|
+
function ue(e, t) {
|
|
128
99
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
100
|
t);
|
|
130
101
|
}
|
|
131
|
-
function
|
|
132
|
-
e.classList.toggle(t, !!
|
|
102
|
+
function Et(e, t, r) {
|
|
103
|
+
e.classList.toggle(t, !!r);
|
|
133
104
|
}
|
|
134
|
-
function
|
|
135
|
-
return new CustomEvent(e, { detail: t, bubbles:
|
|
105
|
+
function Ir(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
106
|
+
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
136
107
|
}
|
|
137
|
-
function
|
|
108
|
+
function Dr(e) {
|
|
138
109
|
const t = {};
|
|
139
110
|
return e.childNodes.forEach(
|
|
140
111
|
/** @param {Element} node */
|
|
141
|
-
(
|
|
142
|
-
t[
|
|
112
|
+
(r) => {
|
|
113
|
+
t[r.slot || "default"] = !0;
|
|
143
114
|
}
|
|
144
115
|
), t;
|
|
145
116
|
}
|
|
146
|
-
let
|
|
147
|
-
function
|
|
148
|
-
|
|
117
|
+
let Oe;
|
|
118
|
+
function Ae(e) {
|
|
119
|
+
Oe = e;
|
|
149
120
|
}
|
|
150
|
-
function
|
|
151
|
-
if (!
|
|
152
|
-
return
|
|
121
|
+
function Qt() {
|
|
122
|
+
if (!Oe) throw new Error("Function called outside component initialization");
|
|
123
|
+
return Oe;
|
|
153
124
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
125
|
+
function Rr(e) {
|
|
126
|
+
Qt().$$.on_mount.push(e);
|
|
156
127
|
}
|
|
157
|
-
function
|
|
158
|
-
const e =
|
|
159
|
-
return (t,
|
|
128
|
+
function Ur() {
|
|
129
|
+
const e = Qt();
|
|
130
|
+
return (t, r, { cancelable: n = !1 } = {}) => {
|
|
160
131
|
const i = e.$$.callbacks[t];
|
|
161
132
|
if (i) {
|
|
162
|
-
const s =
|
|
133
|
+
const s = Ir(
|
|
163
134
|
/** @type {string} */
|
|
164
135
|
t,
|
|
165
|
-
|
|
166
|
-
{ cancelable:
|
|
136
|
+
r,
|
|
137
|
+
{ cancelable: n }
|
|
167
138
|
);
|
|
168
139
|
return i.slice().forEach((a) => {
|
|
169
140
|
a.call(e, s);
|
|
@@ -172,85 +143,85 @@ function Qn() {
|
|
|
172
143
|
return !0;
|
|
173
144
|
};
|
|
174
145
|
}
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
const
|
|
178
|
-
let
|
|
179
|
-
function
|
|
180
|
-
|
|
146
|
+
const ye = [], nt = [];
|
|
147
|
+
let ve = [];
|
|
148
|
+
const wt = [], Gr = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let it = !1;
|
|
150
|
+
function Fr() {
|
|
151
|
+
it || (it = !0, Gr.then(K));
|
|
181
152
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
153
|
+
function st(e) {
|
|
154
|
+
ve.push(e);
|
|
184
155
|
}
|
|
185
|
-
const
|
|
186
|
-
let
|
|
156
|
+
const Ze = /* @__PURE__ */ new Set();
|
|
157
|
+
let pe = 0;
|
|
187
158
|
function K() {
|
|
188
|
-
if (
|
|
159
|
+
if (pe !== 0)
|
|
189
160
|
return;
|
|
190
|
-
const e =
|
|
161
|
+
const e = Oe;
|
|
191
162
|
do {
|
|
192
163
|
try {
|
|
193
|
-
for (;
|
|
194
|
-
const t =
|
|
195
|
-
|
|
164
|
+
for (; pe < ye.length; ) {
|
|
165
|
+
const t = ye[pe];
|
|
166
|
+
pe++, Ae(t), kr(t.$$);
|
|
196
167
|
}
|
|
197
168
|
} catch (t) {
|
|
198
|
-
throw
|
|
169
|
+
throw ye.length = 0, pe = 0, t;
|
|
199
170
|
}
|
|
200
|
-
for (
|
|
201
|
-
for (let t = 0; t <
|
|
202
|
-
const
|
|
203
|
-
|
|
171
|
+
for (Ae(null), ye.length = 0, pe = 0; nt.length; ) nt.pop()();
|
|
172
|
+
for (let t = 0; t < ve.length; t += 1) {
|
|
173
|
+
const r = ve[t];
|
|
174
|
+
Ze.has(r) || (Ze.add(r), r());
|
|
204
175
|
}
|
|
205
|
-
|
|
206
|
-
} while (
|
|
207
|
-
for (;
|
|
208
|
-
|
|
209
|
-
|
|
176
|
+
ve.length = 0;
|
|
177
|
+
} while (ye.length);
|
|
178
|
+
for (; wt.length; )
|
|
179
|
+
wt.pop()();
|
|
180
|
+
it = !1, Ze.clear(), Ae(e);
|
|
210
181
|
}
|
|
211
|
-
function
|
|
182
|
+
function kr(e) {
|
|
212
183
|
if (e.fragment !== null) {
|
|
213
|
-
e.update(),
|
|
184
|
+
e.update(), Se(e.before_update);
|
|
214
185
|
const t = e.dirty;
|
|
215
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
186
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(st);
|
|
216
187
|
}
|
|
217
188
|
}
|
|
218
|
-
function
|
|
219
|
-
const t = [],
|
|
220
|
-
|
|
189
|
+
function jr(e) {
|
|
190
|
+
const t = [], r = [];
|
|
191
|
+
ve.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ve = t;
|
|
221
192
|
}
|
|
222
|
-
const
|
|
223
|
-
function
|
|
224
|
-
e && e.i && (
|
|
193
|
+
const Vr = /* @__PURE__ */ new Set();
|
|
194
|
+
function Xr(e, t) {
|
|
195
|
+
e && e.i && (Vr.delete(e), e.i(t));
|
|
225
196
|
}
|
|
226
|
-
function
|
|
227
|
-
return
|
|
197
|
+
function St(e) {
|
|
198
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
228
199
|
}
|
|
229
|
-
function
|
|
230
|
-
const { fragment:
|
|
231
|
-
|
|
232
|
-
const s = e.$$.on_mount.map(
|
|
233
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
234
|
-
}), i.forEach(
|
|
200
|
+
function Wr(e, t, r) {
|
|
201
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
202
|
+
n && n.m(t, r), st(() => {
|
|
203
|
+
const s = e.$$.on_mount.map(Yt).filter(dt);
|
|
204
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Se(s), e.$$.on_mount = [];
|
|
205
|
+
}), i.forEach(st);
|
|
235
206
|
}
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
|
|
207
|
+
function zr(e, t) {
|
|
208
|
+
const r = e.$$;
|
|
209
|
+
r.fragment !== null && (jr(r.after_update), Se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
239
210
|
}
|
|
240
|
-
function
|
|
241
|
-
e.$$.dirty[0] === -1 && (
|
|
211
|
+
function Yr(e, t) {
|
|
212
|
+
e.$$.dirty[0] === -1 && (ye.push(e), Fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
242
213
|
}
|
|
243
|
-
function
|
|
244
|
-
const l =
|
|
245
|
-
|
|
214
|
+
function Zr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
215
|
+
const l = Oe;
|
|
216
|
+
Ae(e);
|
|
246
217
|
const u = e.$$ = {
|
|
247
218
|
fragment: null,
|
|
248
219
|
ctx: [],
|
|
249
220
|
// state
|
|
250
221
|
props: s,
|
|
251
|
-
update:
|
|
222
|
+
update: ne,
|
|
252
223
|
not_equal: i,
|
|
253
|
-
bound:
|
|
224
|
+
bound: _t(),
|
|
254
225
|
// lifecycle
|
|
255
226
|
on_mount: [],
|
|
256
227
|
on_destroy: [],
|
|
@@ -259,153 +230,149 @@ function ar(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
|
259
230
|
after_update: [],
|
|
260
231
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
261
232
|
// everything else
|
|
262
|
-
callbacks:
|
|
233
|
+
callbacks: _t(),
|
|
263
234
|
dirty: o,
|
|
264
235
|
skip_bound: !1,
|
|
265
236
|
root: t.target || l.$$.root
|
|
266
237
|
};
|
|
267
238
|
a && a(u.root);
|
|
268
239
|
let h = !1;
|
|
269
|
-
if (u.ctx =
|
|
270
|
-
const w =
|
|
271
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = w) && (!u.skip_bound && u.bound[c] && u.bound[c](w), h &&
|
|
272
|
-
}), u.update(), h = !0,
|
|
240
|
+
if (u.ctx = r(e, t.props || {}, (c, p, ...x) => {
|
|
241
|
+
const w = x.length ? x[0] : p;
|
|
242
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = w) && (!u.skip_bound && u.bound[c] && u.bound[c](w), h && Yr(e, c)), p;
|
|
243
|
+
}), u.update(), h = !0, Se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
273
244
|
if (t.hydrate) {
|
|
274
|
-
const c =
|
|
275
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
245
|
+
const c = Cr(t.target);
|
|
246
|
+
u.fragment && u.fragment.l(c), c.forEach(oe);
|
|
276
247
|
} else
|
|
277
248
|
u.fragment && u.fragment.c();
|
|
278
|
-
t.intro &&
|
|
249
|
+
t.intro && Xr(e.$$.fragment), Wr(e, t.target, t.anchor), K();
|
|
279
250
|
}
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
let
|
|
283
|
-
typeof HTMLElement == "function" && (
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
251
|
+
Ae(l);
|
|
252
|
+
}
|
|
253
|
+
let qt;
|
|
254
|
+
typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
255
|
+
/** The Svelte component constructor */
|
|
256
|
+
$$ctor;
|
|
257
|
+
/** Slots */
|
|
258
|
+
$$s;
|
|
259
|
+
/** The Svelte component instance */
|
|
260
|
+
$$c;
|
|
261
|
+
/** Whether or not the custom element is connected */
|
|
262
|
+
$$cn = !1;
|
|
263
|
+
/** Component props data */
|
|
264
|
+
$$d = {};
|
|
265
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
266
|
+
$$r = !1;
|
|
267
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
268
|
+
$$p_d = {};
|
|
269
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
270
|
+
$$l = {};
|
|
271
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
272
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
273
|
+
constructor(e, t, r) {
|
|
274
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
305
275
|
}
|
|
306
|
-
addEventListener(
|
|
307
|
-
if (this.$$l[
|
|
308
|
-
const
|
|
309
|
-
this.$$l_u.set(
|
|
276
|
+
addEventListener(e, t, r) {
|
|
277
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
278
|
+
const n = this.$$c.$on(e, t);
|
|
279
|
+
this.$$l_u.set(t, n);
|
|
310
280
|
}
|
|
311
|
-
super.addEventListener(
|
|
281
|
+
super.addEventListener(e, t, r);
|
|
312
282
|
}
|
|
313
|
-
removeEventListener(
|
|
314
|
-
if (super.removeEventListener(
|
|
315
|
-
const
|
|
316
|
-
|
|
283
|
+
removeEventListener(e, t, r) {
|
|
284
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
285
|
+
const n = this.$$l_u.get(t);
|
|
286
|
+
n && (n(), this.$$l_u.delete(t));
|
|
317
287
|
}
|
|
318
288
|
}
|
|
319
|
-
connectedCallback() {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}
|
|
339
|
-
};
|
|
289
|
+
async connectedCallback() {
|
|
290
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
291
|
+
let e = function(i) {
|
|
292
|
+
return () => {
|
|
293
|
+
let s;
|
|
294
|
+
return {
|
|
295
|
+
c: function() {
|
|
296
|
+
s = z("slot"), i !== "default" && W(s, "name", i);
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* @param {HTMLElement} target
|
|
300
|
+
* @param {HTMLElement} [anchor]
|
|
301
|
+
*/
|
|
302
|
+
m: function(l, u) {
|
|
303
|
+
le(l, s, u);
|
|
304
|
+
},
|
|
305
|
+
d: function(l) {
|
|
306
|
+
l && oe(s);
|
|
307
|
+
}
|
|
340
308
|
};
|
|
341
309
|
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
310
|
+
};
|
|
311
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
|
+
return;
|
|
313
|
+
const t = {}, r = Dr(this);
|
|
314
|
+
for (const i of this.$$s)
|
|
315
|
+
i in r && (t[i] = [e(i)]);
|
|
316
|
+
for (const i of this.attributes) {
|
|
317
|
+
const s = this.$$g_p(i.name);
|
|
318
|
+
s in this.$$d || (this.$$d[s] = De(s, i.value, this.$$p_d, "toProp"));
|
|
319
|
+
}
|
|
320
|
+
for (const i in this.$$p_d)
|
|
321
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
322
|
+
this.$$c = new this.$$ctor({
|
|
323
|
+
target: this.shadowRoot || this,
|
|
324
|
+
props: {
|
|
325
|
+
...this.$$d,
|
|
326
|
+
$$slots: t,
|
|
327
|
+
$$scope: {
|
|
328
|
+
ctx: []
|
|
329
|
+
}
|
|
350
330
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
this.$$
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
this.$$r = !0;
|
|
364
|
-
for (const s in this.$$p_d)
|
|
365
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
366
|
-
const a = Fe(
|
|
367
|
-
s,
|
|
368
|
-
this.$$d[s],
|
|
369
|
-
this.$$p_d,
|
|
370
|
-
"toAttribute"
|
|
371
|
-
);
|
|
372
|
-
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
373
|
-
}
|
|
374
|
-
this.$$r = !1;
|
|
375
|
-
};
|
|
376
|
-
this.$$c.$$.after_update.push(i), i();
|
|
377
|
-
for (const s in this.$$l)
|
|
378
|
-
for (const a of this.$$l[s]) {
|
|
379
|
-
const o = this.$$c.$on(s, a);
|
|
380
|
-
this.$$l_u.set(a, o);
|
|
331
|
+
});
|
|
332
|
+
const n = () => {
|
|
333
|
+
this.$$r = !0;
|
|
334
|
+
for (const i in this.$$p_d)
|
|
335
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
336
|
+
const s = De(
|
|
337
|
+
i,
|
|
338
|
+
this.$$d[i],
|
|
339
|
+
this.$$p_d,
|
|
340
|
+
"toAttribute"
|
|
341
|
+
);
|
|
342
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
381
343
|
}
|
|
382
|
-
this.$$
|
|
383
|
-
}
|
|
384
|
-
|
|
344
|
+
this.$$r = !1;
|
|
345
|
+
};
|
|
346
|
+
this.$$c.$$.after_update.push(n), n();
|
|
347
|
+
for (const i in this.$$l)
|
|
348
|
+
for (const s of this.$$l[i]) {
|
|
349
|
+
const a = this.$$c.$on(i, s);
|
|
350
|
+
this.$$l_u.set(s, a);
|
|
351
|
+
}
|
|
352
|
+
this.$$l = {};
|
|
353
|
+
}
|
|
385
354
|
}
|
|
386
355
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
387
356
|
// and setting attributes through setAttribute etc, this is helpful
|
|
388
|
-
attributeChangedCallback(
|
|
389
|
-
|
|
390
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Fe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
357
|
+
attributeChangedCallback(e, t, r) {
|
|
358
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = De(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
391
359
|
}
|
|
392
360
|
disconnectedCallback() {
|
|
393
361
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
394
362
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
395
363
|
});
|
|
396
364
|
}
|
|
397
|
-
$$g_p(
|
|
365
|
+
$$g_p(e) {
|
|
398
366
|
return Object.keys(this.$$p_d).find(
|
|
399
|
-
(
|
|
400
|
-
) ||
|
|
367
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
368
|
+
) || e;
|
|
401
369
|
}
|
|
402
370
|
});
|
|
403
|
-
function
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
371
|
+
function De(e, t, r, n) {
|
|
372
|
+
const i = r[e]?.type;
|
|
373
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
407
374
|
return t;
|
|
408
|
-
if (
|
|
375
|
+
if (n === "toAttribute")
|
|
409
376
|
switch (i) {
|
|
410
377
|
case "Object":
|
|
411
378
|
case "Array":
|
|
@@ -413,7 +380,7 @@ function Fe(e, t, n, r) {
|
|
|
413
380
|
case "Boolean":
|
|
414
381
|
return t ? "" : null;
|
|
415
382
|
case "Number":
|
|
416
|
-
return t
|
|
383
|
+
return t ?? null;
|
|
417
384
|
default:
|
|
418
385
|
return t;
|
|
419
386
|
}
|
|
@@ -430,10 +397,10 @@ function Fe(e, t, n, r) {
|
|
|
430
397
|
return t;
|
|
431
398
|
}
|
|
432
399
|
}
|
|
433
|
-
function
|
|
434
|
-
let a = class extends
|
|
400
|
+
function Jr(e, t, r, n, i, s) {
|
|
401
|
+
let a = class extends qt {
|
|
435
402
|
constructor() {
|
|
436
|
-
super(e,
|
|
403
|
+
super(e, r, i), this.$$p_d = t;
|
|
437
404
|
}
|
|
438
405
|
static get observedAttributes() {
|
|
439
406
|
return Object.keys(t).map(
|
|
@@ -447,42 +414,38 @@ function ur(e, t, n, r, i, s) {
|
|
|
447
414
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
448
415
|
},
|
|
449
416
|
set(l) {
|
|
450
|
-
|
|
451
|
-
l = Fe(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
417
|
+
l = De(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
452
418
|
}
|
|
453
419
|
});
|
|
454
|
-
}),
|
|
420
|
+
}), n.forEach((o) => {
|
|
455
421
|
Object.defineProperty(a.prototype, o, {
|
|
456
422
|
get() {
|
|
457
|
-
|
|
458
|
-
return (l = this.$$c) == null ? void 0 : l[o];
|
|
423
|
+
return this.$$c?.[o];
|
|
459
424
|
}
|
|
460
425
|
});
|
|
461
426
|
}), e.element = /** @type {any} */
|
|
462
427
|
a, a;
|
|
463
428
|
}
|
|
464
|
-
class
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
te(this, "$$set");
|
|
482
|
-
}
|
|
429
|
+
class Qr {
|
|
430
|
+
/**
|
|
431
|
+
* ### PRIVATE API
|
|
432
|
+
*
|
|
433
|
+
* Do not use, may change at any time
|
|
434
|
+
*
|
|
435
|
+
* @type {any}
|
|
436
|
+
*/
|
|
437
|
+
$$ = void 0;
|
|
438
|
+
/**
|
|
439
|
+
* ### PRIVATE API
|
|
440
|
+
*
|
|
441
|
+
* Do not use, may change at any time
|
|
442
|
+
*
|
|
443
|
+
* @type {any}
|
|
444
|
+
*/
|
|
445
|
+
$$set = void 0;
|
|
483
446
|
/** @returns {void} */
|
|
484
447
|
$destroy() {
|
|
485
|
-
|
|
448
|
+
zr(this, 1), this.$destroy = ne;
|
|
486
449
|
}
|
|
487
450
|
/**
|
|
488
451
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -490,13 +453,13 @@ class lr {
|
|
|
490
453
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
491
454
|
* @returns {() => void}
|
|
492
455
|
*/
|
|
493
|
-
$on(t,
|
|
494
|
-
if (!
|
|
495
|
-
return
|
|
496
|
-
const
|
|
497
|
-
return
|
|
498
|
-
const i =
|
|
499
|
-
i !== -1 &&
|
|
456
|
+
$on(t, r) {
|
|
457
|
+
if (!dt(r))
|
|
458
|
+
return ne;
|
|
459
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
460
|
+
return n.push(r), () => {
|
|
461
|
+
const i = n.indexOf(r);
|
|
462
|
+
i !== -1 && n.splice(i, 1);
|
|
500
463
|
};
|
|
501
464
|
}
|
|
502
465
|
/**
|
|
@@ -504,63 +467,63 @@ class lr {
|
|
|
504
467
|
* @returns {void}
|
|
505
468
|
*/
|
|
506
469
|
$set(t) {
|
|
507
|
-
this.$$set && !
|
|
470
|
+
this.$$set && !Lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
508
471
|
}
|
|
509
472
|
}
|
|
510
|
-
const
|
|
511
|
-
typeof window
|
|
512
|
-
const
|
|
513
|
-
function
|
|
473
|
+
const qr = "4";
|
|
474
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qr);
|
|
475
|
+
const be = [];
|
|
476
|
+
function Kr(e, t) {
|
|
514
477
|
return {
|
|
515
|
-
subscribe:
|
|
478
|
+
subscribe: je(e, t).subscribe
|
|
516
479
|
};
|
|
517
480
|
}
|
|
518
|
-
function
|
|
519
|
-
let
|
|
520
|
-
const
|
|
481
|
+
function je(e, t = ne) {
|
|
482
|
+
let r;
|
|
483
|
+
const n = /* @__PURE__ */ new Set();
|
|
521
484
|
function i(o) {
|
|
522
|
-
if (
|
|
523
|
-
const l = !
|
|
524
|
-
for (const u of
|
|
525
|
-
u[1](),
|
|
485
|
+
if (Zt(e, o) && (e = o, r)) {
|
|
486
|
+
const l = !be.length;
|
|
487
|
+
for (const u of n)
|
|
488
|
+
u[1](), be.push(u, e);
|
|
526
489
|
if (l) {
|
|
527
|
-
for (let u = 0; u <
|
|
528
|
-
|
|
529
|
-
|
|
490
|
+
for (let u = 0; u < be.length; u += 2)
|
|
491
|
+
be[u][0](be[u + 1]);
|
|
492
|
+
be.length = 0;
|
|
530
493
|
}
|
|
531
494
|
}
|
|
532
495
|
}
|
|
533
496
|
function s(o) {
|
|
534
497
|
i(o(e));
|
|
535
498
|
}
|
|
536
|
-
function a(o, l =
|
|
499
|
+
function a(o, l = ne) {
|
|
537
500
|
const u = [o, l];
|
|
538
|
-
return
|
|
539
|
-
|
|
501
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || ne), o(e), () => {
|
|
502
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
540
503
|
};
|
|
541
504
|
}
|
|
542
505
|
return { set: i, update: s, subscribe: a };
|
|
543
506
|
}
|
|
544
|
-
function
|
|
545
|
-
const
|
|
507
|
+
function Te(e, t, r) {
|
|
508
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
546
509
|
if (!i.every(Boolean))
|
|
547
510
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
548
511
|
const s = t.length < 2;
|
|
549
|
-
return
|
|
512
|
+
return Kr(r, (a, o) => {
|
|
550
513
|
let l = !1;
|
|
551
514
|
const u = [];
|
|
552
|
-
let h = 0, c =
|
|
515
|
+
let h = 0, c = ne;
|
|
553
516
|
const p = () => {
|
|
554
517
|
if (h)
|
|
555
518
|
return;
|
|
556
519
|
c();
|
|
557
|
-
const w = t(
|
|
558
|
-
s ? a(w) : c =
|
|
559
|
-
},
|
|
560
|
-
(w, b) =>
|
|
520
|
+
const w = t(n ? u[0] : u, a, o);
|
|
521
|
+
s ? a(w) : c = dt(w) ? w : ne;
|
|
522
|
+
}, x = i.map(
|
|
523
|
+
(w, b) => Jt(
|
|
561
524
|
w,
|
|
562
|
-
(
|
|
563
|
-
u[b] =
|
|
525
|
+
(M) => {
|
|
526
|
+
u[b] = M, h &= ~(1 << b), l && p();
|
|
564
527
|
},
|
|
565
528
|
() => {
|
|
566
529
|
h |= 1 << b;
|
|
@@ -568,157 +531,157 @@ function Me(e, t, n) {
|
|
|
568
531
|
)
|
|
569
532
|
);
|
|
570
533
|
return l = !0, p(), function() {
|
|
571
|
-
|
|
534
|
+
Se(x), c(), l = !1;
|
|
572
535
|
};
|
|
573
536
|
});
|
|
574
537
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
538
|
+
var Kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
539
|
+
function gt(e) {
|
|
577
540
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
578
541
|
}
|
|
579
|
-
var
|
|
580
|
-
return
|
|
542
|
+
var en = function(t) {
|
|
543
|
+
return tn(t) && !rn(t);
|
|
581
544
|
};
|
|
582
|
-
function
|
|
545
|
+
function tn(e) {
|
|
583
546
|
return !!e && typeof e == "object";
|
|
584
547
|
}
|
|
585
|
-
function
|
|
548
|
+
function rn(e) {
|
|
586
549
|
var t = Object.prototype.toString.call(e);
|
|
587
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
550
|
+
return t === "[object RegExp]" || t === "[object Date]" || on(e);
|
|
588
551
|
}
|
|
589
|
-
var
|
|
590
|
-
function
|
|
591
|
-
return e.$$typeof ===
|
|
552
|
+
var nn = typeof Symbol == "function" && Symbol.for, sn = nn ? Symbol.for("react.element") : 60103;
|
|
553
|
+
function on(e) {
|
|
554
|
+
return e.$$typeof === sn;
|
|
592
555
|
}
|
|
593
|
-
function
|
|
556
|
+
function an(e) {
|
|
594
557
|
return Array.isArray(e) ? [] : {};
|
|
595
558
|
}
|
|
596
|
-
function
|
|
597
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? _e(
|
|
559
|
+
function $e(e, t) {
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? _e(an(e), e, t) : e;
|
|
598
561
|
}
|
|
599
|
-
function
|
|
600
|
-
return e.concat(t).map(function(
|
|
601
|
-
return
|
|
562
|
+
function un(e, t, r) {
|
|
563
|
+
return e.concat(t).map(function(n) {
|
|
564
|
+
return $e(n, r);
|
|
602
565
|
});
|
|
603
566
|
}
|
|
604
|
-
function
|
|
567
|
+
function ln(e, t) {
|
|
605
568
|
if (!t.customMerge)
|
|
606
569
|
return _e;
|
|
607
|
-
var
|
|
608
|
-
return typeof
|
|
570
|
+
var r = t.customMerge(e);
|
|
571
|
+
return typeof r == "function" ? r : _e;
|
|
609
572
|
}
|
|
610
|
-
function
|
|
573
|
+
function hn(e) {
|
|
611
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
612
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
613
576
|
}) : [];
|
|
614
577
|
}
|
|
615
|
-
function
|
|
616
|
-
return Object.keys(e).concat(
|
|
578
|
+
function Tt(e) {
|
|
579
|
+
return Object.keys(e).concat(hn(e));
|
|
617
580
|
}
|
|
618
|
-
function
|
|
581
|
+
function er(e, t) {
|
|
619
582
|
try {
|
|
620
583
|
return t in e;
|
|
621
|
-
} catch
|
|
584
|
+
} catch {
|
|
622
585
|
return !1;
|
|
623
586
|
}
|
|
624
587
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
588
|
+
function fn(e, t) {
|
|
589
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
627
590
|
}
|
|
628
|
-
function
|
|
629
|
-
var
|
|
630
|
-
return
|
|
631
|
-
|
|
632
|
-
}),
|
|
633
|
-
|
|
634
|
-
}),
|
|
635
|
-
}
|
|
636
|
-
function _e(e, t,
|
|
637
|
-
|
|
638
|
-
var
|
|
639
|
-
return s ?
|
|
640
|
-
}
|
|
641
|
-
_e.all = function(t,
|
|
591
|
+
function cn(e, t, r) {
|
|
592
|
+
var n = {};
|
|
593
|
+
return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
|
|
594
|
+
n[i] = $e(e[i], r);
|
|
595
|
+
}), Tt(t).forEach(function(i) {
|
|
596
|
+
fn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = $e(t[i], r));
|
|
597
|
+
}), n;
|
|
598
|
+
}
|
|
599
|
+
function _e(e, t, r) {
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || un, r.isMergeableObject = r.isMergeableObject || en, r.cloneUnlessOtherwiseSpecified = $e;
|
|
601
|
+
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
602
|
+
return s ? n ? r.arrayMerge(e, t, r) : cn(e, t, r) : $e(t, r);
|
|
603
|
+
}
|
|
604
|
+
_e.all = function(t, r) {
|
|
642
605
|
if (!Array.isArray(t))
|
|
643
606
|
throw new Error("first argument should be an array");
|
|
644
|
-
return t.reduce(function(
|
|
645
|
-
return _e(
|
|
607
|
+
return t.reduce(function(n, i) {
|
|
608
|
+
return _e(n, i, r);
|
|
646
609
|
}, {});
|
|
647
610
|
};
|
|
648
|
-
var
|
|
649
|
-
const
|
|
650
|
-
var
|
|
651
|
-
return
|
|
652
|
-
|
|
653
|
-
} || function(
|
|
654
|
-
for (var i in
|
|
655
|
-
},
|
|
611
|
+
var mn = _e, dn = mn;
|
|
612
|
+
const gn = /* @__PURE__ */ gt(dn);
|
|
613
|
+
var ot = function(e, t) {
|
|
614
|
+
return ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
615
|
+
r.__proto__ = n;
|
|
616
|
+
} || function(r, n) {
|
|
617
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
618
|
+
}, ot(e, t);
|
|
656
619
|
};
|
|
657
|
-
function
|
|
620
|
+
function Ve(e, t) {
|
|
658
621
|
if (typeof t != "function" && t !== null)
|
|
659
622
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
660
|
-
|
|
661
|
-
function
|
|
623
|
+
ot(e, t);
|
|
624
|
+
function r() {
|
|
662
625
|
this.constructor = e;
|
|
663
626
|
}
|
|
664
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
627
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
665
628
|
}
|
|
666
629
|
var O = function() {
|
|
667
630
|
return O = Object.assign || function(t) {
|
|
668
|
-
for (var
|
|
669
|
-
|
|
670
|
-
for (var s in
|
|
631
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
632
|
+
r = arguments[n];
|
|
633
|
+
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
671
634
|
}
|
|
672
635
|
return t;
|
|
673
636
|
}, O.apply(this, arguments);
|
|
674
637
|
};
|
|
675
|
-
function
|
|
676
|
-
var
|
|
677
|
-
for (var
|
|
638
|
+
function pn(e, t) {
|
|
639
|
+
var r = {};
|
|
640
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
678
641
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
679
|
-
for (var i = 0,
|
|
680
|
-
t.indexOf(
|
|
681
|
-
return
|
|
642
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
643
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
644
|
+
return r;
|
|
682
645
|
}
|
|
683
|
-
function
|
|
684
|
-
if (
|
|
685
|
-
(s || !(
|
|
646
|
+
function Je(e, t, r) {
|
|
647
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
648
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
686
649
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
687
650
|
}
|
|
688
|
-
function
|
|
689
|
-
var
|
|
651
|
+
function Qe(e, t) {
|
|
652
|
+
var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : yn;
|
|
690
653
|
return i(e, {
|
|
691
|
-
cache:
|
|
692
|
-
serializer:
|
|
654
|
+
cache: r,
|
|
655
|
+
serializer: n
|
|
693
656
|
});
|
|
694
657
|
}
|
|
695
|
-
function
|
|
658
|
+
function bn(e) {
|
|
696
659
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
697
660
|
}
|
|
698
|
-
function
|
|
699
|
-
var i =
|
|
700
|
-
return typeof s
|
|
661
|
+
function tr(e, t, r, n) {
|
|
662
|
+
var i = bn(n) ? n : r(n), s = t.get(i);
|
|
663
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
701
664
|
}
|
|
702
|
-
function
|
|
703
|
-
var
|
|
704
|
-
return typeof s
|
|
665
|
+
function rr(e, t, r) {
|
|
666
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
667
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
705
668
|
}
|
|
706
|
-
function
|
|
707
|
-
return
|
|
669
|
+
function pt(e, t, r, n, i) {
|
|
670
|
+
return r.bind(t, e, n, i);
|
|
708
671
|
}
|
|
709
|
-
function
|
|
710
|
-
var
|
|
711
|
-
return
|
|
672
|
+
function yn(e, t) {
|
|
673
|
+
var r = e.length === 1 ? tr : rr;
|
|
674
|
+
return pt(e, this, r, t.cache.create(), t.serializer);
|
|
712
675
|
}
|
|
713
|
-
function
|
|
714
|
-
return
|
|
676
|
+
function vn(e, t) {
|
|
677
|
+
return pt(e, this, rr, t.cache.create(), t.serializer);
|
|
715
678
|
}
|
|
716
|
-
function
|
|
717
|
-
return
|
|
679
|
+
function _n(e, t) {
|
|
680
|
+
return pt(e, this, tr, t.cache.create(), t.serializer);
|
|
718
681
|
}
|
|
719
|
-
var
|
|
682
|
+
var xn = function() {
|
|
720
683
|
return JSON.stringify(arguments);
|
|
721
|
-
},
|
|
684
|
+
}, En = (
|
|
722
685
|
/** @class */
|
|
723
686
|
function() {
|
|
724
687
|
function e() {
|
|
@@ -726,73 +689,73 @@ var Br = function() {
|
|
|
726
689
|
}
|
|
727
690
|
return e.prototype.get = function(t) {
|
|
728
691
|
return this.cache[t];
|
|
729
|
-
}, e.prototype.set = function(t,
|
|
730
|
-
this.cache[t] =
|
|
692
|
+
}, e.prototype.set = function(t, r) {
|
|
693
|
+
this.cache[t] = r;
|
|
731
694
|
}, e;
|
|
732
695
|
}()
|
|
733
|
-
),
|
|
696
|
+
), wn = {
|
|
734
697
|
create: function() {
|
|
735
|
-
return new
|
|
698
|
+
return new En();
|
|
736
699
|
}
|
|
737
|
-
},
|
|
738
|
-
variadic:
|
|
739
|
-
monadic:
|
|
740
|
-
},
|
|
700
|
+
}, qe = {
|
|
701
|
+
variadic: vn,
|
|
702
|
+
monadic: _n
|
|
703
|
+
}, H;
|
|
741
704
|
(function(e) {
|
|
742
705
|
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";
|
|
743
|
-
})(
|
|
706
|
+
})(H || (H = {}));
|
|
744
707
|
var D;
|
|
745
708
|
(function(e) {
|
|
746
709
|
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";
|
|
747
710
|
})(D || (D = {}));
|
|
748
|
-
var
|
|
711
|
+
var xe;
|
|
749
712
|
(function(e) {
|
|
750
713
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
751
|
-
})(
|
|
752
|
-
function
|
|
714
|
+
})(xe || (xe = {}));
|
|
715
|
+
function Mt(e) {
|
|
753
716
|
return e.type === D.literal;
|
|
754
717
|
}
|
|
755
|
-
function
|
|
718
|
+
function Sn(e) {
|
|
756
719
|
return e.type === D.argument;
|
|
757
720
|
}
|
|
758
|
-
function
|
|
721
|
+
function nr(e) {
|
|
759
722
|
return e.type === D.number;
|
|
760
723
|
}
|
|
761
|
-
function
|
|
724
|
+
function ir(e) {
|
|
762
725
|
return e.type === D.date;
|
|
763
726
|
}
|
|
764
|
-
function
|
|
727
|
+
function sr(e) {
|
|
765
728
|
return e.type === D.time;
|
|
766
729
|
}
|
|
767
|
-
function
|
|
730
|
+
function or(e) {
|
|
768
731
|
return e.type === D.select;
|
|
769
732
|
}
|
|
770
|
-
function
|
|
733
|
+
function ar(e) {
|
|
771
734
|
return e.type === D.plural;
|
|
772
735
|
}
|
|
773
|
-
function
|
|
736
|
+
function Tn(e) {
|
|
774
737
|
return e.type === D.pound;
|
|
775
738
|
}
|
|
776
|
-
function
|
|
739
|
+
function ur(e) {
|
|
777
740
|
return e.type === D.tag;
|
|
778
741
|
}
|
|
779
|
-
function
|
|
780
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
742
|
+
function lr(e) {
|
|
743
|
+
return !!(e && typeof e == "object" && e.type === xe.number);
|
|
781
744
|
}
|
|
782
|
-
function
|
|
783
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
745
|
+
function at(e) {
|
|
746
|
+
return !!(e && typeof e == "object" && e.type === xe.dateTime);
|
|
784
747
|
}
|
|
785
|
-
var
|
|
786
|
-
function
|
|
748
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mn = /(?:[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;
|
|
749
|
+
function Hn(e) {
|
|
787
750
|
var t = {};
|
|
788
|
-
return e.replace(
|
|
789
|
-
var
|
|
790
|
-
switch (
|
|
751
|
+
return e.replace(Mn, function(r) {
|
|
752
|
+
var n = r.length;
|
|
753
|
+
switch (r[0]) {
|
|
791
754
|
case "G":
|
|
792
|
-
t.era =
|
|
755
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
793
756
|
break;
|
|
794
757
|
case "y":
|
|
795
|
-
t.year =
|
|
758
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
796
759
|
break;
|
|
797
760
|
case "Y":
|
|
798
761
|
case "u":
|
|
@@ -804,30 +767,30 @@ function Rr(e) {
|
|
|
804
767
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
805
768
|
case "M":
|
|
806
769
|
case "L":
|
|
807
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
770
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
808
771
|
break;
|
|
809
772
|
case "w":
|
|
810
773
|
case "W":
|
|
811
774
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
812
775
|
case "d":
|
|
813
|
-
t.day = ["numeric", "2-digit"][
|
|
776
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
814
777
|
break;
|
|
815
778
|
case "D":
|
|
816
779
|
case "F":
|
|
817
780
|
case "g":
|
|
818
781
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
819
782
|
case "E":
|
|
820
|
-
t.weekday =
|
|
783
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
821
784
|
break;
|
|
822
785
|
case "e":
|
|
823
|
-
if (
|
|
786
|
+
if (n < 4)
|
|
824
787
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
825
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
788
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
826
789
|
break;
|
|
827
790
|
case "c":
|
|
828
|
-
if (
|
|
791
|
+
if (n < 4)
|
|
829
792
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
830
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
793
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
831
794
|
break;
|
|
832
795
|
case "a":
|
|
833
796
|
t.hour12 = !0;
|
|
@@ -836,32 +799,32 @@ function Rr(e) {
|
|
|
836
799
|
case "B":
|
|
837
800
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
838
801
|
case "h":
|
|
839
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
802
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
840
803
|
break;
|
|
841
804
|
case "H":
|
|
842
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
805
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
843
806
|
break;
|
|
844
807
|
case "K":
|
|
845
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
808
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
846
809
|
break;
|
|
847
810
|
case "k":
|
|
848
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
811
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
849
812
|
break;
|
|
850
813
|
case "j":
|
|
851
814
|
case "J":
|
|
852
815
|
case "C":
|
|
853
816
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
854
817
|
case "m":
|
|
855
|
-
t.minute = ["numeric", "2-digit"][
|
|
818
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
856
819
|
break;
|
|
857
820
|
case "s":
|
|
858
|
-
t.second = ["numeric", "2-digit"][
|
|
821
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
859
822
|
break;
|
|
860
823
|
case "S":
|
|
861
824
|
case "A":
|
|
862
825
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
863
826
|
case "z":
|
|
864
|
-
t.timeZoneName =
|
|
827
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
865
828
|
break;
|
|
866
829
|
case "Z":
|
|
867
830
|
case "O":
|
|
@@ -874,14 +837,14 @@ function Rr(e) {
|
|
|
874
837
|
return "";
|
|
875
838
|
}), t;
|
|
876
839
|
}
|
|
877
|
-
var
|
|
878
|
-
function
|
|
840
|
+
var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
841
|
+
function An(e) {
|
|
879
842
|
if (e.length === 0)
|
|
880
843
|
throw new Error("Number skeleton cannot be empty");
|
|
881
|
-
for (var t = e.split(
|
|
844
|
+
for (var t = e.split(Ln).filter(function(p) {
|
|
882
845
|
return p.length > 0;
|
|
883
|
-
}),
|
|
884
|
-
var s = i[
|
|
846
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
847
|
+
var s = i[n], a = s.split("/");
|
|
885
848
|
if (a.length === 0)
|
|
886
849
|
throw new Error("Invalid number skeleton");
|
|
887
850
|
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
@@ -889,21 +852,21 @@ function Gr(e) {
|
|
|
889
852
|
if (c.length === 0)
|
|
890
853
|
throw new Error("Invalid number skeleton");
|
|
891
854
|
}
|
|
892
|
-
|
|
855
|
+
r.push({ stem: o, options: l });
|
|
893
856
|
}
|
|
894
|
-
return
|
|
857
|
+
return r;
|
|
895
858
|
}
|
|
896
|
-
function
|
|
859
|
+
function On(e) {
|
|
897
860
|
return e.replace(/^(.*?)-/, "");
|
|
898
861
|
}
|
|
899
|
-
var
|
|
900
|
-
function
|
|
862
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
|
|
863
|
+
function Lt(e) {
|
|
901
864
|
var t = {};
|
|
902
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
903
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
865
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
|
|
866
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
904
867
|
}), t;
|
|
905
868
|
}
|
|
906
|
-
function
|
|
869
|
+
function mr(e) {
|
|
907
870
|
switch (e) {
|
|
908
871
|
case "sign-auto":
|
|
909
872
|
return {
|
|
@@ -943,27 +906,27 @@ function xn(e) {
|
|
|
943
906
|
};
|
|
944
907
|
}
|
|
945
908
|
}
|
|
946
|
-
function
|
|
909
|
+
function Bn(e) {
|
|
947
910
|
var t;
|
|
948
911
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
949
912
|
notation: "engineering"
|
|
950
913
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
951
914
|
notation: "scientific"
|
|
952
915
|
}, e = e.slice(1)), t) {
|
|
953
|
-
var
|
|
954
|
-
if (
|
|
916
|
+
var r = e.slice(0, 2);
|
|
917
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
|
|
955
918
|
throw new Error("Malformed concise eng/scientific notation");
|
|
956
919
|
t.minimumIntegerDigits = e.length;
|
|
957
920
|
}
|
|
958
921
|
return t;
|
|
959
922
|
}
|
|
960
|
-
function
|
|
961
|
-
var t = {},
|
|
962
|
-
return
|
|
923
|
+
function At(e) {
|
|
924
|
+
var t = {}, r = mr(e);
|
|
925
|
+
return r || t;
|
|
963
926
|
}
|
|
964
|
-
function
|
|
965
|
-
for (var t = {},
|
|
966
|
-
var i = r
|
|
927
|
+
function Pn(e) {
|
|
928
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
929
|
+
var i = n[r];
|
|
967
930
|
switch (i.stem) {
|
|
968
931
|
case "percent":
|
|
969
932
|
case "%":
|
|
@@ -985,7 +948,7 @@ function Vr(e) {
|
|
|
985
948
|
continue;
|
|
986
949
|
case "measure-unit":
|
|
987
950
|
case "unit":
|
|
988
|
-
t.style = "unit", t.unit =
|
|
951
|
+
t.style = "unit", t.unit = On(i.options[0]);
|
|
989
952
|
continue;
|
|
990
953
|
case "compact-short":
|
|
991
954
|
case "K":
|
|
@@ -997,12 +960,12 @@ function Vr(e) {
|
|
|
997
960
|
continue;
|
|
998
961
|
case "scientific":
|
|
999
962
|
t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1000
|
-
return O(O({}, l),
|
|
963
|
+
return O(O({}, l), At(u));
|
|
1001
964
|
}, {}));
|
|
1002
965
|
continue;
|
|
1003
966
|
case "engineering":
|
|
1004
967
|
t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1005
|
-
return O(O({}, l),
|
|
968
|
+
return O(O({}, l), At(u));
|
|
1006
969
|
}, {}));
|
|
1007
970
|
continue;
|
|
1008
971
|
case "notation-simple":
|
|
@@ -1047,45 +1010,45 @@ function Vr(e) {
|
|
|
1047
1010
|
case "integer-width":
|
|
1048
1011
|
if (i.options.length > 1)
|
|
1049
1012
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1050
|
-
i.options[0].replace(
|
|
1013
|
+
i.options[0].replace($n, function(l, u, h, c, p, x) {
|
|
1051
1014
|
if (u)
|
|
1052
1015
|
t.minimumIntegerDigits = h.length;
|
|
1053
1016
|
else {
|
|
1054
1017
|
if (c && p)
|
|
1055
1018
|
throw new Error("We currently do not support maximum integer digits");
|
|
1056
|
-
if (
|
|
1019
|
+
if (x)
|
|
1057
1020
|
throw new Error("We currently do not support exact integer digits");
|
|
1058
1021
|
}
|
|
1059
1022
|
return "";
|
|
1060
1023
|
});
|
|
1061
1024
|
continue;
|
|
1062
1025
|
}
|
|
1063
|
-
if (
|
|
1026
|
+
if (cr.test(i.stem)) {
|
|
1064
1027
|
t.minimumIntegerDigits = i.stem.length;
|
|
1065
1028
|
continue;
|
|
1066
1029
|
}
|
|
1067
|
-
if (
|
|
1030
|
+
if (Ht.test(i.stem)) {
|
|
1068
1031
|
if (i.options.length > 1)
|
|
1069
1032
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1070
|
-
i.stem.replace(
|
|
1071
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p &&
|
|
1033
|
+
i.stem.replace(Ht, function(l, u, h, c, p, x) {
|
|
1034
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1072
1035
|
});
|
|
1073
1036
|
var s = i.options[0];
|
|
1074
|
-
s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t),
|
|
1037
|
+
s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Lt(s)));
|
|
1075
1038
|
continue;
|
|
1076
1039
|
}
|
|
1077
|
-
if (
|
|
1078
|
-
t = O(O({}, t),
|
|
1040
|
+
if (fr.test(i.stem)) {
|
|
1041
|
+
t = O(O({}, t), Lt(i.stem));
|
|
1079
1042
|
continue;
|
|
1080
1043
|
}
|
|
1081
|
-
var a =
|
|
1044
|
+
var a = mr(i.stem);
|
|
1082
1045
|
a && (t = O(O({}, t), a));
|
|
1083
|
-
var o =
|
|
1046
|
+
var o = Bn(i.stem);
|
|
1084
1047
|
o && (t = O(O({}, t), o));
|
|
1085
1048
|
}
|
|
1086
1049
|
return t;
|
|
1087
1050
|
}
|
|
1088
|
-
var
|
|
1051
|
+
var Ie = {
|
|
1089
1052
|
"001": [
|
|
1090
1053
|
"H",
|
|
1091
1054
|
"h"
|
|
@@ -2500,22 +2463,22 @@ var Ge = {
|
|
|
2500
2463
|
"h"
|
|
2501
2464
|
]
|
|
2502
2465
|
};
|
|
2503
|
-
function
|
|
2504
|
-
for (var
|
|
2505
|
-
var i = e.charAt(
|
|
2466
|
+
function Nn(e, t) {
|
|
2467
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2468
|
+
var i = e.charAt(n);
|
|
2506
2469
|
if (i === "j") {
|
|
2507
|
-
for (var s = 0;
|
|
2508
|
-
s++,
|
|
2509
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2470
|
+
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2471
|
+
s++, n++;
|
|
2472
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Cn(t);
|
|
2510
2473
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2511
|
-
|
|
2474
|
+
r += l;
|
|
2512
2475
|
for (; a-- > 0; )
|
|
2513
|
-
|
|
2514
|
-
} else i === "J" ?
|
|
2476
|
+
r = u + r;
|
|
2477
|
+
} else i === "J" ? r += "H" : r += i;
|
|
2515
2478
|
}
|
|
2516
|
-
return
|
|
2479
|
+
return r;
|
|
2517
2480
|
}
|
|
2518
|
-
function
|
|
2481
|
+
function Cn(e) {
|
|
2519
2482
|
var t = e.hourCycle;
|
|
2520
2483
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2521
2484
|
e.hourCycles && // @ts-ignore
|
|
@@ -2532,73 +2495,73 @@ function Wr(e) {
|
|
|
2532
2495
|
default:
|
|
2533
2496
|
throw new Error("Invalid hourCycle");
|
|
2534
2497
|
}
|
|
2535
|
-
var
|
|
2536
|
-
|
|
2537
|
-
var i =
|
|
2498
|
+
var r = e.language, n;
|
|
2499
|
+
r !== "root" && (n = e.maximize().region);
|
|
2500
|
+
var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
|
|
2538
2501
|
return i[0];
|
|
2539
2502
|
}
|
|
2540
|
-
var
|
|
2503
|
+
var Ke, In = new RegExp("^".concat(hr.source, "*")), Dn = new RegExp("".concat(hr.source, "*$"));
|
|
2541
2504
|
function L(e, t) {
|
|
2542
2505
|
return { start: e, end: t };
|
|
2543
2506
|
}
|
|
2544
|
-
var
|
|
2507
|
+
var Rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Un = !!String.fromCodePoint, Gn = !!Object.fromEntries, Fn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, jn = !!String.prototype.trimEnd, Vn = !!Number.isSafeInteger, Xn = Vn ? Number.isSafeInteger : function(e) {
|
|
2545
2508
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2546
|
-
},
|
|
2509
|
+
}, ut = !0;
|
|
2547
2510
|
try {
|
|
2548
|
-
var
|
|
2549
|
-
|
|
2550
|
-
} catch
|
|
2551
|
-
|
|
2511
|
+
var Wn = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2512
|
+
ut = ((Ke = Wn.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
|
|
2513
|
+
} catch {
|
|
2514
|
+
ut = !1;
|
|
2552
2515
|
}
|
|
2553
|
-
var
|
|
2516
|
+
var Ot = Rn ? (
|
|
2554
2517
|
// Native
|
|
2555
|
-
function(t,
|
|
2556
|
-
return t.startsWith(
|
|
2518
|
+
function(t, r, n) {
|
|
2519
|
+
return t.startsWith(r, n);
|
|
2557
2520
|
}
|
|
2558
2521
|
) : (
|
|
2559
2522
|
// For IE11
|
|
2560
|
-
function(t,
|
|
2561
|
-
return t.slice(
|
|
2523
|
+
function(t, r, n) {
|
|
2524
|
+
return t.slice(n, n + r.length) === r;
|
|
2562
2525
|
}
|
|
2563
|
-
),
|
|
2526
|
+
), lt = Un ? String.fromCodePoint : (
|
|
2564
2527
|
// IE11
|
|
2565
2528
|
function() {
|
|
2566
|
-
for (var t = [],
|
|
2567
|
-
t[
|
|
2568
|
-
for (var
|
|
2529
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2530
|
+
t[r] = arguments[r];
|
|
2531
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2569
2532
|
if (a = t[s++], a > 1114111)
|
|
2570
2533
|
throw RangeError(a + " is not a valid code point");
|
|
2571
|
-
|
|
2534
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2572
2535
|
}
|
|
2573
|
-
return
|
|
2536
|
+
return n;
|
|
2574
2537
|
}
|
|
2575
|
-
),
|
|
2538
|
+
), $t = (
|
|
2576
2539
|
// native
|
|
2577
|
-
|
|
2540
|
+
Gn ? Object.fromEntries : (
|
|
2578
2541
|
// Ponyfill
|
|
2579
2542
|
function(t) {
|
|
2580
|
-
for (var
|
|
2581
|
-
var s = i[
|
|
2582
|
-
|
|
2543
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2544
|
+
var s = i[n], a = s[0], o = s[1];
|
|
2545
|
+
r[a] = o;
|
|
2583
2546
|
}
|
|
2584
|
-
return
|
|
2547
|
+
return r;
|
|
2585
2548
|
}
|
|
2586
2549
|
)
|
|
2587
|
-
),
|
|
2550
|
+
), dr = Fn ? (
|
|
2588
2551
|
// Native
|
|
2589
|
-
function(t,
|
|
2590
|
-
return t.codePointAt(
|
|
2552
|
+
function(t, r) {
|
|
2553
|
+
return t.codePointAt(r);
|
|
2591
2554
|
}
|
|
2592
2555
|
) : (
|
|
2593
2556
|
// IE 11
|
|
2594
|
-
function(t,
|
|
2595
|
-
var
|
|
2596
|
-
if (!(
|
|
2597
|
-
var i = t.charCodeAt(
|
|
2598
|
-
return i < 55296 || i > 56319 ||
|
|
2557
|
+
function(t, r) {
|
|
2558
|
+
var n = t.length;
|
|
2559
|
+
if (!(r < 0 || r >= n)) {
|
|
2560
|
+
var i = t.charCodeAt(r), s;
|
|
2561
|
+
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2599
2562
|
}
|
|
2600
2563
|
}
|
|
2601
|
-
),
|
|
2564
|
+
), zn = kn ? (
|
|
2602
2565
|
// Native
|
|
2603
2566
|
function(t) {
|
|
2604
2567
|
return t.trimStart();
|
|
@@ -2606,9 +2569,9 @@ var It = Zr ? (
|
|
|
2606
2569
|
) : (
|
|
2607
2570
|
// Ponyfill
|
|
2608
2571
|
function(t) {
|
|
2609
|
-
return t.replace(
|
|
2572
|
+
return t.replace(In, "");
|
|
2610
2573
|
}
|
|
2611
|
-
),
|
|
2574
|
+
), Yn = jn ? (
|
|
2612
2575
|
// Native
|
|
2613
2576
|
function(t) {
|
|
2614
2577
|
return t.trimEnd();
|
|
@@ -2616,69 +2579,69 @@ var It = Zr ? (
|
|
|
2616
2579
|
) : (
|
|
2617
2580
|
// Ponyfill
|
|
2618
2581
|
function(t) {
|
|
2619
|
-
return t.replace(
|
|
2582
|
+
return t.replace(Dn, "");
|
|
2620
2583
|
}
|
|
2621
2584
|
);
|
|
2622
|
-
function
|
|
2585
|
+
function gr(e, t) {
|
|
2623
2586
|
return new RegExp(e, t);
|
|
2624
2587
|
}
|
|
2625
|
-
var
|
|
2626
|
-
if (
|
|
2627
|
-
var
|
|
2628
|
-
|
|
2629
|
-
var
|
|
2630
|
-
|
|
2631
|
-
var i =
|
|
2632
|
-
return (
|
|
2588
|
+
var ht;
|
|
2589
|
+
if (ut) {
|
|
2590
|
+
var Bt = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2591
|
+
ht = function(t, r) {
|
|
2592
|
+
var n;
|
|
2593
|
+
Bt.lastIndex = r;
|
|
2594
|
+
var i = Bt.exec(t);
|
|
2595
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2633
2596
|
};
|
|
2634
2597
|
} else
|
|
2635
|
-
|
|
2636
|
-
for (var
|
|
2637
|
-
var i =
|
|
2638
|
-
if (i === void 0 ||
|
|
2598
|
+
ht = function(t, r) {
|
|
2599
|
+
for (var n = []; ; ) {
|
|
2600
|
+
var i = dr(t, r);
|
|
2601
|
+
if (i === void 0 || pr(i) || qn(i))
|
|
2639
2602
|
break;
|
|
2640
|
-
|
|
2603
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2641
2604
|
}
|
|
2642
|
-
return
|
|
2605
|
+
return lt.apply(void 0, n);
|
|
2643
2606
|
};
|
|
2644
|
-
var
|
|
2607
|
+
var Zn = (
|
|
2645
2608
|
/** @class */
|
|
2646
2609
|
function() {
|
|
2647
|
-
function e(t,
|
|
2648
|
-
|
|
2610
|
+
function e(t, r) {
|
|
2611
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2649
2612
|
}
|
|
2650
2613
|
return e.prototype.parse = function() {
|
|
2651
2614
|
if (this.offset() !== 0)
|
|
2652
2615
|
throw Error("parser can only be used once");
|
|
2653
2616
|
return this.parseMessage(0, "", !1);
|
|
2654
|
-
}, e.prototype.parseMessage = function(t,
|
|
2617
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2655
2618
|
for (var i = []; !this.isEOF(); ) {
|
|
2656
2619
|
var s = this.char();
|
|
2657
2620
|
if (s === 123) {
|
|
2658
|
-
var a = this.parseArgument(t,
|
|
2621
|
+
var a = this.parseArgument(t, n);
|
|
2659
2622
|
if (a.err)
|
|
2660
2623
|
return a;
|
|
2661
2624
|
i.push(a.val);
|
|
2662
2625
|
} else {
|
|
2663
2626
|
if (s === 125 && t > 0)
|
|
2664
2627
|
break;
|
|
2665
|
-
if (s === 35 && (
|
|
2628
|
+
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2666
2629
|
var o = this.clonePosition();
|
|
2667
2630
|
this.bump(), i.push({
|
|
2668
2631
|
type: D.pound,
|
|
2669
2632
|
location: L(o, this.clonePosition())
|
|
2670
2633
|
});
|
|
2671
2634
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2672
|
-
if (
|
|
2635
|
+
if (n)
|
|
2673
2636
|
break;
|
|
2674
|
-
return this.error(
|
|
2675
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2676
|
-
var a = this.parseTag(t,
|
|
2637
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2638
|
+
} else if (s === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
|
|
2639
|
+
var a = this.parseTag(t, r);
|
|
2677
2640
|
if (a.err)
|
|
2678
2641
|
return a;
|
|
2679
2642
|
i.push(a.val);
|
|
2680
2643
|
} else {
|
|
2681
|
-
var a = this.parseLiteral(t,
|
|
2644
|
+
var a = this.parseLiteral(t, r);
|
|
2682
2645
|
if (a.err)
|
|
2683
2646
|
return a;
|
|
2684
2647
|
i.push(a.val);
|
|
@@ -2686,8 +2649,8 @@ var oi = (
|
|
|
2686
2649
|
}
|
|
2687
2650
|
}
|
|
2688
2651
|
return { val: i, err: null };
|
|
2689
|
-
}, e.prototype.parseTag = function(t,
|
|
2690
|
-
var
|
|
2652
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2653
|
+
var n = this.clonePosition();
|
|
2691
2654
|
this.bump();
|
|
2692
2655
|
var i = this.parseTagName();
|
|
2693
2656
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -2695,45 +2658,45 @@ var oi = (
|
|
|
2695
2658
|
val: {
|
|
2696
2659
|
type: D.literal,
|
|
2697
2660
|
value: "<".concat(i, "/>"),
|
|
2698
|
-
location: L(
|
|
2661
|
+
location: L(n, this.clonePosition())
|
|
2699
2662
|
},
|
|
2700
2663
|
err: null
|
|
2701
2664
|
};
|
|
2702
2665
|
if (this.bumpIf(">")) {
|
|
2703
|
-
var s = this.parseMessage(t + 1,
|
|
2666
|
+
var s = this.parseMessage(t + 1, r, !0);
|
|
2704
2667
|
if (s.err)
|
|
2705
2668
|
return s;
|
|
2706
2669
|
var a = s.val, o = this.clonePosition();
|
|
2707
2670
|
if (this.bumpIf("</")) {
|
|
2708
|
-
if (this.isEOF() || !
|
|
2709
|
-
return this.error(
|
|
2671
|
+
if (this.isEOF() || !ft(this.char()))
|
|
2672
|
+
return this.error(H.INVALID_TAG, L(o, this.clonePosition()));
|
|
2710
2673
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2711
|
-
return i !== u ? this.error(
|
|
2674
|
+
return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, L(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2712
2675
|
val: {
|
|
2713
2676
|
type: D.tag,
|
|
2714
2677
|
value: i,
|
|
2715
2678
|
children: a,
|
|
2716
|
-
location: L(
|
|
2679
|
+
location: L(n, this.clonePosition())
|
|
2717
2680
|
},
|
|
2718
2681
|
err: null
|
|
2719
|
-
} : this.error(
|
|
2682
|
+
} : this.error(H.INVALID_TAG, L(o, this.clonePosition())));
|
|
2720
2683
|
} else
|
|
2721
|
-
return this.error(
|
|
2684
|
+
return this.error(H.UNCLOSED_TAG, L(n, this.clonePosition()));
|
|
2722
2685
|
} else
|
|
2723
|
-
return this.error(
|
|
2686
|
+
return this.error(H.INVALID_TAG, L(n, this.clonePosition()));
|
|
2724
2687
|
}, e.prototype.parseTagName = function() {
|
|
2725
2688
|
var t = this.offset();
|
|
2726
|
-
for (this.bump(); !this.isEOF() &&
|
|
2689
|
+
for (this.bump(); !this.isEOF() && Qn(this.char()); )
|
|
2727
2690
|
this.bump();
|
|
2728
2691
|
return this.message.slice(t, this.offset());
|
|
2729
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2730
|
-
for (var
|
|
2731
|
-
var s = this.tryParseQuote(
|
|
2692
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2693
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2694
|
+
var s = this.tryParseQuote(r);
|
|
2732
2695
|
if (s) {
|
|
2733
2696
|
i += s;
|
|
2734
2697
|
continue;
|
|
2735
2698
|
}
|
|
2736
|
-
var a = this.tryParseUnquoted(t,
|
|
2699
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2737
2700
|
if (a) {
|
|
2738
2701
|
i += a;
|
|
2739
2702
|
continue;
|
|
@@ -2745,14 +2708,14 @@ var oi = (
|
|
|
2745
2708
|
}
|
|
2746
2709
|
break;
|
|
2747
2710
|
}
|
|
2748
|
-
var l = L(
|
|
2711
|
+
var l = L(n, this.clonePosition());
|
|
2749
2712
|
return {
|
|
2750
2713
|
val: { type: D.literal, value: i, location: l },
|
|
2751
2714
|
err: null
|
|
2752
2715
|
};
|
|
2753
2716
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2754
2717
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2755
|
-
!
|
|
2718
|
+
!Jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2756
2719
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2757
2720
|
if (this.isEOF() || this.char() !== 39)
|
|
2758
2721
|
return null;
|
|
@@ -2772,37 +2735,37 @@ var oi = (
|
|
|
2772
2735
|
return null;
|
|
2773
2736
|
}
|
|
2774
2737
|
this.bump();
|
|
2775
|
-
var
|
|
2738
|
+
var r = [this.char()];
|
|
2776
2739
|
for (this.bump(); !this.isEOF(); ) {
|
|
2777
|
-
var
|
|
2778
|
-
if (
|
|
2740
|
+
var n = this.char();
|
|
2741
|
+
if (n === 39)
|
|
2779
2742
|
if (this.peek() === 39)
|
|
2780
|
-
|
|
2743
|
+
r.push(39), this.bump();
|
|
2781
2744
|
else {
|
|
2782
2745
|
this.bump();
|
|
2783
2746
|
break;
|
|
2784
2747
|
}
|
|
2785
2748
|
else
|
|
2786
|
-
|
|
2749
|
+
r.push(n);
|
|
2787
2750
|
this.bump();
|
|
2788
2751
|
}
|
|
2789
|
-
return
|
|
2790
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2752
|
+
return lt.apply(void 0, r);
|
|
2753
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2791
2754
|
if (this.isEOF())
|
|
2792
2755
|
return null;
|
|
2793
|
-
var
|
|
2794
|
-
return
|
|
2795
|
-
}, e.prototype.parseArgument = function(t,
|
|
2796
|
-
var
|
|
2756
|
+
var n = this.char();
|
|
2757
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), lt(n));
|
|
2758
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2759
|
+
var n = this.clonePosition();
|
|
2797
2760
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2798
|
-
return this.error(
|
|
2761
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition()));
|
|
2799
2762
|
if (this.char() === 125)
|
|
2800
|
-
return this.bump(), this.error(
|
|
2763
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, L(n, this.clonePosition()));
|
|
2801
2764
|
var i = this.parseIdentifierIfPossible().value;
|
|
2802
2765
|
if (!i)
|
|
2803
|
-
return this.error(
|
|
2766
|
+
return this.error(H.MALFORMED_ARGUMENT, L(n, this.clonePosition()));
|
|
2804
2767
|
if (this.bumpSpace(), this.isEOF())
|
|
2805
|
-
return this.error(
|
|
2768
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition()));
|
|
2806
2769
|
switch (this.char()) {
|
|
2807
2770
|
case 125:
|
|
2808
2771
|
return this.bump(), {
|
|
@@ -2810,25 +2773,25 @@ var oi = (
|
|
|
2810
2773
|
type: D.argument,
|
|
2811
2774
|
// value does not include the opening and closing braces.
|
|
2812
2775
|
value: i,
|
|
2813
|
-
location: L(
|
|
2776
|
+
location: L(n, this.clonePosition())
|
|
2814
2777
|
},
|
|
2815
2778
|
err: null
|
|
2816
2779
|
};
|
|
2817
2780
|
case 44:
|
|
2818
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2781
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2819
2782
|
default:
|
|
2820
|
-
return this.error(
|
|
2783
|
+
return this.error(H.MALFORMED_ARGUMENT, L(n, this.clonePosition()));
|
|
2821
2784
|
}
|
|
2822
2785
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2823
|
-
var t = this.clonePosition(),
|
|
2786
|
+
var t = this.clonePosition(), r = this.offset(), n = ht(this.message, r), i = r + n.length;
|
|
2824
2787
|
this.bumpTo(i);
|
|
2825
2788
|
var s = this.clonePosition(), a = L(t, s);
|
|
2826
|
-
return { value:
|
|
2827
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2789
|
+
return { value: n, location: a };
|
|
2790
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2828
2791
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2829
2792
|
switch (o) {
|
|
2830
2793
|
case "":
|
|
2831
|
-
return this.error(
|
|
2794
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, L(a, l));
|
|
2832
2795
|
case "number":
|
|
2833
2796
|
case "date":
|
|
2834
2797
|
case "time": {
|
|
@@ -2839,37 +2802,37 @@ var oi = (
|
|
|
2839
2802
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2840
2803
|
if (c.err)
|
|
2841
2804
|
return c;
|
|
2842
|
-
var p =
|
|
2805
|
+
var p = Yn(c.val);
|
|
2843
2806
|
if (p.length === 0)
|
|
2844
|
-
return this.error(
|
|
2845
|
-
var
|
|
2846
|
-
u = { style: p, styleLocation:
|
|
2807
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2808
|
+
var x = L(h, this.clonePosition());
|
|
2809
|
+
u = { style: p, styleLocation: x };
|
|
2847
2810
|
}
|
|
2848
2811
|
var w = this.tryParseArgumentClose(i);
|
|
2849
2812
|
if (w.err)
|
|
2850
2813
|
return w;
|
|
2851
2814
|
var b = L(i, this.clonePosition());
|
|
2852
|
-
if (u &&
|
|
2853
|
-
var
|
|
2815
|
+
if (u && Ot(u?.style, "::", 0)) {
|
|
2816
|
+
var M = zn(u.style.slice(2));
|
|
2854
2817
|
if (o === "number") {
|
|
2855
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2818
|
+
var c = this.parseNumberSkeletonFromString(M, u.styleLocation);
|
|
2856
2819
|
return c.err ? c : {
|
|
2857
|
-
val: { type: D.number, value:
|
|
2820
|
+
val: { type: D.number, value: n, location: b, style: c.val },
|
|
2858
2821
|
err: null
|
|
2859
2822
|
};
|
|
2860
2823
|
} else {
|
|
2861
|
-
if (
|
|
2862
|
-
return this.error(
|
|
2863
|
-
var P =
|
|
2864
|
-
this.locale && (P =
|
|
2824
|
+
if (M.length === 0)
|
|
2825
|
+
return this.error(H.EXPECT_DATE_TIME_SKELETON, b);
|
|
2826
|
+
var P = M;
|
|
2827
|
+
this.locale && (P = Nn(M, this.locale));
|
|
2865
2828
|
var p = {
|
|
2866
|
-
type:
|
|
2829
|
+
type: xe.dateTime,
|
|
2867
2830
|
pattern: P,
|
|
2868
2831
|
location: u.styleLocation,
|
|
2869
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2832
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(P) : {}
|
|
2870
2833
|
}, I = o === "date" ? D.date : D.time;
|
|
2871
2834
|
return {
|
|
2872
|
-
val: { type: I, value:
|
|
2835
|
+
val: { type: I, value: n, location: b, style: p },
|
|
2873
2836
|
err: null
|
|
2874
2837
|
};
|
|
2875
2838
|
}
|
|
@@ -2877,9 +2840,9 @@ var oi = (
|
|
|
2877
2840
|
return {
|
|
2878
2841
|
val: {
|
|
2879
2842
|
type: o === "number" ? D.number : o === "date" ? D.date : D.time,
|
|
2880
|
-
value:
|
|
2843
|
+
value: n,
|
|
2881
2844
|
location: b,
|
|
2882
|
-
style: (s = u
|
|
2845
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2883
2846
|
},
|
|
2884
2847
|
err: null
|
|
2885
2848
|
};
|
|
@@ -2889,19 +2852,19 @@ var oi = (
|
|
|
2889
2852
|
case "select": {
|
|
2890
2853
|
var A = this.clonePosition();
|
|
2891
2854
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2892
|
-
return this.error(
|
|
2855
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(A, O({}, A)));
|
|
2893
2856
|
this.bumpSpace();
|
|
2894
2857
|
var R = this.parseIdentifierIfPossible(), N = 0;
|
|
2895
2858
|
if (o !== "select" && R.value === "offset") {
|
|
2896
2859
|
if (!this.bumpIf(":"))
|
|
2897
|
-
return this.error(
|
|
2860
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2898
2861
|
this.bumpSpace();
|
|
2899
|
-
var c = this.tryParseDecimalInteger(
|
|
2862
|
+
var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2900
2863
|
if (c.err)
|
|
2901
2864
|
return c;
|
|
2902
2865
|
this.bumpSpace(), R = this.parseIdentifierIfPossible(), N = c.val;
|
|
2903
2866
|
}
|
|
2904
|
-
var F = this.tryParsePluralOrSelectOptions(t, o,
|
|
2867
|
+
var F = this.tryParsePluralOrSelectOptions(t, o, r, R);
|
|
2905
2868
|
if (F.err)
|
|
2906
2869
|
return F;
|
|
2907
2870
|
var w = this.tryParseArgumentClose(i);
|
|
@@ -2911,16 +2874,16 @@ var oi = (
|
|
|
2911
2874
|
return o === "select" ? {
|
|
2912
2875
|
val: {
|
|
2913
2876
|
type: D.select,
|
|
2914
|
-
value:
|
|
2915
|
-
options:
|
|
2877
|
+
value: n,
|
|
2878
|
+
options: $t(F.val),
|
|
2916
2879
|
location: G
|
|
2917
2880
|
},
|
|
2918
2881
|
err: null
|
|
2919
2882
|
} : {
|
|
2920
2883
|
val: {
|
|
2921
2884
|
type: D.plural,
|
|
2922
|
-
value:
|
|
2923
|
-
options:
|
|
2885
|
+
value: n,
|
|
2886
|
+
options: $t(F.val),
|
|
2924
2887
|
offset: N,
|
|
2925
2888
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2926
2889
|
location: G
|
|
@@ -2929,19 +2892,19 @@ var oi = (
|
|
|
2929
2892
|
};
|
|
2930
2893
|
}
|
|
2931
2894
|
default:
|
|
2932
|
-
return this.error(
|
|
2895
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, L(a, l));
|
|
2933
2896
|
}
|
|
2934
2897
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2935
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2898
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2936
2899
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2937
|
-
for (var t = 0,
|
|
2938
|
-
var
|
|
2939
|
-
switch (
|
|
2900
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2901
|
+
var n = this.char();
|
|
2902
|
+
switch (n) {
|
|
2940
2903
|
case 39: {
|
|
2941
2904
|
this.bump();
|
|
2942
2905
|
var i = this.clonePosition();
|
|
2943
2906
|
if (!this.bumpUntil("'"))
|
|
2944
|
-
return this.error(
|
|
2907
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
|
|
2945
2908
|
this.bump();
|
|
2946
2909
|
break;
|
|
2947
2910
|
}
|
|
@@ -2954,7 +2917,7 @@ var oi = (
|
|
|
2954
2917
|
t -= 1;
|
|
2955
2918
|
else
|
|
2956
2919
|
return {
|
|
2957
|
-
val: this.message.slice(
|
|
2920
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2958
2921
|
err: null
|
|
2959
2922
|
};
|
|
2960
2923
|
break;
|
|
@@ -2965,31 +2928,31 @@ var oi = (
|
|
|
2965
2928
|
}
|
|
2966
2929
|
}
|
|
2967
2930
|
return {
|
|
2968
|
-
val: this.message.slice(
|
|
2931
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2969
2932
|
err: null
|
|
2970
2933
|
};
|
|
2971
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2972
|
-
var
|
|
2934
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2935
|
+
var n = [];
|
|
2973
2936
|
try {
|
|
2974
|
-
|
|
2975
|
-
} catch
|
|
2976
|
-
return this.error(
|
|
2937
|
+
n = An(t);
|
|
2938
|
+
} catch {
|
|
2939
|
+
return this.error(H.INVALID_NUMBER_SKELETON, r);
|
|
2977
2940
|
}
|
|
2978
2941
|
return {
|
|
2979
2942
|
val: {
|
|
2980
|
-
type:
|
|
2981
|
-
tokens:
|
|
2982
|
-
location:
|
|
2983
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2943
|
+
type: xe.number,
|
|
2944
|
+
tokens: n,
|
|
2945
|
+
location: r,
|
|
2946
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
|
|
2984
2947
|
},
|
|
2985
2948
|
err: null
|
|
2986
2949
|
};
|
|
2987
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
2950
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2988
2951
|
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2989
2952
|
if (u.length === 0) {
|
|
2990
2953
|
var c = this.clonePosition();
|
|
2991
|
-
if (
|
|
2992
|
-
var p = this.tryParseDecimalInteger(
|
|
2954
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
2955
|
+
var p = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2993
2956
|
if (p.err)
|
|
2994
2957
|
return p;
|
|
2995
2958
|
h = L(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -2997,29 +2960,29 @@ var oi = (
|
|
|
2997
2960
|
break;
|
|
2998
2961
|
}
|
|
2999
2962
|
if (l.has(u))
|
|
3000
|
-
return this.error(
|
|
2963
|
+
return this.error(r === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3001
2964
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3002
|
-
var
|
|
2965
|
+
var x = this.clonePosition();
|
|
3003
2966
|
if (!this.bumpIf("{"))
|
|
3004
|
-
return this.error(
|
|
3005
|
-
var w = this.parseMessage(t + 1,
|
|
2967
|
+
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
2968
|
+
var w = this.parseMessage(t + 1, r, n);
|
|
3006
2969
|
if (w.err)
|
|
3007
2970
|
return w;
|
|
3008
|
-
var b = this.tryParseArgumentClose(
|
|
2971
|
+
var b = this.tryParseArgumentClose(x);
|
|
3009
2972
|
if (b.err)
|
|
3010
2973
|
return b;
|
|
3011
2974
|
o.push([
|
|
3012
2975
|
u,
|
|
3013
2976
|
{
|
|
3014
2977
|
value: w.val,
|
|
3015
|
-
location: L(
|
|
2978
|
+
location: L(x, this.clonePosition())
|
|
3016
2979
|
}
|
|
3017
2980
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3018
2981
|
}
|
|
3019
|
-
return o.length === 0 ? this.error(
|
|
3020
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3021
|
-
var
|
|
3022
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
2982
|
+
return o.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
2983
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2984
|
+
var n = 1, i = this.clonePosition();
|
|
2985
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3023
2986
|
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3024
2987
|
var o = this.char();
|
|
3025
2988
|
if (o >= 48 && o <= 57)
|
|
@@ -3028,7 +2991,7 @@ var oi = (
|
|
|
3028
2991
|
break;
|
|
3029
2992
|
}
|
|
3030
2993
|
var l = L(i, this.clonePosition());
|
|
3031
|
-
return s ? (a *=
|
|
2994
|
+
return s ? (a *= n, Xn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3032
2995
|
}, e.prototype.offset = function() {
|
|
3033
2996
|
return this.position.offset;
|
|
3034
2997
|
}, e.prototype.isEOF = function() {
|
|
@@ -3043,17 +3006,17 @@ var oi = (
|
|
|
3043
3006
|
var t = this.position.offset;
|
|
3044
3007
|
if (t >= this.message.length)
|
|
3045
3008
|
throw Error("out of bound");
|
|
3046
|
-
var
|
|
3047
|
-
if (
|
|
3009
|
+
var r = dr(this.message, t);
|
|
3010
|
+
if (r === void 0)
|
|
3048
3011
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3049
|
-
return
|
|
3050
|
-
}, e.prototype.error = function(t,
|
|
3012
|
+
return r;
|
|
3013
|
+
}, e.prototype.error = function(t, r) {
|
|
3051
3014
|
return {
|
|
3052
3015
|
val: null,
|
|
3053
3016
|
err: {
|
|
3054
3017
|
kind: t,
|
|
3055
3018
|
message: this.message,
|
|
3056
|
-
location:
|
|
3019
|
+
location: r
|
|
3057
3020
|
}
|
|
3058
3021
|
};
|
|
3059
3022
|
}, e.prototype.bump = function() {
|
|
@@ -3062,128 +3025,128 @@ var oi = (
|
|
|
3062
3025
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3063
3026
|
}
|
|
3064
3027
|
}, e.prototype.bumpIf = function(t) {
|
|
3065
|
-
if (
|
|
3066
|
-
for (var
|
|
3028
|
+
if (Ot(this.message, t, this.offset())) {
|
|
3029
|
+
for (var r = 0; r < t.length; r++)
|
|
3067
3030
|
this.bump();
|
|
3068
3031
|
return !0;
|
|
3069
3032
|
}
|
|
3070
3033
|
return !1;
|
|
3071
3034
|
}, e.prototype.bumpUntil = function(t) {
|
|
3072
|
-
var
|
|
3073
|
-
return
|
|
3035
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3036
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3074
3037
|
}, e.prototype.bumpTo = function(t) {
|
|
3075
3038
|
if (this.offset() > t)
|
|
3076
3039
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3077
3040
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3078
|
-
var
|
|
3079
|
-
if (
|
|
3041
|
+
var r = this.offset();
|
|
3042
|
+
if (r === t)
|
|
3080
3043
|
break;
|
|
3081
|
-
if (
|
|
3044
|
+
if (r > t)
|
|
3082
3045
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3083
3046
|
if (this.bump(), this.isEOF())
|
|
3084
3047
|
break;
|
|
3085
3048
|
}
|
|
3086
3049
|
}, e.prototype.bumpSpace = function() {
|
|
3087
|
-
for (; !this.isEOF() &&
|
|
3050
|
+
for (; !this.isEOF() && pr(this.char()); )
|
|
3088
3051
|
this.bump();
|
|
3089
3052
|
}, e.prototype.peek = function() {
|
|
3090
3053
|
if (this.isEOF())
|
|
3091
3054
|
return null;
|
|
3092
|
-
var t = this.char(),
|
|
3093
|
-
return
|
|
3055
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3056
|
+
return n ?? null;
|
|
3094
3057
|
}, e;
|
|
3095
3058
|
}()
|
|
3096
3059
|
);
|
|
3097
|
-
function
|
|
3060
|
+
function ft(e) {
|
|
3098
3061
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3099
3062
|
}
|
|
3100
|
-
function
|
|
3101
|
-
return
|
|
3063
|
+
function Jn(e) {
|
|
3064
|
+
return ft(e) || e === 47;
|
|
3102
3065
|
}
|
|
3103
|
-
function
|
|
3066
|
+
function Qn(e) {
|
|
3104
3067
|
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;
|
|
3105
3068
|
}
|
|
3106
|
-
function
|
|
3069
|
+
function pr(e) {
|
|
3107
3070
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3108
3071
|
}
|
|
3109
|
-
function
|
|
3072
|
+
function qn(e) {
|
|
3110
3073
|
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;
|
|
3111
3074
|
}
|
|
3112
|
-
function
|
|
3075
|
+
function ct(e) {
|
|
3113
3076
|
e.forEach(function(t) {
|
|
3114
|
-
if (delete t.location,
|
|
3115
|
-
for (var
|
|
3116
|
-
delete t.options[
|
|
3117
|
-
else
|
|
3077
|
+
if (delete t.location, or(t) || ar(t))
|
|
3078
|
+
for (var r in t.options)
|
|
3079
|
+
delete t.options[r].location, ct(t.options[r].value);
|
|
3080
|
+
else nr(t) && lr(t.style) || (ir(t) || sr(t)) && at(t.style) ? delete t.style.location : ur(t) && ct(t.children);
|
|
3118
3081
|
});
|
|
3119
3082
|
}
|
|
3120
|
-
function
|
|
3083
|
+
function Kn(e, t) {
|
|
3121
3084
|
t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3122
|
-
var
|
|
3123
|
-
if (
|
|
3124
|
-
var
|
|
3125
|
-
throw
|
|
3085
|
+
var r = new Zn(e, t).parse();
|
|
3086
|
+
if (r.err) {
|
|
3087
|
+
var n = SyntaxError(H[r.err.kind]);
|
|
3088
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3126
3089
|
}
|
|
3127
|
-
return t
|
|
3090
|
+
return t?.captureLocation || ct(r.val), r.val;
|
|
3128
3091
|
}
|
|
3129
|
-
var
|
|
3092
|
+
var Ee;
|
|
3130
3093
|
(function(e) {
|
|
3131
3094
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3132
|
-
})(
|
|
3133
|
-
var
|
|
3095
|
+
})(Ee || (Ee = {}));
|
|
3096
|
+
var Xe = (
|
|
3134
3097
|
/** @class */
|
|
3135
3098
|
function(e) {
|
|
3136
|
-
|
|
3137
|
-
function t(
|
|
3138
|
-
var s = e.call(this,
|
|
3139
|
-
return s.code =
|
|
3099
|
+
Ve(t, e);
|
|
3100
|
+
function t(r, n, i) {
|
|
3101
|
+
var s = e.call(this, r) || this;
|
|
3102
|
+
return s.code = n, s.originalMessage = i, s;
|
|
3140
3103
|
}
|
|
3141
3104
|
return t.prototype.toString = function() {
|
|
3142
3105
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3143
3106
|
}, t;
|
|
3144
3107
|
}(Error)
|
|
3145
|
-
),
|
|
3108
|
+
), Pt = (
|
|
3146
3109
|
/** @class */
|
|
3147
3110
|
function(e) {
|
|
3148
|
-
|
|
3149
|
-
function t(
|
|
3150
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3111
|
+
Ve(t, e);
|
|
3112
|
+
function t(r, n, i, s) {
|
|
3113
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ee.INVALID_VALUE, s) || this;
|
|
3151
3114
|
}
|
|
3152
3115
|
return t;
|
|
3153
|
-
}(
|
|
3154
|
-
),
|
|
3116
|
+
}(Xe)
|
|
3117
|
+
), ei = (
|
|
3155
3118
|
/** @class */
|
|
3156
3119
|
function(e) {
|
|
3157
|
-
|
|
3158
|
-
function t(
|
|
3159
|
-
return e.call(this, 'Value for "'.concat(
|
|
3120
|
+
Ve(t, e);
|
|
3121
|
+
function t(r, n, i) {
|
|
3122
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ee.INVALID_VALUE, i) || this;
|
|
3160
3123
|
}
|
|
3161
3124
|
return t;
|
|
3162
|
-
}(
|
|
3163
|
-
),
|
|
3125
|
+
}(Xe)
|
|
3126
|
+
), ti = (
|
|
3164
3127
|
/** @class */
|
|
3165
3128
|
function(e) {
|
|
3166
|
-
|
|
3167
|
-
function t(
|
|
3168
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3129
|
+
Ve(t, e);
|
|
3130
|
+
function t(r, n) {
|
|
3131
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ee.MISSING_VALUE, n) || this;
|
|
3169
3132
|
}
|
|
3170
3133
|
return t;
|
|
3171
|
-
}(
|
|
3134
|
+
}(Xe)
|
|
3172
3135
|
), Q;
|
|
3173
3136
|
(function(e) {
|
|
3174
3137
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3175
3138
|
})(Q || (Q = {}));
|
|
3176
|
-
function
|
|
3177
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3178
|
-
var
|
|
3179
|
-
return !
|
|
3139
|
+
function ri(e) {
|
|
3140
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3141
|
+
var n = t[t.length - 1];
|
|
3142
|
+
return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
|
|
3180
3143
|
}, []);
|
|
3181
3144
|
}
|
|
3182
|
-
function
|
|
3145
|
+
function ni(e) {
|
|
3183
3146
|
return typeof e == "function";
|
|
3184
3147
|
}
|
|
3185
|
-
function
|
|
3186
|
-
if (e.length === 1 &&
|
|
3148
|
+
function Re(e, t, r, n, i, s, a) {
|
|
3149
|
+
if (e.length === 1 && Mt(e[0]))
|
|
3187
3150
|
return [
|
|
3188
3151
|
{
|
|
3189
3152
|
type: Q.literal,
|
|
@@ -3192,60 +3155,60 @@ function ke(e, t, n, r, i, s, a) {
|
|
|
3192
3155
|
];
|
|
3193
3156
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3194
3157
|
var h = u[l];
|
|
3195
|
-
if (
|
|
3158
|
+
if (Mt(h)) {
|
|
3196
3159
|
o.push({
|
|
3197
3160
|
type: Q.literal,
|
|
3198
3161
|
value: h.value
|
|
3199
3162
|
});
|
|
3200
3163
|
continue;
|
|
3201
3164
|
}
|
|
3202
|
-
if (
|
|
3165
|
+
if (Tn(h)) {
|
|
3203
3166
|
typeof s == "number" && o.push({
|
|
3204
3167
|
type: Q.literal,
|
|
3205
|
-
value:
|
|
3168
|
+
value: r.getNumberFormat(t).format(s)
|
|
3206
3169
|
});
|
|
3207
3170
|
continue;
|
|
3208
3171
|
}
|
|
3209
3172
|
var c = h.value;
|
|
3210
3173
|
if (!(i && c in i))
|
|
3211
|
-
throw new
|
|
3174
|
+
throw new ti(c, a);
|
|
3212
3175
|
var p = i[c];
|
|
3213
|
-
if (
|
|
3176
|
+
if (Sn(h)) {
|
|
3214
3177
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), o.push({
|
|
3215
3178
|
type: typeof p == "string" ? Q.literal : Q.object,
|
|
3216
3179
|
value: p
|
|
3217
3180
|
});
|
|
3218
3181
|
continue;
|
|
3219
3182
|
}
|
|
3220
|
-
if (
|
|
3221
|
-
var
|
|
3183
|
+
if (ir(h)) {
|
|
3184
|
+
var x = typeof h.style == "string" ? n.date[h.style] : at(h.style) ? h.style.parsedOptions : void 0;
|
|
3222
3185
|
o.push({
|
|
3223
3186
|
type: Q.literal,
|
|
3224
|
-
value:
|
|
3187
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3225
3188
|
});
|
|
3226
3189
|
continue;
|
|
3227
3190
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
var
|
|
3191
|
+
if (sr(h)) {
|
|
3192
|
+
var x = typeof h.style == "string" ? n.time[h.style] : at(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3230
3193
|
o.push({
|
|
3231
3194
|
type: Q.literal,
|
|
3232
|
-
value:
|
|
3195
|
+
value: r.getDateTimeFormat(t, x).format(p)
|
|
3233
3196
|
});
|
|
3234
3197
|
continue;
|
|
3235
3198
|
}
|
|
3236
|
-
if (
|
|
3237
|
-
var
|
|
3238
|
-
|
|
3199
|
+
if (nr(h)) {
|
|
3200
|
+
var x = typeof h.style == "string" ? n.number[h.style] : lr(h.style) ? h.style.parsedOptions : void 0;
|
|
3201
|
+
x && x.scale && (p = p * (x.scale || 1)), o.push({
|
|
3239
3202
|
type: Q.literal,
|
|
3240
|
-
value:
|
|
3203
|
+
value: r.getNumberFormat(t, x).format(p)
|
|
3241
3204
|
});
|
|
3242
3205
|
continue;
|
|
3243
3206
|
}
|
|
3244
|
-
if (
|
|
3245
|
-
var w = h.children, b = h.value,
|
|
3246
|
-
if (!
|
|
3247
|
-
throw new
|
|
3248
|
-
var P =
|
|
3207
|
+
if (ur(h)) {
|
|
3208
|
+
var w = h.children, b = h.value, M = i[b];
|
|
3209
|
+
if (!ni(M))
|
|
3210
|
+
throw new ei(b, "function", a);
|
|
3211
|
+
var P = Re(w, t, r, n, i, s), I = M(P.map(function(N) {
|
|
3249
3212
|
return N.value;
|
|
3250
3213
|
}));
|
|
3251
3214
|
Array.isArray(I) || (I = [I]), o.push.apply(o, I.map(function(N) {
|
|
@@ -3255,92 +3218,92 @@ function ke(e, t, n, r, i, s, a) {
|
|
|
3255
3218
|
};
|
|
3256
3219
|
}));
|
|
3257
3220
|
}
|
|
3258
|
-
if (
|
|
3221
|
+
if (or(h)) {
|
|
3259
3222
|
var A = h.options[p] || h.options.other;
|
|
3260
3223
|
if (!A)
|
|
3261
|
-
throw new
|
|
3262
|
-
o.push.apply(o,
|
|
3224
|
+
throw new Pt(h.value, p, Object.keys(h.options), a);
|
|
3225
|
+
o.push.apply(o, Re(A.value, t, r, n, i));
|
|
3263
3226
|
continue;
|
|
3264
3227
|
}
|
|
3265
|
-
if (
|
|
3228
|
+
if (ar(h)) {
|
|
3266
3229
|
var A = h.options["=".concat(p)];
|
|
3267
3230
|
if (!A) {
|
|
3268
3231
|
if (!Intl.PluralRules)
|
|
3269
|
-
throw new
|
|
3232
|
+
throw new Xe(`Intl.PluralRules is not available in this environment.
|
|
3270
3233
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3271
|
-
`,
|
|
3272
|
-
var R =
|
|
3234
|
+
`, Ee.MISSING_INTL_API, a);
|
|
3235
|
+
var R = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3273
3236
|
A = h.options[R] || h.options.other;
|
|
3274
3237
|
}
|
|
3275
3238
|
if (!A)
|
|
3276
|
-
throw new
|
|
3277
|
-
o.push.apply(o,
|
|
3239
|
+
throw new Pt(h.value, p, Object.keys(h.options), a);
|
|
3240
|
+
o.push.apply(o, Re(A.value, t, r, n, i, p - (h.offset || 0)));
|
|
3278
3241
|
continue;
|
|
3279
3242
|
}
|
|
3280
3243
|
}
|
|
3281
|
-
return
|
|
3244
|
+
return ri(o);
|
|
3282
3245
|
}
|
|
3283
|
-
function
|
|
3284
|
-
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
3285
|
-
return n
|
|
3246
|
+
function ii(e, t) {
|
|
3247
|
+
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3248
|
+
return r[n] = O(O({}, e[n]), t[n] || {}), r;
|
|
3286
3249
|
}, {})) : e;
|
|
3287
3250
|
}
|
|
3288
|
-
function
|
|
3289
|
-
return t ? Object.keys(e).reduce(function(
|
|
3290
|
-
return n
|
|
3251
|
+
function si(e, t) {
|
|
3252
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3253
|
+
return r[n] = ii(e[n], t[n]), r;
|
|
3291
3254
|
}, O({}, e)) : e;
|
|
3292
3255
|
}
|
|
3293
|
-
function
|
|
3256
|
+
function et(e) {
|
|
3294
3257
|
return {
|
|
3295
3258
|
create: function() {
|
|
3296
3259
|
return {
|
|
3297
3260
|
get: function(t) {
|
|
3298
3261
|
return e[t];
|
|
3299
3262
|
},
|
|
3300
|
-
set: function(t,
|
|
3301
|
-
e[t] =
|
|
3263
|
+
set: function(t, r) {
|
|
3264
|
+
e[t] = r;
|
|
3302
3265
|
}
|
|
3303
3266
|
};
|
|
3304
3267
|
}
|
|
3305
3268
|
};
|
|
3306
3269
|
}
|
|
3307
|
-
function
|
|
3270
|
+
function oi(e) {
|
|
3308
3271
|
return e === void 0 && (e = {
|
|
3309
3272
|
number: {},
|
|
3310
3273
|
dateTime: {},
|
|
3311
3274
|
pluralRules: {}
|
|
3312
3275
|
}), {
|
|
3313
|
-
getNumberFormat:
|
|
3314
|
-
for (var t,
|
|
3315
|
-
n
|
|
3316
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3276
|
+
getNumberFormat: Qe(function() {
|
|
3277
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3278
|
+
r[n] = arguments[n];
|
|
3279
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Je([void 0], r, !1)))();
|
|
3317
3280
|
}, {
|
|
3318
|
-
cache:
|
|
3319
|
-
strategy:
|
|
3281
|
+
cache: et(e.number),
|
|
3282
|
+
strategy: qe.variadic
|
|
3320
3283
|
}),
|
|
3321
|
-
getDateTimeFormat:
|
|
3322
|
-
for (var t,
|
|
3323
|
-
n
|
|
3324
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3284
|
+
getDateTimeFormat: Qe(function() {
|
|
3285
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3286
|
+
r[n] = arguments[n];
|
|
3287
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Je([void 0], r, !1)))();
|
|
3325
3288
|
}, {
|
|
3326
|
-
cache:
|
|
3327
|
-
strategy:
|
|
3289
|
+
cache: et(e.dateTime),
|
|
3290
|
+
strategy: qe.variadic
|
|
3328
3291
|
}),
|
|
3329
|
-
getPluralRules:
|
|
3330
|
-
for (var t,
|
|
3331
|
-
n
|
|
3332
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3292
|
+
getPluralRules: Qe(function() {
|
|
3293
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3294
|
+
r[n] = arguments[n];
|
|
3295
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Je([void 0], r, !1)))();
|
|
3333
3296
|
}, {
|
|
3334
|
-
cache:
|
|
3335
|
-
strategy:
|
|
3297
|
+
cache: et(e.pluralRules),
|
|
3298
|
+
strategy: qe.variadic
|
|
3336
3299
|
})
|
|
3337
3300
|
};
|
|
3338
3301
|
}
|
|
3339
|
-
var
|
|
3302
|
+
var br = (
|
|
3340
3303
|
/** @class */
|
|
3341
3304
|
function() {
|
|
3342
|
-
function e(t,
|
|
3343
|
-
|
|
3305
|
+
function e(t, r, n, i) {
|
|
3306
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3344
3307
|
var s = this;
|
|
3345
3308
|
if (this.formatterCache = {
|
|
3346
3309
|
number: {},
|
|
@@ -3355,7 +3318,7 @@ var Sn = (
|
|
|
3355
3318
|
}, []);
|
|
3356
3319
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3357
3320
|
}, this.formatToParts = function(l) {
|
|
3358
|
-
return
|
|
3321
|
+
return Re(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3359
3322
|
}, this.resolvedOptions = function() {
|
|
3360
3323
|
var l;
|
|
3361
3324
|
return {
|
|
@@ -3363,18 +3326,18 @@ var Sn = (
|
|
|
3363
3326
|
};
|
|
3364
3327
|
}, this.getAst = function() {
|
|
3365
3328
|
return s.ast;
|
|
3366
|
-
}, this.locales =
|
|
3329
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3367
3330
|
if (this.message = t, !e.__parse)
|
|
3368
3331
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3369
3332
|
var a = i || {};
|
|
3370
3333
|
a.formatters;
|
|
3371
|
-
var o =
|
|
3334
|
+
var o = pn(a, ["formatters"]);
|
|
3372
3335
|
this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
|
|
3373
3336
|
} else
|
|
3374
3337
|
this.ast = t;
|
|
3375
3338
|
if (!Array.isArray(this.ast))
|
|
3376
3339
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3377
|
-
this.formats =
|
|
3340
|
+
this.formats = si(e.formats, n), this.formatters = i && i.formatters || oi(this.formatterCache);
|
|
3378
3341
|
}
|
|
3379
3342
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3380
3343
|
get: function() {
|
|
@@ -3383,11 +3346,11 @@ var Sn = (
|
|
|
3383
3346
|
enumerable: !1,
|
|
3384
3347
|
configurable: !0
|
|
3385
3348
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3386
|
-
if (typeof Intl.Locale
|
|
3387
|
-
var
|
|
3388
|
-
return
|
|
3349
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3350
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3351
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3389
3352
|
}
|
|
3390
|
-
}, e.__parse =
|
|
3353
|
+
}, e.__parse = Kn, e.formats = {
|
|
3391
3354
|
number: {
|
|
3392
3355
|
integer: {
|
|
3393
3356
|
maximumFractionDigits: 0
|
|
@@ -3448,122 +3411,122 @@ var Sn = (
|
|
|
3448
3411
|
}, e;
|
|
3449
3412
|
}()
|
|
3450
3413
|
);
|
|
3451
|
-
function
|
|
3414
|
+
function ai(e, t) {
|
|
3452
3415
|
if (t == null)
|
|
3453
3416
|
return;
|
|
3454
3417
|
if (t in e)
|
|
3455
3418
|
return e[t];
|
|
3456
|
-
const
|
|
3457
|
-
let
|
|
3458
|
-
for (let i = 0; i <
|
|
3459
|
-
if (typeof
|
|
3419
|
+
const r = t.split(".");
|
|
3420
|
+
let n = e;
|
|
3421
|
+
for (let i = 0; i < r.length; i++)
|
|
3422
|
+
if (typeof n == "object") {
|
|
3460
3423
|
if (i > 0) {
|
|
3461
|
-
const s =
|
|
3462
|
-
if (s in
|
|
3463
|
-
|
|
3424
|
+
const s = r.slice(i, r.length).join(".");
|
|
3425
|
+
if (s in n) {
|
|
3426
|
+
n = n[s];
|
|
3464
3427
|
break;
|
|
3465
3428
|
}
|
|
3466
3429
|
}
|
|
3467
|
-
|
|
3430
|
+
n = n[r[i]];
|
|
3468
3431
|
} else
|
|
3469
|
-
|
|
3470
|
-
return
|
|
3432
|
+
n = void 0;
|
|
3433
|
+
return n;
|
|
3471
3434
|
}
|
|
3472
|
-
const
|
|
3435
|
+
const fe = {}, ui = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), yr = (e, t) => {
|
|
3473
3436
|
if (t == null)
|
|
3474
3437
|
return;
|
|
3475
|
-
if (t in
|
|
3476
|
-
return
|
|
3477
|
-
const
|
|
3478
|
-
for (let
|
|
3479
|
-
const i = n
|
|
3438
|
+
if (t in fe && e in fe[t])
|
|
3439
|
+
return fe[t][e];
|
|
3440
|
+
const r = Ne(t);
|
|
3441
|
+
for (let n = 0; n < r.length; n++) {
|
|
3442
|
+
const i = r[n], s = hi(i, e);
|
|
3480
3443
|
if (s)
|
|
3481
|
-
return
|
|
3444
|
+
return ui(e, t, s);
|
|
3482
3445
|
}
|
|
3483
3446
|
};
|
|
3484
|
-
let
|
|
3485
|
-
const
|
|
3486
|
-
function
|
|
3487
|
-
return
|
|
3447
|
+
let bt;
|
|
3448
|
+
const Pe = je({});
|
|
3449
|
+
function li(e) {
|
|
3450
|
+
return bt[e] || null;
|
|
3488
3451
|
}
|
|
3489
|
-
function
|
|
3490
|
-
return e in
|
|
3452
|
+
function vr(e) {
|
|
3453
|
+
return e in bt;
|
|
3491
3454
|
}
|
|
3492
|
-
function
|
|
3493
|
-
if (!
|
|
3455
|
+
function hi(e, t) {
|
|
3456
|
+
if (!vr(e))
|
|
3494
3457
|
return null;
|
|
3495
|
-
const
|
|
3496
|
-
return
|
|
3458
|
+
const r = li(e);
|
|
3459
|
+
return ai(r, t);
|
|
3497
3460
|
}
|
|
3498
|
-
function
|
|
3461
|
+
function fi(e) {
|
|
3499
3462
|
if (e == null)
|
|
3500
3463
|
return;
|
|
3501
|
-
const t =
|
|
3502
|
-
for (let
|
|
3503
|
-
const
|
|
3504
|
-
if (
|
|
3505
|
-
return
|
|
3464
|
+
const t = Ne(e);
|
|
3465
|
+
for (let r = 0; r < t.length; r++) {
|
|
3466
|
+
const n = t[r];
|
|
3467
|
+
if (vr(n))
|
|
3468
|
+
return n;
|
|
3506
3469
|
}
|
|
3507
3470
|
}
|
|
3508
|
-
function
|
|
3509
|
-
delete
|
|
3471
|
+
function _r(e, ...t) {
|
|
3472
|
+
delete fe[e], Pe.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
|
|
3510
3473
|
}
|
|
3511
|
-
|
|
3512
|
-
[
|
|
3474
|
+
Te(
|
|
3475
|
+
[Pe],
|
|
3513
3476
|
([e]) => Object.keys(e)
|
|
3514
3477
|
);
|
|
3515
|
-
|
|
3516
|
-
const
|
|
3517
|
-
function
|
|
3518
|
-
|
|
3519
|
-
}
|
|
3520
|
-
function
|
|
3521
|
-
return
|
|
3522
|
-
}
|
|
3523
|
-
function
|
|
3524
|
-
return
|
|
3525
|
-
const
|
|
3526
|
-
return [t,
|
|
3478
|
+
Pe.subscribe((e) => bt = e);
|
|
3479
|
+
const Ue = {};
|
|
3480
|
+
function ci(e, t) {
|
|
3481
|
+
Ue[e].delete(t), Ue[e].size === 0 && delete Ue[e];
|
|
3482
|
+
}
|
|
3483
|
+
function xr(e) {
|
|
3484
|
+
return Ue[e];
|
|
3485
|
+
}
|
|
3486
|
+
function mi(e) {
|
|
3487
|
+
return Ne(e).map((t) => {
|
|
3488
|
+
const r = xr(t);
|
|
3489
|
+
return [t, r ? [...r] : []];
|
|
3527
3490
|
}).filter(([, t]) => t.length > 0);
|
|
3528
3491
|
}
|
|
3529
|
-
function
|
|
3530
|
-
return e == null ? !1 :
|
|
3492
|
+
function Ge(e) {
|
|
3493
|
+
return e == null ? !1 : Ne(e).some(
|
|
3531
3494
|
(t) => {
|
|
3532
|
-
var
|
|
3533
|
-
return (
|
|
3495
|
+
var r;
|
|
3496
|
+
return (r = xr(t)) == null ? void 0 : r.size;
|
|
3534
3497
|
}
|
|
3535
3498
|
);
|
|
3536
3499
|
}
|
|
3537
|
-
function
|
|
3500
|
+
function di(e, t) {
|
|
3538
3501
|
return Promise.all(
|
|
3539
|
-
t.map((
|
|
3540
|
-
).then((
|
|
3502
|
+
t.map((n) => (ci(e, n), n().then((i) => i.default || i)))
|
|
3503
|
+
).then((n) => _r(e, ...n));
|
|
3541
3504
|
}
|
|
3542
|
-
const
|
|
3543
|
-
function
|
|
3544
|
-
if (!
|
|
3545
|
-
return e in
|
|
3546
|
-
const t =
|
|
3547
|
-
return
|
|
3505
|
+
const He = {};
|
|
3506
|
+
function Er(e) {
|
|
3507
|
+
if (!Ge(e))
|
|
3508
|
+
return e in He ? He[e] : Promise.resolve();
|
|
3509
|
+
const t = mi(e);
|
|
3510
|
+
return He[e] = Promise.all(
|
|
3548
3511
|
t.map(
|
|
3549
|
-
([
|
|
3512
|
+
([r, n]) => di(r, n)
|
|
3550
3513
|
)
|
|
3551
3514
|
).then(() => {
|
|
3552
|
-
if (
|
|
3553
|
-
return
|
|
3554
|
-
delete
|
|
3555
|
-
}),
|
|
3515
|
+
if (Ge(e))
|
|
3516
|
+
return Er(e);
|
|
3517
|
+
delete He[e];
|
|
3518
|
+
}), He[e];
|
|
3556
3519
|
}
|
|
3557
|
-
var
|
|
3558
|
-
var
|
|
3559
|
-
for (var
|
|
3560
|
-
|
|
3561
|
-
if (e != null &&
|
|
3562
|
-
for (var
|
|
3563
|
-
t.indexOf(
|
|
3564
|
-
return
|
|
3520
|
+
var Nt = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, bi = (e, t) => {
|
|
3521
|
+
var r = {};
|
|
3522
|
+
for (var n in e)
|
|
3523
|
+
gi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3524
|
+
if (e != null && Nt)
|
|
3525
|
+
for (var n of Nt(e))
|
|
3526
|
+
t.indexOf(n) < 0 && pi.call(e, n) && (r[n] = e[n]);
|
|
3527
|
+
return r;
|
|
3565
3528
|
};
|
|
3566
|
-
const
|
|
3529
|
+
const yi = {
|
|
3567
3530
|
number: {
|
|
3568
3531
|
scientific: { notation: "scientific" },
|
|
3569
3532
|
engineering: { notation: "engineering" },
|
|
@@ -3593,174 +3556,174 @@ const Ai = {
|
|
|
3593
3556
|
}
|
|
3594
3557
|
}
|
|
3595
3558
|
};
|
|
3596
|
-
function
|
|
3559
|
+
function vi({ locale: e, id: t }) {
|
|
3597
3560
|
console.warn(
|
|
3598
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3561
|
+
`[svelte-i18n] The message "${t}" was not found in "${Ne(
|
|
3599
3562
|
e
|
|
3600
|
-
).join('", "')}".${
|
|
3563
|
+
).join('", "')}".${Ge(ce()) ? `
|
|
3601
3564
|
|
|
3602
3565
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3603
3566
|
);
|
|
3604
3567
|
}
|
|
3605
|
-
const
|
|
3568
|
+
const _i = {
|
|
3606
3569
|
fallbackLocale: null,
|
|
3607
3570
|
loadingDelay: 200,
|
|
3608
|
-
formats:
|
|
3571
|
+
formats: yi,
|
|
3609
3572
|
warnOnMissingMessages: !0,
|
|
3610
3573
|
handleMissingMessage: void 0,
|
|
3611
3574
|
ignoreTag: !0
|
|
3612
|
-
},
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3575
|
+
}, Le = _i;
|
|
3576
|
+
function we() {
|
|
3577
|
+
return Le;
|
|
3615
3578
|
}
|
|
3616
|
-
function
|
|
3617
|
-
const t = e, { formats:
|
|
3579
|
+
function xi(e) {
|
|
3580
|
+
const t = e, { formats: r } = t, n = bi(t, ["formats"]);
|
|
3618
3581
|
let i = e.fallbackLocale;
|
|
3619
3582
|
if (e.initialLocale)
|
|
3620
3583
|
try {
|
|
3621
|
-
|
|
3622
|
-
} catch
|
|
3584
|
+
br.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3585
|
+
} catch {
|
|
3623
3586
|
console.warn(
|
|
3624
3587
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3625
3588
|
);
|
|
3626
3589
|
}
|
|
3627
|
-
return
|
|
3590
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = vi : console.warn(
|
|
3628
3591
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3629
|
-
)), Object.assign(
|
|
3630
|
-
}
|
|
3631
|
-
const
|
|
3632
|
-
var
|
|
3633
|
-
for (var
|
|
3634
|
-
|
|
3635
|
-
if (
|
|
3636
|
-
for (var
|
|
3637
|
-
|
|
3592
|
+
)), Object.assign(Le, n, { initialLocale: i }), r && ("number" in r && Object.assign(Le.formats.number, r.number), "date" in r && Object.assign(Le.formats.date, r.date), "time" in r && Object.assign(Le.formats.time, r.time)), ge.set(i);
|
|
3593
|
+
}
|
|
3594
|
+
const tt = je(!1);
|
|
3595
|
+
var Ei = Object.defineProperty, wi = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
|
|
3596
|
+
for (var r in t)
|
|
3597
|
+
Ti.call(t, r) && It(e, r, t[r]);
|
|
3598
|
+
if (Ct)
|
|
3599
|
+
for (var r of Ct(t))
|
|
3600
|
+
Mi.call(t, r) && It(e, r, t[r]);
|
|
3638
3601
|
return e;
|
|
3639
|
-
},
|
|
3640
|
-
let
|
|
3641
|
-
const
|
|
3642
|
-
function
|
|
3643
|
-
return e.split("-").map((t,
|
|
3602
|
+
}, Li = (e, t) => wi(e, Si(t));
|
|
3603
|
+
let mt;
|
|
3604
|
+
const Fe = je(null);
|
|
3605
|
+
function Dt(e) {
|
|
3606
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3644
3607
|
}
|
|
3645
|
-
function
|
|
3646
|
-
const
|
|
3647
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3608
|
+
function Ne(e, t = we().fallbackLocale) {
|
|
3609
|
+
const r = Dt(e);
|
|
3610
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Dt(t)])] : r;
|
|
3648
3611
|
}
|
|
3649
|
-
function
|
|
3650
|
-
return
|
|
3612
|
+
function ce() {
|
|
3613
|
+
return mt ?? void 0;
|
|
3651
3614
|
}
|
|
3652
|
-
|
|
3653
|
-
|
|
3615
|
+
Fe.subscribe((e) => {
|
|
3616
|
+
mt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3654
3617
|
});
|
|
3655
|
-
const
|
|
3656
|
-
if (e &&
|
|
3657
|
-
const { loadingDelay: t } =
|
|
3658
|
-
let
|
|
3659
|
-
return typeof window
|
|
3660
|
-
() =>
|
|
3618
|
+
const Ai = (e) => {
|
|
3619
|
+
if (e && fi(e) && Ge(e)) {
|
|
3620
|
+
const { loadingDelay: t } = we();
|
|
3621
|
+
let r;
|
|
3622
|
+
return typeof window < "u" && ce() != null && t ? r = window.setTimeout(
|
|
3623
|
+
() => tt.set(!0),
|
|
3661
3624
|
t
|
|
3662
|
-
) :
|
|
3663
|
-
|
|
3625
|
+
) : tt.set(!0), Er(e).then(() => {
|
|
3626
|
+
Fe.set(e);
|
|
3664
3627
|
}).finally(() => {
|
|
3665
|
-
clearTimeout(
|
|
3628
|
+
clearTimeout(r), tt.set(!1);
|
|
3666
3629
|
});
|
|
3667
3630
|
}
|
|
3668
|
-
return
|
|
3669
|
-
},
|
|
3670
|
-
set:
|
|
3671
|
-
}),
|
|
3631
|
+
return Fe.set(e);
|
|
3632
|
+
}, ge = Li(Hi({}, Fe), {
|
|
3633
|
+
set: Ai
|
|
3634
|
+
}), We = (e) => {
|
|
3672
3635
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3673
|
-
return (
|
|
3674
|
-
const i = JSON.stringify(
|
|
3675
|
-
return i in t ? t[i] : t[i] = e(
|
|
3636
|
+
return (n) => {
|
|
3637
|
+
const i = JSON.stringify(n);
|
|
3638
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3676
3639
|
};
|
|
3677
3640
|
};
|
|
3678
|
-
var
|
|
3679
|
-
for (var
|
|
3680
|
-
|
|
3681
|
-
if (
|
|
3682
|
-
for (var
|
|
3683
|
-
|
|
3641
|
+
var Oi = Object.defineProperty, ke = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
3642
|
+
for (var r in t || (t = {}))
|
|
3643
|
+
wr.call(t, r) && Rt(e, r, t[r]);
|
|
3644
|
+
if (ke)
|
|
3645
|
+
for (var r of ke(t))
|
|
3646
|
+
Sr.call(t, r) && Rt(e, r, t[r]);
|
|
3684
3647
|
return e;
|
|
3685
|
-
},
|
|
3686
|
-
var
|
|
3687
|
-
for (var
|
|
3688
|
-
|
|
3689
|
-
if (e != null &&
|
|
3690
|
-
for (var
|
|
3691
|
-
t.indexOf(
|
|
3692
|
-
return
|
|
3648
|
+
}, Me = (e, t) => {
|
|
3649
|
+
var r = {};
|
|
3650
|
+
for (var n in e)
|
|
3651
|
+
wr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3652
|
+
if (e != null && ke)
|
|
3653
|
+
for (var n of ke(e))
|
|
3654
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
|
3655
|
+
return r;
|
|
3693
3656
|
};
|
|
3694
|
-
const
|
|
3695
|
-
const { formats:
|
|
3696
|
-
if (e in
|
|
3697
|
-
return
|
|
3657
|
+
const Be = (e, t) => {
|
|
3658
|
+
const { formats: r } = we();
|
|
3659
|
+
if (e in r && t in r[e])
|
|
3660
|
+
return r[e][t];
|
|
3698
3661
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3699
|
-
},
|
|
3662
|
+
}, $i = We(
|
|
3700
3663
|
(e) => {
|
|
3701
|
-
var t = e, { locale:
|
|
3702
|
-
if (
|
|
3664
|
+
var t = e, { locale: r, format: n } = t, i = Me(t, ["locale", "format"]);
|
|
3665
|
+
if (r == null)
|
|
3703
3666
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3704
|
-
return
|
|
3667
|
+
return n && (i = Be("number", n)), new Intl.NumberFormat(r, i);
|
|
3705
3668
|
}
|
|
3706
|
-
),
|
|
3669
|
+
), Bi = We(
|
|
3707
3670
|
(e) => {
|
|
3708
|
-
var t = e, { locale:
|
|
3709
|
-
if (
|
|
3671
|
+
var t = e, { locale: r, format: n } = t, i = Me(t, ["locale", "format"]);
|
|
3672
|
+
if (r == null)
|
|
3710
3673
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3711
|
-
return
|
|
3674
|
+
return n ? i = Be("date", n) : Object.keys(i).length === 0 && (i = Be("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3712
3675
|
}
|
|
3713
|
-
),
|
|
3676
|
+
), Pi = We(
|
|
3714
3677
|
(e) => {
|
|
3715
|
-
var t = e, { locale:
|
|
3716
|
-
if (
|
|
3678
|
+
var t = e, { locale: r, format: n } = t, i = Me(t, ["locale", "format"]);
|
|
3679
|
+
if (r == null)
|
|
3717
3680
|
throw new Error(
|
|
3718
3681
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3719
3682
|
);
|
|
3720
|
-
return
|
|
3683
|
+
return n ? i = Be("time", n) : Object.keys(i).length === 0 && (i = Be("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3721
3684
|
}
|
|
3722
|
-
),
|
|
3685
|
+
), Ni = (e = {}) => {
|
|
3723
3686
|
var t = e, {
|
|
3724
|
-
locale:
|
|
3725
|
-
} = t,
|
|
3687
|
+
locale: r = ce()
|
|
3688
|
+
} = t, n = Me(t, [
|
|
3726
3689
|
"locale"
|
|
3727
3690
|
]);
|
|
3728
|
-
return
|
|
3729
|
-
},
|
|
3691
|
+
return $i(yt({ locale: r }, n));
|
|
3692
|
+
}, Ci = (e = {}) => {
|
|
3730
3693
|
var t = e, {
|
|
3731
|
-
locale:
|
|
3732
|
-
} = t,
|
|
3694
|
+
locale: r = ce()
|
|
3695
|
+
} = t, n = Me(t, [
|
|
3733
3696
|
"locale"
|
|
3734
3697
|
]);
|
|
3735
|
-
return
|
|
3736
|
-
},
|
|
3698
|
+
return Bi(yt({ locale: r }, n));
|
|
3699
|
+
}, Ii = (e = {}) => {
|
|
3737
3700
|
var t = e, {
|
|
3738
|
-
locale:
|
|
3739
|
-
} = t,
|
|
3701
|
+
locale: r = ce()
|
|
3702
|
+
} = t, n = Me(t, [
|
|
3740
3703
|
"locale"
|
|
3741
3704
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3705
|
+
return Pi(yt({ locale: r }, n));
|
|
3706
|
+
}, Di = We(
|
|
3744
3707
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3745
|
-
(e, t =
|
|
3746
|
-
ignoreTag:
|
|
3708
|
+
(e, t = ce()) => new br(e, t, we().formats, {
|
|
3709
|
+
ignoreTag: we().ignoreTag
|
|
3747
3710
|
})
|
|
3748
|
-
),
|
|
3749
|
-
var
|
|
3711
|
+
), Ri = (e, t = {}) => {
|
|
3712
|
+
var r, n, i, s;
|
|
3750
3713
|
let a = t;
|
|
3751
3714
|
typeof e == "object" && (a = e, e = a.id);
|
|
3752
3715
|
const {
|
|
3753
3716
|
values: o,
|
|
3754
|
-
locale: l =
|
|
3717
|
+
locale: l = ce(),
|
|
3755
3718
|
default: u
|
|
3756
3719
|
} = a;
|
|
3757
3720
|
if (l == null)
|
|
3758
3721
|
throw new Error(
|
|
3759
3722
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3760
3723
|
);
|
|
3761
|
-
let h =
|
|
3724
|
+
let h = yr(e, l);
|
|
3762
3725
|
if (!h)
|
|
3763
|
-
h = (s = (i = (
|
|
3726
|
+
h = (s = (i = (n = (r = we()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3764
3727
|
else if (typeof h != "string")
|
|
3765
3728
|
return console.warn(
|
|
3766
3729
|
`[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.`
|
|
@@ -3769,7 +3732,7 @@ const Ne = (e, t) => {
|
|
|
3769
3732
|
return h;
|
|
3770
3733
|
let c = h;
|
|
3771
3734
|
try {
|
|
3772
|
-
c =
|
|
3735
|
+
c = Di(h, l).format(o);
|
|
3773
3736
|
} catch (p) {
|
|
3774
3737
|
p instanceof Error && console.warn(
|
|
3775
3738
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3777,20 +3740,20 @@ const Ne = (e, t) => {
|
|
|
3777
3740
|
);
|
|
3778
3741
|
}
|
|
3779
3742
|
return c;
|
|
3780
|
-
},
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
function
|
|
3786
|
-
|
|
3787
|
-
}
|
|
3788
|
-
function
|
|
3789
|
-
|
|
3743
|
+
}, Ui = (e, t) => Ii(t).format(e), Gi = (e, t) => Ci(t).format(e), Fi = (e, t) => Ni(t).format(e), ki = (e, t = ce()) => yr(e, t), ji = Te([ge, Pe], () => Ri);
|
|
3744
|
+
Te([ge], () => Ui);
|
|
3745
|
+
Te([ge], () => Gi);
|
|
3746
|
+
Te([ge], () => Fi);
|
|
3747
|
+
Te([ge, Pe], () => ki);
|
|
3748
|
+
function Ut(e, t) {
|
|
3749
|
+
_r(e, t);
|
|
3750
|
+
}
|
|
3751
|
+
function Vi(e) {
|
|
3752
|
+
xi({
|
|
3790
3753
|
fallbackLocale: "en"
|
|
3791
|
-
}),
|
|
3754
|
+
}), ge.set(e);
|
|
3792
3755
|
}
|
|
3793
|
-
const
|
|
3756
|
+
const Gt = {
|
|
3794
3757
|
en: {
|
|
3795
3758
|
generalMin: "Min",
|
|
3796
3759
|
generalMax: "Max",
|
|
@@ -3820,12 +3783,12 @@ const Wt = {
|
|
|
3820
3783
|
showLess: "SHOW LESS"
|
|
3821
3784
|
}
|
|
3822
3785
|
};
|
|
3823
|
-
var
|
|
3786
|
+
var Tr = { exports: {} };
|
|
3824
3787
|
(function(e, t) {
|
|
3825
|
-
(function(
|
|
3826
|
-
e.exports =
|
|
3827
|
-
})(
|
|
3828
|
-
var
|
|
3788
|
+
(function(r, n) {
|
|
3789
|
+
e.exports = n();
|
|
3790
|
+
})(Kt, function() {
|
|
3791
|
+
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", l = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", w = "date", b = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
|
|
3829
3792
|
var g = ["th", "st", "nd", "rd"], f = v % 100;
|
|
3830
3793
|
return "[" + v + (g[(f - 20) % 10] || g[f] || g[0]) + "]";
|
|
3831
3794
|
} }, A = function(v, g, f) {
|
|
@@ -3836,26 +3799,26 @@ var Bn = { exports: {} };
|
|
|
3836
3799
|
return (g <= 0 ? "+" : "-") + A(y, 2, "0") + ":" + A(d, 2, "0");
|
|
3837
3800
|
}, m: function v(g, f) {
|
|
3838
3801
|
if (g.date() < f.date()) return -v(f, g);
|
|
3839
|
-
var y = 12 * (f.year() - g.year()) + (f.month() - g.month()), d = g.clone().add(y, c),
|
|
3840
|
-
return +(-(y + (f - d) / (
|
|
3802
|
+
var y = 12 * (f.year() - g.year()) + (f.month() - g.month()), d = g.clone().add(y, c), E = f - d < 0, _ = g.clone().add(y + (E ? -1 : 1), c);
|
|
3803
|
+
return +(-(y + (f - d) / (E ? d - _ : _ - d)) || 0);
|
|
3841
3804
|
}, a: function(v) {
|
|
3842
3805
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
3843
3806
|
}, p: function(v) {
|
|
3844
|
-
return { M: c, y:
|
|
3807
|
+
return { M: c, y: x, w: h, d: u, D: w, h: l, m: o, s: a, ms: s, Q: p }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
3845
3808
|
}, u: function(v) {
|
|
3846
3809
|
return v === void 0;
|
|
3847
3810
|
} }, N = "en", F = {};
|
|
3848
3811
|
F[N] = I;
|
|
3849
3812
|
var G = "$isDayjsObject", ee = function(v) {
|
|
3850
|
-
return v instanceof
|
|
3851
|
-
},
|
|
3813
|
+
return v instanceof ie || !(!v || !v[G]);
|
|
3814
|
+
}, V = function v(g, f, y) {
|
|
3852
3815
|
var d;
|
|
3853
3816
|
if (!g) return N;
|
|
3854
3817
|
if (typeof g == "string") {
|
|
3855
|
-
var
|
|
3856
|
-
F[
|
|
3857
|
-
var
|
|
3858
|
-
if (!d &&
|
|
3818
|
+
var E = g.toLowerCase();
|
|
3819
|
+
F[E] && (d = E), f && (F[E] = f, d = E);
|
|
3820
|
+
var _ = g.split("-");
|
|
3821
|
+
if (!d && _.length > 1) return v(_[0]);
|
|
3859
3822
|
} else {
|
|
3860
3823
|
var S = g.name;
|
|
3861
3824
|
F[S] = g, d = S;
|
|
@@ -3864,27 +3827,27 @@ var Bn = { exports: {} };
|
|
|
3864
3827
|
}, C = function(v, g) {
|
|
3865
3828
|
if (ee(v)) return v.clone();
|
|
3866
3829
|
var f = typeof g == "object" ? g : {};
|
|
3867
|
-
return f.date = v, f.args = arguments, new
|
|
3830
|
+
return f.date = v, f.args = arguments, new ie(f);
|
|
3868
3831
|
}, T = R;
|
|
3869
|
-
T.l =
|
|
3832
|
+
T.l = V, T.i = ee, T.w = function(v, g) {
|
|
3870
3833
|
return C(v, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3871
3834
|
};
|
|
3872
|
-
var
|
|
3835
|
+
var ie = function() {
|
|
3873
3836
|
function v(f) {
|
|
3874
|
-
this.$L =
|
|
3837
|
+
this.$L = V(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[G] = !0;
|
|
3875
3838
|
}
|
|
3876
3839
|
var g = v.prototype;
|
|
3877
3840
|
return g.parse = function(f) {
|
|
3878
3841
|
this.$d = function(y) {
|
|
3879
|
-
var d = y.date,
|
|
3842
|
+
var d = y.date, E = y.utc;
|
|
3880
3843
|
if (d === null) return /* @__PURE__ */ new Date(NaN);
|
|
3881
3844
|
if (T.u(d)) return /* @__PURE__ */ new Date();
|
|
3882
3845
|
if (d instanceof Date) return new Date(d);
|
|
3883
3846
|
if (typeof d == "string" && !/Z$/i.test(d)) {
|
|
3884
|
-
var
|
|
3885
|
-
if (
|
|
3886
|
-
var S =
|
|
3887
|
-
return
|
|
3847
|
+
var _ = d.match(M);
|
|
3848
|
+
if (_) {
|
|
3849
|
+
var S = _[2] - 1 || 0, U = (_[7] || "0").substring(0, 3);
|
|
3850
|
+
return E ? new Date(Date.UTC(_[1], S, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, U)) : new Date(_[1], S, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, U);
|
|
3888
3851
|
}
|
|
3889
3852
|
}
|
|
3890
3853
|
return new Date(d);
|
|
@@ -3910,37 +3873,37 @@ var Bn = { exports: {} };
|
|
|
3910
3873
|
}, g.valueOf = function() {
|
|
3911
3874
|
return this.$d.getTime();
|
|
3912
3875
|
}, g.startOf = function(f, y) {
|
|
3913
|
-
var d = this,
|
|
3914
|
-
var m = T.w(d.$u ? Date.UTC(d.$y,
|
|
3915
|
-
return
|
|
3916
|
-
}, U = function(
|
|
3917
|
-
return T.w(d.toDate()[
|
|
3918
|
-
}, k = this.$W,
|
|
3919
|
-
switch (
|
|
3920
|
-
case
|
|
3921
|
-
return
|
|
3876
|
+
var d = this, E = !!T.u(y) || y, _ = T.p(f), S = function(ae, X) {
|
|
3877
|
+
var m = T.w(d.$u ? Date.UTC(d.$y, X, ae) : new Date(d.$y, X, ae), d);
|
|
3878
|
+
return E ? m : m.endOf(u);
|
|
3879
|
+
}, U = function(ae, X) {
|
|
3880
|
+
return T.w(d.toDate()[ae].apply(d.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), d);
|
|
3881
|
+
}, k = this.$W, j = this.$M, q = this.$D, he = "set" + (this.$u ? "UTC" : "");
|
|
3882
|
+
switch (_) {
|
|
3883
|
+
case x:
|
|
3884
|
+
return E ? S(1, 0) : S(31, 11);
|
|
3922
3885
|
case c:
|
|
3923
|
-
return
|
|
3886
|
+
return E ? S(1, j) : S(0, j + 1);
|
|
3924
3887
|
case h:
|
|
3925
|
-
var
|
|
3926
|
-
return S(
|
|
3888
|
+
var se = this.$locale().weekStart || 0, de = (k < se ? k + 7 : k) - se;
|
|
3889
|
+
return S(E ? q - de : q + (6 - de), j);
|
|
3927
3890
|
case u:
|
|
3928
3891
|
case w:
|
|
3929
|
-
return U(
|
|
3892
|
+
return U(he + "Hours", 0);
|
|
3930
3893
|
case l:
|
|
3931
|
-
return U(
|
|
3894
|
+
return U(he + "Minutes", 1);
|
|
3932
3895
|
case o:
|
|
3933
|
-
return U(
|
|
3896
|
+
return U(he + "Seconds", 2);
|
|
3934
3897
|
case a:
|
|
3935
|
-
return U(
|
|
3898
|
+
return U(he + "Milliseconds", 3);
|
|
3936
3899
|
default:
|
|
3937
3900
|
return this.clone();
|
|
3938
3901
|
}
|
|
3939
3902
|
}, g.endOf = function(f) {
|
|
3940
3903
|
return this.startOf(f, !1);
|
|
3941
3904
|
}, g.$set = function(f, y) {
|
|
3942
|
-
var d,
|
|
3943
|
-
if (
|
|
3905
|
+
var d, E = T.p(f), _ = "set" + (this.$u ? "UTC" : ""), S = (d = {}, d[u] = _ + "Date", d[w] = _ + "Date", d[c] = _ + "Month", d[x] = _ + "FullYear", d[l] = _ + "Hours", d[o] = _ + "Minutes", d[a] = _ + "Seconds", d[s] = _ + "Milliseconds", d)[E], U = E === u ? this.$D + (y - this.$W) : y;
|
|
3906
|
+
if (E === c || E === x) {
|
|
3944
3907
|
var k = this.clone().set(w, 1);
|
|
3945
3908
|
k.$d[S](U), k.init(), this.$d = k.set(w, Math.min(this.$D, k.daysInMonth())).$d;
|
|
3946
3909
|
} else S && this.$d[S](U);
|
|
@@ -3950,32 +3913,32 @@ var Bn = { exports: {} };
|
|
|
3950
3913
|
}, g.get = function(f) {
|
|
3951
3914
|
return this[T.p(f)]();
|
|
3952
3915
|
}, g.add = function(f, y) {
|
|
3953
|
-
var d,
|
|
3916
|
+
var d, E = this;
|
|
3954
3917
|
f = Number(f);
|
|
3955
|
-
var
|
|
3956
|
-
var q = C(
|
|
3957
|
-
return T.w(q.date(q.date() + Math.round(
|
|
3918
|
+
var _ = T.p(y), S = function(j) {
|
|
3919
|
+
var q = C(E);
|
|
3920
|
+
return T.w(q.date(q.date() + Math.round(j * f)), E);
|
|
3958
3921
|
};
|
|
3959
|
-
if (
|
|
3960
|
-
if (
|
|
3961
|
-
if (
|
|
3962
|
-
if (
|
|
3963
|
-
var U = (d = {}, d[o] =
|
|
3922
|
+
if (_ === c) return this.set(c, this.$M + f);
|
|
3923
|
+
if (_ === x) return this.set(x, this.$y + f);
|
|
3924
|
+
if (_ === u) return S(1);
|
|
3925
|
+
if (_ === h) return S(7);
|
|
3926
|
+
var U = (d = {}, d[o] = n, d[l] = i, d[a] = r, d)[_] || 1, k = this.$d.getTime() + f * U;
|
|
3964
3927
|
return T.w(k, this);
|
|
3965
3928
|
}, g.subtract = function(f, y) {
|
|
3966
3929
|
return this.add(-1 * f, y);
|
|
3967
3930
|
}, g.format = function(f) {
|
|
3968
3931
|
var y = this, d = this.$locale();
|
|
3969
3932
|
if (!this.isValid()) return d.invalidDate || b;
|
|
3970
|
-
var
|
|
3971
|
-
return
|
|
3972
|
-
},
|
|
3973
|
-
return T.s(S % 12 || 12,
|
|
3974
|
-
},
|
|
3975
|
-
var
|
|
3976
|
-
return $ ?
|
|
3933
|
+
var E = f || "YYYY-MM-DDTHH:mm:ssZ", _ = T.z(this), S = this.$H, U = this.$m, k = this.$M, j = d.weekdays, q = d.months, he = d.meridiem, se = function(X, m, $, Y) {
|
|
3934
|
+
return X && (X[m] || X(y, E)) || $[m].slice(0, Y);
|
|
3935
|
+
}, de = function(X) {
|
|
3936
|
+
return T.s(S % 12 || 12, X, "0");
|
|
3937
|
+
}, ae = he || function(X, m, $) {
|
|
3938
|
+
var Y = X < 12 ? "AM" : "PM";
|
|
3939
|
+
return $ ? Y.toLowerCase() : Y;
|
|
3977
3940
|
};
|
|
3978
|
-
return
|
|
3941
|
+
return E.replace(P, function(X, m) {
|
|
3979
3942
|
return m || function($) {
|
|
3980
3943
|
switch ($) {
|
|
3981
3944
|
case "YY":
|
|
@@ -3987,9 +3950,9 @@ var Bn = { exports: {} };
|
|
|
3987
3950
|
case "MM":
|
|
3988
3951
|
return T.s(k + 1, 2, "0");
|
|
3989
3952
|
case "MMM":
|
|
3990
|
-
return
|
|
3953
|
+
return se(d.monthsShort, k, q, 3);
|
|
3991
3954
|
case "MMMM":
|
|
3992
|
-
return
|
|
3955
|
+
return se(q, k);
|
|
3993
3956
|
case "D":
|
|
3994
3957
|
return y.$D;
|
|
3995
3958
|
case "DD":
|
|
@@ -3997,23 +3960,23 @@ var Bn = { exports: {} };
|
|
|
3997
3960
|
case "d":
|
|
3998
3961
|
return String(y.$W);
|
|
3999
3962
|
case "dd":
|
|
4000
|
-
return
|
|
3963
|
+
return se(d.weekdaysMin, y.$W, j, 2);
|
|
4001
3964
|
case "ddd":
|
|
4002
|
-
return
|
|
3965
|
+
return se(d.weekdaysShort, y.$W, j, 3);
|
|
4003
3966
|
case "dddd":
|
|
4004
|
-
return
|
|
3967
|
+
return j[y.$W];
|
|
4005
3968
|
case "H":
|
|
4006
3969
|
return String(S);
|
|
4007
3970
|
case "HH":
|
|
4008
3971
|
return T.s(S, 2, "0");
|
|
4009
3972
|
case "h":
|
|
4010
|
-
return
|
|
3973
|
+
return de(1);
|
|
4011
3974
|
case "hh":
|
|
4012
|
-
return
|
|
3975
|
+
return de(2);
|
|
4013
3976
|
case "a":
|
|
4014
|
-
return
|
|
3977
|
+
return ae(S, U, !0);
|
|
4015
3978
|
case "A":
|
|
4016
|
-
return
|
|
3979
|
+
return ae(S, U, !1);
|
|
4017
3980
|
case "m":
|
|
4018
3981
|
return String(U);
|
|
4019
3982
|
case "mm":
|
|
@@ -4025,54 +3988,54 @@ var Bn = { exports: {} };
|
|
|
4025
3988
|
case "SSS":
|
|
4026
3989
|
return T.s(y.$ms, 3, "0");
|
|
4027
3990
|
case "Z":
|
|
4028
|
-
return
|
|
3991
|
+
return _;
|
|
4029
3992
|
}
|
|
4030
3993
|
return null;
|
|
4031
|
-
}(
|
|
3994
|
+
}(X) || _.replace(":", "");
|
|
4032
3995
|
});
|
|
4033
3996
|
}, g.utcOffset = function() {
|
|
4034
3997
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4035
3998
|
}, g.diff = function(f, y, d) {
|
|
4036
|
-
var
|
|
4037
|
-
return T.m(
|
|
3999
|
+
var E, _ = this, S = T.p(y), U = C(f), k = (U.utcOffset() - this.utcOffset()) * n, j = this - U, q = function() {
|
|
4000
|
+
return T.m(_, U);
|
|
4038
4001
|
};
|
|
4039
4002
|
switch (S) {
|
|
4040
|
-
case
|
|
4041
|
-
|
|
4003
|
+
case x:
|
|
4004
|
+
E = q() / 12;
|
|
4042
4005
|
break;
|
|
4043
4006
|
case c:
|
|
4044
|
-
|
|
4007
|
+
E = q();
|
|
4045
4008
|
break;
|
|
4046
4009
|
case p:
|
|
4047
|
-
|
|
4010
|
+
E = q() / 3;
|
|
4048
4011
|
break;
|
|
4049
4012
|
case h:
|
|
4050
|
-
|
|
4013
|
+
E = (j - k) / 6048e5;
|
|
4051
4014
|
break;
|
|
4052
4015
|
case u:
|
|
4053
|
-
|
|
4016
|
+
E = (j - k) / 864e5;
|
|
4054
4017
|
break;
|
|
4055
4018
|
case l:
|
|
4056
|
-
|
|
4019
|
+
E = j / i;
|
|
4057
4020
|
break;
|
|
4058
4021
|
case o:
|
|
4059
|
-
|
|
4022
|
+
E = j / n;
|
|
4060
4023
|
break;
|
|
4061
4024
|
case a:
|
|
4062
|
-
|
|
4025
|
+
E = j / r;
|
|
4063
4026
|
break;
|
|
4064
4027
|
default:
|
|
4065
|
-
|
|
4028
|
+
E = j;
|
|
4066
4029
|
}
|
|
4067
|
-
return d ?
|
|
4030
|
+
return d ? E : T.a(E);
|
|
4068
4031
|
}, g.daysInMonth = function() {
|
|
4069
4032
|
return this.endOf(c).$D;
|
|
4070
4033
|
}, g.$locale = function() {
|
|
4071
4034
|
return F[this.$L];
|
|
4072
4035
|
}, g.locale = function(f, y) {
|
|
4073
4036
|
if (!f) return this.$L;
|
|
4074
|
-
var d = this.clone(),
|
|
4075
|
-
return
|
|
4037
|
+
var d = this.clone(), E = V(f, y, !0);
|
|
4038
|
+
return E && (d.$L = E), d;
|
|
4076
4039
|
}, g.clone = function() {
|
|
4077
4040
|
return T.w(this.$d, this);
|
|
4078
4041
|
}, g.toDate = function() {
|
|
@@ -4084,34 +4047,34 @@ var Bn = { exports: {} };
|
|
|
4084
4047
|
}, g.toString = function() {
|
|
4085
4048
|
return this.$d.toUTCString();
|
|
4086
4049
|
}, v;
|
|
4087
|
-
}(),
|
|
4088
|
-
return C.prototype =
|
|
4089
|
-
|
|
4050
|
+
}(), me = ie.prototype;
|
|
4051
|
+
return C.prototype = me, [["$ms", s], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", x], ["$D", w]].forEach(function(v) {
|
|
4052
|
+
me[v[1]] = function(g) {
|
|
4090
4053
|
return this.$g(g, v[0], v[1]);
|
|
4091
4054
|
};
|
|
4092
4055
|
}), C.extend = function(v, g) {
|
|
4093
|
-
return v.$i || (v(g,
|
|
4094
|
-
}, C.locale =
|
|
4056
|
+
return v.$i || (v(g, ie, C), v.$i = !0), C;
|
|
4057
|
+
}, C.locale = V, C.isDayjs = ee, C.unix = function(v) {
|
|
4095
4058
|
return C(1e3 * v);
|
|
4096
4059
|
}, C.en = F[N], C.Ls = F, C.p = {}, C;
|
|
4097
4060
|
});
|
|
4098
|
-
})(
|
|
4099
|
-
var
|
|
4100
|
-
const
|
|
4101
|
-
var
|
|
4061
|
+
})(Tr);
|
|
4062
|
+
var Xi = Tr.exports;
|
|
4063
|
+
const Ft = /* @__PURE__ */ gt(Xi);
|
|
4064
|
+
var Mr = { exports: {} };
|
|
4102
4065
|
(function(e, t) {
|
|
4103
|
-
(function(
|
|
4104
|
-
e.exports =
|
|
4105
|
-
})(
|
|
4106
|
-
var
|
|
4066
|
+
(function(r, n) {
|
|
4067
|
+
e.exports = n();
|
|
4068
|
+
})(Kt, function() {
|
|
4069
|
+
var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4107
4070
|
return function(s, a, o) {
|
|
4108
4071
|
var l = a.prototype;
|
|
4109
4072
|
o.utc = function(b) {
|
|
4110
|
-
var
|
|
4111
|
-
return new a(
|
|
4073
|
+
var M = { date: b, utc: !0, args: arguments };
|
|
4074
|
+
return new a(M);
|
|
4112
4075
|
}, l.utc = function(b) {
|
|
4113
|
-
var
|
|
4114
|
-
return b ?
|
|
4076
|
+
var M = o(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4077
|
+
return b ? M.add(this.utcOffset(), r) : M;
|
|
4115
4078
|
}, l.local = function() {
|
|
4116
4079
|
return o(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4117
4080
|
};
|
|
@@ -4127,28 +4090,28 @@ var Pn = { exports: {} };
|
|
|
4127
4090
|
} else h.call(this);
|
|
4128
4091
|
};
|
|
4129
4092
|
var c = l.utcOffset;
|
|
4130
|
-
l.utcOffset = function(b,
|
|
4093
|
+
l.utcOffset = function(b, M) {
|
|
4131
4094
|
var P = this.$utils().u;
|
|
4132
4095
|
if (P(b)) return this.$u ? 0 : P(this.$offset) ? c.call(this) : this.$offset;
|
|
4133
4096
|
if (typeof b == "string" && (b = function(N) {
|
|
4134
4097
|
N === void 0 && (N = "");
|
|
4135
|
-
var F = N.match(
|
|
4098
|
+
var F = N.match(n);
|
|
4136
4099
|
if (!F) return null;
|
|
4137
|
-
var G = ("" + F[0]).match(i) || ["-", 0, 0], ee = G[0],
|
|
4138
|
-
return
|
|
4100
|
+
var G = ("" + F[0]).match(i) || ["-", 0, 0], ee = G[0], V = 60 * +G[1] + +G[2];
|
|
4101
|
+
return V === 0 ? 0 : ee === "+" ? V : -V;
|
|
4139
4102
|
}(b), b === null)) return this;
|
|
4140
4103
|
var I = Math.abs(b) <= 16 ? 60 * b : b, A = this;
|
|
4141
|
-
if (
|
|
4104
|
+
if (M) return A.$offset = I, A.$u = b === 0, A;
|
|
4142
4105
|
if (b !== 0) {
|
|
4143
4106
|
var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4144
|
-
(A = this.local().add(I + R,
|
|
4107
|
+
(A = this.local().add(I + R, r)).$offset = I, A.$x.$localOffset = R;
|
|
4145
4108
|
} else A = this.utc();
|
|
4146
4109
|
return A;
|
|
4147
4110
|
};
|
|
4148
4111
|
var p = l.format;
|
|
4149
4112
|
l.format = function(b) {
|
|
4150
|
-
var
|
|
4151
|
-
return p.call(this,
|
|
4113
|
+
var M = b || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4114
|
+
return p.call(this, M);
|
|
4152
4115
|
}, l.valueOf = function() {
|
|
4153
4116
|
var b = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4154
4117
|
return this.$d.valueOf() - 6e4 * b;
|
|
@@ -4159,33 +4122,33 @@ var Pn = { exports: {} };
|
|
|
4159
4122
|
}, l.toString = function() {
|
|
4160
4123
|
return this.toDate().toUTCString();
|
|
4161
4124
|
};
|
|
4162
|
-
var
|
|
4125
|
+
var x = l.toDate;
|
|
4163
4126
|
l.toDate = function(b) {
|
|
4164
|
-
return b === "s" && this.$offset ? o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
4127
|
+
return b === "s" && this.$offset ? o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4165
4128
|
};
|
|
4166
4129
|
var w = l.diff;
|
|
4167
|
-
l.diff = function(b,
|
|
4168
|
-
if (b && this.$u === b.$u) return w.call(this, b,
|
|
4130
|
+
l.diff = function(b, M, P) {
|
|
4131
|
+
if (b && this.$u === b.$u) return w.call(this, b, M, P);
|
|
4169
4132
|
var I = this.local(), A = o(b).local();
|
|
4170
|
-
return w.call(I, A,
|
|
4133
|
+
return w.call(I, A, M, P);
|
|
4171
4134
|
};
|
|
4172
4135
|
};
|
|
4173
4136
|
});
|
|
4174
|
-
})(
|
|
4175
|
-
var
|
|
4176
|
-
const
|
|
4177
|
-
function
|
|
4178
|
-
|
|
4137
|
+
})(Mr);
|
|
4138
|
+
var Wi = Mr.exports;
|
|
4139
|
+
const zi = /* @__PURE__ */ gt(Wi);
|
|
4140
|
+
function Yi(e) {
|
|
4141
|
+
Or(e, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
|
|
4179
4142
|
}
|
|
4180
|
-
function
|
|
4181
|
-
const
|
|
4182
|
-
return
|
|
4143
|
+
function kt(e, t, r) {
|
|
4144
|
+
const n = e.slice();
|
|
4145
|
+
return n[47] = t[r], n[49] = r, n;
|
|
4183
4146
|
}
|
|
4184
|
-
function
|
|
4147
|
+
function jt(e) {
|
|
4185
4148
|
let t;
|
|
4186
4149
|
return {
|
|
4187
4150
|
c() {
|
|
4188
|
-
t =
|
|
4151
|
+
t = z("cashier-spinner"), J(
|
|
4189
4152
|
t,
|
|
4190
4153
|
"clientstylingurl",
|
|
4191
4154
|
/*clientstylingurl*/
|
|
@@ -4197,86 +4160,86 @@ function Zt(e) {
|
|
|
4197
4160
|
e[3]
|
|
4198
4161
|
);
|
|
4199
4162
|
},
|
|
4200
|
-
m(
|
|
4201
|
-
|
|
4163
|
+
m(r, n) {
|
|
4164
|
+
le(r, t, n);
|
|
4202
4165
|
},
|
|
4203
|
-
p(
|
|
4204
|
-
|
|
4166
|
+
p(r, n) {
|
|
4167
|
+
n[0] & /*clientstylingurl*/
|
|
4205
4168
|
16 && J(
|
|
4206
4169
|
t,
|
|
4207
4170
|
"clientstylingurl",
|
|
4208
4171
|
/*clientstylingurl*/
|
|
4209
|
-
|
|
4210
|
-
),
|
|
4172
|
+
r[4]
|
|
4173
|
+
), n[0] & /*clientstyling*/
|
|
4211
4174
|
8 && J(
|
|
4212
4175
|
t,
|
|
4213
4176
|
"clientstyling",
|
|
4214
4177
|
/*clientstyling*/
|
|
4215
|
-
|
|
4178
|
+
r[3]
|
|
4216
4179
|
);
|
|
4217
4180
|
},
|
|
4218
|
-
d(
|
|
4219
|
-
|
|
4181
|
+
d(r) {
|
|
4182
|
+
r && oe(t);
|
|
4220
4183
|
}
|
|
4221
4184
|
};
|
|
4222
4185
|
}
|
|
4223
|
-
function
|
|
4224
|
-
let t,
|
|
4186
|
+
function Vt(e) {
|
|
4187
|
+
let t, r, n, i = St(
|
|
4225
4188
|
/*paymentMethodsToShow*/
|
|
4226
4189
|
e[8]
|
|
4227
4190
|
), s = [];
|
|
4228
4191
|
for (let o = 0; o < i.length; o += 1)
|
|
4229
|
-
s[o] =
|
|
4192
|
+
s[o] = Xt(kt(e, i, o));
|
|
4230
4193
|
let a = (
|
|
4231
4194
|
/*methodsButtonToggleText*/
|
|
4232
|
-
e[7] &&
|
|
4195
|
+
e[7] && Wt(e)
|
|
4233
4196
|
);
|
|
4234
4197
|
return {
|
|
4235
4198
|
c() {
|
|
4236
|
-
t =
|
|
4199
|
+
t = z("div"), r = z("div");
|
|
4237
4200
|
for (let o = 0; o < s.length; o += 1)
|
|
4238
4201
|
s[o].c();
|
|
4239
|
-
|
|
4202
|
+
n = te(), a && a.c(), W(r, "class", "CashierMethodList"), W(t, "class", "CashierMethodListWidget");
|
|
4240
4203
|
},
|
|
4241
4204
|
m(o, l) {
|
|
4242
|
-
|
|
4205
|
+
le(o, t, l), B(t, r);
|
|
4243
4206
|
for (let u = 0; u < s.length; u += 1)
|
|
4244
|
-
s[u] && s[u].m(
|
|
4245
|
-
B(t,
|
|
4207
|
+
s[u] && s[u].m(r, null);
|
|
4208
|
+
B(t, n), a && a.m(t, null), e[26](t);
|
|
4246
4209
|
},
|
|
4247
4210
|
p(o, l) {
|
|
4248
4211
|
if (l[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
4249
4212
|
57664) {
|
|
4250
|
-
i =
|
|
4213
|
+
i = St(
|
|
4251
4214
|
/*paymentMethodsToShow*/
|
|
4252
4215
|
o[8]
|
|
4253
4216
|
);
|
|
4254
4217
|
let u;
|
|
4255
4218
|
for (u = 0; u < i.length; u += 1) {
|
|
4256
|
-
const h =
|
|
4257
|
-
s[u] ? s[u].p(h, l) : (s[u] =
|
|
4219
|
+
const h = kt(o, i, u);
|
|
4220
|
+
s[u] ? s[u].p(h, l) : (s[u] = Xt(h), s[u].c(), s[u].m(r, null));
|
|
4258
4221
|
}
|
|
4259
4222
|
for (; u < s.length; u += 1)
|
|
4260
4223
|
s[u].d(1);
|
|
4261
4224
|
s.length = i.length;
|
|
4262
4225
|
}
|
|
4263
4226
|
/*methodsButtonToggleText*/
|
|
4264
|
-
o[7] ? a ? a.p(o, l) : (a =
|
|
4227
|
+
o[7] ? a ? a.p(o, l) : (a = Wt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4265
4228
|
},
|
|
4266
4229
|
d(o) {
|
|
4267
|
-
o &&
|
|
4230
|
+
o && oe(t), Pr(s, o), a && a.d(), e[26](null);
|
|
4268
4231
|
}
|
|
4269
4232
|
};
|
|
4270
4233
|
}
|
|
4271
|
-
function
|
|
4272
|
-
let t,
|
|
4234
|
+
function Xt(e) {
|
|
4235
|
+
let t, r, n, i, s, a, o, l, u = (
|
|
4273
4236
|
/*payMeth*/
|
|
4274
4237
|
(e[47].Label || /*payMeth*/
|
|
4275
4238
|
e[47].Name) + ""
|
|
4276
|
-
), h, c, p,
|
|
4239
|
+
), h, c, p, x, w = (
|
|
4277
4240
|
/*$_*/
|
|
4278
4241
|
e[13]("generalMin") + ""
|
|
4279
|
-
), b,
|
|
4242
|
+
), b, M, P = (
|
|
4280
4243
|
/*formatter*/
|
|
4281
4244
|
e[14].format(
|
|
4282
4245
|
/*payMeth*/
|
|
@@ -4288,17 +4251,17 @@ function Qt(e) {
|
|
|
4288
4251
|
), N, F, G, ee = (
|
|
4289
4252
|
/*$_*/
|
|
4290
4253
|
e[13]("generalMax") + ""
|
|
4291
|
-
),
|
|
4254
|
+
), V, C, T = (
|
|
4292
4255
|
/*formatter*/
|
|
4293
4256
|
e[14].format(
|
|
4294
4257
|
/*payMeth*/
|
|
4295
4258
|
e[47].DisplayCurrency.MaxAmountLimit
|
|
4296
4259
|
) + ""
|
|
4297
|
-
),
|
|
4260
|
+
), ie, me, v = (
|
|
4298
4261
|
/*payMeth*/
|
|
4299
4262
|
e[47].DisplayCurrency.Name + ""
|
|
4300
4263
|
), g, f, y, d;
|
|
4301
|
-
function
|
|
4264
|
+
function E() {
|
|
4302
4265
|
return (
|
|
4303
4266
|
/*click_handler*/
|
|
4304
4267
|
e[24](
|
|
@@ -4309,9 +4272,9 @@ function Qt(e) {
|
|
|
4309
4272
|
}
|
|
4310
4273
|
return {
|
|
4311
4274
|
c() {
|
|
4312
|
-
t =
|
|
4313
|
-
e[47].LogoUrl) ||
|
|
4314
|
-
e[47].Label),
|
|
4275
|
+
t = z("div"), r = z("div"), n = z("img"), a = te(), o = z("div"), l = z("span"), h = re(u), c = te(), p = z("div"), x = z("span"), b = re(w), M = te(), I = re(P), A = te(), N = re(R), F = te(), G = z("span"), V = re(ee), C = te(), ie = re(T), me = te(), g = re(v), f = te(), xt(n.src, i = /*payMeth*/
|
|
4276
|
+
e[47].LogoUrl) || W(n, "src", i), W(n, "alt", s = /*payMeth*/
|
|
4277
|
+
e[47].Label), W(r, "class", "MethodLogo"), W(o, "class", "MethodTitle"), W(x, "class", "Limits"), W(G, "class", "Limits"), W(p, "class", "MethodLimits"), W(t, "class", "SelectorWrapper"), Et(
|
|
4315
4278
|
t,
|
|
4316
4279
|
"checked",
|
|
4317
4280
|
/*selectedPaymentMethod*/
|
|
@@ -4319,40 +4282,40 @@ function Qt(e) {
|
|
|
4319
4282
|
e[47].Name
|
|
4320
4283
|
);
|
|
4321
4284
|
},
|
|
4322
|
-
m(
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4285
|
+
m(_, S) {
|
|
4286
|
+
le(_, t, S), B(t, r), B(r, n), B(t, a), B(t, o), B(o, l), B(l, h), B(t, c), B(t, p), B(p, x), B(x, b), B(x, M), B(x, I), B(x, A), B(x, N), B(p, F), B(p, G), B(G, V), B(G, C), B(G, ie), B(G, me), B(G, g), B(t, f), y || (d = [
|
|
4287
|
+
rt(t, "click", E),
|
|
4288
|
+
rt(t, "keyup", Ji)
|
|
4326
4289
|
], y = !0);
|
|
4327
4290
|
},
|
|
4328
|
-
p(
|
|
4329
|
-
e =
|
|
4330
|
-
256 && !
|
|
4331
|
-
e[47].LogoUrl) &&
|
|
4291
|
+
p(_, S) {
|
|
4292
|
+
e = _, S[0] & /*paymentMethodsToShow*/
|
|
4293
|
+
256 && !xt(n.src, i = /*payMeth*/
|
|
4294
|
+
e[47].LogoUrl) && W(n, "src", i), S[0] & /*paymentMethodsToShow*/
|
|
4332
4295
|
256 && s !== (s = /*payMeth*/
|
|
4333
|
-
e[47].Label) &&
|
|
4296
|
+
e[47].Label) && W(n, "alt", s), S[0] & /*paymentMethodsToShow*/
|
|
4334
4297
|
256 && u !== (u = /*payMeth*/
|
|
4335
4298
|
(e[47].Label || /*payMeth*/
|
|
4336
|
-
e[47].Name) + "") &&
|
|
4299
|
+
e[47].Name) + "") && ue(h, u), S[0] & /*$_*/
|
|
4337
4300
|
8192 && w !== (w = /*$_*/
|
|
4338
|
-
e[13]("generalMin") + "") &&
|
|
4301
|
+
e[13]("generalMin") + "") && ue(b, w), S[0] & /*paymentMethodsToShow*/
|
|
4339
4302
|
256 && P !== (P = /*formatter*/
|
|
4340
4303
|
e[14].format(
|
|
4341
4304
|
/*payMeth*/
|
|
4342
4305
|
e[47].DisplayCurrency.MinAmountLimit
|
|
4343
|
-
) + "") &&
|
|
4306
|
+
) + "") && ue(I, P), S[0] & /*paymentMethodsToShow*/
|
|
4344
4307
|
256 && R !== (R = /*payMeth*/
|
|
4345
|
-
e[47].DisplayCurrency.Name + "") &&
|
|
4308
|
+
e[47].DisplayCurrency.Name + "") && ue(N, R), S[0] & /*$_*/
|
|
4346
4309
|
8192 && ee !== (ee = /*$_*/
|
|
4347
|
-
e[13]("generalMax") + "") &&
|
|
4310
|
+
e[13]("generalMax") + "") && ue(V, ee), S[0] & /*paymentMethodsToShow*/
|
|
4348
4311
|
256 && T !== (T = /*formatter*/
|
|
4349
4312
|
e[14].format(
|
|
4350
4313
|
/*payMeth*/
|
|
4351
4314
|
e[47].DisplayCurrency.MaxAmountLimit
|
|
4352
|
-
) + "") &&
|
|
4315
|
+
) + "") && ue(ie, T), S[0] & /*paymentMethodsToShow*/
|
|
4353
4316
|
256 && v !== (v = /*payMeth*/
|
|
4354
|
-
e[47].DisplayCurrency.Name + "") &&
|
|
4355
|
-
320 &&
|
|
4317
|
+
e[47].DisplayCurrency.Name + "") && ue(g, v), S[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
4318
|
+
320 && Et(
|
|
4356
4319
|
t,
|
|
4357
4320
|
"checked",
|
|
4358
4321
|
/*selectedPaymentMethod*/
|
|
@@ -4360,49 +4323,49 @@ function Qt(e) {
|
|
|
4360
4323
|
e[47].Name
|
|
4361
4324
|
);
|
|
4362
4325
|
},
|
|
4363
|
-
d(
|
|
4364
|
-
|
|
4326
|
+
d(_) {
|
|
4327
|
+
_ && oe(t), y = !1, Se(d);
|
|
4365
4328
|
}
|
|
4366
4329
|
};
|
|
4367
4330
|
}
|
|
4368
|
-
function
|
|
4369
|
-
let t,
|
|
4331
|
+
function Wt(e) {
|
|
4332
|
+
let t, r, n, i;
|
|
4370
4333
|
return {
|
|
4371
4334
|
c() {
|
|
4372
|
-
t =
|
|
4335
|
+
t = z("div"), r = re(
|
|
4373
4336
|
/*methodsButtonToggleText*/
|
|
4374
4337
|
e[7]
|
|
4375
|
-
),
|
|
4338
|
+
), W(t, "class", "ShowAllButton");
|
|
4376
4339
|
},
|
|
4377
4340
|
m(s, a) {
|
|
4378
|
-
|
|
4341
|
+
le(s, t, a), B(t, r), n || (i = rt(
|
|
4379
4342
|
t,
|
|
4380
4343
|
"click",
|
|
4381
4344
|
/*click_handler_1*/
|
|
4382
4345
|
e[25]
|
|
4383
|
-
),
|
|
4346
|
+
), n = !0);
|
|
4384
4347
|
},
|
|
4385
4348
|
p(s, a) {
|
|
4386
4349
|
a[0] & /*methodsButtonToggleText*/
|
|
4387
|
-
128 &&
|
|
4388
|
-
|
|
4350
|
+
128 && ue(
|
|
4351
|
+
r,
|
|
4389
4352
|
/*methodsButtonToggleText*/
|
|
4390
4353
|
s[7]
|
|
4391
4354
|
);
|
|
4392
4355
|
},
|
|
4393
4356
|
d(s) {
|
|
4394
|
-
s &&
|
|
4357
|
+
s && oe(t), n = !1, i();
|
|
4395
4358
|
}
|
|
4396
4359
|
};
|
|
4397
4360
|
}
|
|
4398
|
-
function
|
|
4399
|
-
let t,
|
|
4361
|
+
function zt(e) {
|
|
4362
|
+
let t, r, n;
|
|
4400
4363
|
return {
|
|
4401
4364
|
c() {
|
|
4402
|
-
t =
|
|
4365
|
+
t = z("cashier-error"), r = z("span"), n = re(
|
|
4403
4366
|
/*errorMessage*/
|
|
4404
4367
|
e[10]
|
|
4405
|
-
),
|
|
4368
|
+
), W(r, "slot", "text"), J(
|
|
4406
4369
|
t,
|
|
4407
4370
|
"lang",
|
|
4408
4371
|
/*lang*/
|
|
@@ -4430,12 +4393,12 @@ function Kt(e) {
|
|
|
4430
4393
|
), J(t, "hidebuttons", "true");
|
|
4431
4394
|
},
|
|
4432
4395
|
m(i, s) {
|
|
4433
|
-
|
|
4396
|
+
le(i, t, s), B(t, r), B(r, n);
|
|
4434
4397
|
},
|
|
4435
4398
|
p(i, s) {
|
|
4436
4399
|
s[0] & /*errorMessage*/
|
|
4437
|
-
1024 &&
|
|
4438
|
-
|
|
4400
|
+
1024 && ue(
|
|
4401
|
+
n,
|
|
4439
4402
|
/*errorMessage*/
|
|
4440
4403
|
i[10]
|
|
4441
4404
|
), s[0] & /*lang*/
|
|
@@ -4471,74 +4434,74 @@ function Kt(e) {
|
|
|
4471
4434
|
);
|
|
4472
4435
|
},
|
|
4473
4436
|
d(i) {
|
|
4474
|
-
i &&
|
|
4437
|
+
i && oe(t);
|
|
4475
4438
|
}
|
|
4476
4439
|
};
|
|
4477
4440
|
}
|
|
4478
|
-
function
|
|
4479
|
-
let t,
|
|
4441
|
+
function Zi(e) {
|
|
4442
|
+
let t, r, n, i = (
|
|
4480
4443
|
/*showSpinner*/
|
|
4481
|
-
e[12] &&
|
|
4444
|
+
e[12] && jt(e)
|
|
4482
4445
|
), s = (
|
|
4483
4446
|
/*showMethodsList*/
|
|
4484
4447
|
(e[9] || /*desktopView*/
|
|
4485
|
-
e[11]) &&
|
|
4448
|
+
e[11]) && Vt(e)
|
|
4486
4449
|
), a = (
|
|
4487
4450
|
/*errorMessage*/
|
|
4488
|
-
e[10] &&
|
|
4451
|
+
e[10] && zt(e)
|
|
4489
4452
|
);
|
|
4490
4453
|
return {
|
|
4491
4454
|
c() {
|
|
4492
|
-
i && i.c(), t =
|
|
4455
|
+
i && i.c(), t = te(), s && s.c(), r = te(), a && a.c(), n = Nr();
|
|
4493
4456
|
},
|
|
4494
4457
|
m(o, l) {
|
|
4495
|
-
i && i.m(o, l),
|
|
4458
|
+
i && i.m(o, l), le(o, t, l), s && s.m(o, l), le(o, r, l), a && a.m(o, l), le(o, n, l);
|
|
4496
4459
|
},
|
|
4497
4460
|
p(o, l) {
|
|
4498
4461
|
/*showSpinner*/
|
|
4499
|
-
o[12] ? i ? i.p(o, l) : (i =
|
|
4462
|
+
o[12] ? i ? i.p(o, l) : (i = jt(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null), /*showMethodsList*/
|
|
4500
4463
|
o[9] || /*desktopView*/
|
|
4501
|
-
o[11] ? s ? s.p(o, l) : (s =
|
|
4502
|
-
o[10] ? a ? a.p(o, l) : (a =
|
|
4464
|
+
o[11] ? s ? s.p(o, l) : (s = Vt(o), s.c(), s.m(r.parentNode, r)) : s && (s.d(1), s = null), /*errorMessage*/
|
|
4465
|
+
o[10] ? a ? a.p(o, l) : (a = zt(o), a.c(), a.m(n.parentNode, n)) : a && (a.d(1), a = null);
|
|
4503
4466
|
},
|
|
4504
|
-
i:
|
|
4505
|
-
o:
|
|
4467
|
+
i: ne,
|
|
4468
|
+
o: ne,
|
|
4506
4469
|
d(o) {
|
|
4507
|
-
o && (
|
|
4470
|
+
o && (oe(t), oe(r), oe(n)), i && i.d(o), s && s.d(o), a && a.d(o);
|
|
4508
4471
|
}
|
|
4509
4472
|
};
|
|
4510
4473
|
}
|
|
4511
|
-
const
|
|
4474
|
+
const Ji = () => {
|
|
4512
4475
|
};
|
|
4513
|
-
function
|
|
4514
|
-
let
|
|
4515
|
-
|
|
4516
|
-
let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: a } = t, { session: o } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: c } = t, { translationurl: p = "" } = t, { clientstyling:
|
|
4476
|
+
function Qi(e, t, r) {
|
|
4477
|
+
let n;
|
|
4478
|
+
Ar(e, ji, (m) => r(13, n = m)), Ft.extend(zi);
|
|
4479
|
+
let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: a } = t, { session: o } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: c } = t, { translationurl: p = "" } = t, { clientstyling: x = "" } = t, { clientstylingurl: w = "" } = t, { ismobileview: b } = t, M = [], P, I, A = "", R = [], N = !0, F = new Intl.NumberFormat(s, { minimumFractionDigits: 2 }), G = "", ee, V = !0, C = !1;
|
|
4517
4480
|
var T;
|
|
4518
4481
|
(function(m) {
|
|
4519
4482
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
4520
|
-
})(T || (T = {})),
|
|
4521
|
-
const
|
|
4483
|
+
})(T || (T = {})), Ur();
|
|
4484
|
+
const ie = () => {
|
|
4522
4485
|
let m = p;
|
|
4523
4486
|
if (m)
|
|
4524
4487
|
return fetch(m).then(($) => $.json()).then(($) => {
|
|
4525
|
-
Object.keys($).forEach((
|
|
4526
|
-
|
|
4488
|
+
Object.keys($).forEach((Y) => {
|
|
4489
|
+
Ut(Y, $[Y]);
|
|
4527
4490
|
});
|
|
4528
4491
|
}).catch(($) => {
|
|
4529
4492
|
console.log($);
|
|
4530
4493
|
});
|
|
4531
4494
|
};
|
|
4532
|
-
Object.keys(
|
|
4533
|
-
|
|
4495
|
+
Object.keys(Gt).forEach((m) => {
|
|
4496
|
+
Ut(m, Gt[m]);
|
|
4534
4497
|
});
|
|
4535
|
-
const
|
|
4536
|
-
|
|
4498
|
+
const me = () => {
|
|
4499
|
+
Vi(i);
|
|
4537
4500
|
}, v = () => {
|
|
4538
|
-
|
|
4501
|
+
r(12, C = !0);
|
|
4539
4502
|
const m = new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`), $ = new Headers();
|
|
4540
|
-
$.append("accept", "application/json"), $.append("Content-Type", "application/json"), $.append("X-Client-Request-Timestamp",
|
|
4541
|
-
const
|
|
4503
|
+
$.append("accept", "application/json"), $.append("Content-Type", "application/json"), $.append("X-Client-Request-Timestamp", Ft.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4504
|
+
const Y = {
|
|
4542
4505
|
method: "POST",
|
|
4543
4506
|
headers: $,
|
|
4544
4507
|
body: JSON.stringify({
|
|
@@ -4547,40 +4510,41 @@ function us(e, t, n) {
|
|
|
4547
4510
|
Tags: { UserAgent: window.navigator.userAgent }
|
|
4548
4511
|
})
|
|
4549
4512
|
};
|
|
4550
|
-
fetch(m,
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
n(10, G = j.error);
|
|
4513
|
+
fetch(m, Y).then((Z) => Z.json()).then((Z) => {
|
|
4514
|
+
if (Z.error) {
|
|
4515
|
+
r(10, G = Z.error);
|
|
4554
4516
|
return;
|
|
4555
4517
|
}
|
|
4556
|
-
if (
|
|
4557
|
-
ee =
|
|
4518
|
+
if (Z.ResponseCode !== T.Success) {
|
|
4519
|
+
ee = Z.ResponseCode, d();
|
|
4558
4520
|
return;
|
|
4559
4521
|
}
|
|
4560
|
-
|
|
4522
|
+
M = Z.PaymentMethods?.Ordering ? g(Z) : f(Z), r(7, A = c && +c > 0 && M.length > +c ? n("showAll") : ""), r(8, R = A ? M.slice(0, +c) : M), window.postMessage(
|
|
4561
4523
|
{
|
|
4562
4524
|
type: "StartSessionCountdown",
|
|
4563
|
-
paymentMethodName:
|
|
4564
|
-
xPaymentSessionToken:
|
|
4525
|
+
paymentMethodName: M[0].Name,
|
|
4526
|
+
xPaymentSessionToken: Z.XPaymentSessionToken
|
|
4565
4527
|
},
|
|
4566
4528
|
window.location.href
|
|
4567
4529
|
);
|
|
4568
|
-
}).finally(() =>
|
|
4530
|
+
}).finally(() => r(12, C = !1));
|
|
4569
4531
|
}, g = (m) => {
|
|
4570
4532
|
const $ = [];
|
|
4571
|
-
return m.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((
|
|
4572
|
-
const
|
|
4573
|
-
if (
|
|
4574
|
-
const
|
|
4575
|
-
$.push(
|
|
4576
|
-
|
|
4577
|
-
|
|
4533
|
+
return m.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((Y) => {
|
|
4534
|
+
const Z = m.PaymentMethods.PaymentMethods.find((ze) => ze.Name === Y);
|
|
4535
|
+
if (Z) {
|
|
4536
|
+
const ze = Z?.Logos.find((Ye) => Ye.LogoType === "Desktop") || {}, Hr = Z?.Logos.find((Ye) => Ye.LogoType === "Mobile") || {}, vt = V ? ze : Hr;
|
|
4537
|
+
$.push({
|
|
4538
|
+
...Z,
|
|
4539
|
+
LogoUrl: vt.LogoUrl ? `https:${vt.LogoUrl}` : ""
|
|
4540
|
+
});
|
|
4578
4541
|
}
|
|
4579
4542
|
}), $;
|
|
4580
|
-
}, f = (m) => m.PaymentMethods.PaymentMethods.map(($) =>
|
|
4543
|
+
}, f = (m) => m.PaymentMethods.PaymentMethods.map(($) => ({
|
|
4544
|
+
...$,
|
|
4581
4545
|
LogoUrl: $.Logos && $.Logos.length && $.Logos[0].LogoUrl ? `https:${$.Logos[0].LogoUrl}` : ""
|
|
4582
4546
|
})), y = (m) => {
|
|
4583
|
-
|
|
4547
|
+
r(6, I = m.Name), window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
|
|
4584
4548
|
"selectPayMeth",
|
|
4585
4549
|
{
|
|
4586
4550
|
detail: m,
|
|
@@ -4597,25 +4561,25 @@ function us(e, t, n) {
|
|
|
4597
4561
|
},
|
|
4598
4562
|
window.location.href
|
|
4599
4563
|
);
|
|
4564
|
+
}, E = () => {
|
|
4565
|
+
r(11, V = b === "false");
|
|
4600
4566
|
}, _ = () => {
|
|
4601
|
-
|
|
4602
|
-
}, x = () => {
|
|
4603
|
-
R == H ? U() : S();
|
|
4567
|
+
R == M ? U() : S();
|
|
4604
4568
|
}, S = () => {
|
|
4605
|
-
|
|
4569
|
+
r(8, R = M), r(7, A = n("showLess"));
|
|
4606
4570
|
}, U = () => {
|
|
4607
|
-
|
|
4571
|
+
r(8, R = M.slice(0, +c)), I && !R.find((m) => m.Name === I) && R.splice(0, 0, M.find((m) => m.Name === I)), r(7, A = n("showAll"));
|
|
4608
4572
|
}, k = () => {
|
|
4609
|
-
|
|
4610
|
-
},
|
|
4611
|
-
|
|
4573
|
+
r(9, N = !0);
|
|
4574
|
+
}, j = (m) => {
|
|
4575
|
+
r(9, N = !m.hideMethodsList);
|
|
4612
4576
|
}, q = () => {
|
|
4613
4577
|
let m = document.createElement("style");
|
|
4614
|
-
m.innerHTML =
|
|
4615
|
-
},
|
|
4578
|
+
m.innerHTML = x, P.appendChild(m);
|
|
4579
|
+
}, he = () => {
|
|
4616
4580
|
let m = new URL(w), $ = document.createElement("style");
|
|
4617
|
-
fetch(m.href).then((
|
|
4618
|
-
$.innerHTML =
|
|
4581
|
+
fetch(m.href).then((Y) => Y.text()).then((Y) => {
|
|
4582
|
+
$.innerHTML = Y, setTimeout(
|
|
4619
4583
|
() => {
|
|
4620
4584
|
P.appendChild($);
|
|
4621
4585
|
},
|
|
@@ -4627,39 +4591,39 @@ function us(e, t, n) {
|
|
|
4627
4591
|
);
|
|
4628
4592
|
});
|
|
4629
4593
|
};
|
|
4630
|
-
|
|
4631
|
-
window.removeEventListener("message",
|
|
4594
|
+
Rr(() => (window.addEventListener("message", se, !1), () => {
|
|
4595
|
+
window.removeEventListener("message", se, !1);
|
|
4632
4596
|
}));
|
|
4633
|
-
const
|
|
4597
|
+
const se = (m) => {
|
|
4634
4598
|
switch (m.data.type) {
|
|
4635
4599
|
case "BackToMethodList":
|
|
4636
4600
|
k();
|
|
4637
4601
|
break;
|
|
4638
4602
|
case "HideMethodsList":
|
|
4639
|
-
|
|
4603
|
+
j(m.data.details);
|
|
4640
4604
|
break;
|
|
4641
4605
|
}
|
|
4642
|
-
},
|
|
4643
|
-
function
|
|
4644
|
-
|
|
4645
|
-
P = m,
|
|
4606
|
+
}, de = (m) => y(m), ae = () => _();
|
|
4607
|
+
function X(m) {
|
|
4608
|
+
nt[m ? "unshift" : "push"](() => {
|
|
4609
|
+
P = m, r(5, P);
|
|
4646
4610
|
});
|
|
4647
4611
|
}
|
|
4648
4612
|
return e.$$set = (m) => {
|
|
4649
|
-
"lang" in m &&
|
|
4613
|
+
"lang" in m && r(0, i = m.lang), "local" in m && r(17, s = m.local), "endpoint" in m && r(18, a = m.endpoint), "session" in m && r(19, o = m.session), "customerid" in m && r(20, l = m.customerid), "assetsurl" in m && r(1, u = m.assetsurl), "currency" in m && r(21, h = m.currency), "numberofmethodsshown" in m && r(22, c = m.numberofmethodsshown), "translationurl" in m && r(2, p = m.translationurl), "clientstyling" in m && r(3, x = m.clientstyling), "clientstylingurl" in m && r(4, w = m.clientstylingurl), "ismobileview" in m && r(23, b = m.ismobileview);
|
|
4650
4614
|
}, e.$$.update = () => {
|
|
4651
4615
|
e.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
4652
4616
|
1835008 && a && o && l && v(), e.$$.dirty[0] & /*lang*/
|
|
4653
|
-
1 && i &&
|
|
4654
|
-
40 &&
|
|
4655
|
-
48 && w && P &&
|
|
4656
|
-
8388608 && b &&
|
|
4657
|
-
5 && i && p &&
|
|
4617
|
+
1 && i && me(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4618
|
+
40 && x && P && q(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4619
|
+
48 && w && P && he(), e.$$.dirty[0] & /*ismobileview*/
|
|
4620
|
+
8388608 && b && E(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
4621
|
+
5 && i && p && ie();
|
|
4658
4622
|
}, [
|
|
4659
4623
|
i,
|
|
4660
4624
|
u,
|
|
4661
4625
|
p,
|
|
4662
|
-
|
|
4626
|
+
x,
|
|
4663
4627
|
w,
|
|
4664
4628
|
P,
|
|
4665
4629
|
I,
|
|
@@ -4667,12 +4631,12 @@ function us(e, t, n) {
|
|
|
4667
4631
|
R,
|
|
4668
4632
|
N,
|
|
4669
4633
|
G,
|
|
4670
|
-
|
|
4634
|
+
V,
|
|
4671
4635
|
C,
|
|
4672
|
-
|
|
4636
|
+
n,
|
|
4673
4637
|
F,
|
|
4674
4638
|
y,
|
|
4675
|
-
|
|
4639
|
+
_,
|
|
4676
4640
|
s,
|
|
4677
4641
|
a,
|
|
4678
4642
|
o,
|
|
@@ -4680,19 +4644,19 @@ function us(e, t, n) {
|
|
|
4680
4644
|
h,
|
|
4681
4645
|
c,
|
|
4682
4646
|
b,
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4647
|
+
de,
|
|
4648
|
+
ae,
|
|
4649
|
+
X
|
|
4686
4650
|
];
|
|
4687
4651
|
}
|
|
4688
|
-
class
|
|
4652
|
+
class qi extends Qr {
|
|
4689
4653
|
constructor(t) {
|
|
4690
|
-
super(),
|
|
4654
|
+
super(), Zr(
|
|
4691
4655
|
this,
|
|
4692
4656
|
t,
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4657
|
+
Qi,
|
|
4658
|
+
Zi,
|
|
4659
|
+
Zt,
|
|
4696
4660
|
{
|
|
4697
4661
|
lang: 0,
|
|
4698
4662
|
local: 17,
|
|
@@ -4707,7 +4671,7 @@ class ls extends lr {
|
|
|
4707
4671
|
clientstylingurl: 4,
|
|
4708
4672
|
ismobileview: 23
|
|
4709
4673
|
},
|
|
4710
|
-
|
|
4674
|
+
Yi,
|
|
4711
4675
|
[-1, -1]
|
|
4712
4676
|
);
|
|
4713
4677
|
}
|
|
@@ -4784,7 +4748,7 @@ class ls extends lr {
|
|
|
4784
4748
|
this.$$set({ ismobileview: t }), K();
|
|
4785
4749
|
}
|
|
4786
4750
|
}
|
|
4787
|
-
|
|
4751
|
+
Jr(qi, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
4788
4752
|
export {
|
|
4789
|
-
|
|
4753
|
+
qi as C
|
|
4790
4754
|
};
|