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