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