@everymatrix/cashier-verifications 1.67.3 → 1.68.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/{CashierVerifications-BllNahBA.js → CashierVerifications-B5XQ-CD-.js} +914 -912
- package/components/{CashierVerifications-Bs8DHuuj.js → CashierVerifications-CVFiDWck.js} +902 -900
- package/components/CashierVerifications-dziXGbFA.cjs +5 -0
- package/components/{CashierVideoModal-CAk2Y4tu.js → CashierVideoModal-AN6f2AIj.js} +19 -19
- package/components/{CashierVideoModal-CRwUntF7.js → CashierVideoModal-D54H_jPz.js} +15 -15
- package/components/{CashierVideoModal-Kdb1ryQF.cjs → CashierVideoModal-DIGAFrLv.cjs} +1 -1
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-BivGFugd.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ur = Object.defineProperty, Fr = Object.defineProperties;
|
|
2
|
+
var Vr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ht = Object.getOwnPropertySymbols;
|
|
4
|
+
var Gr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var et = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Gr.call(t, r) && et(e, r, t[r]);
|
|
8
|
+
if (Ht)
|
|
9
|
+
for (var r of Ht(t))
|
|
10
|
+
jr.call(t, r) && et(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Pt = (e, t) =>
|
|
13
|
-
var Z = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Pt = (e, t) => Fr(e, Vr(t));
|
|
13
|
+
var Z = (e, t, r) => (et(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var At = (e, t, r) => new Promise((i, n) => {
|
|
15
15
|
var s = (o) => {
|
|
16
16
|
try {
|
|
17
17
|
l(r.next(o));
|
|
@@ -29,29 +29,29 @@ var Ot = (e, t, r) => new Promise((i, n) => {
|
|
|
29
29
|
});
|
|
30
30
|
function ee() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function rr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function $t() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Ne(e) {
|
|
39
|
+
e.forEach(rr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function yt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ir(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let Ve;
|
|
48
|
+
function ms(e, t) {
|
|
49
|
+
return e === t ? !0 : (Ve || (Ve = document.createElement("a")), Ve.href = t, e === Ve.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function zr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function nr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const i of t)
|
|
57
57
|
i(void 0);
|
|
@@ -60,20 +60,20 @@ function ir(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Bt(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(nr(t, r));
|
|
65
65
|
}
|
|
66
66
|
function re(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const i =
|
|
69
|
+
function Xr(e, t, r) {
|
|
70
|
+
const i = Wr(e);
|
|
71
71
|
if (!i.getElementById(t)) {
|
|
72
72
|
const n = J("style");
|
|
73
|
-
n.id = t, n.textContent = r,
|
|
73
|
+
n.id = t, n.textContent = r, qr(i, n);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Wr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,59 +83,59 @@ function Xr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function qr(e, t) {
|
|
87
87
|
return re(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function le(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ne(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Yr(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
103
|
function J(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ps(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function xt(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function Ee() {
|
|
113
|
+
return xt(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function gs() {
|
|
116
|
+
return xt("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function _t(e, t, r, i) {
|
|
119
119
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
120
120
|
}
|
|
121
121
|
function te(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function he(e, t, r) {
|
|
125
125
|
const i = t.toLowerCase();
|
|
126
126
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : te(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Zr(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Jr(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Se(e, t, r) {
|
|
136
136
|
e.classList.toggle(t, !!r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Qr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,90 +144,90 @@ function Jr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let De;
|
|
148
|
+
function Ce(e) {
|
|
149
|
+
De = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Kr() {
|
|
152
|
+
if (!De)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return De;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function vs(e) {
|
|
157
|
+
Kr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
159
|
+
const _e = [], ut = [];
|
|
160
|
+
let we = [];
|
|
161
|
+
const Mt = [], ei = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let lt = !1;
|
|
163
|
+
function ti() {
|
|
164
|
+
lt || (lt = !0, ei.then(K));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function ht(e) {
|
|
167
|
+
we.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
169
|
+
const tt = /* @__PURE__ */ new Set();
|
|
170
|
+
let ye = 0;
|
|
171
171
|
function K() {
|
|
172
|
-
if (
|
|
172
|
+
if (ye !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = De;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (;
|
|
178
|
-
const t =
|
|
179
|
-
|
|
177
|
+
for (; ye < _e.length; ) {
|
|
178
|
+
const t = _e[ye];
|
|
179
|
+
ye++, Ce(t), ri(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw _e.length = 0, ye = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
184
|
+
for (Ce(null), _e.length = 0, ye = 0; ut.length; )
|
|
185
|
+
ut.pop()();
|
|
186
|
+
for (let t = 0; t < we.length; t += 1) {
|
|
187
|
+
const r = we[t];
|
|
188
|
+
tt.has(r) || (tt.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
we.length = 0;
|
|
191
|
+
} while (_e.length);
|
|
192
|
+
for (; Mt.length; )
|
|
193
|
+
Mt.pop()();
|
|
194
|
+
lt = !1, tt.clear(), Ce(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ri(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Ne(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ht);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ii(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
we.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), we = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
function
|
|
209
|
-
e && e.i && (
|
|
207
|
+
const ni = /* @__PURE__ */ new Set();
|
|
208
|
+
function si(e, t) {
|
|
209
|
+
e && e.i && (ni.delete(e), e.i(t));
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ct(e) {
|
|
212
212
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function oi(e, t, r) {
|
|
215
215
|
const { fragment: i, after_update: n } = e.$$;
|
|
216
|
-
i && i.m(t, r),
|
|
217
|
-
const s = e.$$.on_mount.map(
|
|
218
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
219
|
-
}), n.forEach(
|
|
216
|
+
i && i.m(t, r), ht(() => {
|
|
217
|
+
const s = e.$$.on_mount.map(rr).filter(yt);
|
|
218
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ne(s), e.$$.on_mount = [];
|
|
219
|
+
}), n.forEach(ht);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ai(e, t) {
|
|
222
222
|
const r = e.$$;
|
|
223
|
-
r.fragment !== null && (
|
|
223
|
+
r.fragment !== null && (ii(r.after_update), Ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
e.$$.dirty[0] === -1 && (
|
|
225
|
+
function ui(e, t) {
|
|
226
|
+
e.$$.dirty[0] === -1 && (_e.push(e), ti(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
const o =
|
|
230
|
-
|
|
228
|
+
function li(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
229
|
+
const o = De;
|
|
230
|
+
Ce(e);
|
|
231
231
|
const u = e.$$ = {
|
|
232
232
|
fragment: null,
|
|
233
233
|
ctx: [],
|
|
@@ -235,7 +235,7 @@ function ui(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
|
235
235
|
props: s,
|
|
236
236
|
update: ee,
|
|
237
237
|
not_equal: n,
|
|
238
|
-
bound:
|
|
238
|
+
bound: $t(),
|
|
239
239
|
// lifecycle
|
|
240
240
|
on_mount: [],
|
|
241
241
|
on_destroy: [],
|
|
@@ -244,7 +244,7 @@ function ui(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
|
244
244
|
after_update: [],
|
|
245
245
|
context: new Map(t.context || (o ? o.$$.context : [])),
|
|
246
246
|
// everything else
|
|
247
|
-
callbacks:
|
|
247
|
+
callbacks: $t(),
|
|
248
248
|
dirty: l,
|
|
249
249
|
skip_bound: !1,
|
|
250
250
|
root: t.target || o.$$.root
|
|
@@ -253,19 +253,19 @@ function ui(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
|
253
253
|
let h = !1;
|
|
254
254
|
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...x) => {
|
|
255
255
|
const S = x.length ? x[0] : p;
|
|
256
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = S) && (!u.skip_bound && u.bound[c] && u.bound[c](S), h &&
|
|
257
|
-
}) : [], u.update(), h = !0,
|
|
256
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = S) && (!u.skip_bound && u.bound[c] && u.bound[c](S), h && ui(e, c)), p;
|
|
257
|
+
}) : [], u.update(), h = !0, Ne(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
258
258
|
if (t.hydrate) {
|
|
259
|
-
const c =
|
|
260
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
259
|
+
const c = Zr(t.target);
|
|
260
|
+
u.fragment && u.fragment.l(c), c.forEach(ne);
|
|
261
261
|
} else
|
|
262
262
|
u.fragment && u.fragment.c();
|
|
263
|
-
t.intro &&
|
|
263
|
+
t.intro && si(e.$$.fragment), oi(e, t.target, t.anchor), K();
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
Ce(o);
|
|
266
266
|
}
|
|
267
|
-
let
|
|
268
|
-
typeof HTMLElement == "function" && (
|
|
267
|
+
let sr;
|
|
268
|
+
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
269
269
|
constructor(t, r, i) {
|
|
270
270
|
super();
|
|
271
271
|
/** The Svelte component constructor */
|
|
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
connectedCallback() {
|
|
305
|
-
return
|
|
305
|
+
return At(this, null, function* () {
|
|
306
306
|
if (this.$$cn = !0, !this.$$c) {
|
|
307
307
|
let t = function(s) {
|
|
308
308
|
return () => {
|
|
@@ -316,28 +316,28 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
316
316
|
* @param {HTMLElement} [anchor]
|
|
317
317
|
*/
|
|
318
318
|
m: function(u, h) {
|
|
319
|
-
|
|
319
|
+
le(u, a, h);
|
|
320
320
|
},
|
|
321
321
|
d: function(u) {
|
|
322
|
-
u &&
|
|
322
|
+
u && ne(a);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
};
|
|
327
327
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
328
328
|
return;
|
|
329
|
-
const r = {}, i =
|
|
329
|
+
const r = {}, i = Qr(this);
|
|
330
330
|
for (const s of this.$$s)
|
|
331
331
|
s in i && (r[s] = [t(s)]);
|
|
332
332
|
for (const s of this.attributes) {
|
|
333
333
|
const a = this.$$g_p(s.name);
|
|
334
|
-
a in this.$$d || (this.$$d[a] =
|
|
334
|
+
a in this.$$d || (this.$$d[a] = je(a, s.value, this.$$p_d, "toProp"));
|
|
335
335
|
}
|
|
336
336
|
for (const s in this.$$p_d)
|
|
337
337
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
338
338
|
this.$$c = new this.$$ctor({
|
|
339
339
|
target: this.shadowRoot || this,
|
|
340
|
-
props: Pt(
|
|
340
|
+
props: Pt(Ot({}, this.$$d), {
|
|
341
341
|
$$slots: r,
|
|
342
342
|
$$scope: {
|
|
343
343
|
ctx: []
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
348
348
|
this.$$r = !0;
|
|
349
349
|
for (const s in this.$$p_d)
|
|
350
350
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
351
|
-
const a =
|
|
351
|
+
const a = je(
|
|
352
352
|
s,
|
|
353
353
|
this.$$d[s],
|
|
354
354
|
this.$$p_d,
|
|
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
372
372
|
// and setting attributes through setAttribute etc, this is helpful
|
|
373
373
|
attributeChangedCallback(t, r, i) {
|
|
374
374
|
var n;
|
|
375
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
375
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = je(t, i, this.$$p_d, "toProp"), (n = this.$$c) == null || n.$set({ [t]: this.$$d[t] }));
|
|
376
376
|
}
|
|
377
377
|
disconnectedCallback() {
|
|
378
378
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
385
385
|
) || t;
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
function
|
|
388
|
+
function je(e, t, r, i) {
|
|
389
389
|
var s;
|
|
390
390
|
const n = (s = r[e]) == null ? void 0 : s.type;
|
|
391
391
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -415,8 +415,8 @@ function Ge(e, t, r, i) {
|
|
|
415
415
|
return t;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
let a = class extends
|
|
418
|
+
function hi(e, t, r, i, n, s) {
|
|
419
|
+
let a = class extends sr {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(e, r, n), this.$$p_d = t;
|
|
422
422
|
}
|
|
@@ -433,7 +433,7 @@ function li(e, t, r, i, n, s) {
|
|
|
433
433
|
},
|
|
434
434
|
set(o) {
|
|
435
435
|
var u;
|
|
436
|
-
o =
|
|
436
|
+
o = je(l, o, t), this.$$d[l] = o, (u = this.$$c) == null || u.$set({ [l]: o });
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}), i.forEach((l) => {
|
|
@@ -446,7 +446,7 @@ function li(e, t, r, i, n, s) {
|
|
|
446
446
|
}), e.element = /** @type {any} */
|
|
447
447
|
a, a;
|
|
448
448
|
}
|
|
449
|
-
class
|
|
449
|
+
class fi {
|
|
450
450
|
constructor() {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
@@ -467,7 +467,7 @@ class hi {
|
|
|
467
467
|
}
|
|
468
468
|
/** @returns {void} */
|
|
469
469
|
$destroy() {
|
|
470
|
-
|
|
470
|
+
ai(this, 1), this.$destroy = ee;
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
473
473
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -476,7 +476,7 @@ class hi {
|
|
|
476
476
|
* @returns {() => void}
|
|
477
477
|
*/
|
|
478
478
|
$on(t, r) {
|
|
479
|
-
if (!
|
|
479
|
+
if (!yt(r))
|
|
480
480
|
return ee;
|
|
481
481
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
482
482
|
return i.push(r), () => {
|
|
@@ -489,29 +489,29 @@ class hi {
|
|
|
489
489
|
* @returns {void}
|
|
490
490
|
*/
|
|
491
491
|
$set(t) {
|
|
492
|
-
this.$$set && !
|
|
492
|
+
this.$$set && !zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
const
|
|
496
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
497
|
-
const
|
|
498
|
-
function
|
|
495
|
+
const ci = "4";
|
|
496
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ci);
|
|
497
|
+
const xe = [];
|
|
498
|
+
function di(e, t) {
|
|
499
499
|
return {
|
|
500
|
-
subscribe:
|
|
500
|
+
subscribe: Re(e, t).subscribe
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Re(e, t = ee) {
|
|
504
504
|
let r;
|
|
505
505
|
const i = /* @__PURE__ */ new Set();
|
|
506
506
|
function n(l) {
|
|
507
|
-
if (
|
|
508
|
-
const o = !
|
|
507
|
+
if (ir(e, l) && (e = l, r)) {
|
|
508
|
+
const o = !xe.length;
|
|
509
509
|
for (const u of i)
|
|
510
|
-
u[1](),
|
|
510
|
+
u[1](), xe.push(u, e);
|
|
511
511
|
if (o) {
|
|
512
|
-
for (let u = 0; u <
|
|
513
|
-
|
|
514
|
-
|
|
512
|
+
for (let u = 0; u < xe.length; u += 2)
|
|
513
|
+
xe[u][0](xe[u + 1]);
|
|
514
|
+
xe.length = 0;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -526,12 +526,12 @@ function Ne(e, t = ee) {
|
|
|
526
526
|
}
|
|
527
527
|
return { set: n, update: s, subscribe: a };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Ae(e, t, r) {
|
|
530
530
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
531
531
|
if (!n.every(Boolean))
|
|
532
532
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
533
533
|
const s = t.length < 2;
|
|
534
|
-
return
|
|
534
|
+
return di(r, (a, l) => {
|
|
535
535
|
let o = !1;
|
|
536
536
|
const u = [];
|
|
537
537
|
let h = 0, c = ee;
|
|
@@ -540,140 +540,126 @@ function Oe(e, t, r) {
|
|
|
540
540
|
return;
|
|
541
541
|
c();
|
|
542
542
|
const S = t(i ? u[0] : u, a, l);
|
|
543
|
-
s ? a(S) : c =
|
|
543
|
+
s ? a(S) : c = yt(S) ? S : ee;
|
|
544
544
|
}, x = n.map(
|
|
545
|
-
(S,
|
|
545
|
+
(S, v) => nr(
|
|
546
546
|
S,
|
|
547
|
-
(
|
|
548
|
-
u[
|
|
547
|
+
(M) => {
|
|
548
|
+
u[v] = M, h &= ~(1 << v), o && p();
|
|
549
549
|
},
|
|
550
550
|
() => {
|
|
551
|
-
h |= 1 <<
|
|
551
|
+
h |= 1 << v;
|
|
552
552
|
}
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
555
|
return o = !0, p(), function() {
|
|
556
|
-
|
|
556
|
+
Ne(x), c(), o = !1;
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
560
|
+
var or = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
561
|
+
function Et(e) {
|
|
562
562
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
563
563
|
}
|
|
564
|
-
var
|
|
565
|
-
return
|
|
564
|
+
var mi = function(t) {
|
|
565
|
+
return pi(t) && !gi(t);
|
|
566
566
|
};
|
|
567
|
-
function
|
|
567
|
+
function pi(e) {
|
|
568
568
|
return !!e && typeof e == "object";
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function gi(e) {
|
|
571
571
|
var t = Object.prototype.toString.call(e);
|
|
572
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
572
|
+
return t === "[object RegExp]" || t === "[object Date]" || yi(e);
|
|
573
573
|
}
|
|
574
|
-
var
|
|
575
|
-
function
|
|
574
|
+
var vi = typeof Symbol == "function" && Symbol.for, bi = vi ? Symbol.for("react.element") : 60103;
|
|
575
|
+
function yi(e) {
|
|
576
576
|
return e.$$typeof === bi;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function xi(e) {
|
|
579
579
|
return Array.isArray(e) ? [] : {};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
581
|
+
function Le(e, t) {
|
|
582
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Te(xi(e), e, t) : e;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function _i(e, t, r) {
|
|
585
585
|
return e.concat(t).map(function(i) {
|
|
586
|
-
return
|
|
586
|
+
return Le(i, r);
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Ei(e, t) {
|
|
590
590
|
if (!t.customMerge)
|
|
591
|
-
return
|
|
591
|
+
return Te;
|
|
592
592
|
var r = t.customMerge(e);
|
|
593
|
-
return typeof r == "function" ? r :
|
|
593
|
+
return typeof r == "function" ? r : Te;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function wi(e) {
|
|
596
596
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
597
597
|
return Object.propertyIsEnumerable.call(e, t);
|
|
598
598
|
}) : [];
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return Object.keys(e).concat(
|
|
600
|
+
function Dt(e) {
|
|
601
|
+
return Object.keys(e).concat(wi(e));
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function ar(e, t) {
|
|
604
604
|
try {
|
|
605
605
|
return t in e;
|
|
606
606
|
} catch (r) {
|
|
607
607
|
return !1;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
610
|
+
function Si(e, t) {
|
|
611
|
+
return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Ti(e, t, r) {
|
|
614
614
|
var i = {};
|
|
615
|
-
return r.isMergeableObject(e) &&
|
|
616
|
-
i[n] =
|
|
617
|
-
}),
|
|
618
|
-
|
|
615
|
+
return r.isMergeableObject(e) && Dt(e).forEach(function(n) {
|
|
616
|
+
i[n] = Le(e[n], r);
|
|
617
|
+
}), Dt(t).forEach(function(n) {
|
|
618
|
+
Si(e, n) || (ar(e, n) && r.isMergeableObject(t[n]) ? i[n] = Ei(n, r)(e[n], t[n], r) : i[n] = Le(t[n], r));
|
|
619
619
|
}), i;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
621
|
+
function Te(e, t, r) {
|
|
622
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _i, r.isMergeableObject = r.isMergeableObject || mi, r.cloneUnlessOtherwiseSpecified = Le;
|
|
623
623
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
624
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
624
|
+
return s ? i ? r.arrayMerge(e, t, r) : Ti(e, t, r) : Le(t, r);
|
|
625
625
|
}
|
|
626
|
-
|
|
626
|
+
Te.all = function(t, r) {
|
|
627
627
|
if (!Array.isArray(t))
|
|
628
628
|
throw new Error("first argument should be an array");
|
|
629
629
|
return t.reduce(function(i, n) {
|
|
630
|
-
return
|
|
630
|
+
return Te(i, n, r);
|
|
631
631
|
}, {});
|
|
632
632
|
};
|
|
633
|
-
var
|
|
634
|
-
const Pi = /* @__PURE__ */
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
639
|
-
purpose with or without fee is hereby granted.
|
|
640
|
-
|
|
641
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
642
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
643
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
644
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
645
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
646
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
647
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
648
|
-
***************************************************************************** */
|
|
649
|
-
var lt = function(e, t) {
|
|
650
|
-
return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
633
|
+
var Hi = Te, Oi = Hi;
|
|
634
|
+
const Pi = /* @__PURE__ */ Et(Oi);
|
|
635
|
+
var ft = function(e, t) {
|
|
636
|
+
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
651
637
|
r.__proto__ = i;
|
|
652
638
|
} || function(r, i) {
|
|
653
639
|
for (var n in i)
|
|
654
640
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
655
|
-
},
|
|
641
|
+
}, ft(e, t);
|
|
656
642
|
};
|
|
657
|
-
function
|
|
643
|
+
function Je(e, t) {
|
|
658
644
|
if (typeof t != "function" && t !== null)
|
|
659
645
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
660
|
-
|
|
646
|
+
ft(e, t);
|
|
661
647
|
function r() {
|
|
662
648
|
this.constructor = e;
|
|
663
649
|
}
|
|
664
650
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
665
651
|
}
|
|
666
|
-
var
|
|
667
|
-
return
|
|
652
|
+
var ie = function() {
|
|
653
|
+
return ie = Object.assign || function(t) {
|
|
668
654
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
669
655
|
r = arguments[i];
|
|
670
656
|
for (var s in r)
|
|
671
657
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
672
658
|
}
|
|
673
659
|
return t;
|
|
674
|
-
},
|
|
660
|
+
}, ie.apply(this, arguments);
|
|
675
661
|
};
|
|
676
|
-
function
|
|
662
|
+
function Ai(e, t) {
|
|
677
663
|
var r = {};
|
|
678
664
|
for (var i in e)
|
|
679
665
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -682,46 +668,43 @@ function Oi(e, t) {
|
|
|
682
668
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
683
669
|
return r;
|
|
684
670
|
}
|
|
685
|
-
function
|
|
686
|
-
if (arguments.length === 2)
|
|
671
|
+
function rt(e, t, r) {
|
|
672
|
+
if (r || arguments.length === 2)
|
|
687
673
|
for (var i = 0, n = t.length, s; i < n; i++)
|
|
688
674
|
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
689
|
-
return e.concat(s || t);
|
|
675
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
690
676
|
}
|
|
691
|
-
function
|
|
692
|
-
var r = t && t.cache ? t.cache :
|
|
677
|
+
function it(e, t) {
|
|
678
|
+
var r = t && t.cache ? t.cache : Ii, i = t && t.serializer ? t.serializer : Di, n = t && t.strategy ? t.strategy : Mi;
|
|
693
679
|
return n(e, {
|
|
694
680
|
cache: r,
|
|
695
681
|
serializer: i
|
|
696
682
|
});
|
|
697
683
|
}
|
|
698
|
-
function
|
|
684
|
+
function $i(e) {
|
|
699
685
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
700
686
|
}
|
|
701
|
-
function
|
|
702
|
-
var n =
|
|
687
|
+
function Bi(e, t, r, i) {
|
|
688
|
+
var n = $i(i) ? i : r(i), s = t.get(n);
|
|
703
689
|
return typeof s == "undefined" && (s = e.call(this, i), t.set(n, s)), s;
|
|
704
690
|
}
|
|
705
691
|
function ur(e, t, r) {
|
|
706
692
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
707
693
|
return typeof s == "undefined" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
708
694
|
}
|
|
709
|
-
function
|
|
695
|
+
function lr(e, t, r, i, n) {
|
|
710
696
|
return r.bind(t, e, i, n);
|
|
711
697
|
}
|
|
712
|
-
function $i(e, t) {
|
|
713
|
-
var r = e.length === 1 ? ar : ur;
|
|
714
|
-
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
715
|
-
}
|
|
716
|
-
function Bi(e, t) {
|
|
717
|
-
return _t(e, this, ur, t.cache.create(), t.serializer);
|
|
718
|
-
}
|
|
719
698
|
function Mi(e, t) {
|
|
720
|
-
|
|
699
|
+
var r = e.length === 1 ? Bi : ur;
|
|
700
|
+
return lr(e, this, r, t.cache.create(), t.serializer);
|
|
701
|
+
}
|
|
702
|
+
function Ci(e, t) {
|
|
703
|
+
return lr(e, this, ur, t.cache.create(), t.serializer);
|
|
721
704
|
}
|
|
722
|
-
var
|
|
705
|
+
var Di = function() {
|
|
723
706
|
return JSON.stringify(arguments);
|
|
724
|
-
},
|
|
707
|
+
}, Li = (
|
|
725
708
|
/** @class */
|
|
726
709
|
function() {
|
|
727
710
|
function e() {
|
|
@@ -733,62 +716,71 @@ var Ci = function() {
|
|
|
733
716
|
this.cache[t] = r;
|
|
734
717
|
}, e;
|
|
735
718
|
}()
|
|
736
|
-
),
|
|
719
|
+
), Ii = {
|
|
737
720
|
create: function() {
|
|
738
|
-
return new
|
|
721
|
+
return new Li();
|
|
739
722
|
}
|
|
740
|
-
},
|
|
741
|
-
variadic:
|
|
742
|
-
|
|
743
|
-
|
|
723
|
+
}, nt = {
|
|
724
|
+
variadic: Ci
|
|
725
|
+
}, We = function() {
|
|
726
|
+
return We = Object.assign || function(t) {
|
|
727
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
728
|
+
r = arguments[i];
|
|
729
|
+
for (var s in r)
|
|
730
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
731
|
+
}
|
|
732
|
+
return t;
|
|
733
|
+
}, We.apply(this, arguments);
|
|
734
|
+
};
|
|
735
|
+
var H;
|
|
744
736
|
(function(e) {
|
|
745
737
|
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";
|
|
746
738
|
})(H || (H = {}));
|
|
747
|
-
var
|
|
739
|
+
var D;
|
|
748
740
|
(function(e) {
|
|
749
741
|
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";
|
|
750
|
-
})(
|
|
751
|
-
var
|
|
742
|
+
})(D || (D = {}));
|
|
743
|
+
var He;
|
|
752
744
|
(function(e) {
|
|
753
745
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
754
|
-
})(
|
|
755
|
-
function
|
|
756
|
-
return e.type ===
|
|
757
|
-
}
|
|
758
|
-
function Ii(e) {
|
|
759
|
-
return e.type === L.argument;
|
|
746
|
+
})(He || (He = {}));
|
|
747
|
+
function Lt(e) {
|
|
748
|
+
return e.type === D.literal;
|
|
760
749
|
}
|
|
761
|
-
function
|
|
762
|
-
return e.type ===
|
|
750
|
+
function Ni(e) {
|
|
751
|
+
return e.type === D.argument;
|
|
763
752
|
}
|
|
764
753
|
function hr(e) {
|
|
765
|
-
return e.type ===
|
|
754
|
+
return e.type === D.number;
|
|
766
755
|
}
|
|
767
756
|
function fr(e) {
|
|
768
|
-
return e.type ===
|
|
757
|
+
return e.type === D.date;
|
|
769
758
|
}
|
|
770
759
|
function cr(e) {
|
|
771
|
-
return e.type ===
|
|
760
|
+
return e.type === D.time;
|
|
772
761
|
}
|
|
773
762
|
function dr(e) {
|
|
774
|
-
return e.type ===
|
|
775
|
-
}
|
|
776
|
-
function Ni(e) {
|
|
777
|
-
return e.type === L.pound;
|
|
763
|
+
return e.type === D.select;
|
|
778
764
|
}
|
|
779
765
|
function mr(e) {
|
|
780
|
-
return e.type ===
|
|
766
|
+
return e.type === D.plural;
|
|
767
|
+
}
|
|
768
|
+
function Ri(e) {
|
|
769
|
+
return e.type === D.pound;
|
|
781
770
|
}
|
|
782
771
|
function pr(e) {
|
|
783
|
-
return
|
|
772
|
+
return e.type === D.tag;
|
|
784
773
|
}
|
|
785
|
-
function
|
|
786
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
774
|
+
function gr(e) {
|
|
775
|
+
return !!(e && typeof e == "object" && e.type === He.number);
|
|
776
|
+
}
|
|
777
|
+
function ct(e) {
|
|
778
|
+
return !!(e && typeof e == "object" && e.type === He.dateTime);
|
|
787
779
|
}
|
|
788
|
-
var
|
|
789
|
-
function
|
|
780
|
+
var vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ki = /(?:[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;
|
|
781
|
+
function Ui(e) {
|
|
790
782
|
var t = {};
|
|
791
|
-
return e.replace(
|
|
783
|
+
return e.replace(ki, function(r) {
|
|
792
784
|
var i = r.length;
|
|
793
785
|
switch (r[0]) {
|
|
794
786
|
case "G":
|
|
@@ -877,11 +869,21 @@ function ki(e) {
|
|
|
877
869
|
return "";
|
|
878
870
|
}), t;
|
|
879
871
|
}
|
|
880
|
-
var
|
|
881
|
-
function
|
|
872
|
+
var L = function() {
|
|
873
|
+
return L = Object.assign || function(t) {
|
|
874
|
+
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
875
|
+
r = arguments[i];
|
|
876
|
+
for (var s in r)
|
|
877
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
878
|
+
}
|
|
879
|
+
return t;
|
|
880
|
+
}, L.apply(this, arguments);
|
|
881
|
+
};
|
|
882
|
+
var Fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
883
|
+
function Vi(e) {
|
|
882
884
|
if (e.length === 0)
|
|
883
885
|
throw new Error("Number skeleton cannot be empty");
|
|
884
|
-
for (var t = e.split(
|
|
886
|
+
for (var t = e.split(Fi).filter(function(p) {
|
|
885
887
|
return p.length > 0;
|
|
886
888
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
887
889
|
var s = n[i], a = s.split("/");
|
|
@@ -896,17 +898,17 @@ function Fi(e) {
|
|
|
896
898
|
}
|
|
897
899
|
return r;
|
|
898
900
|
}
|
|
899
|
-
function
|
|
901
|
+
function Gi(e) {
|
|
900
902
|
return e.replace(/^(.*?)-/, "");
|
|
901
903
|
}
|
|
902
|
-
var
|
|
903
|
-
function
|
|
904
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, ji = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
905
|
+
function Nt(e) {
|
|
904
906
|
var t = {};
|
|
905
907
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, i, n) {
|
|
906
908
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
907
909
|
}), t;
|
|
908
910
|
}
|
|
909
|
-
function
|
|
911
|
+
function xr(e) {
|
|
910
912
|
switch (e) {
|
|
911
913
|
case "sign-auto":
|
|
912
914
|
return {
|
|
@@ -946,7 +948,7 @@ function yr(e) {
|
|
|
946
948
|
};
|
|
947
949
|
}
|
|
948
950
|
}
|
|
949
|
-
function
|
|
951
|
+
function zi(e) {
|
|
950
952
|
var t;
|
|
951
953
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
952
954
|
notation: "engineering"
|
|
@@ -954,17 +956,17 @@ function ji(e) {
|
|
|
954
956
|
notation: "scientific"
|
|
955
957
|
}, e = e.slice(1)), t) {
|
|
956
958
|
var r = e.slice(0, 2);
|
|
957
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
959
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
|
|
958
960
|
throw new Error("Malformed concise eng/scientific notation");
|
|
959
961
|
t.minimumIntegerDigits = e.length;
|
|
960
962
|
}
|
|
961
963
|
return t;
|
|
962
964
|
}
|
|
963
|
-
function
|
|
964
|
-
var t = {}, r =
|
|
965
|
+
function Rt(e) {
|
|
966
|
+
var t = {}, r = xr(e);
|
|
965
967
|
return r || t;
|
|
966
968
|
}
|
|
967
|
-
function
|
|
969
|
+
function Xi(e) {
|
|
968
970
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
969
971
|
var n = i[r];
|
|
970
972
|
switch (n.stem) {
|
|
@@ -988,7 +990,7 @@ function zi(e) {
|
|
|
988
990
|
continue;
|
|
989
991
|
case "measure-unit":
|
|
990
992
|
case "unit":
|
|
991
|
-
t.style = "unit", t.unit =
|
|
993
|
+
t.style = "unit", t.unit = Gi(n.options[0]);
|
|
992
994
|
continue;
|
|
993
995
|
case "compact-short":
|
|
994
996
|
case "K":
|
|
@@ -999,13 +1001,13 @@ function zi(e) {
|
|
|
999
1001
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1000
1002
|
continue;
|
|
1001
1003
|
case "scientific":
|
|
1002
|
-
t =
|
|
1003
|
-
return
|
|
1004
|
+
t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
1005
|
+
return L(L({}, o), Rt(u));
|
|
1004
1006
|
}, {}));
|
|
1005
1007
|
continue;
|
|
1006
1008
|
case "engineering":
|
|
1007
|
-
t =
|
|
1008
|
-
return
|
|
1009
|
+
t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
1010
|
+
return L(L({}, o), Rt(u));
|
|
1009
1011
|
}, {}));
|
|
1010
1012
|
continue;
|
|
1011
1013
|
case "notation-simple":
|
|
@@ -1050,7 +1052,7 @@ function zi(e) {
|
|
|
1050
1052
|
case "integer-width":
|
|
1051
1053
|
if (n.options.length > 1)
|
|
1052
1054
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1053
|
-
n.options[0].replace(
|
|
1055
|
+
n.options[0].replace(ji, function(o, u, h, c, p, x) {
|
|
1054
1056
|
if (u)
|
|
1055
1057
|
t.minimumIntegerDigits = h.length;
|
|
1056
1058
|
else {
|
|
@@ -1063,32 +1065,32 @@ function zi(e) {
|
|
|
1063
1065
|
});
|
|
1064
1066
|
continue;
|
|
1065
1067
|
}
|
|
1066
|
-
if (
|
|
1068
|
+
if (yr.test(n.stem)) {
|
|
1067
1069
|
t.minimumIntegerDigits = n.stem.length;
|
|
1068
1070
|
continue;
|
|
1069
1071
|
}
|
|
1070
|
-
if (
|
|
1072
|
+
if (It.test(n.stem)) {
|
|
1071
1073
|
if (n.options.length > 1)
|
|
1072
1074
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1073
|
-
n.stem.replace(
|
|
1075
|
+
n.stem.replace(It, function(o, u, h, c, p, x) {
|
|
1074
1076
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && x ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1075
1077
|
});
|
|
1076
1078
|
var s = n.options[0];
|
|
1077
|
-
s === "w" ? t =
|
|
1079
|
+
s === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = L(L({}, t), Nt(s)));
|
|
1078
1080
|
continue;
|
|
1079
1081
|
}
|
|
1080
1082
|
if (br.test(n.stem)) {
|
|
1081
|
-
t =
|
|
1083
|
+
t = L(L({}, t), Nt(n.stem));
|
|
1082
1084
|
continue;
|
|
1083
1085
|
}
|
|
1084
|
-
var a =
|
|
1085
|
-
a && (t =
|
|
1086
|
-
var l =
|
|
1087
|
-
l && (t =
|
|
1086
|
+
var a = xr(n.stem);
|
|
1087
|
+
a && (t = L(L({}, t), a));
|
|
1088
|
+
var l = zi(n.stem);
|
|
1089
|
+
l && (t = L(L({}, t), l));
|
|
1088
1090
|
}
|
|
1089
1091
|
return t;
|
|
1090
1092
|
}
|
|
1091
|
-
var
|
|
1093
|
+
var Ge = {
|
|
1092
1094
|
"001": [
|
|
1093
1095
|
"H",
|
|
1094
1096
|
"h"
|
|
@@ -2503,13 +2505,13 @@ var Ve = {
|
|
|
2503
2505
|
"h"
|
|
2504
2506
|
]
|
|
2505
2507
|
};
|
|
2506
|
-
function
|
|
2508
|
+
function Wi(e, t) {
|
|
2507
2509
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2508
2510
|
var n = e.charAt(i);
|
|
2509
2511
|
if (n === "j") {
|
|
2510
2512
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2511
2513
|
s++, i++;
|
|
2512
|
-
var a = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), o = "a", u =
|
|
2514
|
+
var a = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), o = "a", u = qi(t);
|
|
2513
2515
|
for ((u == "H" || u == "k") && (l = 0); l-- > 0; )
|
|
2514
2516
|
r += o;
|
|
2515
2517
|
for (; a-- > 0; )
|
|
@@ -2519,7 +2521,7 @@ function Xi(e, t) {
|
|
|
2519
2521
|
}
|
|
2520
2522
|
return r;
|
|
2521
2523
|
}
|
|
2522
|
-
function
|
|
2524
|
+
function qi(e) {
|
|
2523
2525
|
var t = e.hourCycle;
|
|
2524
2526
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2525
2527
|
e.hourCycles && // @ts-ignore
|
|
@@ -2538,23 +2540,23 @@ function Wi(e) {
|
|
|
2538
2540
|
}
|
|
2539
2541
|
var r = e.language, i;
|
|
2540
2542
|
r !== "root" && (i = e.maximize().region);
|
|
2541
|
-
var n =
|
|
2543
|
+
var n = Ge[i || ""] || Ge[r || ""] || Ge["".concat(r, "-001")] || Ge["001"];
|
|
2542
2544
|
return n[0];
|
|
2543
2545
|
}
|
|
2544
|
-
var
|
|
2545
|
-
function
|
|
2546
|
+
var st, Yi = new RegExp("^".concat(vr.source, "*")), Zi = new RegExp("".concat(vr.source, "*$"));
|
|
2547
|
+
function P(e, t) {
|
|
2546
2548
|
return { start: e, end: t };
|
|
2547
2549
|
}
|
|
2548
|
-
var
|
|
2550
|
+
var Ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qi = !!String.fromCodePoint, Ki = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, sn = nn ? Number.isSafeInteger : function(e) {
|
|
2549
2551
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2550
|
-
},
|
|
2552
|
+
}, dt = !0;
|
|
2551
2553
|
try {
|
|
2552
|
-
var
|
|
2553
|
-
|
|
2554
|
+
var on = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2555
|
+
dt = ((st = on.exec("a")) === null || st === void 0 ? void 0 : st[0]) === "a";
|
|
2554
2556
|
} catch (e) {
|
|
2555
|
-
|
|
2557
|
+
dt = !1;
|
|
2556
2558
|
}
|
|
2557
|
-
var
|
|
2559
|
+
var kt = Ji ? (
|
|
2558
2560
|
// Native
|
|
2559
2561
|
function(t, r, i) {
|
|
2560
2562
|
return t.startsWith(r, i);
|
|
@@ -2564,7 +2566,7 @@ var Rt = Zi ? (
|
|
|
2564
2566
|
function(t, r, i) {
|
|
2565
2567
|
return t.slice(i, i + r.length) === r;
|
|
2566
2568
|
}
|
|
2567
|
-
),
|
|
2569
|
+
), mt = Qi ? String.fromCodePoint : (
|
|
2568
2570
|
// IE11
|
|
2569
2571
|
function() {
|
|
2570
2572
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2576,9 +2578,9 @@ var Rt = Zi ? (
|
|
|
2576
2578
|
}
|
|
2577
2579
|
return i;
|
|
2578
2580
|
}
|
|
2579
|
-
),
|
|
2581
|
+
), Ut = (
|
|
2580
2582
|
// native
|
|
2581
|
-
|
|
2583
|
+
Ki ? Object.fromEntries : (
|
|
2582
2584
|
// Ponyfill
|
|
2583
2585
|
function(t) {
|
|
2584
2586
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2588,7 +2590,7 @@ var Rt = Zi ? (
|
|
|
2588
2590
|
return r;
|
|
2589
2591
|
}
|
|
2590
2592
|
)
|
|
2591
|
-
),
|
|
2593
|
+
), _r = en ? (
|
|
2592
2594
|
// Native
|
|
2593
2595
|
function(t, r) {
|
|
2594
2596
|
return t.codePointAt(r);
|
|
@@ -2602,7 +2604,7 @@ var Rt = Zi ? (
|
|
|
2602
2604
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2603
2605
|
}
|
|
2604
2606
|
}
|
|
2605
|
-
),
|
|
2607
|
+
), an = tn ? (
|
|
2606
2608
|
// Native
|
|
2607
2609
|
function(t) {
|
|
2608
2610
|
return t.trimStart();
|
|
@@ -2610,9 +2612,9 @@ var Rt = Zi ? (
|
|
|
2610
2612
|
) : (
|
|
2611
2613
|
// Ponyfill
|
|
2612
2614
|
function(t) {
|
|
2613
|
-
return t.replace(
|
|
2615
|
+
return t.replace(Yi, "");
|
|
2614
2616
|
}
|
|
2615
|
-
),
|
|
2617
|
+
), un = rn ? (
|
|
2616
2618
|
// Native
|
|
2617
2619
|
function(t) {
|
|
2618
2620
|
return t.trimEnd();
|
|
@@ -2620,32 +2622,32 @@ var Rt = Zi ? (
|
|
|
2620
2622
|
) : (
|
|
2621
2623
|
// Ponyfill
|
|
2622
2624
|
function(t) {
|
|
2623
|
-
return t.replace(
|
|
2625
|
+
return t.replace(Zi, "");
|
|
2624
2626
|
}
|
|
2625
2627
|
);
|
|
2626
|
-
function
|
|
2628
|
+
function Er(e, t) {
|
|
2627
2629
|
return new RegExp(e, t);
|
|
2628
2630
|
}
|
|
2629
|
-
var
|
|
2630
|
-
if (
|
|
2631
|
-
var
|
|
2632
|
-
|
|
2631
|
+
var pt;
|
|
2632
|
+
if (dt) {
|
|
2633
|
+
var Ft = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2634
|
+
pt = function(t, r) {
|
|
2633
2635
|
var i;
|
|
2634
|
-
|
|
2635
|
-
var n =
|
|
2636
|
+
Ft.lastIndex = r;
|
|
2637
|
+
var n = Ft.exec(t);
|
|
2636
2638
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2637
2639
|
};
|
|
2638
2640
|
} else
|
|
2639
|
-
|
|
2641
|
+
pt = function(t, r) {
|
|
2640
2642
|
for (var i = []; ; ) {
|
|
2641
|
-
var n =
|
|
2642
|
-
if (n === void 0 ||
|
|
2643
|
+
var n = _r(t, r);
|
|
2644
|
+
if (n === void 0 || wr(n) || cn(n))
|
|
2643
2645
|
break;
|
|
2644
2646
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2645
2647
|
}
|
|
2646
|
-
return
|
|
2648
|
+
return mt.apply(void 0, i);
|
|
2647
2649
|
};
|
|
2648
|
-
var
|
|
2650
|
+
var ln = (
|
|
2649
2651
|
/** @class */
|
|
2650
2652
|
function() {
|
|
2651
2653
|
function e(t, r) {
|
|
@@ -2669,14 +2671,14 @@ var un = (
|
|
|
2669
2671
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2670
2672
|
var l = this.clonePosition();
|
|
2671
2673
|
this.bump(), n.push({
|
|
2672
|
-
type:
|
|
2673
|
-
location:
|
|
2674
|
+
type: D.pound,
|
|
2675
|
+
location: P(l, this.clonePosition())
|
|
2674
2676
|
});
|
|
2675
2677
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2676
2678
|
if (i)
|
|
2677
2679
|
break;
|
|
2678
|
-
return this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2679
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2680
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
|
|
2681
|
+
} else if (s === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
|
|
2680
2682
|
var a = this.parseTag(t, r);
|
|
2681
2683
|
if (a.err)
|
|
2682
2684
|
return a;
|
|
@@ -2697,9 +2699,9 @@ var un = (
|
|
|
2697
2699
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2698
2700
|
return {
|
|
2699
2701
|
val: {
|
|
2700
|
-
type:
|
|
2702
|
+
type: D.literal,
|
|
2701
2703
|
value: "<".concat(n, "/>"),
|
|
2702
|
-
location:
|
|
2704
|
+
location: P(i, this.clonePosition())
|
|
2703
2705
|
},
|
|
2704
2706
|
err: null
|
|
2705
2707
|
};
|
|
@@ -2709,25 +2711,25 @@ var un = (
|
|
|
2709
2711
|
return s;
|
|
2710
2712
|
var a = s.val, l = this.clonePosition();
|
|
2711
2713
|
if (this.bumpIf("</")) {
|
|
2712
|
-
if (this.isEOF() || !
|
|
2713
|
-
return this.error(H.INVALID_TAG,
|
|
2714
|
+
if (this.isEOF() || !gt(this.char()))
|
|
2715
|
+
return this.error(H.INVALID_TAG, P(l, this.clonePosition()));
|
|
2714
2716
|
var o = this.clonePosition(), u = this.parseTagName();
|
|
2715
|
-
return n !== u ? this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2717
|
+
return n !== u ? this.error(H.UNMATCHED_CLOSING_TAG, P(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2716
2718
|
val: {
|
|
2717
|
-
type:
|
|
2719
|
+
type: D.tag,
|
|
2718
2720
|
value: n,
|
|
2719
2721
|
children: a,
|
|
2720
|
-
location:
|
|
2722
|
+
location: P(i, this.clonePosition())
|
|
2721
2723
|
},
|
|
2722
2724
|
err: null
|
|
2723
|
-
} : this.error(H.INVALID_TAG,
|
|
2725
|
+
} : this.error(H.INVALID_TAG, P(l, this.clonePosition())));
|
|
2724
2726
|
} else
|
|
2725
|
-
return this.error(H.UNCLOSED_TAG,
|
|
2727
|
+
return this.error(H.UNCLOSED_TAG, P(i, this.clonePosition()));
|
|
2726
2728
|
} else
|
|
2727
|
-
return this.error(H.INVALID_TAG,
|
|
2729
|
+
return this.error(H.INVALID_TAG, P(i, this.clonePosition()));
|
|
2728
2730
|
}, e.prototype.parseTagName = function() {
|
|
2729
2731
|
var t = this.offset();
|
|
2730
|
-
for (this.bump(); !this.isEOF() &&
|
|
2732
|
+
for (this.bump(); !this.isEOF() && fn(this.char()); )
|
|
2731
2733
|
this.bump();
|
|
2732
2734
|
return this.message.slice(t, this.offset());
|
|
2733
2735
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2749,14 +2751,14 @@ var un = (
|
|
|
2749
2751
|
}
|
|
2750
2752
|
break;
|
|
2751
2753
|
}
|
|
2752
|
-
var o =
|
|
2754
|
+
var o = P(i, this.clonePosition());
|
|
2753
2755
|
return {
|
|
2754
|
-
val: { type:
|
|
2756
|
+
val: { type: D.literal, value: n, location: o },
|
|
2755
2757
|
err: null
|
|
2756
2758
|
};
|
|
2757
2759
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2758
2760
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2759
|
-
!
|
|
2761
|
+
!hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2760
2762
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2761
2763
|
if (this.isEOF() || this.char() !== 39)
|
|
2762
2764
|
return null;
|
|
@@ -2790,49 +2792,49 @@ var un = (
|
|
|
2790
2792
|
r.push(i);
|
|
2791
2793
|
this.bump();
|
|
2792
2794
|
}
|
|
2793
|
-
return
|
|
2795
|
+
return mt.apply(void 0, r);
|
|
2794
2796
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2795
2797
|
if (this.isEOF())
|
|
2796
2798
|
return null;
|
|
2797
2799
|
var i = this.char();
|
|
2798
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2800
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), mt(i));
|
|
2799
2801
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2800
2802
|
var i = this.clonePosition();
|
|
2801
2803
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2802
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2804
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2803
2805
|
if (this.char() === 125)
|
|
2804
|
-
return this.bump(), this.error(H.EMPTY_ARGUMENT,
|
|
2806
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, P(i, this.clonePosition()));
|
|
2805
2807
|
var n = this.parseIdentifierIfPossible().value;
|
|
2806
2808
|
if (!n)
|
|
2807
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2809
|
+
return this.error(H.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2808
2810
|
if (this.bumpSpace(), this.isEOF())
|
|
2809
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2811
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2810
2812
|
switch (this.char()) {
|
|
2811
2813
|
case 125:
|
|
2812
2814
|
return this.bump(), {
|
|
2813
2815
|
val: {
|
|
2814
|
-
type:
|
|
2816
|
+
type: D.argument,
|
|
2815
2817
|
// value does not include the opening and closing braces.
|
|
2816
2818
|
value: n,
|
|
2817
|
-
location:
|
|
2819
|
+
location: P(i, this.clonePosition())
|
|
2818
2820
|
},
|
|
2819
2821
|
err: null
|
|
2820
2822
|
};
|
|
2821
2823
|
case 44:
|
|
2822
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2824
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2823
2825
|
default:
|
|
2824
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2826
|
+
return this.error(H.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2825
2827
|
}
|
|
2826
2828
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2827
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2829
|
+
var t = this.clonePosition(), r = this.offset(), i = pt(this.message, r), n = r + i.length;
|
|
2828
2830
|
this.bumpTo(n);
|
|
2829
|
-
var s = this.clonePosition(), a =
|
|
2831
|
+
var s = this.clonePosition(), a = P(t, s);
|
|
2830
2832
|
return { value: i, location: a };
|
|
2831
2833
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2832
2834
|
var s, a = this.clonePosition(), l = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2833
2835
|
switch (l) {
|
|
2834
2836
|
case "":
|
|
2835
|
-
return this.error(H.EXPECT_ARGUMENT_TYPE,
|
|
2837
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, P(a, o));
|
|
2836
2838
|
case "number":
|
|
2837
2839
|
case "date":
|
|
2838
2840
|
case "time": {
|
|
@@ -2843,46 +2845,46 @@ var un = (
|
|
|
2843
2845
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2844
2846
|
if (c.err)
|
|
2845
2847
|
return c;
|
|
2846
|
-
var p =
|
|
2848
|
+
var p = un(c.val);
|
|
2847
2849
|
if (p.length === 0)
|
|
2848
|
-
return this.error(H.EXPECT_ARGUMENT_STYLE,
|
|
2849
|
-
var x =
|
|
2850
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
|
|
2851
|
+
var x = P(h, this.clonePosition());
|
|
2850
2852
|
u = { style: p, styleLocation: x };
|
|
2851
2853
|
}
|
|
2852
2854
|
var S = this.tryParseArgumentClose(n);
|
|
2853
2855
|
if (S.err)
|
|
2854
2856
|
return S;
|
|
2855
|
-
var
|
|
2856
|
-
if (u &&
|
|
2857
|
-
var
|
|
2857
|
+
var v = P(n, this.clonePosition());
|
|
2858
|
+
if (u && kt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2859
|
+
var M = an(u.style.slice(2));
|
|
2858
2860
|
if (l === "number") {
|
|
2859
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2861
|
+
var c = this.parseNumberSkeletonFromString(M, u.styleLocation);
|
|
2860
2862
|
return c.err ? c : {
|
|
2861
|
-
val: { type:
|
|
2863
|
+
val: { type: D.number, value: i, location: v, style: c.val },
|
|
2862
2864
|
err: null
|
|
2863
2865
|
};
|
|
2864
2866
|
} else {
|
|
2865
|
-
if (
|
|
2866
|
-
return this.error(H.EXPECT_DATE_TIME_SKELETON,
|
|
2867
|
-
var U =
|
|
2868
|
-
this.locale && (U =
|
|
2867
|
+
if (M.length === 0)
|
|
2868
|
+
return this.error(H.EXPECT_DATE_TIME_SKELETON, v);
|
|
2869
|
+
var U = M;
|
|
2870
|
+
this.locale && (U = Wi(M, this.locale));
|
|
2869
2871
|
var p = {
|
|
2870
|
-
type:
|
|
2872
|
+
type: He.dateTime,
|
|
2871
2873
|
pattern: U,
|
|
2872
2874
|
location: u.styleLocation,
|
|
2873
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2874
|
-
}, R = l === "date" ?
|
|
2875
|
+
parsedOptions: this.shouldParseSkeletons ? Ui(U) : {}
|
|
2876
|
+
}, R = l === "date" ? D.date : D.time;
|
|
2875
2877
|
return {
|
|
2876
|
-
val: { type: R, value: i, location:
|
|
2878
|
+
val: { type: R, value: i, location: v, style: p },
|
|
2877
2879
|
err: null
|
|
2878
2880
|
};
|
|
2879
2881
|
}
|
|
2880
2882
|
}
|
|
2881
2883
|
return {
|
|
2882
2884
|
val: {
|
|
2883
|
-
type: l === "number" ?
|
|
2885
|
+
type: l === "number" ? D.number : l === "date" ? D.date : D.time,
|
|
2884
2886
|
value: i,
|
|
2885
|
-
location:
|
|
2887
|
+
location: v,
|
|
2886
2888
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2887
2889
|
},
|
|
2888
2890
|
err: null
|
|
@@ -2891,14 +2893,14 @@ var un = (
|
|
|
2891
2893
|
case "plural":
|
|
2892
2894
|
case "selectordinal":
|
|
2893
2895
|
case "select": {
|
|
2894
|
-
var
|
|
2896
|
+
var $ = this.clonePosition();
|
|
2895
2897
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2896
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2898
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, P($, We({}, $)));
|
|
2897
2899
|
this.bumpSpace();
|
|
2898
2900
|
var z = this.parseIdentifierIfPossible(), I = 0;
|
|
2899
2901
|
if (l !== "select" && z.value === "offset") {
|
|
2900
2902
|
if (!this.bumpIf(":"))
|
|
2901
|
-
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2903
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
|
|
2902
2904
|
this.bumpSpace();
|
|
2903
2905
|
var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2904
2906
|
if (c.err)
|
|
@@ -2911,20 +2913,20 @@ var un = (
|
|
|
2911
2913
|
var S = this.tryParseArgumentClose(n);
|
|
2912
2914
|
if (S.err)
|
|
2913
2915
|
return S;
|
|
2914
|
-
var W =
|
|
2916
|
+
var W = P(n, this.clonePosition());
|
|
2915
2917
|
return l === "select" ? {
|
|
2916
2918
|
val: {
|
|
2917
|
-
type:
|
|
2919
|
+
type: D.select,
|
|
2918
2920
|
value: i,
|
|
2919
|
-
options:
|
|
2921
|
+
options: Ut(k.val),
|
|
2920
2922
|
location: W
|
|
2921
2923
|
},
|
|
2922
2924
|
err: null
|
|
2923
2925
|
} : {
|
|
2924
2926
|
val: {
|
|
2925
|
-
type:
|
|
2927
|
+
type: D.plural,
|
|
2926
2928
|
value: i,
|
|
2927
|
-
options:
|
|
2929
|
+
options: Ut(k.val),
|
|
2928
2930
|
offset: I,
|
|
2929
2931
|
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
2930
2932
|
location: W
|
|
@@ -2933,10 +2935,10 @@ var un = (
|
|
|
2933
2935
|
};
|
|
2934
2936
|
}
|
|
2935
2937
|
default:
|
|
2936
|
-
return this.error(H.INVALID_ARGUMENT_TYPE,
|
|
2938
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, P(a, o));
|
|
2937
2939
|
}
|
|
2938
2940
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2939
|
-
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2941
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2940
2942
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2941
2943
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2942
2944
|
var i = this.char();
|
|
@@ -2945,7 +2947,7 @@ var un = (
|
|
|
2945
2947
|
this.bump();
|
|
2946
2948
|
var n = this.clonePosition();
|
|
2947
2949
|
if (!this.bumpUntil("'"))
|
|
2948
|
-
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2950
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(n, this.clonePosition()));
|
|
2949
2951
|
this.bump();
|
|
2950
2952
|
break;
|
|
2951
2953
|
}
|
|
@@ -2975,16 +2977,16 @@ var un = (
|
|
|
2975
2977
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2976
2978
|
var i = [];
|
|
2977
2979
|
try {
|
|
2978
|
-
i =
|
|
2980
|
+
i = Vi(t);
|
|
2979
2981
|
} catch (n) {
|
|
2980
2982
|
return this.error(H.INVALID_NUMBER_SKELETON, r);
|
|
2981
2983
|
}
|
|
2982
2984
|
return {
|
|
2983
2985
|
val: {
|
|
2984
|
-
type:
|
|
2986
|
+
type: He.number,
|
|
2985
2987
|
tokens: i,
|
|
2986
2988
|
location: r,
|
|
2987
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2989
|
+
parsedOptions: this.shouldParseSkeletons ? Xi(i) : {}
|
|
2988
2990
|
},
|
|
2989
2991
|
err: null
|
|
2990
2992
|
};
|
|
@@ -2996,7 +2998,7 @@ var un = (
|
|
|
2996
2998
|
var p = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2997
2999
|
if (p.err)
|
|
2998
3000
|
return p;
|
|
2999
|
-
h =
|
|
3001
|
+
h = P(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3000
3002
|
} else
|
|
3001
3003
|
break;
|
|
3002
3004
|
}
|
|
@@ -3005,22 +3007,22 @@ var un = (
|
|
|
3005
3007
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3006
3008
|
var x = this.clonePosition();
|
|
3007
3009
|
if (!this.bumpIf("{"))
|
|
3008
|
-
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3010
|
+
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
|
|
3009
3011
|
var S = this.parseMessage(t + 1, r, i);
|
|
3010
3012
|
if (S.err)
|
|
3011
3013
|
return S;
|
|
3012
|
-
var
|
|
3013
|
-
if (
|
|
3014
|
-
return
|
|
3014
|
+
var v = this.tryParseArgumentClose(x);
|
|
3015
|
+
if (v.err)
|
|
3016
|
+
return v;
|
|
3015
3017
|
l.push([
|
|
3016
3018
|
u,
|
|
3017
3019
|
{
|
|
3018
3020
|
value: S.val,
|
|
3019
|
-
location:
|
|
3021
|
+
location: P(x, this.clonePosition())
|
|
3020
3022
|
}
|
|
3021
3023
|
]), o.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3022
3024
|
}
|
|
3023
|
-
return l.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3025
|
+
return l.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(H.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
|
|
3024
3026
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3025
3027
|
var i = 1, n = this.clonePosition();
|
|
3026
3028
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
@@ -3031,8 +3033,8 @@ var un = (
|
|
|
3031
3033
|
else
|
|
3032
3034
|
break;
|
|
3033
3035
|
}
|
|
3034
|
-
var o =
|
|
3035
|
-
return s ? (a *= i,
|
|
3036
|
+
var o = P(n, this.clonePosition());
|
|
3037
|
+
return s ? (a *= i, sn(a) ? { val: a, err: null } : this.error(r, o)) : this.error(t, o);
|
|
3036
3038
|
}, e.prototype.offset = function() {
|
|
3037
3039
|
return this.position.offset;
|
|
3038
3040
|
}, e.prototype.isEOF = function() {
|
|
@@ -3047,7 +3049,7 @@ var un = (
|
|
|
3047
3049
|
var t = this.position.offset;
|
|
3048
3050
|
if (t >= this.message.length)
|
|
3049
3051
|
throw Error("out of bound");
|
|
3050
|
-
var r =
|
|
3052
|
+
var r = _r(this.message, t);
|
|
3051
3053
|
if (r === void 0)
|
|
3052
3054
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3053
3055
|
return r;
|
|
@@ -3066,7 +3068,7 @@ var un = (
|
|
|
3066
3068
|
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);
|
|
3067
3069
|
}
|
|
3068
3070
|
}, e.prototype.bumpIf = function(t) {
|
|
3069
|
-
if (
|
|
3071
|
+
if (kt(this.message, t, this.offset())) {
|
|
3070
3072
|
for (var r = 0; r < t.length; r++)
|
|
3071
3073
|
this.bump();
|
|
3072
3074
|
return !0;
|
|
@@ -3088,7 +3090,7 @@ var un = (
|
|
|
3088
3090
|
break;
|
|
3089
3091
|
}
|
|
3090
3092
|
}, e.prototype.bumpSpace = function() {
|
|
3091
|
-
for (; !this.isEOF() &&
|
|
3093
|
+
for (; !this.isEOF() && wr(this.char()); )
|
|
3092
3094
|
this.bump();
|
|
3093
3095
|
}, e.prototype.peek = function() {
|
|
3094
3096
|
if (this.isEOF())
|
|
@@ -3098,47 +3100,47 @@ var un = (
|
|
|
3098
3100
|
}, e;
|
|
3099
3101
|
}()
|
|
3100
3102
|
);
|
|
3101
|
-
function
|
|
3103
|
+
function gt(e) {
|
|
3102
3104
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3103
3105
|
}
|
|
3104
|
-
function ln(e) {
|
|
3105
|
-
return mt(e) || e === 47;
|
|
3106
|
-
}
|
|
3107
3106
|
function hn(e) {
|
|
3107
|
+
return gt(e) || e === 47;
|
|
3108
|
+
}
|
|
3109
|
+
function fn(e) {
|
|
3108
3110
|
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;
|
|
3109
3111
|
}
|
|
3110
|
-
function
|
|
3112
|
+
function wr(e) {
|
|
3111
3113
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3112
3114
|
}
|
|
3113
|
-
function
|
|
3115
|
+
function cn(e) {
|
|
3114
3116
|
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;
|
|
3115
3117
|
}
|
|
3116
|
-
function
|
|
3118
|
+
function vt(e) {
|
|
3117
3119
|
e.forEach(function(t) {
|
|
3118
|
-
if (delete t.location,
|
|
3120
|
+
if (delete t.location, dr(t) || mr(t))
|
|
3119
3121
|
for (var r in t.options)
|
|
3120
|
-
delete t.options[r].location,
|
|
3122
|
+
delete t.options[r].location, vt(t.options[r].value);
|
|
3121
3123
|
else
|
|
3122
|
-
|
|
3124
|
+
hr(t) && gr(t.style) || (fr(t) || cr(t)) && ct(t.style) ? delete t.style.location : pr(t) && vt(t.children);
|
|
3123
3125
|
});
|
|
3124
3126
|
}
|
|
3125
|
-
function
|
|
3126
|
-
t === void 0 && (t = {}), t =
|
|
3127
|
-
var r = new
|
|
3127
|
+
function dn(e, t) {
|
|
3128
|
+
t === void 0 && (t = {}), t = We({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3129
|
+
var r = new ln(e, t).parse();
|
|
3128
3130
|
if (r.err) {
|
|
3129
3131
|
var i = SyntaxError(H[r.err.kind]);
|
|
3130
3132
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3131
3133
|
}
|
|
3132
|
-
return t != null && t.captureLocation ||
|
|
3134
|
+
return t != null && t.captureLocation || vt(r.val), r.val;
|
|
3133
3135
|
}
|
|
3134
|
-
var
|
|
3136
|
+
var Oe;
|
|
3135
3137
|
(function(e) {
|
|
3136
3138
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3137
|
-
})(
|
|
3138
|
-
var
|
|
3139
|
+
})(Oe || (Oe = {}));
|
|
3140
|
+
var Qe = (
|
|
3139
3141
|
/** @class */
|
|
3140
3142
|
function(e) {
|
|
3141
|
-
|
|
3143
|
+
Je(t, e);
|
|
3142
3144
|
function t(r, i, n) {
|
|
3143
3145
|
var s = e.call(this, r) || this;
|
|
3144
3146
|
return s.code = i, s.originalMessage = n, s;
|
|
@@ -3147,48 +3149,48 @@ var Ze = (
|
|
|
3147
3149
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3148
3150
|
}, t;
|
|
3149
3151
|
}(Error)
|
|
3150
|
-
),
|
|
3152
|
+
), Vt = (
|
|
3151
3153
|
/** @class */
|
|
3152
3154
|
function(e) {
|
|
3153
|
-
|
|
3155
|
+
Je(t, e);
|
|
3154
3156
|
function t(r, i, n, s) {
|
|
3155
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3157
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Oe.INVALID_VALUE, s) || this;
|
|
3156
3158
|
}
|
|
3157
3159
|
return t;
|
|
3158
|
-
}(
|
|
3159
|
-
),
|
|
3160
|
+
}(Qe)
|
|
3161
|
+
), mn = (
|
|
3160
3162
|
/** @class */
|
|
3161
3163
|
function(e) {
|
|
3162
|
-
|
|
3164
|
+
Je(t, e);
|
|
3163
3165
|
function t(r, i, n) {
|
|
3164
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3166
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Oe.INVALID_VALUE, n) || this;
|
|
3165
3167
|
}
|
|
3166
3168
|
return t;
|
|
3167
|
-
}(
|
|
3168
|
-
),
|
|
3169
|
+
}(Qe)
|
|
3170
|
+
), pn = (
|
|
3169
3171
|
/** @class */
|
|
3170
3172
|
function(e) {
|
|
3171
|
-
|
|
3173
|
+
Je(t, e);
|
|
3172
3174
|
function t(r, i) {
|
|
3173
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3175
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Oe.MISSING_VALUE, i) || this;
|
|
3174
3176
|
}
|
|
3175
3177
|
return t;
|
|
3176
|
-
}(
|
|
3178
|
+
}(Qe)
|
|
3177
3179
|
), j;
|
|
3178
3180
|
(function(e) {
|
|
3179
3181
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3180
3182
|
})(j || (j = {}));
|
|
3181
|
-
function
|
|
3183
|
+
function gn(e) {
|
|
3182
3184
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3183
3185
|
var i = t[t.length - 1];
|
|
3184
3186
|
return !i || i.type !== j.literal || r.type !== j.literal ? t.push(r) : i.value += r.value, t;
|
|
3185
3187
|
}, []);
|
|
3186
3188
|
}
|
|
3187
|
-
function
|
|
3189
|
+
function vn(e) {
|
|
3188
3190
|
return typeof e == "function";
|
|
3189
3191
|
}
|
|
3190
|
-
function
|
|
3191
|
-
if (e.length === 1 &&
|
|
3192
|
+
function ze(e, t, r, i, n, s, a) {
|
|
3193
|
+
if (e.length === 1 && Lt(e[0]))
|
|
3192
3194
|
return [
|
|
3193
3195
|
{
|
|
3194
3196
|
type: j.literal,
|
|
@@ -3197,14 +3199,14 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3197
3199
|
];
|
|
3198
3200
|
for (var l = [], o = 0, u = e; o < u.length; o++) {
|
|
3199
3201
|
var h = u[o];
|
|
3200
|
-
if (
|
|
3202
|
+
if (Lt(h)) {
|
|
3201
3203
|
l.push({
|
|
3202
3204
|
type: j.literal,
|
|
3203
3205
|
value: h.value
|
|
3204
3206
|
});
|
|
3205
3207
|
continue;
|
|
3206
3208
|
}
|
|
3207
|
-
if (
|
|
3209
|
+
if (Ri(h)) {
|
|
3208
3210
|
typeof s == "number" && l.push({
|
|
3209
3211
|
type: j.literal,
|
|
3210
3212
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3213,44 +3215,44 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3213
3215
|
}
|
|
3214
3216
|
var c = h.value;
|
|
3215
3217
|
if (!(n && c in n))
|
|
3216
|
-
throw new
|
|
3218
|
+
throw new pn(c, a);
|
|
3217
3219
|
var p = n[c];
|
|
3218
|
-
if (
|
|
3220
|
+
if (Ni(h)) {
|
|
3219
3221
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), l.push({
|
|
3220
3222
|
type: typeof p == "string" ? j.literal : j.object,
|
|
3221
3223
|
value: p
|
|
3222
3224
|
});
|
|
3223
3225
|
continue;
|
|
3224
3226
|
}
|
|
3225
|
-
if (
|
|
3226
|
-
var x = typeof h.style == "string" ? i.date[h.style] :
|
|
3227
|
+
if (fr(h)) {
|
|
3228
|
+
var x = typeof h.style == "string" ? i.date[h.style] : ct(h.style) ? h.style.parsedOptions : void 0;
|
|
3227
3229
|
l.push({
|
|
3228
3230
|
type: j.literal,
|
|
3229
3231
|
value: r.getDateTimeFormat(t, x).format(p)
|
|
3230
3232
|
});
|
|
3231
3233
|
continue;
|
|
3232
3234
|
}
|
|
3233
|
-
if (
|
|
3234
|
-
var x = typeof h.style == "string" ? i.time[h.style] :
|
|
3235
|
+
if (cr(h)) {
|
|
3236
|
+
var x = typeof h.style == "string" ? i.time[h.style] : ct(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3235
3237
|
l.push({
|
|
3236
3238
|
type: j.literal,
|
|
3237
3239
|
value: r.getDateTimeFormat(t, x).format(p)
|
|
3238
3240
|
});
|
|
3239
3241
|
continue;
|
|
3240
3242
|
}
|
|
3241
|
-
if (
|
|
3242
|
-
var x = typeof h.style == "string" ? i.number[h.style] :
|
|
3243
|
+
if (hr(h)) {
|
|
3244
|
+
var x = typeof h.style == "string" ? i.number[h.style] : gr(h.style) ? h.style.parsedOptions : void 0;
|
|
3243
3245
|
x && x.scale && (p = p * (x.scale || 1)), l.push({
|
|
3244
3246
|
type: j.literal,
|
|
3245
3247
|
value: r.getNumberFormat(t, x).format(p)
|
|
3246
3248
|
});
|
|
3247
3249
|
continue;
|
|
3248
3250
|
}
|
|
3249
|
-
if (
|
|
3250
|
-
var S = h.children,
|
|
3251
|
-
if (!
|
|
3252
|
-
throw new
|
|
3253
|
-
var U =
|
|
3251
|
+
if (pr(h)) {
|
|
3252
|
+
var S = h.children, v = h.value, M = n[v];
|
|
3253
|
+
if (!vn(M))
|
|
3254
|
+
throw new mn(v, "function", a);
|
|
3255
|
+
var U = ze(S, t, r, i, n, s), R = M(U.map(function(I) {
|
|
3254
3256
|
return I.value;
|
|
3255
3257
|
}));
|
|
3256
3258
|
Array.isArray(R) || (R = [R]), l.push.apply(l, R.map(function(I) {
|
|
@@ -3260,42 +3262,42 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3260
3262
|
};
|
|
3261
3263
|
}));
|
|
3262
3264
|
}
|
|
3263
|
-
if (
|
|
3264
|
-
var
|
|
3265
|
-
if (
|
|
3266
|
-
throw new
|
|
3267
|
-
l.push.apply(l,
|
|
3265
|
+
if (dr(h)) {
|
|
3266
|
+
var $ = h.options[p] || h.options.other;
|
|
3267
|
+
if (!$)
|
|
3268
|
+
throw new Vt(h.value, p, Object.keys(h.options), a);
|
|
3269
|
+
l.push.apply(l, ze($.value, t, r, i, n));
|
|
3268
3270
|
continue;
|
|
3269
3271
|
}
|
|
3270
|
-
if (
|
|
3271
|
-
var
|
|
3272
|
-
if (
|
|
3272
|
+
if (mr(h)) {
|
|
3273
|
+
var $ = h.options["=".concat(p)];
|
|
3274
|
+
if (!$) {
|
|
3273
3275
|
if (!Intl.PluralRules)
|
|
3274
|
-
throw new
|
|
3276
|
+
throw new Qe(`Intl.PluralRules is not available in this environment.
|
|
3275
3277
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3276
|
-
`,
|
|
3278
|
+
`, Oe.MISSING_INTL_API, a);
|
|
3277
3279
|
var z = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3278
|
-
|
|
3280
|
+
$ = h.options[z] || h.options.other;
|
|
3279
3281
|
}
|
|
3280
|
-
if (
|
|
3281
|
-
throw new
|
|
3282
|
-
l.push.apply(l,
|
|
3282
|
+
if (!$)
|
|
3283
|
+
throw new Vt(h.value, p, Object.keys(h.options), a);
|
|
3284
|
+
l.push.apply(l, ze($.value, t, r, i, n, p - (h.offset || 0)));
|
|
3283
3285
|
continue;
|
|
3284
3286
|
}
|
|
3285
3287
|
}
|
|
3286
|
-
return
|
|
3288
|
+
return gn(l);
|
|
3287
3289
|
}
|
|
3288
3290
|
function bn(e, t) {
|
|
3289
|
-
return t ?
|
|
3290
|
-
return r[i] =
|
|
3291
|
+
return t ? ie(ie(ie({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3292
|
+
return r[i] = ie(ie({}, e[i]), t[i] || {}), r;
|
|
3291
3293
|
}, {})) : e;
|
|
3292
3294
|
}
|
|
3293
|
-
function
|
|
3295
|
+
function yn(e, t) {
|
|
3294
3296
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3295
3297
|
return r[i] = bn(e[i], t[i]), r;
|
|
3296
|
-
},
|
|
3298
|
+
}, ie({}, e)) : e;
|
|
3297
3299
|
}
|
|
3298
|
-
function
|
|
3300
|
+
function ot(e) {
|
|
3299
3301
|
return {
|
|
3300
3302
|
create: function() {
|
|
3301
3303
|
return {
|
|
@@ -3309,39 +3311,39 @@ function nt(e) {
|
|
|
3309
3311
|
}
|
|
3310
3312
|
};
|
|
3311
3313
|
}
|
|
3312
|
-
function
|
|
3314
|
+
function xn(e) {
|
|
3313
3315
|
return e === void 0 && (e = {
|
|
3314
3316
|
number: {},
|
|
3315
3317
|
dateTime: {},
|
|
3316
3318
|
pluralRules: {}
|
|
3317
3319
|
}), {
|
|
3318
|
-
getNumberFormat:
|
|
3320
|
+
getNumberFormat: it(function() {
|
|
3319
3321
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3320
3322
|
r[i] = arguments[i];
|
|
3321
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3323
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, rt([void 0], r, !1)))();
|
|
3322
3324
|
}, {
|
|
3323
|
-
cache:
|
|
3324
|
-
strategy:
|
|
3325
|
+
cache: ot(e.number),
|
|
3326
|
+
strategy: nt.variadic
|
|
3325
3327
|
}),
|
|
3326
|
-
getDateTimeFormat:
|
|
3328
|
+
getDateTimeFormat: it(function() {
|
|
3327
3329
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3328
3330
|
r[i] = arguments[i];
|
|
3329
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3331
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, rt([void 0], r, !1)))();
|
|
3330
3332
|
}, {
|
|
3331
|
-
cache:
|
|
3332
|
-
strategy:
|
|
3333
|
+
cache: ot(e.dateTime),
|
|
3334
|
+
strategy: nt.variadic
|
|
3333
3335
|
}),
|
|
3334
|
-
getPluralRules:
|
|
3336
|
+
getPluralRules: it(function() {
|
|
3335
3337
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3336
3338
|
r[i] = arguments[i];
|
|
3337
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3339
|
+
return new ((t = Intl.PluralRules).bind.apply(t, rt([void 0], r, !1)))();
|
|
3338
3340
|
}, {
|
|
3339
|
-
cache:
|
|
3340
|
-
strategy:
|
|
3341
|
+
cache: ot(e.pluralRules),
|
|
3342
|
+
strategy: nt.variadic
|
|
3341
3343
|
})
|
|
3342
3344
|
};
|
|
3343
3345
|
}
|
|
3344
|
-
var
|
|
3346
|
+
var Sr = (
|
|
3345
3347
|
/** @class */
|
|
3346
3348
|
function() {
|
|
3347
3349
|
function e(t, r, i, n) {
|
|
@@ -3360,7 +3362,7 @@ var wr = (
|
|
|
3360
3362
|
}, []);
|
|
3361
3363
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3362
3364
|
}, this.formatToParts = function(o) {
|
|
3363
|
-
return
|
|
3365
|
+
return ze(s.ast, s.locales, s.formatters, s.formats, o, void 0, s.message);
|
|
3364
3366
|
}, this.resolvedOptions = function() {
|
|
3365
3367
|
var o;
|
|
3366
3368
|
return {
|
|
@@ -3373,13 +3375,13 @@ var wr = (
|
|
|
3373
3375
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3374
3376
|
var a = n || {};
|
|
3375
3377
|
a.formatters;
|
|
3376
|
-
var l =
|
|
3377
|
-
this.ast = e.__parse(t,
|
|
3378
|
+
var l = Ai(a, ["formatters"]);
|
|
3379
|
+
this.ast = e.__parse(t, ie(ie({}, l), { locale: this.resolvedLocale }));
|
|
3378
3380
|
} else
|
|
3379
3381
|
this.ast = t;
|
|
3380
3382
|
if (!Array.isArray(this.ast))
|
|
3381
3383
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3382
|
-
this.formats =
|
|
3384
|
+
this.formats = yn(e.formats, i), this.formatters = n && n.formatters || xn(this.formatterCache);
|
|
3383
3385
|
}
|
|
3384
3386
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3385
3387
|
get: function() {
|
|
@@ -3392,7 +3394,7 @@ var wr = (
|
|
|
3392
3394
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3393
3395
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3394
3396
|
}
|
|
3395
|
-
}, e.__parse =
|
|
3397
|
+
}, e.__parse = dn, e.formats = {
|
|
3396
3398
|
number: {
|
|
3397
3399
|
integer: {
|
|
3398
3400
|
maximumFractionDigits: 0
|
|
@@ -3453,7 +3455,7 @@ var wr = (
|
|
|
3453
3455
|
}, e;
|
|
3454
3456
|
}()
|
|
3455
3457
|
);
|
|
3456
|
-
function
|
|
3458
|
+
function _n(e, t) {
|
|
3457
3459
|
if (t == null)
|
|
3458
3460
|
return;
|
|
3459
3461
|
if (t in e)
|
|
@@ -3474,65 +3476,65 @@ function xn(e, t) {
|
|
|
3474
3476
|
i = void 0;
|
|
3475
3477
|
return i;
|
|
3476
3478
|
}
|
|
3477
|
-
const
|
|
3479
|
+
const fe = {}, En = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), Tr = (e, t) => {
|
|
3478
3480
|
if (t == null)
|
|
3479
3481
|
return;
|
|
3480
|
-
if (t in
|
|
3481
|
-
return
|
|
3482
|
-
const r =
|
|
3482
|
+
if (t in fe && e in fe[t])
|
|
3483
|
+
return fe[t][e];
|
|
3484
|
+
const r = Ue(t);
|
|
3483
3485
|
for (let i = 0; i < r.length; i++) {
|
|
3484
|
-
const n = r[i], s =
|
|
3486
|
+
const n = r[i], s = Sn(n, e);
|
|
3485
3487
|
if (s)
|
|
3486
|
-
return
|
|
3488
|
+
return En(e, t, s);
|
|
3487
3489
|
}
|
|
3488
3490
|
};
|
|
3489
|
-
let
|
|
3490
|
-
const
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
3491
|
+
let wt;
|
|
3492
|
+
const ke = Re({});
|
|
3493
|
+
function wn(e) {
|
|
3494
|
+
return wt[e] || null;
|
|
3493
3495
|
}
|
|
3494
|
-
function
|
|
3495
|
-
return e in
|
|
3496
|
+
function Hr(e) {
|
|
3497
|
+
return e in wt;
|
|
3496
3498
|
}
|
|
3497
|
-
function
|
|
3498
|
-
if (!
|
|
3499
|
+
function Sn(e, t) {
|
|
3500
|
+
if (!Hr(e))
|
|
3499
3501
|
return null;
|
|
3500
|
-
const r =
|
|
3501
|
-
return
|
|
3502
|
+
const r = wn(e);
|
|
3503
|
+
return _n(r, t);
|
|
3502
3504
|
}
|
|
3503
|
-
function
|
|
3505
|
+
function Tn(e) {
|
|
3504
3506
|
if (e == null)
|
|
3505
3507
|
return;
|
|
3506
|
-
const t =
|
|
3508
|
+
const t = Ue(e);
|
|
3507
3509
|
for (let r = 0; r < t.length; r++) {
|
|
3508
3510
|
const i = t[r];
|
|
3509
|
-
if (
|
|
3511
|
+
if (Hr(i))
|
|
3510
3512
|
return i;
|
|
3511
3513
|
}
|
|
3512
3514
|
}
|
|
3513
|
-
function
|
|
3514
|
-
delete
|
|
3515
|
+
function Or(e, ...t) {
|
|
3516
|
+
delete fe[e], ke.update((r) => (r[e] = Pi.all([r[e] || {}, ...t]), r));
|
|
3515
3517
|
}
|
|
3516
|
-
|
|
3517
|
-
[
|
|
3518
|
+
Ae(
|
|
3519
|
+
[ke],
|
|
3518
3520
|
([e]) => Object.keys(e)
|
|
3519
3521
|
);
|
|
3520
|
-
|
|
3521
|
-
const
|
|
3522
|
-
function
|
|
3523
|
-
|
|
3522
|
+
ke.subscribe((e) => wt = e);
|
|
3523
|
+
const Xe = {};
|
|
3524
|
+
function Hn(e, t) {
|
|
3525
|
+
Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
|
|
3524
3526
|
}
|
|
3525
3527
|
function Pr(e) {
|
|
3526
|
-
return
|
|
3528
|
+
return Xe[e];
|
|
3527
3529
|
}
|
|
3528
|
-
function
|
|
3529
|
-
return
|
|
3530
|
+
function On(e) {
|
|
3531
|
+
return Ue(e).map((t) => {
|
|
3530
3532
|
const r = Pr(t);
|
|
3531
3533
|
return [t, r ? [...r] : []];
|
|
3532
3534
|
}).filter(([, t]) => t.length > 0);
|
|
3533
3535
|
}
|
|
3534
|
-
function
|
|
3535
|
-
return e == null ? !1 :
|
|
3536
|
+
function qe(e) {
|
|
3537
|
+
return e == null ? !1 : Ue(e).some(
|
|
3536
3538
|
(t) => {
|
|
3537
3539
|
var r;
|
|
3538
3540
|
return (r = Pr(t)) == null ? void 0 : r.size;
|
|
@@ -3541,34 +3543,34 @@ function Xe(e) {
|
|
|
3541
3543
|
}
|
|
3542
3544
|
function Pn(e, t) {
|
|
3543
3545
|
return Promise.all(
|
|
3544
|
-
t.map((i) => (
|
|
3545
|
-
).then((i) =>
|
|
3546
|
-
}
|
|
3547
|
-
const
|
|
3548
|
-
function
|
|
3549
|
-
if (!
|
|
3550
|
-
return e in
|
|
3551
|
-
const t =
|
|
3552
|
-
return
|
|
3546
|
+
t.map((i) => (Hn(e, i), i().then((n) => n.default || n)))
|
|
3547
|
+
).then((i) => Or(e, ...i));
|
|
3548
|
+
}
|
|
3549
|
+
const Be = {};
|
|
3550
|
+
function Ar(e) {
|
|
3551
|
+
if (!qe(e))
|
|
3552
|
+
return e in Be ? Be[e] : Promise.resolve();
|
|
3553
|
+
const t = On(e);
|
|
3554
|
+
return Be[e] = Promise.all(
|
|
3553
3555
|
t.map(
|
|
3554
3556
|
([r, i]) => Pn(r, i)
|
|
3555
3557
|
)
|
|
3556
3558
|
).then(() => {
|
|
3557
|
-
if (
|
|
3558
|
-
return
|
|
3559
|
-
delete
|
|
3560
|
-
}),
|
|
3559
|
+
if (qe(e))
|
|
3560
|
+
return Ar(e);
|
|
3561
|
+
delete Be[e];
|
|
3562
|
+
}), Be[e];
|
|
3561
3563
|
}
|
|
3562
|
-
var
|
|
3564
|
+
var Gt = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Bn = (e, t) => {
|
|
3563
3565
|
var r = {};
|
|
3564
3566
|
for (var i in e)
|
|
3565
|
-
|
|
3566
|
-
if (e != null &&
|
|
3567
|
-
for (var i of
|
|
3568
|
-
t.indexOf(i) < 0 &&
|
|
3567
|
+
An.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3568
|
+
if (e != null && Gt)
|
|
3569
|
+
for (var i of Gt(e))
|
|
3570
|
+
t.indexOf(i) < 0 && $n.call(e, i) && (r[i] = e[i]);
|
|
3569
3571
|
return r;
|
|
3570
3572
|
};
|
|
3571
|
-
const
|
|
3573
|
+
const Mn = {
|
|
3572
3574
|
number: {
|
|
3573
3575
|
scientific: { notation: "scientific" },
|
|
3574
3576
|
engineering: { notation: "engineering" },
|
|
@@ -3598,172 +3600,172 @@ const Bn = {
|
|
|
3598
3600
|
}
|
|
3599
3601
|
}
|
|
3600
3602
|
};
|
|
3601
|
-
function
|
|
3603
|
+
function Cn({ locale: e, id: t }) {
|
|
3602
3604
|
console.warn(
|
|
3603
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3605
|
+
`[svelte-i18n] The message "${t}" was not found in "${Ue(
|
|
3604
3606
|
e
|
|
3605
|
-
).join('", "')}".${
|
|
3607
|
+
).join('", "')}".${qe(ce()) ? `
|
|
3606
3608
|
|
|
3607
3609
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3608
3610
|
);
|
|
3609
3611
|
}
|
|
3610
|
-
const
|
|
3612
|
+
const Dn = {
|
|
3611
3613
|
fallbackLocale: null,
|
|
3612
3614
|
loadingDelay: 200,
|
|
3613
|
-
formats:
|
|
3615
|
+
formats: Mn,
|
|
3614
3616
|
warnOnMissingMessages: !0,
|
|
3615
3617
|
handleMissingMessage: void 0,
|
|
3616
3618
|
ignoreTag: !0
|
|
3617
|
-
},
|
|
3619
|
+
}, Me = Dn;
|
|
3618
3620
|
function Pe() {
|
|
3619
|
-
return
|
|
3621
|
+
return Me;
|
|
3620
3622
|
}
|
|
3621
|
-
function
|
|
3622
|
-
const t = e, { formats: r } = t, i =
|
|
3623
|
+
function Ln(e) {
|
|
3624
|
+
const t = e, { formats: r } = t, i = Bn(t, ["formats"]);
|
|
3623
3625
|
let n = e.fallbackLocale;
|
|
3624
3626
|
if (e.initialLocale)
|
|
3625
3627
|
try {
|
|
3626
|
-
|
|
3628
|
+
Sr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3627
3629
|
} catch (s) {
|
|
3628
3630
|
console.warn(
|
|
3629
3631
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3630
3632
|
);
|
|
3631
3633
|
}
|
|
3632
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3634
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = Cn : console.warn(
|
|
3633
3635
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3634
|
-
)), Object.assign(
|
|
3635
|
-
}
|
|
3636
|
-
const
|
|
3637
|
-
var
|
|
3638
|
-
for (var r in t)
|
|
3639
|
-
|
|
3640
|
-
if (
|
|
3641
|
-
for (var r of
|
|
3642
|
-
|
|
3636
|
+
)), Object.assign(Me, i, { initialLocale: n }), r && ("number" in r && Object.assign(Me.formats.number, r.number), "date" in r && Object.assign(Me.formats.date, r.date), "time" in r && Object.assign(Me.formats.time, r.time)), ge.set(n);
|
|
3637
|
+
}
|
|
3638
|
+
const at = Re(!1);
|
|
3639
|
+
var In = Object.defineProperty, Nn = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3640
|
+
for (var r in t || (t = {}))
|
|
3641
|
+
kn.call(t, r) && zt(e, r, t[r]);
|
|
3642
|
+
if (jt)
|
|
3643
|
+
for (var r of jt(t))
|
|
3644
|
+
Un.call(t, r) && zt(e, r, t[r]);
|
|
3643
3645
|
return e;
|
|
3644
|
-
},
|
|
3645
|
-
let
|
|
3646
|
-
const
|
|
3647
|
-
function
|
|
3646
|
+
}, Vn = (e, t) => Nn(e, Rn(t));
|
|
3647
|
+
let bt;
|
|
3648
|
+
const Ye = Re(null);
|
|
3649
|
+
function Xt(e) {
|
|
3648
3650
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3649
3651
|
}
|
|
3650
|
-
function
|
|
3651
|
-
const r =
|
|
3652
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3652
|
+
function Ue(e, t = Pe().fallbackLocale) {
|
|
3653
|
+
const r = Xt(e);
|
|
3654
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
|
3653
3655
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3656
|
+
function ce() {
|
|
3657
|
+
return bt != null ? bt : void 0;
|
|
3656
3658
|
}
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
+
Ye.subscribe((e) => {
|
|
3660
|
+
bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3659
3661
|
});
|
|
3660
|
-
const
|
|
3661
|
-
if (e &&
|
|
3662
|
+
const Gn = (e) => {
|
|
3663
|
+
if (e && Tn(e) && qe(e)) {
|
|
3662
3664
|
const { loadingDelay: t } = Pe();
|
|
3663
3665
|
let r;
|
|
3664
|
-
return typeof window != "undefined" &&
|
|
3665
|
-
() =>
|
|
3666
|
+
return typeof window != "undefined" && ce() != null && t ? r = window.setTimeout(
|
|
3667
|
+
() => at.set(!0),
|
|
3666
3668
|
t
|
|
3667
|
-
) :
|
|
3668
|
-
|
|
3669
|
+
) : at.set(!0), Ar(e).then(() => {
|
|
3670
|
+
Ye.set(e);
|
|
3669
3671
|
}).finally(() => {
|
|
3670
|
-
clearTimeout(r),
|
|
3672
|
+
clearTimeout(r), at.set(!1);
|
|
3671
3673
|
});
|
|
3672
3674
|
}
|
|
3673
|
-
return
|
|
3674
|
-
},
|
|
3675
|
-
set:
|
|
3676
|
-
}),
|
|
3675
|
+
return Ye.set(e);
|
|
3676
|
+
}, ge = Vn(Fn({}, Ye), {
|
|
3677
|
+
set: Gn
|
|
3678
|
+
}), Ke = (e) => {
|
|
3677
3679
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3678
3680
|
return (i) => {
|
|
3679
3681
|
const n = JSON.stringify(i);
|
|
3680
3682
|
return n in t ? t[n] : t[n] = e(i);
|
|
3681
3683
|
};
|
|
3682
3684
|
};
|
|
3683
|
-
var
|
|
3685
|
+
var jn = Object.defineProperty, Ze = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, St = (e, t) => {
|
|
3684
3686
|
for (var r in t || (t = {}))
|
|
3685
|
-
|
|
3686
|
-
if (
|
|
3687
|
-
for (var r of
|
|
3688
|
-
|
|
3687
|
+
$r.call(t, r) && Wt(e, r, t[r]);
|
|
3688
|
+
if (Ze)
|
|
3689
|
+
for (var r of Ze(t))
|
|
3690
|
+
Br.call(t, r) && Wt(e, r, t[r]);
|
|
3689
3691
|
return e;
|
|
3690
|
-
},
|
|
3692
|
+
}, $e = (e, t) => {
|
|
3691
3693
|
var r = {};
|
|
3692
3694
|
for (var i in e)
|
|
3693
|
-
|
|
3694
|
-
if (e != null &&
|
|
3695
|
-
for (var i of
|
|
3696
|
-
t.indexOf(i) < 0 &&
|
|
3695
|
+
$r.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3696
|
+
if (e != null && Ze)
|
|
3697
|
+
for (var i of Ze(e))
|
|
3698
|
+
t.indexOf(i) < 0 && Br.call(e, i) && (r[i] = e[i]);
|
|
3697
3699
|
return r;
|
|
3698
3700
|
};
|
|
3699
|
-
const
|
|
3701
|
+
const Ie = (e, t) => {
|
|
3700
3702
|
const { formats: r } = Pe();
|
|
3701
3703
|
if (e in r && t in r[e])
|
|
3702
3704
|
return r[e][t];
|
|
3703
3705
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3704
|
-
},
|
|
3706
|
+
}, zn = Ke(
|
|
3705
3707
|
(e) => {
|
|
3706
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3708
|
+
var t = e, { locale: r, format: i } = t, n = $e(t, ["locale", "format"]);
|
|
3707
3709
|
if (r == null)
|
|
3708
3710
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3709
|
-
return i && (n =
|
|
3711
|
+
return i && (n = Ie("number", i)), new Intl.NumberFormat(r, n);
|
|
3710
3712
|
}
|
|
3711
|
-
),
|
|
3713
|
+
), Xn = Ke(
|
|
3712
3714
|
(e) => {
|
|
3713
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3715
|
+
var t = e, { locale: r, format: i } = t, n = $e(t, ["locale", "format"]);
|
|
3714
3716
|
if (r == null)
|
|
3715
3717
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3716
|
-
return i ? n =
|
|
3718
|
+
return i ? n = Ie("date", i) : Object.keys(n).length === 0 && (n = Ie("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3717
3719
|
}
|
|
3718
|
-
),
|
|
3720
|
+
), Wn = Ke(
|
|
3719
3721
|
(e) => {
|
|
3720
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3722
|
+
var t = e, { locale: r, format: i } = t, n = $e(t, ["locale", "format"]);
|
|
3721
3723
|
if (r == null)
|
|
3722
3724
|
throw new Error(
|
|
3723
3725
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3724
3726
|
);
|
|
3725
|
-
return i ? n =
|
|
3727
|
+
return i ? n = Ie("time", i) : Object.keys(n).length === 0 && (n = Ie("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3726
3728
|
}
|
|
3727
|
-
),
|
|
3729
|
+
), qn = (e = {}) => {
|
|
3728
3730
|
var t = e, {
|
|
3729
|
-
locale: r =
|
|
3730
|
-
} = t, i =
|
|
3731
|
+
locale: r = ce()
|
|
3732
|
+
} = t, i = $e(t, [
|
|
3731
3733
|
"locale"
|
|
3732
3734
|
]);
|
|
3733
|
-
return
|
|
3734
|
-
},
|
|
3735
|
+
return zn(St({ locale: r }, i));
|
|
3736
|
+
}, Yn = (e = {}) => {
|
|
3735
3737
|
var t = e, {
|
|
3736
|
-
locale: r =
|
|
3737
|
-
} = t, i =
|
|
3738
|
+
locale: r = ce()
|
|
3739
|
+
} = t, i = $e(t, [
|
|
3738
3740
|
"locale"
|
|
3739
3741
|
]);
|
|
3740
|
-
return
|
|
3741
|
-
},
|
|
3742
|
+
return Xn(St({ locale: r }, i));
|
|
3743
|
+
}, Zn = (e = {}) => {
|
|
3742
3744
|
var t = e, {
|
|
3743
|
-
locale: r =
|
|
3744
|
-
} = t, i =
|
|
3745
|
+
locale: r = ce()
|
|
3746
|
+
} = t, i = $e(t, [
|
|
3745
3747
|
"locale"
|
|
3746
3748
|
]);
|
|
3747
|
-
return
|
|
3748
|
-
},
|
|
3749
|
+
return Wn(St({ locale: r }, i));
|
|
3750
|
+
}, Jn = Ke(
|
|
3749
3751
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3750
|
-
(e, t =
|
|
3752
|
+
(e, t = ce()) => new Sr(e, t, Pe().formats, {
|
|
3751
3753
|
ignoreTag: Pe().ignoreTag
|
|
3752
3754
|
})
|
|
3753
|
-
),
|
|
3755
|
+
), Qn = (e, t = {}) => {
|
|
3754
3756
|
var r, i, n, s;
|
|
3755
3757
|
let a = t;
|
|
3756
3758
|
typeof e == "object" && (a = e, e = a.id);
|
|
3757
3759
|
const {
|
|
3758
3760
|
values: l,
|
|
3759
|
-
locale: o =
|
|
3761
|
+
locale: o = ce(),
|
|
3760
3762
|
default: u
|
|
3761
3763
|
} = a;
|
|
3762
3764
|
if (o == null)
|
|
3763
3765
|
throw new Error(
|
|
3764
3766
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3765
3767
|
);
|
|
3766
|
-
let h =
|
|
3768
|
+
let h = Tr(e, o);
|
|
3767
3769
|
if (!h)
|
|
3768
3770
|
h = (s = (n = (i = (r = Pe()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: o, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3769
3771
|
else if (typeof h != "string")
|
|
@@ -3774,7 +3776,7 @@ const Le = (e, t) => {
|
|
|
3774
3776
|
return h;
|
|
3775
3777
|
let c = h;
|
|
3776
3778
|
try {
|
|
3777
|
-
c =
|
|
3779
|
+
c = Jn(h, o).format(l);
|
|
3778
3780
|
} catch (p) {
|
|
3779
3781
|
p instanceof Error && console.warn(
|
|
3780
3782
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3782,20 +3784,20 @@ const Le = (e, t) => {
|
|
|
3782
3784
|
);
|
|
3783
3785
|
}
|
|
3784
3786
|
return c;
|
|
3785
|
-
},
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
function
|
|
3791
|
-
|
|
3792
|
-
}
|
|
3793
|
-
function
|
|
3794
|
-
|
|
3787
|
+
}, Kn = (e, t) => Zn(t).format(e), es = (e, t) => Yn(t).format(e), ts = (e, t) => qn(t).format(e), rs = (e, t = ce()) => Tr(e, t), is = Ae([ge, ke], () => Qn);
|
|
3788
|
+
Ae([ge], () => Kn);
|
|
3789
|
+
Ae([ge], () => es);
|
|
3790
|
+
Ae([ge], () => ts);
|
|
3791
|
+
Ae([ge, ke], () => rs);
|
|
3792
|
+
function qt(e, t) {
|
|
3793
|
+
Or(e, t);
|
|
3794
|
+
}
|
|
3795
|
+
function ns(e) {
|
|
3796
|
+
Ln({
|
|
3795
3797
|
fallbackLocale: "en"
|
|
3796
|
-
}),
|
|
3798
|
+
}), ge.set(e);
|
|
3797
3799
|
}
|
|
3798
|
-
const
|
|
3800
|
+
const Yt = {
|
|
3799
3801
|
en: {
|
|
3800
3802
|
"verification.video.how-to": "How to verify yourself",
|
|
3801
3803
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
@@ -3863,30 +3865,30 @@ if (typeof window != "undefined") {
|
|
|
3863
3865
|
}
|
|
3864
3866
|
};
|
|
3865
3867
|
};
|
|
3866
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3868
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-AN6f2AIj.js").then(({ default: t }) => {
|
|
3867
3869
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3868
3870
|
});
|
|
3869
3871
|
}
|
|
3870
|
-
let
|
|
3871
|
-
var
|
|
3872
|
+
let ss = Re(null);
|
|
3873
|
+
var Mr = { exports: {} };
|
|
3872
3874
|
(function(e, t) {
|
|
3873
3875
|
(function(r, i) {
|
|
3874
3876
|
e.exports = i();
|
|
3875
|
-
})(
|
|
3876
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", S = "date",
|
|
3877
|
+
})(or, function() {
|
|
3878
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", a = "second", l = "minute", o = "hour", u = "day", h = "week", c = "month", p = "quarter", x = "year", S = "date", v = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|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, R = { 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(_) {
|
|
3877
3879
|
var g = ["th", "st", "nd", "rd"], d = _ % 100;
|
|
3878
3880
|
return "[" + _ + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3879
|
-
} },
|
|
3880
|
-
var
|
|
3881
|
-
return !
|
|
3882
|
-
}, z = { s:
|
|
3883
|
-
var g = -_.utcOffset(), d = Math.abs(g),
|
|
3884
|
-
return (g <= 0 ? "+" : "-") +
|
|
3881
|
+
} }, $ = function(_, g, d) {
|
|
3882
|
+
var b = String(_);
|
|
3883
|
+
return !b || b.length >= g ? _ : "" + Array(g + 1 - b.length).join(d) + _;
|
|
3884
|
+
}, z = { s: $, z: function(_) {
|
|
3885
|
+
var g = -_.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), m = d % 60;
|
|
3886
|
+
return (g <= 0 ? "+" : "-") + $(b, 2, "0") + ":" + $(m, 2, "0");
|
|
3885
3887
|
}, m: function _(g, d) {
|
|
3886
3888
|
if (g.date() < d.date())
|
|
3887
3889
|
return -_(d, g);
|
|
3888
|
-
var
|
|
3889
|
-
return +(-(
|
|
3890
|
+
var b = 12 * (d.year() - g.year()) + (d.month() - g.month()), m = g.clone().add(b, c), E = d - m < 0, w = g.clone().add(b + (E ? -1 : 1), c);
|
|
3891
|
+
return +(-(b + (d - m) / (E ? m - w : w - m)) || 0);
|
|
3890
3892
|
}, a: function(_) {
|
|
3891
3893
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
3892
3894
|
}, p: function(_) {
|
|
@@ -3896,8 +3898,8 @@ var Br = { exports: {} };
|
|
|
3896
3898
|
} }, I = "en", k = {};
|
|
3897
3899
|
k[I] = R;
|
|
3898
3900
|
var W = "$isDayjsObject", Q = function(_) {
|
|
3899
|
-
return _ instanceof
|
|
3900
|
-
}, q = function _(g, d,
|
|
3901
|
+
return _ instanceof ve || !(!_ || !_[W]);
|
|
3902
|
+
}, q = function _(g, d, b) {
|
|
3901
3903
|
var m;
|
|
3902
3904
|
if (!g)
|
|
3903
3905
|
return I;
|
|
@@ -3908,38 +3910,38 @@ var Br = { exports: {} };
|
|
|
3908
3910
|
if (!m && w.length > 1)
|
|
3909
3911
|
return _(w[0]);
|
|
3910
3912
|
} else {
|
|
3911
|
-
var
|
|
3912
|
-
k[
|
|
3913
|
+
var B = g.name;
|
|
3914
|
+
k[B] = g, m = B;
|
|
3913
3915
|
}
|
|
3914
|
-
return !
|
|
3916
|
+
return !b && m && (I = m), m || !b && I;
|
|
3915
3917
|
}, A = function(_, g) {
|
|
3916
3918
|
if (Q(_))
|
|
3917
3919
|
return _.clone();
|
|
3918
3920
|
var d = typeof g == "object" ? g : {};
|
|
3919
|
-
return d.date = _, d.args = arguments, new
|
|
3920
|
-
},
|
|
3921
|
-
|
|
3921
|
+
return d.date = _, d.args = arguments, new ve(d);
|
|
3922
|
+
}, O = z;
|
|
3923
|
+
O.l = q, O.i = Q, O.w = function(_, g) {
|
|
3922
3924
|
return A(_, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3923
3925
|
};
|
|
3924
|
-
var
|
|
3926
|
+
var ve = function() {
|
|
3925
3927
|
function _(d) {
|
|
3926
3928
|
this.$L = q(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[W] = !0;
|
|
3927
3929
|
}
|
|
3928
3930
|
var g = _.prototype;
|
|
3929
3931
|
return g.parse = function(d) {
|
|
3930
|
-
this.$d = function(
|
|
3931
|
-
var m =
|
|
3932
|
+
this.$d = function(b) {
|
|
3933
|
+
var m = b.date, E = b.utc;
|
|
3932
3934
|
if (m === null)
|
|
3933
3935
|
return /* @__PURE__ */ new Date(NaN);
|
|
3934
|
-
if (
|
|
3936
|
+
if (O.u(m))
|
|
3935
3937
|
return /* @__PURE__ */ new Date();
|
|
3936
3938
|
if (m instanceof Date)
|
|
3937
3939
|
return new Date(m);
|
|
3938
3940
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3939
|
-
var w = m.match(
|
|
3941
|
+
var w = m.match(M);
|
|
3940
3942
|
if (w) {
|
|
3941
|
-
var
|
|
3942
|
-
return E ? new Date(Date.UTC(w[1],
|
|
3943
|
+
var B = w[2] - 1 || 0, C = (w[7] || "0").substring(0, 3);
|
|
3944
|
+
return E ? new Date(Date.UTC(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, C)) : new Date(w[1], B, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, C);
|
|
3943
3945
|
}
|
|
3944
3946
|
}
|
|
3945
3947
|
return new Date(m);
|
|
@@ -3948,143 +3950,143 @@ var Br = { exports: {} };
|
|
|
3948
3950
|
var d = this.$d;
|
|
3949
3951
|
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3950
3952
|
}, g.$utils = function() {
|
|
3951
|
-
return
|
|
3953
|
+
return O;
|
|
3952
3954
|
}, g.isValid = function() {
|
|
3953
|
-
return this.$d.toString() !==
|
|
3954
|
-
}, g.isSame = function(d,
|
|
3955
|
+
return this.$d.toString() !== v;
|
|
3956
|
+
}, g.isSame = function(d, b) {
|
|
3955
3957
|
var m = A(d);
|
|
3956
|
-
return this.startOf(
|
|
3957
|
-
}, g.isAfter = function(d,
|
|
3958
|
-
return A(d) < this.startOf(
|
|
3959
|
-
}, g.isBefore = function(d,
|
|
3960
|
-
return this.endOf(
|
|
3961
|
-
}, g.$g = function(d,
|
|
3962
|
-
return
|
|
3958
|
+
return this.startOf(b) <= m && m <= this.endOf(b);
|
|
3959
|
+
}, g.isAfter = function(d, b) {
|
|
3960
|
+
return A(d) < this.startOf(b);
|
|
3961
|
+
}, g.isBefore = function(d, b) {
|
|
3962
|
+
return this.endOf(b) < A(d);
|
|
3963
|
+
}, g.$g = function(d, b, m) {
|
|
3964
|
+
return O.u(d) ? this[b] : this.set(m, d);
|
|
3963
3965
|
}, g.unix = function() {
|
|
3964
3966
|
return Math.floor(this.valueOf() / 1e3);
|
|
3965
3967
|
}, g.valueOf = function() {
|
|
3966
3968
|
return this.$d.getTime();
|
|
3967
|
-
}, g.startOf = function(d,
|
|
3968
|
-
var m = this, E = !!
|
|
3969
|
-
var Y =
|
|
3969
|
+
}, g.startOf = function(d, b) {
|
|
3970
|
+
var m = this, E = !!O.u(b) || b, w = O.p(d), B = function(ae, G) {
|
|
3971
|
+
var Y = O.w(m.$u ? Date.UTC(m.$y, G, ae) : new Date(m.$y, G, ae), m);
|
|
3970
3972
|
return E ? Y : Y.endOf(u);
|
|
3971
|
-
},
|
|
3972
|
-
return
|
|
3973
|
-
}, N = this.$W, F = this.$M, X = this.$D,
|
|
3973
|
+
}, C = function(ae, G) {
|
|
3974
|
+
return O.w(m.toDate()[ae].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), m);
|
|
3975
|
+
}, N = this.$W, F = this.$M, X = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
|
3974
3976
|
switch (w) {
|
|
3975
3977
|
case x:
|
|
3976
|
-
return E ?
|
|
3978
|
+
return E ? B(1, 0) : B(31, 11);
|
|
3977
3979
|
case c:
|
|
3978
|
-
return E ?
|
|
3980
|
+
return E ? B(1, F) : B(0, F + 1);
|
|
3979
3981
|
case h:
|
|
3980
|
-
var
|
|
3981
|
-
return
|
|
3982
|
+
var oe = this.$locale().weekStart || 0, de = (N < oe ? N + 7 : N) - oe;
|
|
3983
|
+
return B(E ? X - de : X + (6 - de), F);
|
|
3982
3984
|
case u:
|
|
3983
3985
|
case S:
|
|
3984
|
-
return
|
|
3986
|
+
return C(se + "Hours", 0);
|
|
3985
3987
|
case o:
|
|
3986
|
-
return
|
|
3988
|
+
return C(se + "Minutes", 1);
|
|
3987
3989
|
case l:
|
|
3988
|
-
return
|
|
3990
|
+
return C(se + "Seconds", 2);
|
|
3989
3991
|
case a:
|
|
3990
|
-
return
|
|
3992
|
+
return C(se + "Milliseconds", 3);
|
|
3991
3993
|
default:
|
|
3992
3994
|
return this.clone();
|
|
3993
3995
|
}
|
|
3994
3996
|
}, g.endOf = function(d) {
|
|
3995
3997
|
return this.startOf(d, !1);
|
|
3996
|
-
}, g.$set = function(d,
|
|
3997
|
-
var m, E =
|
|
3998
|
+
}, g.$set = function(d, b) {
|
|
3999
|
+
var m, E = O.p(d), w = "set" + (this.$u ? "UTC" : ""), B = (m = {}, m[u] = w + "Date", m[S] = w + "Date", m[c] = w + "Month", m[x] = w + "FullYear", m[o] = w + "Hours", m[l] = w + "Minutes", m[a] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], C = E === u ? this.$D + (b - this.$W) : b;
|
|
3998
4000
|
if (E === c || E === x) {
|
|
3999
4001
|
var N = this.clone().set(S, 1);
|
|
4000
|
-
N.$d[
|
|
4002
|
+
N.$d[B](C), N.init(), this.$d = N.set(S, Math.min(this.$D, N.daysInMonth())).$d;
|
|
4001
4003
|
} else
|
|
4002
|
-
|
|
4004
|
+
B && this.$d[B](C);
|
|
4003
4005
|
return this.init(), this;
|
|
4004
|
-
}, g.set = function(d,
|
|
4005
|
-
return this.clone().$set(d,
|
|
4006
|
+
}, g.set = function(d, b) {
|
|
4007
|
+
return this.clone().$set(d, b);
|
|
4006
4008
|
}, g.get = function(d) {
|
|
4007
|
-
return this[
|
|
4008
|
-
}, g.add = function(d,
|
|
4009
|
+
return this[O.p(d)]();
|
|
4010
|
+
}, g.add = function(d, b) {
|
|
4009
4011
|
var m, E = this;
|
|
4010
4012
|
d = Number(d);
|
|
4011
|
-
var w =
|
|
4013
|
+
var w = O.p(b), B = function(F) {
|
|
4012
4014
|
var X = A(E);
|
|
4013
|
-
return
|
|
4015
|
+
return O.w(X.date(X.date() + Math.round(F * d)), E);
|
|
4014
4016
|
};
|
|
4015
4017
|
if (w === c)
|
|
4016
4018
|
return this.set(c, this.$M + d);
|
|
4017
4019
|
if (w === x)
|
|
4018
4020
|
return this.set(x, this.$y + d);
|
|
4019
4021
|
if (w === u)
|
|
4020
|
-
return
|
|
4022
|
+
return B(1);
|
|
4021
4023
|
if (w === h)
|
|
4022
|
-
return
|
|
4023
|
-
var
|
|
4024
|
-
return
|
|
4025
|
-
}, g.subtract = function(d,
|
|
4026
|
-
return this.add(-1 * d,
|
|
4024
|
+
return B(7);
|
|
4025
|
+
var C = (m = {}, m[l] = i, m[o] = n, m[a] = r, m)[w] || 1, N = this.$d.getTime() + d * C;
|
|
4026
|
+
return O.w(N, this);
|
|
4027
|
+
}, g.subtract = function(d, b) {
|
|
4028
|
+
return this.add(-1 * d, b);
|
|
4027
4029
|
}, g.format = function(d) {
|
|
4028
|
-
var
|
|
4030
|
+
var b = this, m = this.$locale();
|
|
4029
4031
|
if (!this.isValid())
|
|
4030
|
-
return m.invalidDate ||
|
|
4031
|
-
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
4032
|
-
return G && (G[Y] || G(
|
|
4033
|
-
},
|
|
4034
|
-
return
|
|
4035
|
-
},
|
|
4032
|
+
return m.invalidDate || v;
|
|
4033
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = O.z(this), B = this.$H, C = this.$m, N = this.$M, F = m.weekdays, X = m.months, se = m.meridiem, oe = function(G, Y, me, be) {
|
|
4034
|
+
return G && (G[Y] || G(b, E)) || me[Y].slice(0, be);
|
|
4035
|
+
}, de = function(G) {
|
|
4036
|
+
return O.s(B % 12 || 12, G, "0");
|
|
4037
|
+
}, ae = se || function(G, Y, me) {
|
|
4036
4038
|
var be = G < 12 ? "AM" : "PM";
|
|
4037
|
-
return
|
|
4039
|
+
return me ? be.toLowerCase() : be;
|
|
4038
4040
|
};
|
|
4039
4041
|
return E.replace(U, function(G, Y) {
|
|
4040
|
-
return Y || function(
|
|
4041
|
-
switch (
|
|
4042
|
+
return Y || function(me) {
|
|
4043
|
+
switch (me) {
|
|
4042
4044
|
case "YY":
|
|
4043
|
-
return String(
|
|
4045
|
+
return String(b.$y).slice(-2);
|
|
4044
4046
|
case "YYYY":
|
|
4045
|
-
return
|
|
4047
|
+
return O.s(b.$y, 4, "0");
|
|
4046
4048
|
case "M":
|
|
4047
4049
|
return N + 1;
|
|
4048
4050
|
case "MM":
|
|
4049
|
-
return
|
|
4051
|
+
return O.s(N + 1, 2, "0");
|
|
4050
4052
|
case "MMM":
|
|
4051
|
-
return
|
|
4053
|
+
return oe(m.monthsShort, N, X, 3);
|
|
4052
4054
|
case "MMMM":
|
|
4053
|
-
return
|
|
4055
|
+
return oe(X, N);
|
|
4054
4056
|
case "D":
|
|
4055
|
-
return
|
|
4057
|
+
return b.$D;
|
|
4056
4058
|
case "DD":
|
|
4057
|
-
return
|
|
4059
|
+
return O.s(b.$D, 2, "0");
|
|
4058
4060
|
case "d":
|
|
4059
|
-
return String(
|
|
4061
|
+
return String(b.$W);
|
|
4060
4062
|
case "dd":
|
|
4061
|
-
return
|
|
4063
|
+
return oe(m.weekdaysMin, b.$W, F, 2);
|
|
4062
4064
|
case "ddd":
|
|
4063
|
-
return
|
|
4065
|
+
return oe(m.weekdaysShort, b.$W, F, 3);
|
|
4064
4066
|
case "dddd":
|
|
4065
|
-
return F[
|
|
4067
|
+
return F[b.$W];
|
|
4066
4068
|
case "H":
|
|
4067
|
-
return String(
|
|
4069
|
+
return String(B);
|
|
4068
4070
|
case "HH":
|
|
4069
|
-
return
|
|
4071
|
+
return O.s(B, 2, "0");
|
|
4070
4072
|
case "h":
|
|
4071
|
-
return
|
|
4073
|
+
return de(1);
|
|
4072
4074
|
case "hh":
|
|
4073
|
-
return
|
|
4075
|
+
return de(2);
|
|
4074
4076
|
case "a":
|
|
4075
|
-
return
|
|
4077
|
+
return ae(B, C, !0);
|
|
4076
4078
|
case "A":
|
|
4077
|
-
return
|
|
4079
|
+
return ae(B, C, !1);
|
|
4078
4080
|
case "m":
|
|
4079
|
-
return String(
|
|
4081
|
+
return String(C);
|
|
4080
4082
|
case "mm":
|
|
4081
|
-
return
|
|
4083
|
+
return O.s(C, 2, "0");
|
|
4082
4084
|
case "s":
|
|
4083
|
-
return String(
|
|
4085
|
+
return String(b.$s);
|
|
4084
4086
|
case "ss":
|
|
4085
|
-
return
|
|
4087
|
+
return O.s(b.$s, 2, "0");
|
|
4086
4088
|
case "SSS":
|
|
4087
|
-
return
|
|
4089
|
+
return O.s(b.$ms, 3, "0");
|
|
4088
4090
|
case "Z":
|
|
4089
4091
|
return w;
|
|
4090
4092
|
}
|
|
@@ -4093,11 +4095,11 @@ var Br = { exports: {} };
|
|
|
4093
4095
|
});
|
|
4094
4096
|
}, g.utcOffset = function() {
|
|
4095
4097
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4096
|
-
}, g.diff = function(d,
|
|
4097
|
-
var E, w = this,
|
|
4098
|
-
return
|
|
4098
|
+
}, g.diff = function(d, b, m) {
|
|
4099
|
+
var E, w = this, B = O.p(b), C = A(d), N = (C.utcOffset() - this.utcOffset()) * i, F = this - C, X = function() {
|
|
4100
|
+
return O.m(w, C);
|
|
4099
4101
|
};
|
|
4100
|
-
switch (
|
|
4102
|
+
switch (B) {
|
|
4101
4103
|
case x:
|
|
4102
4104
|
E = X() / 12;
|
|
4103
4105
|
break;
|
|
@@ -4125,18 +4127,18 @@ var Br = { exports: {} };
|
|
|
4125
4127
|
default:
|
|
4126
4128
|
E = F;
|
|
4127
4129
|
}
|
|
4128
|
-
return m ? E :
|
|
4130
|
+
return m ? E : O.a(E);
|
|
4129
4131
|
}, g.daysInMonth = function() {
|
|
4130
4132
|
return this.endOf(c).$D;
|
|
4131
4133
|
}, g.$locale = function() {
|
|
4132
4134
|
return k[this.$L];
|
|
4133
|
-
}, g.locale = function(d,
|
|
4135
|
+
}, g.locale = function(d, b) {
|
|
4134
4136
|
if (!d)
|
|
4135
4137
|
return this.$L;
|
|
4136
|
-
var m = this.clone(), E = q(d,
|
|
4138
|
+
var m = this.clone(), E = q(d, b, !0);
|
|
4137
4139
|
return E && (m.$L = E), m;
|
|
4138
4140
|
}, g.clone = function() {
|
|
4139
|
-
return
|
|
4141
|
+
return O.w(this.$d, this);
|
|
4140
4142
|
}, g.toDate = function() {
|
|
4141
4143
|
return new Date(this.valueOf());
|
|
4142
4144
|
}, g.toJSON = function() {
|
|
@@ -4146,80 +4148,80 @@ var Br = { exports: {} };
|
|
|
4146
4148
|
}, g.toString = function() {
|
|
4147
4149
|
return this.$d.toUTCString();
|
|
4148
4150
|
}, _;
|
|
4149
|
-
}(),
|
|
4150
|
-
return A.prototype =
|
|
4151
|
-
|
|
4151
|
+
}(), Fe = ve.prototype;
|
|
4152
|
+
return A.prototype = Fe, [["$ms", s], ["$s", a], ["$m", l], ["$H", o], ["$W", u], ["$M", c], ["$y", x], ["$D", S]].forEach(function(_) {
|
|
4153
|
+
Fe[_[1]] = function(g) {
|
|
4152
4154
|
return this.$g(g, _[0], _[1]);
|
|
4153
4155
|
};
|
|
4154
4156
|
}), A.extend = function(_, g) {
|
|
4155
|
-
return _.$i || (_(g,
|
|
4157
|
+
return _.$i || (_(g, ve, A), _.$i = !0), A;
|
|
4156
4158
|
}, A.locale = q, A.isDayjs = Q, A.unix = function(_) {
|
|
4157
4159
|
return A(1e3 * _);
|
|
4158
4160
|
}, A.en = k[I], A.Ls = k, A.p = {}, A;
|
|
4159
4161
|
});
|
|
4160
|
-
})(
|
|
4161
|
-
var
|
|
4162
|
-
const
|
|
4163
|
-
var
|
|
4162
|
+
})(Mr);
|
|
4163
|
+
var os = Mr.exports;
|
|
4164
|
+
const Zt = /* @__PURE__ */ Et(os);
|
|
4165
|
+
var Cr = { exports: {} };
|
|
4164
4166
|
(function(e, t) {
|
|
4165
4167
|
(function(r, i) {
|
|
4166
4168
|
e.exports = i();
|
|
4167
|
-
})(
|
|
4169
|
+
})(or, function() {
|
|
4168
4170
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4169
4171
|
return function(s, a, l) {
|
|
4170
4172
|
var o = a.prototype;
|
|
4171
|
-
l.utc = function(
|
|
4172
|
-
var
|
|
4173
|
-
return new a(
|
|
4174
|
-
}, o.utc = function(
|
|
4175
|
-
var
|
|
4176
|
-
return
|
|
4173
|
+
l.utc = function(v) {
|
|
4174
|
+
var M = { date: v, utc: !0, args: arguments };
|
|
4175
|
+
return new a(M);
|
|
4176
|
+
}, o.utc = function(v) {
|
|
4177
|
+
var M = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4178
|
+
return v ? M.add(this.utcOffset(), r) : M;
|
|
4177
4179
|
}, o.local = function() {
|
|
4178
4180
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4179
4181
|
};
|
|
4180
4182
|
var u = o.parse;
|
|
4181
|
-
o.parse = function(
|
|
4182
|
-
|
|
4183
|
+
o.parse = function(v) {
|
|
4184
|
+
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), u.call(this, v);
|
|
4183
4185
|
};
|
|
4184
4186
|
var h = o.init;
|
|
4185
4187
|
o.init = function() {
|
|
4186
4188
|
if (this.$u) {
|
|
4187
|
-
var
|
|
4188
|
-
this.$y =
|
|
4189
|
+
var v = this.$d;
|
|
4190
|
+
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
4189
4191
|
} else
|
|
4190
4192
|
h.call(this);
|
|
4191
4193
|
};
|
|
4192
4194
|
var c = o.utcOffset;
|
|
4193
|
-
o.utcOffset = function(
|
|
4195
|
+
o.utcOffset = function(v, M) {
|
|
4194
4196
|
var U = this.$utils().u;
|
|
4195
|
-
if (U(
|
|
4197
|
+
if (U(v))
|
|
4196
4198
|
return this.$u ? 0 : U(this.$offset) ? c.call(this) : this.$offset;
|
|
4197
|
-
if (typeof
|
|
4199
|
+
if (typeof v == "string" && (v = function(I) {
|
|
4198
4200
|
I === void 0 && (I = "");
|
|
4199
4201
|
var k = I.match(i);
|
|
4200
4202
|
if (!k)
|
|
4201
4203
|
return null;
|
|
4202
4204
|
var W = ("" + k[0]).match(n) || ["-", 0, 0], Q = W[0], q = 60 * +W[1] + +W[2];
|
|
4203
4205
|
return q === 0 ? 0 : Q === "+" ? q : -q;
|
|
4204
|
-
}(
|
|
4206
|
+
}(v), v === null))
|
|
4205
4207
|
return this;
|
|
4206
|
-
var R = Math.abs(
|
|
4207
|
-
if (
|
|
4208
|
-
return
|
|
4209
|
-
if (
|
|
4208
|
+
var R = Math.abs(v) <= 16 ? 60 * v : v, $ = this;
|
|
4209
|
+
if (M)
|
|
4210
|
+
return $.$offset = R, $.$u = v === 0, $;
|
|
4211
|
+
if (v !== 0) {
|
|
4210
4212
|
var z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4211
|
-
(
|
|
4213
|
+
($ = this.local().add(R + z, r)).$offset = R, $.$x.$localOffset = z;
|
|
4212
4214
|
} else
|
|
4213
|
-
|
|
4214
|
-
return
|
|
4215
|
+
$ = this.utc();
|
|
4216
|
+
return $;
|
|
4215
4217
|
};
|
|
4216
4218
|
var p = o.format;
|
|
4217
|
-
o.format = function(
|
|
4218
|
-
var
|
|
4219
|
-
return p.call(this,
|
|
4219
|
+
o.format = function(v) {
|
|
4220
|
+
var M = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4221
|
+
return p.call(this, M);
|
|
4220
4222
|
}, o.valueOf = function() {
|
|
4221
|
-
var
|
|
4222
|
-
return this.$d.valueOf() - 6e4 *
|
|
4223
|
+
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4224
|
+
return this.$d.valueOf() - 6e4 * v;
|
|
4223
4225
|
}, o.isUTC = function() {
|
|
4224
4226
|
return !!this.$u;
|
|
4225
4227
|
}, o.toISOString = function() {
|
|
@@ -4228,60 +4230,60 @@ var Mr = { exports: {} };
|
|
|
4228
4230
|
return this.toDate().toUTCString();
|
|
4229
4231
|
};
|
|
4230
4232
|
var x = o.toDate;
|
|
4231
|
-
o.toDate = function(
|
|
4232
|
-
return
|
|
4233
|
+
o.toDate = function(v) {
|
|
4234
|
+
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : x.call(this);
|
|
4233
4235
|
};
|
|
4234
4236
|
var S = o.diff;
|
|
4235
|
-
o.diff = function(
|
|
4236
|
-
if (
|
|
4237
|
-
return S.call(this,
|
|
4238
|
-
var R = this.local(),
|
|
4239
|
-
return S.call(R,
|
|
4237
|
+
o.diff = function(v, M, U) {
|
|
4238
|
+
if (v && this.$u === v.$u)
|
|
4239
|
+
return S.call(this, v, M, U);
|
|
4240
|
+
var R = this.local(), $ = l(v).local();
|
|
4241
|
+
return S.call(R, $, M, U);
|
|
4240
4242
|
};
|
|
4241
4243
|
};
|
|
4242
4244
|
});
|
|
4243
|
-
})(
|
|
4244
|
-
var
|
|
4245
|
-
const
|
|
4246
|
-
function
|
|
4247
|
-
|
|
4245
|
+
})(Cr);
|
|
4246
|
+
var as = Cr.exports;
|
|
4247
|
+
const us = /* @__PURE__ */ Et(as);
|
|
4248
|
+
function ls(e) {
|
|
4249
|
+
Xr(e, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
4248
4250
|
}
|
|
4249
|
-
function
|
|
4251
|
+
function Jt(e, t, r) {
|
|
4250
4252
|
const i = e.slice();
|
|
4251
4253
|
return i[52] = t[r], i[54] = r, i;
|
|
4252
4254
|
}
|
|
4253
|
-
function
|
|
4254
|
-
let t, r, i, n, s =
|
|
4255
|
+
function Qt(e) {
|
|
4256
|
+
let t, r, i, n, s = Ct(
|
|
4255
4257
|
/*displayMessages*/
|
|
4256
4258
|
e[4]
|
|
4257
4259
|
), a = [];
|
|
4258
4260
|
for (let o = 0; o < s.length; o += 1)
|
|
4259
|
-
a[o] =
|
|
4261
|
+
a[o] = er(Jt(e, s, o));
|
|
4260
4262
|
let l = (
|
|
4261
4263
|
/*videoExists*/
|
|
4262
|
-
e[7] &&
|
|
4264
|
+
e[7] && tr(e)
|
|
4263
4265
|
);
|
|
4264
4266
|
return {
|
|
4265
4267
|
c() {
|
|
4266
4268
|
t = J("div");
|
|
4267
4269
|
for (let o = 0; o < a.length; o += 1)
|
|
4268
4270
|
a[o].c();
|
|
4269
|
-
r =
|
|
4271
|
+
r = Ee(), l && l.c(), i = Ee(), n = J("cashier-video-modal"), te(t, "class", "CashierVerificationsWrapper"), he(
|
|
4270
4272
|
n,
|
|
4271
4273
|
"clientstylingurl",
|
|
4272
4274
|
/*clientstylingurl*/
|
|
4273
4275
|
e[1]
|
|
4274
|
-
),
|
|
4276
|
+
), he(
|
|
4275
4277
|
n,
|
|
4276
4278
|
"clientstyling",
|
|
4277
4279
|
/*clientstyling*/
|
|
4278
4280
|
e[0]
|
|
4279
|
-
),
|
|
4281
|
+
), he(
|
|
4280
4282
|
n,
|
|
4281
4283
|
"ismobileview",
|
|
4282
4284
|
/*ismobileview*/
|
|
4283
4285
|
e[2]
|
|
4284
|
-
),
|
|
4286
|
+
), he(
|
|
4285
4287
|
n,
|
|
4286
4288
|
"videosrc",
|
|
4287
4289
|
/*videoSrc*/
|
|
@@ -4289,48 +4291,48 @@ function Jt(e) {
|
|
|
4289
4291
|
);
|
|
4290
4292
|
},
|
|
4291
4293
|
m(o, u) {
|
|
4292
|
-
|
|
4294
|
+
le(o, t, u);
|
|
4293
4295
|
for (let h = 0; h < a.length; h += 1)
|
|
4294
4296
|
a[h] && a[h].m(t, null);
|
|
4295
|
-
|
|
4297
|
+
le(o, r, u), l && l.m(o, u), le(o, i, u), le(o, n, u);
|
|
4296
4298
|
},
|
|
4297
4299
|
p(o, u) {
|
|
4298
4300
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4299
4301
|
1072) {
|
|
4300
|
-
s =
|
|
4302
|
+
s = Ct(
|
|
4301
4303
|
/*displayMessages*/
|
|
4302
4304
|
o[4]
|
|
4303
4305
|
);
|
|
4304
4306
|
let h;
|
|
4305
4307
|
for (h = 0; h < s.length; h += 1) {
|
|
4306
|
-
const c =
|
|
4307
|
-
a[h] ? a[h].p(c, u) : (a[h] =
|
|
4308
|
+
const c = Jt(o, s, h);
|
|
4309
|
+
a[h] ? a[h].p(c, u) : (a[h] = er(c), a[h].c(), a[h].m(t, null));
|
|
4308
4310
|
}
|
|
4309
4311
|
for (; h < a.length; h += 1)
|
|
4310
4312
|
a[h].d(1);
|
|
4311
4313
|
a.length = s.length;
|
|
4312
4314
|
}
|
|
4313
4315
|
/*videoExists*/
|
|
4314
|
-
o[7] ? l ? l.p(o, u) : (l =
|
|
4315
|
-
2 &&
|
|
4316
|
+
o[7] ? l ? l.p(o, u) : (l = tr(o), l.c(), l.m(i.parentNode, i)) : l && (l.d(1), l = null), u[0] & /*clientstylingurl*/
|
|
4317
|
+
2 && he(
|
|
4316
4318
|
n,
|
|
4317
4319
|
"clientstylingurl",
|
|
4318
4320
|
/*clientstylingurl*/
|
|
4319
4321
|
o[1]
|
|
4320
4322
|
), u[0] & /*clientstyling*/
|
|
4321
|
-
1 &&
|
|
4323
|
+
1 && he(
|
|
4322
4324
|
n,
|
|
4323
4325
|
"clientstyling",
|
|
4324
4326
|
/*clientstyling*/
|
|
4325
4327
|
o[0]
|
|
4326
4328
|
), u[0] & /*ismobileview*/
|
|
4327
|
-
4 &&
|
|
4329
|
+
4 && he(
|
|
4328
4330
|
n,
|
|
4329
4331
|
"ismobileview",
|
|
4330
4332
|
/*ismobileview*/
|
|
4331
4333
|
o[2]
|
|
4332
4334
|
), u[0] & /*videoSrc*/
|
|
4333
|
-
256 &&
|
|
4335
|
+
256 && he(
|
|
4334
4336
|
n,
|
|
4335
4337
|
"videosrc",
|
|
4336
4338
|
/*videoSrc*/
|
|
@@ -4338,11 +4340,11 @@ function Jt(e) {
|
|
|
4338
4340
|
);
|
|
4339
4341
|
},
|
|
4340
4342
|
d(o) {
|
|
4341
|
-
o && (
|
|
4343
|
+
o && (ne(t), ne(r), ne(i), ne(n)), Yr(a, o), l && l.d(o);
|
|
4342
4344
|
}
|
|
4343
4345
|
};
|
|
4344
4346
|
}
|
|
4345
|
-
function
|
|
4347
|
+
function Kt(e) {
|
|
4346
4348
|
let t, r, i;
|
|
4347
4349
|
function n(...s) {
|
|
4348
4350
|
return (
|
|
@@ -4359,24 +4361,24 @@ function Qt(e) {
|
|
|
4359
4361
|
t = J("span"), t.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', te(t, "class", "CashierVerificationChevron");
|
|
4360
4362
|
},
|
|
4361
4363
|
m(s, a) {
|
|
4362
|
-
|
|
4364
|
+
le(s, t, a), r || (i = _t(t, "click", n), r = !0);
|
|
4363
4365
|
},
|
|
4364
4366
|
p(s, a) {
|
|
4365
4367
|
e = s;
|
|
4366
4368
|
},
|
|
4367
4369
|
d(s) {
|
|
4368
|
-
s &&
|
|
4370
|
+
s && ne(t), r = !1, i();
|
|
4369
4371
|
}
|
|
4370
4372
|
};
|
|
4371
4373
|
}
|
|
4372
|
-
function
|
|
4374
|
+
function er(e) {
|
|
4373
4375
|
let t, r, i, n, s = (
|
|
4374
4376
|
/*message*/
|
|
4375
4377
|
e[52] + ""
|
|
4376
4378
|
), a, l, o, u, h = (
|
|
4377
4379
|
/*displayMessages*/
|
|
4378
4380
|
e[4].length > 1 && /*index*/
|
|
4379
|
-
e[54] === 0 &&
|
|
4381
|
+
e[54] === 0 && Kt(e)
|
|
4380
4382
|
);
|
|
4381
4383
|
function c(...p) {
|
|
4382
4384
|
return (
|
|
@@ -4390,7 +4392,7 @@ function Kt(e) {
|
|
|
4390
4392
|
}
|
|
4391
4393
|
return {
|
|
4392
4394
|
c() {
|
|
4393
|
-
t = J("div"), r = J("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i =
|
|
4395
|
+
t = J("div"), r = J("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', i = Ee(), n = J("p"), a = Ee(), h && h.c(), l = Ee(), te(r, "class", "IconVerification"), te(n, "class", "text"), te(t, "class", "CashierVerificationMessage"), Se(
|
|
4394
4396
|
t,
|
|
4395
4397
|
"ShowAll",
|
|
4396
4398
|
/*allVerificationsVisible*/
|
|
@@ -4398,15 +4400,15 @@ function Kt(e) {
|
|
|
4398
4400
|
);
|
|
4399
4401
|
},
|
|
4400
4402
|
m(p, x) {
|
|
4401
|
-
|
|
4403
|
+
le(p, t, x), re(t, r), re(t, i), re(t, n), n.innerHTML = s, re(t, a), h && h.m(t, null), re(t, l), o || (u = _t(t, "click", c), o = !0);
|
|
4402
4404
|
},
|
|
4403
4405
|
p(p, x) {
|
|
4404
4406
|
e = p, x[0] & /*displayMessages*/
|
|
4405
4407
|
16 && s !== (s = /*message*/
|
|
4406
4408
|
e[52] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4407
4409
|
e[4].length > 1 && /*index*/
|
|
4408
|
-
e[54] === 0 ? h ? h.p(e, x) : (h =
|
|
4409
|
-
32 &&
|
|
4410
|
+
e[54] === 0 ? h ? h.p(e, x) : (h = Kt(e), h.c(), h.m(t, l)) : h && (h.d(1), h = null), x[0] & /*allVerificationsVisible*/
|
|
4411
|
+
32 && Se(
|
|
4410
4412
|
t,
|
|
4411
4413
|
"ShowAll",
|
|
4412
4414
|
/*allVerificationsVisible*/
|
|
@@ -4414,18 +4416,18 @@ function Kt(e) {
|
|
|
4414
4416
|
);
|
|
4415
4417
|
},
|
|
4416
4418
|
d(p) {
|
|
4417
|
-
p &&
|
|
4419
|
+
p && ne(t), h && h.d(), o = !1, u();
|
|
4418
4420
|
}
|
|
4419
4421
|
};
|
|
4420
4422
|
}
|
|
4421
|
-
function
|
|
4423
|
+
function tr(e) {
|
|
4422
4424
|
let t, r, i, n, s = (
|
|
4423
4425
|
/*$_*/
|
|
4424
4426
|
e[9]("verification.video.how-to") + ""
|
|
4425
4427
|
), a, l, o;
|
|
4426
4428
|
return {
|
|
4427
4429
|
c() {
|
|
4428
|
-
t = J("div"), r = J("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i =
|
|
4430
|
+
t = J("div"), r = J("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', i = Ee(), n = J("div"), a = xt(s), te(r, "class", "IconVideo"), te(n, "class", "CashierVerificationVideoLink"), Se(
|
|
4429
4431
|
n,
|
|
4430
4432
|
"CashierVerificationVideoLinkDesktop",
|
|
4431
4433
|
/*desktopView*/
|
|
@@ -4433,7 +4435,7 @@ function er(e) {
|
|
|
4433
4435
|
), te(t, "class", "CashierVerificationVideo");
|
|
4434
4436
|
},
|
|
4435
4437
|
m(u, h) {
|
|
4436
|
-
|
|
4438
|
+
le(u, t, h), re(t, r), re(t, i), re(t, n), re(n, a), l || (o = _t(
|
|
4437
4439
|
n,
|
|
4438
4440
|
"click",
|
|
4439
4441
|
/*click_handler_2*/
|
|
@@ -4443,8 +4445,8 @@ function er(e) {
|
|
|
4443
4445
|
p(u, h) {
|
|
4444
4446
|
h[0] & /*$_*/
|
|
4445
4447
|
512 && s !== (s = /*$_*/
|
|
4446
|
-
u[9]("verification.video.how-to") + "") &&
|
|
4447
|
-
64 &&
|
|
4448
|
+
u[9]("verification.video.how-to") + "") && Jr(a, s), h[0] & /*desktopView*/
|
|
4449
|
+
64 && Se(
|
|
4448
4450
|
n,
|
|
4449
4451
|
"CashierVerificationVideoLinkDesktop",
|
|
4450
4452
|
/*desktopView*/
|
|
@@ -4452,18 +4454,18 @@ function er(e) {
|
|
|
4452
4454
|
);
|
|
4453
4455
|
},
|
|
4454
4456
|
d(u) {
|
|
4455
|
-
u &&
|
|
4457
|
+
u && ne(t), l = !1, o();
|
|
4456
4458
|
}
|
|
4457
4459
|
};
|
|
4458
4460
|
}
|
|
4459
|
-
function
|
|
4461
|
+
function hs(e) {
|
|
4460
4462
|
let t, r = (
|
|
4461
4463
|
/*displayMessages*/
|
|
4462
|
-
e[4] &&
|
|
4464
|
+
e[4] && Qt(e)
|
|
4463
4465
|
);
|
|
4464
4466
|
return {
|
|
4465
4467
|
c() {
|
|
4466
|
-
t = J("div"), r && r.c(), te(t, "class", "CashierVerifications"),
|
|
4468
|
+
t = J("div"), r && r.c(), te(t, "class", "CashierVerifications"), Se(
|
|
4467
4469
|
t,
|
|
4468
4470
|
"CashierVerificationsDesktop",
|
|
4469
4471
|
/*desktopView*/
|
|
@@ -4471,12 +4473,12 @@ function ls(e) {
|
|
|
4471
4473
|
);
|
|
4472
4474
|
},
|
|
4473
4475
|
m(i, n) {
|
|
4474
|
-
|
|
4476
|
+
le(i, t, n), r && r.m(t, null), e[22](t);
|
|
4475
4477
|
},
|
|
4476
4478
|
p(i, n) {
|
|
4477
4479
|
/*displayMessages*/
|
|
4478
|
-
i[4] ? r ? r.p(i, n) : (r =
|
|
4479
|
-
64 &&
|
|
4480
|
+
i[4] ? r ? r.p(i, n) : (r = Qt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4481
|
+
64 && Se(
|
|
4480
4482
|
t,
|
|
4481
4483
|
"CashierVerificationsDesktop",
|
|
4482
4484
|
/*desktopView*/
|
|
@@ -4486,15 +4488,15 @@ function ls(e) {
|
|
|
4486
4488
|
i: ee,
|
|
4487
4489
|
o: ee,
|
|
4488
4490
|
d(i) {
|
|
4489
|
-
i &&
|
|
4491
|
+
i && ne(t), r && r.d(), e[22](null);
|
|
4490
4492
|
}
|
|
4491
4493
|
};
|
|
4492
4494
|
}
|
|
4493
|
-
const
|
|
4494
|
-
function
|
|
4495
|
+
const fs = "verification_explanation_video_widgets.MP4";
|
|
4496
|
+
function cs(e, t, r) {
|
|
4495
4497
|
let i, n;
|
|
4496
|
-
|
|
4497
|
-
let { endpoint: s } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: x = "" } = t, S,
|
|
4498
|
+
Bt(e, is, (f) => r(9, i = f)), Bt(e, ss, (f) => r(28, n = f)), Zt.extend(us);
|
|
4499
|
+
let { endpoint: s } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: x = "" } = t, S, v = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set(), U, R, $, z = !0, I = !0, k = !1, W = "";
|
|
4498
4500
|
var Q;
|
|
4499
4501
|
(function(f) {
|
|
4500
4502
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
@@ -4507,30 +4509,30 @@ function fs(e, t, r) {
|
|
|
4507
4509
|
(function(f) {
|
|
4508
4510
|
f.Unknown = "Unknown", f.Unverified = "Unverified", f.InProgress = "InProgress", f.Failed = "Failed", f.Verified = "Verified", f.Referred = "Referred", f.True = "True", f.False = "False", f.AwaitingForResponse = "AwaitingForResponse";
|
|
4509
4511
|
})(A || (A = {}));
|
|
4510
|
-
var
|
|
4512
|
+
var O;
|
|
4511
4513
|
(function(f) {
|
|
4512
4514
|
f.Unknown = "Unknown", f.Documents = "Documents", f.Age = "Age", f.Pep = "Pep", f.Sanction = "Sanction", f.Aml = "Aml", f.ProofOfAddress = "ProofOfAddress", f.SourceOfWealth = "SourceOfWealth", f.SocialMedia = "SocialMedia", f.Biometric = "Biometric";
|
|
4513
|
-
})(
|
|
4514
|
-
const
|
|
4515
|
+
})(O || (O = {}));
|
|
4516
|
+
const ve = [
|
|
4515
4517
|
A.InProgress,
|
|
4516
4518
|
A.Referred,
|
|
4517
4519
|
A.AwaitingForResponse
|
|
4518
|
-
],
|
|
4520
|
+
], Fe = () => {
|
|
4519
4521
|
let f = l;
|
|
4520
4522
|
if (f)
|
|
4521
4523
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4522
4524
|
Object.keys(y).forEach((T) => {
|
|
4523
|
-
|
|
4525
|
+
qt(T, y[T]);
|
|
4524
4526
|
});
|
|
4525
4527
|
}).catch((y) => {
|
|
4526
4528
|
console.log(y);
|
|
4527
4529
|
});
|
|
4528
4530
|
};
|
|
4529
|
-
Object.keys(
|
|
4530
|
-
|
|
4531
|
+
Object.keys(Yt).forEach((f) => {
|
|
4532
|
+
qt(f, Yt[f]);
|
|
4531
4533
|
});
|
|
4532
4534
|
const _ = () => {
|
|
4533
|
-
|
|
4535
|
+
ns(a);
|
|
4534
4536
|
}, g = () => {
|
|
4535
4537
|
let f = document.createElement("style");
|
|
4536
4538
|
f.innerHTML = o, S.appendChild(f);
|
|
@@ -4544,22 +4546,22 @@ function fs(e, t, r) {
|
|
|
4544
4546
|
1
|
|
4545
4547
|
);
|
|
4546
4548
|
});
|
|
4547
|
-
},
|
|
4549
|
+
}, b = () => {
|
|
4548
4550
|
r(18, R = E());
|
|
4549
4551
|
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${a}`), y = new Headers();
|
|
4550
|
-
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${x}`), y.append("X-Client-Request-Timestamp",
|
|
4552
|
+
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${x}`), y.append("X-Client-Request-Timestamp", Zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4551
4553
|
const T = {
|
|
4552
4554
|
method: "POST",
|
|
4553
4555
|
headers: y,
|
|
4554
4556
|
body: JSON.stringify({})
|
|
4555
4557
|
};
|
|
4556
4558
|
fetch(f, T).then((V) => V.json()).then((V) => {
|
|
4557
|
-
U = w(V.Verifications), U.VerificationStatuses.forEach((
|
|
4558
|
-
|
|
4559
|
-
}), r(4,
|
|
4559
|
+
U = w(V.Verifications), U.VerificationStatuses.forEach((ue) => {
|
|
4560
|
+
ue.VerificationUrlType !== "Widget" && v.add(ue.Vendor);
|
|
4561
|
+
}), r(4, $ = se());
|
|
4560
4562
|
});
|
|
4561
4563
|
}, m = () => {
|
|
4562
|
-
n &&
|
|
4564
|
+
n && b();
|
|
4563
4565
|
}, E = () => {
|
|
4564
4566
|
let f = (h || n).split(".")[1];
|
|
4565
4567
|
if (f) {
|
|
@@ -4576,78 +4578,78 @@ function fs(e, t, r) {
|
|
|
4576
4578
|
};
|
|
4577
4579
|
const y = N(f);
|
|
4578
4580
|
if (y && y.length) {
|
|
4579
|
-
const V =
|
|
4581
|
+
const V = B(y);
|
|
4580
4582
|
return {
|
|
4581
4583
|
VerificationSummaryStatus: V.Status,
|
|
4582
4584
|
VerificationUrl: (T = V.Flags) == null ? void 0 : T.DeferredUrlKey,
|
|
4583
|
-
VerificationStatuses:
|
|
4585
|
+
VerificationStatuses: C(y, V.Status)
|
|
4584
4586
|
};
|
|
4585
4587
|
} else
|
|
4586
4588
|
return {
|
|
4587
|
-
VerificationSummaryStatus: f.some((
|
|
4588
|
-
VerificationStatuses:
|
|
4589
|
+
VerificationSummaryStatus: f.some((ue) => ue.Status === A.Failed) ? A.Failed : A.Verified,
|
|
4590
|
+
VerificationStatuses: C(f, [A.Failed])
|
|
4589
4591
|
};
|
|
4590
|
-
},
|
|
4592
|
+
}, B = (f) => f.reduce(
|
|
4591
4593
|
(y, T) => y ? new Date(y) < new Date(T) ? T : y : T,
|
|
4592
4594
|
0
|
|
4593
|
-
),
|
|
4594
|
-
var V,
|
|
4595
|
+
), C = (f, y) => f.filter((T) => y.includes(T.Status)).map((T) => {
|
|
4596
|
+
var V, ue;
|
|
4595
4597
|
return {
|
|
4596
4598
|
Type: T.Type,
|
|
4597
4599
|
Vendor: T.VendorName,
|
|
4598
4600
|
VerificationDocuments: T.Documents ? [...T.Documents] : [],
|
|
4599
4601
|
VerificationUrlType: (V = T.FlowInfo) == null ? void 0 : V.Type,
|
|
4600
|
-
VerificationUrl: (
|
|
4602
|
+
VerificationUrl: (ue = T.FlowInfo) == null ? void 0 : ue.Url
|
|
4601
4603
|
};
|
|
4602
|
-
}), N = (f) => f.filter((y) =>
|
|
4604
|
+
}), N = (f) => f.filter((y) => ve.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || F(y) || X(y) : !1), F = (f) => {
|
|
4603
4605
|
const y = f.Documents && f.VendorName === Q.Manual, T = f.Documents && f.Documents.some((V) => V.Status === q.Requested);
|
|
4604
4606
|
return y && T;
|
|
4605
|
-
}, X = (f) => f.VendorName === Q.ShuftiPro && f.Status === A.Referred,
|
|
4607
|
+
}, X = (f) => f.VendorName === Q.ShuftiPro && f.Status === A.Referred, se = () => {
|
|
4606
4608
|
switch (U.VerificationSummaryStatus) {
|
|
4607
4609
|
case A.InProgress:
|
|
4608
4610
|
const f = [];
|
|
4609
|
-
return
|
|
4610
|
-
f.push(
|
|
4611
|
+
return v.forEach((y) => {
|
|
4612
|
+
f.push(oe(y));
|
|
4611
4613
|
}), f;
|
|
4612
4614
|
case A.Referred:
|
|
4613
4615
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4614
4616
|
case A.Failed:
|
|
4615
4617
|
return [i("verification.message.failed")];
|
|
4616
4618
|
}
|
|
4617
|
-
},
|
|
4619
|
+
}, oe = (f) => {
|
|
4618
4620
|
const y = U.VerificationStatuses.filter((T) => T.Vendor === f);
|
|
4619
4621
|
if (f === Q.ShuftiPro)
|
|
4620
|
-
return
|
|
4622
|
+
return de(y);
|
|
4621
4623
|
{
|
|
4622
4624
|
const T = i("verification.idenfy.link-name"), V = {
|
|
4623
4625
|
link: `<a href="${y[0].VerificationUrl}" target="_blank">${T}</a>`
|
|
4624
4626
|
};
|
|
4625
4627
|
return i("verification.idenfy.in-progress", { values: V });
|
|
4626
4628
|
}
|
|
4627
|
-
},
|
|
4629
|
+
}, de = (f) => {
|
|
4628
4630
|
const y = [], T = {}, V = [
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4631
|
+
O.Biometric,
|
|
4632
|
+
O.Documents,
|
|
4633
|
+
O.ProofOfAddress
|
|
4632
4634
|
];
|
|
4633
|
-
f.forEach((
|
|
4634
|
-
V.includes(
|
|
4635
|
+
f.forEach((pe) => {
|
|
4636
|
+
V.includes(pe.Type) && (y.push(pe.Type), T[pe.Type] = ae(pe, G(pe.Type)));
|
|
4635
4637
|
});
|
|
4636
|
-
let
|
|
4637
|
-
return
|
|
4638
|
-
},
|
|
4638
|
+
let ue = y.every((pe) => M.has(pe)), kr = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4639
|
+
return ue ? i("verification.shuftipro.validations-started") : i(kr, { values: T });
|
|
4640
|
+
}, ae = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, G = (f) => i(`verification.shuftipro.link-name.${f}`), Y = (f, y) => {
|
|
4639
4641
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4640
4642
|
if (f.target.closest(".verificationLink")) {
|
|
4641
4643
|
const T = f.target.className.split(" ")[1];
|
|
4642
|
-
|
|
4644
|
+
M.add(T), r(4, $ = se());
|
|
4643
4645
|
}
|
|
4644
4646
|
return;
|
|
4645
4647
|
}
|
|
4646
4648
|
y === 0 && r(5, z = !z);
|
|
4647
|
-
},
|
|
4649
|
+
}, me = () => {
|
|
4648
4650
|
r(6, I = p === "false");
|
|
4649
4651
|
}, be = () => {
|
|
4650
|
-
r(8, W = R + "/" + a + "/" +
|
|
4652
|
+
r(8, W = R + "/" + a + "/" + fs);
|
|
4651
4653
|
try {
|
|
4652
4654
|
fetch(W, { method: "HEAD" }).then((f) => {
|
|
4653
4655
|
r(7, k = f.ok);
|
|
@@ -4655,11 +4657,11 @@ function fs(e, t, r) {
|
|
|
4655
4657
|
} catch (f) {
|
|
4656
4658
|
r(7, k = !1);
|
|
4657
4659
|
}
|
|
4658
|
-
},
|
|
4660
|
+
}, Tt = () => {
|
|
4659
4661
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4660
|
-
},
|
|
4661
|
-
function
|
|
4662
|
-
|
|
4662
|
+
}, Lr = (f, y) => Y(y, f), Ir = (f, y) => Y(y, f), Nr = () => Tt();
|
|
4663
|
+
function Rr(f) {
|
|
4664
|
+
ut[f ? "unshift" : "push"](() => {
|
|
4663
4665
|
S = f, r(3, S);
|
|
4664
4666
|
});
|
|
4665
4667
|
}
|
|
@@ -4668,26 +4670,26 @@ function fs(e, t, r) {
|
|
|
4668
4670
|
}, e.$$.update = () => {
|
|
4669
4671
|
e.$$.dirty[0] & /*lang*/
|
|
4670
4672
|
8192 && a && _(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4671
|
-
167936 && s && h && x &&
|
|
4673
|
+
167936 && s && h && x && b(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4672
4674
|
167936 && s && !h && x && m(), e.$$.dirty[0] & /*translationurl*/
|
|
4673
|
-
16384 && l &&
|
|
4675
|
+
16384 && l && Fe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4674
4676
|
9 && o && S && g(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4675
4677
|
10 && u && S && d(), e.$$.dirty[0] & /*ismobileview*/
|
|
4676
|
-
4 && p &&
|
|
4678
|
+
4 && p && me(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4677
4679
|
262144 && R && be();
|
|
4678
4680
|
}, [
|
|
4679
4681
|
o,
|
|
4680
4682
|
u,
|
|
4681
4683
|
p,
|
|
4682
4684
|
S,
|
|
4683
|
-
|
|
4685
|
+
$,
|
|
4684
4686
|
z,
|
|
4685
4687
|
I,
|
|
4686
4688
|
k,
|
|
4687
4689
|
W,
|
|
4688
4690
|
i,
|
|
4689
4691
|
Y,
|
|
4690
|
-
|
|
4692
|
+
Tt,
|
|
4691
4693
|
s,
|
|
4692
4694
|
a,
|
|
4693
4695
|
l,
|
|
@@ -4695,20 +4697,20 @@ function fs(e, t, r) {
|
|
|
4695
4697
|
c,
|
|
4696
4698
|
x,
|
|
4697
4699
|
R,
|
|
4698
|
-
Dr,
|
|
4699
4700
|
Lr,
|
|
4700
4701
|
Ir,
|
|
4701
|
-
Nr
|
|
4702
|
+
Nr,
|
|
4703
|
+
Rr
|
|
4702
4704
|
];
|
|
4703
4705
|
}
|
|
4704
|
-
class
|
|
4706
|
+
class Dr extends fi {
|
|
4705
4707
|
constructor(t) {
|
|
4706
|
-
super(),
|
|
4708
|
+
super(), li(
|
|
4707
4709
|
this,
|
|
4708
4710
|
t,
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4711
|
+
cs,
|
|
4712
|
+
hs,
|
|
4713
|
+
ir,
|
|
4712
4714
|
{
|
|
4713
4715
|
endpoint: 12,
|
|
4714
4716
|
lang: 13,
|
|
@@ -4720,7 +4722,7 @@ class Cr extends hi {
|
|
|
4720
4722
|
ismobileview: 2,
|
|
4721
4723
|
playersession: 17
|
|
4722
4724
|
},
|
|
4723
|
-
|
|
4725
|
+
ls,
|
|
4724
4726
|
[-1, -1]
|
|
4725
4727
|
);
|
|
4726
4728
|
}
|
|
@@ -4779,31 +4781,31 @@ class Cr extends hi {
|
|
|
4779
4781
|
this.$$set({ playersession: t }), K();
|
|
4780
4782
|
}
|
|
4781
4783
|
}
|
|
4782
|
-
|
|
4784
|
+
hi(Dr, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
4783
4785
|
const bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4784
4786
|
__proto__: null,
|
|
4785
|
-
default:
|
|
4787
|
+
default: Dr
|
|
4786
4788
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4787
4789
|
export {
|
|
4788
4790
|
bs as C,
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4791
|
+
fi as S,
|
|
4792
|
+
Xr as a,
|
|
4793
|
+
le as b,
|
|
4794
|
+
ms as c,
|
|
4795
|
+
ne as d,
|
|
4796
|
+
gs as e,
|
|
4795
4797
|
K as f,
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4798
|
+
te as g,
|
|
4799
|
+
re as h,
|
|
4800
|
+
li as i,
|
|
4801
|
+
J as j,
|
|
4802
|
+
Ee as k,
|
|
4803
|
+
ut as l,
|
|
4804
|
+
_t as m,
|
|
4803
4805
|
ee as n,
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4806
|
+
vs as o,
|
|
4807
|
+
ps as p,
|
|
4808
|
+
hi as q,
|
|
4809
|
+
ir as s,
|
|
4810
|
+
Se as t
|
|
4809
4811
|
};
|