@everymatrix/cashier-verifications 1.74.0 → 1.74.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierVerifications-CNVgxinr.js → CashierVerifications-DcwRBRJJ.js} +756 -724
- package/components/CashierVerifications-NK1qxaYe.cjs +18 -0
- package/components/{CashierVerifications-BAf8u9ns.js → CashierVerifications-b9si2iM4.js} +830 -798
- package/components/CashierVideoModal-CHv6Z0oF.js +670 -0
- package/components/CashierVideoModal-CVLG3P4a.js +670 -0
- package/components/CashierVideoModal-Cn4oBCSn.cjs +3 -0
- 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-CxzuhF7y.cjs +0 -5
- package/components/CashierVideoModal-Bix664Mn.cjs +0 -16
- package/components/CashierVideoModal-CdjPH9oY.js +0 -719
- package/components/CashierVideoModal-Dna7BzOD.js +0 -719
|
@@ -6,18 +6,18 @@ function Zt(e) {
|
|
|
6
6
|
function Tt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Le(e) {
|
|
10
10
|
e.forEach(Zt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function gt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Jt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
let
|
|
19
|
-
function
|
|
20
|
-
return e === t ? !0 : (
|
|
18
|
+
let Ue;
|
|
19
|
+
function as(e, t) {
|
|
20
|
+
return e === t ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = t, e === Ue.href);
|
|
21
21
|
}
|
|
22
22
|
function Cr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
@@ -61,7 +61,7 @@ function Ir(e, t) {
|
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function se(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
67
|
function K(e) {
|
|
@@ -74,19 +74,19 @@ function Nr(e, t) {
|
|
|
74
74
|
function q(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function us(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function vt(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function _e() {
|
|
84
|
+
return vt(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function ls() {
|
|
87
|
+
return vt("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function bt(e, t, r, i) {
|
|
90
90
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
91
91
|
}
|
|
92
92
|
function te(e, t, r) {
|
|
@@ -103,7 +103,7 @@ function kr(e, t) {
|
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ee(e, t, r) {
|
|
107
107
|
e.classList.toggle(t, !!r);
|
|
108
108
|
}
|
|
109
109
|
function Ur(e) {
|
|
@@ -115,90 +115,90 @@ function Ur(e) {
|
|
|
115
115
|
}
|
|
116
116
|
), t;
|
|
117
117
|
}
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
let Me;
|
|
119
|
+
function $e(e) {
|
|
120
|
+
Me = e;
|
|
121
121
|
}
|
|
122
122
|
function Fr() {
|
|
123
|
-
if (!
|
|
123
|
+
if (!Me)
|
|
124
124
|
throw new Error("Function called outside component initialization");
|
|
125
|
-
return
|
|
125
|
+
return Me;
|
|
126
126
|
}
|
|
127
127
|
function Vr(e) {
|
|
128
128
|
Fr().$$.on_mount.push(e);
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
let
|
|
132
|
-
const
|
|
133
|
-
let
|
|
130
|
+
const ye = [], st = [];
|
|
131
|
+
let xe = [];
|
|
132
|
+
const Pt = [], Gr = /* @__PURE__ */ Promise.resolve();
|
|
133
|
+
let ot = !1;
|
|
134
134
|
function jr() {
|
|
135
|
-
|
|
135
|
+
ot || (ot = !0, Gr.then(Z));
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function at(e) {
|
|
138
|
+
xe.push(e);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
141
|
-
let
|
|
140
|
+
const Qe = /* @__PURE__ */ new Set();
|
|
141
|
+
let ve = 0;
|
|
142
142
|
function Z() {
|
|
143
|
-
if (
|
|
143
|
+
if (ve !== 0)
|
|
144
144
|
return;
|
|
145
|
-
const e =
|
|
145
|
+
const e = Me;
|
|
146
146
|
do {
|
|
147
147
|
try {
|
|
148
|
-
for (;
|
|
149
|
-
const t =
|
|
150
|
-
|
|
148
|
+
for (; ve < ye.length; ) {
|
|
149
|
+
const t = ye[ve];
|
|
150
|
+
ve++, $e(t), zr(t.$$);
|
|
151
151
|
}
|
|
152
152
|
} catch (t) {
|
|
153
|
-
throw
|
|
153
|
+
throw ye.length = 0, ve = 0, t;
|
|
154
154
|
}
|
|
155
|
-
for (
|
|
156
|
-
|
|
157
|
-
for (let t = 0; t <
|
|
158
|
-
const r =
|
|
159
|
-
|
|
155
|
+
for ($e(null), ye.length = 0, ve = 0; st.length; )
|
|
156
|
+
st.pop()();
|
|
157
|
+
for (let t = 0; t < xe.length; t += 1) {
|
|
158
|
+
const r = xe[t];
|
|
159
|
+
Qe.has(r) || (Qe.add(r), r());
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
} while (
|
|
163
|
-
for (;
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
xe.length = 0;
|
|
162
|
+
} while (ye.length);
|
|
163
|
+
for (; Pt.length; )
|
|
164
|
+
Pt.pop()();
|
|
165
|
+
ot = !1, Qe.clear(), $e(e);
|
|
166
166
|
}
|
|
167
167
|
function zr(e) {
|
|
168
168
|
if (e.fragment !== null) {
|
|
169
|
-
e.update(),
|
|
169
|
+
e.update(), Le(e.before_update);
|
|
170
170
|
const t = e.dirty;
|
|
171
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
171
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
function Xr(e) {
|
|
175
175
|
const t = [], r = [];
|
|
176
|
-
|
|
176
|
+
xe.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), xe = t;
|
|
177
177
|
}
|
|
178
178
|
const Wr = /* @__PURE__ */ new Set();
|
|
179
179
|
function qr(e, t) {
|
|
180
180
|
e && e.i && (Wr.delete(e), e.i(t));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function At(e) {
|
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
184
|
}
|
|
185
185
|
function Yr(e, t, r) {
|
|
186
186
|
const { fragment: i, after_update: n } = e.$$;
|
|
187
|
-
i && i.m(t, r),
|
|
188
|
-
const s = e.$$.on_mount.map(Zt).filter(
|
|
189
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
190
|
-
}), n.forEach(
|
|
187
|
+
i && i.m(t, r), at(() => {
|
|
188
|
+
const s = e.$$.on_mount.map(Zt).filter(gt);
|
|
189
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Le(s), e.$$.on_mount = [];
|
|
190
|
+
}), n.forEach(at);
|
|
191
191
|
}
|
|
192
192
|
function Zr(e, t) {
|
|
193
193
|
const r = e.$$;
|
|
194
|
-
r.fragment !== null && (Xr(r.after_update),
|
|
194
|
+
r.fragment !== null && (Xr(r.after_update), Le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
195
195
|
}
|
|
196
196
|
function Jr(e, t) {
|
|
197
|
-
e.$$.dirty[0] === -1 && (
|
|
197
|
+
e.$$.dirty[0] === -1 && (ye.push(e), jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
198
198
|
}
|
|
199
|
-
function Qr(e, t, r, i, n, s,
|
|
200
|
-
const
|
|
201
|
-
|
|
199
|
+
function Qr(e, t, r, i, n, s, o = null, u = [-1]) {
|
|
200
|
+
const a = Me;
|
|
201
|
+
$e(e);
|
|
202
202
|
const l = e.$$ = {
|
|
203
203
|
fragment: null,
|
|
204
204
|
ctx: [],
|
|
@@ -213,19 +213,19 @@ function Qr(e, t, r, i, n, s, a = null, u = [-1]) {
|
|
|
213
213
|
on_disconnect: [],
|
|
214
214
|
before_update: [],
|
|
215
215
|
after_update: [],
|
|
216
|
-
context: new Map(t.context || (
|
|
216
|
+
context: new Map(t.context || (a ? a.$$.context : [])),
|
|
217
217
|
// everything else
|
|
218
218
|
callbacks: Tt(),
|
|
219
219
|
dirty: u,
|
|
220
220
|
skip_bound: !1,
|
|
221
|
-
root: t.target ||
|
|
221
|
+
root: t.target || a.$$.root
|
|
222
222
|
};
|
|
223
|
-
|
|
223
|
+
o && o(l.root);
|
|
224
224
|
let h = !1;
|
|
225
225
|
if (l.ctx = r ? r(e, t.props || {}, (c, p, ..._) => {
|
|
226
226
|
const S = _.length ? _[0] : p;
|
|
227
227
|
return l.ctx && n(l.ctx[c], l.ctx[c] = S) && (!l.skip_bound && l.bound[c] && l.bound[c](S), h && Jr(e, c)), p;
|
|
228
|
-
}) : [], l.update(), h = !0,
|
|
228
|
+
}) : [], l.update(), h = !0, Le(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
|
|
229
229
|
if (t.hydrate) {
|
|
230
230
|
const c = Rr(t.target);
|
|
231
231
|
l.fragment && l.fragment.l(c), c.forEach(K);
|
|
@@ -233,7 +233,7 @@ function Qr(e, t, r, i, n, s, a = null, u = [-1]) {
|
|
|
233
233
|
l.fragment && l.fragment.c();
|
|
234
234
|
t.intro && qr(e.$$.fragment), Yr(e, t.target, t.anchor), Z();
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
$e(a);
|
|
237
237
|
}
|
|
238
238
|
let Kt;
|
|
239
239
|
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
@@ -284,11 +284,11 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
284
284
|
* @param {HTMLElement} target
|
|
285
285
|
* @param {HTMLElement} [anchor]
|
|
286
286
|
*/
|
|
287
|
-
m: function(
|
|
288
|
-
|
|
287
|
+
m: function(a, l) {
|
|
288
|
+
se(a, s, l);
|
|
289
289
|
},
|
|
290
|
-
d: function(
|
|
291
|
-
|
|
290
|
+
d: function(a) {
|
|
291
|
+
a && K(s);
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
};
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
300
300
|
n in r && (t[n] = [e(n)]);
|
|
301
301
|
for (const n of this.attributes) {
|
|
302
302
|
const s = this.$$g_p(n.name);
|
|
303
|
-
s in this.$$d || (this.$$d[s] =
|
|
303
|
+
s in this.$$d || (this.$$d[s] = Ve(s, n.value, this.$$p_d, "toProp"));
|
|
304
304
|
}
|
|
305
305
|
for (const n in this.$$p_d)
|
|
306
306
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
@@ -318,7 +318,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
318
318
|
this.$$r = !0;
|
|
319
319
|
for (const n in this.$$p_d)
|
|
320
320
|
if (this.$$d[n] = this.$$c.$$.ctx[this.$$c.$$.props[n]], this.$$p_d[n].reflect) {
|
|
321
|
-
const s =
|
|
321
|
+
const s = Ve(
|
|
322
322
|
n,
|
|
323
323
|
this.$$d[n],
|
|
324
324
|
this.$$p_d,
|
|
@@ -331,8 +331,8 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
331
331
|
this.$$c.$$.after_update.push(i), i();
|
|
332
332
|
for (const n in this.$$l)
|
|
333
333
|
for (const s of this.$$l[n]) {
|
|
334
|
-
const
|
|
335
|
-
this.$$l_u.set(s,
|
|
334
|
+
const o = this.$$c.$on(n, s);
|
|
335
|
+
this.$$l_u.set(s, o);
|
|
336
336
|
}
|
|
337
337
|
this.$$l = {};
|
|
338
338
|
}
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
340
340
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
341
341
|
// and setting attributes through setAttribute etc, this is helpful
|
|
342
342
|
attributeChangedCallback(e, t, r) {
|
|
343
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
343
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
344
344
|
}
|
|
345
345
|
disconnectedCallback() {
|
|
346
346
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -353,7 +353,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
353
353
|
) || e;
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
function
|
|
356
|
+
function Ve(e, t, r, i) {
|
|
357
357
|
const n = r[e]?.type;
|
|
358
358
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
359
359
|
return t;
|
|
@@ -383,7 +383,7 @@ function Ge(e, t, r, i) {
|
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
function Kr(e, t, r, i, n, s) {
|
|
386
|
-
let
|
|
386
|
+
let o = class extends Kt {
|
|
387
387
|
constructor() {
|
|
388
388
|
super(e, r, n), this.$$p_d = t;
|
|
389
389
|
}
|
|
@@ -394,22 +394,22 @@ function Kr(e, t, r, i, n, s) {
|
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
396
|
return Object.keys(t).forEach((u) => {
|
|
397
|
-
Object.defineProperty(
|
|
397
|
+
Object.defineProperty(o.prototype, u, {
|
|
398
398
|
get() {
|
|
399
399
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
400
400
|
},
|
|
401
|
-
set(
|
|
402
|
-
|
|
401
|
+
set(a) {
|
|
402
|
+
a = Ve(u, a, t), this.$$d[u] = a, this.$$c?.$set({ [u]: a });
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
}), i.forEach((u) => {
|
|
406
|
-
Object.defineProperty(
|
|
406
|
+
Object.defineProperty(o.prototype, u, {
|
|
407
407
|
get() {
|
|
408
408
|
return this.$$c?.[u];
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}), e.element = /** @type {any} */
|
|
412
|
-
|
|
412
|
+
o, o;
|
|
413
413
|
}
|
|
414
414
|
class ei {
|
|
415
415
|
/**
|
|
@@ -439,7 +439,7 @@ class ei {
|
|
|
439
439
|
* @returns {() => void}
|
|
440
440
|
*/
|
|
441
441
|
$on(t, r) {
|
|
442
|
-
if (!
|
|
442
|
+
if (!gt(r))
|
|
443
443
|
return ee;
|
|
444
444
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
445
445
|
return i.push(r), () => {
|
|
@@ -457,71 +457,71 @@ class ei {
|
|
|
457
457
|
}
|
|
458
458
|
const ti = "4";
|
|
459
459
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ti);
|
|
460
|
-
const
|
|
460
|
+
const be = [];
|
|
461
461
|
function ri(e, t) {
|
|
462
462
|
return {
|
|
463
|
-
subscribe:
|
|
463
|
+
subscribe: Ie(e, t).subscribe
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Ie(e, t = ee) {
|
|
467
467
|
let r;
|
|
468
468
|
const i = /* @__PURE__ */ new Set();
|
|
469
469
|
function n(u) {
|
|
470
470
|
if (Jt(e, u) && (e = u, r)) {
|
|
471
|
-
const
|
|
471
|
+
const a = !be.length;
|
|
472
472
|
for (const l of i)
|
|
473
|
-
l[1](),
|
|
474
|
-
if (
|
|
475
|
-
for (let l = 0; l <
|
|
476
|
-
|
|
477
|
-
|
|
473
|
+
l[1](), be.push(l, e);
|
|
474
|
+
if (a) {
|
|
475
|
+
for (let l = 0; l < be.length; l += 2)
|
|
476
|
+
be[l][0](be[l + 1]);
|
|
477
|
+
be.length = 0;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
function s(u) {
|
|
482
482
|
n(u(e));
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
const l = [u,
|
|
484
|
+
function o(u, a = ee) {
|
|
485
|
+
const l = [u, a];
|
|
486
486
|
return i.add(l), i.size === 1 && (r = t(n, s) || ee), u(e), () => {
|
|
487
487
|
i.delete(l), i.size === 0 && r && (r(), r = null);
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
return { set: n, update: s, subscribe:
|
|
490
|
+
return { set: n, update: s, subscribe: o };
|
|
491
491
|
}
|
|
492
492
|
function Pe(e, t, r) {
|
|
493
493
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
494
494
|
if (!n.every(Boolean))
|
|
495
495
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
496
496
|
const s = t.length < 2;
|
|
497
|
-
return ri(r, (
|
|
498
|
-
let
|
|
497
|
+
return ri(r, (o, u) => {
|
|
498
|
+
let a = !1;
|
|
499
499
|
const l = [];
|
|
500
500
|
let h = 0, c = ee;
|
|
501
501
|
const p = () => {
|
|
502
502
|
if (h)
|
|
503
503
|
return;
|
|
504
504
|
c();
|
|
505
|
-
const S = t(i ? l[0] : l,
|
|
506
|
-
s ?
|
|
505
|
+
const S = t(i ? l[0] : l, o, u);
|
|
506
|
+
s ? o(S) : c = gt(S) ? S : ee;
|
|
507
507
|
}, _ = n.map(
|
|
508
508
|
(S, v) => Qt(
|
|
509
509
|
S,
|
|
510
|
-
(
|
|
511
|
-
l[v] =
|
|
510
|
+
(M) => {
|
|
511
|
+
l[v] = M, h &= ~(1 << v), a && p();
|
|
512
512
|
},
|
|
513
513
|
() => {
|
|
514
514
|
h |= 1 << v;
|
|
515
515
|
}
|
|
516
516
|
)
|
|
517
517
|
);
|
|
518
|
-
return
|
|
519
|
-
|
|
518
|
+
return a = !0, p(), function() {
|
|
519
|
+
Le(_), c(), a = !1;
|
|
520
520
|
};
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
var er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
524
|
-
function
|
|
524
|
+
function yt(e) {
|
|
525
525
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
526
526
|
}
|
|
527
527
|
var ii = function(t) {
|
|
@@ -541,26 +541,26 @@ function ui(e) {
|
|
|
541
541
|
function li(e) {
|
|
542
542
|
return Array.isArray(e) ? [] : {};
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
544
|
+
function Ce(e, t) {
|
|
545
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? we(li(e), e, t) : e;
|
|
546
546
|
}
|
|
547
547
|
function hi(e, t, r) {
|
|
548
548
|
return e.concat(t).map(function(i) {
|
|
549
|
-
return
|
|
549
|
+
return Ce(i, r);
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
function fi(e, t) {
|
|
553
553
|
if (!t.customMerge)
|
|
554
|
-
return
|
|
554
|
+
return we;
|
|
555
555
|
var r = t.customMerge(e);
|
|
556
|
-
return typeof r == "function" ? r :
|
|
556
|
+
return typeof r == "function" ? r : we;
|
|
557
557
|
}
|
|
558
558
|
function ci(e) {
|
|
559
559
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
560
560
|
return Object.propertyIsEnumerable.call(e, t);
|
|
561
561
|
}) : [];
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Ot(e) {
|
|
564
564
|
return Object.keys(e).concat(ci(e));
|
|
565
565
|
}
|
|
566
566
|
function tr(e, t) {
|
|
@@ -575,52 +575,66 @@ function di(e, t) {
|
|
|
575
575
|
}
|
|
576
576
|
function mi(e, t, r) {
|
|
577
577
|
var i = {};
|
|
578
|
-
return r.isMergeableObject(e) &&
|
|
579
|
-
i[n] =
|
|
580
|
-
}),
|
|
581
|
-
di(e, n) || (tr(e, n) && r.isMergeableObject(t[n]) ? i[n] = fi(n, r)(e[n], t[n], r) : i[n] =
|
|
578
|
+
return r.isMergeableObject(e) && Ot(e).forEach(function(n) {
|
|
579
|
+
i[n] = Ce(e[n], r);
|
|
580
|
+
}), Ot(t).forEach(function(n) {
|
|
581
|
+
di(e, n) || (tr(e, n) && r.isMergeableObject(t[n]) ? i[n] = fi(n, r)(e[n], t[n], r) : i[n] = Ce(t[n], r));
|
|
582
582
|
}), i;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || hi, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified =
|
|
584
|
+
function we(e, t, r) {
|
|
585
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || hi, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified = Ce;
|
|
586
586
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
587
|
-
return s ? i ? r.arrayMerge(e, t, r) : mi(e, t, r) :
|
|
587
|
+
return s ? i ? r.arrayMerge(e, t, r) : mi(e, t, r) : Ce(t, r);
|
|
588
588
|
}
|
|
589
|
-
|
|
589
|
+
we.all = function(t, r) {
|
|
590
590
|
if (!Array.isArray(t))
|
|
591
591
|
throw new Error("first argument should be an array");
|
|
592
592
|
return t.reduce(function(i, n) {
|
|
593
|
-
return
|
|
593
|
+
return we(i, n, r);
|
|
594
594
|
}, {});
|
|
595
595
|
};
|
|
596
|
-
var pi =
|
|
597
|
-
const vi = /* @__PURE__ */
|
|
598
|
-
|
|
599
|
-
|
|
596
|
+
var pi = we, gi = pi;
|
|
597
|
+
const vi = /* @__PURE__ */ yt(gi);
|
|
598
|
+
/*! *****************************************************************************
|
|
599
|
+
Copyright (c) Microsoft Corporation.
|
|
600
|
+
|
|
601
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
602
|
+
purpose with or without fee is hereby granted.
|
|
603
|
+
|
|
604
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
605
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
606
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
607
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
608
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
609
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
610
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
611
|
+
***************************************************************************** */
|
|
612
|
+
var ut = function(e, t) {
|
|
613
|
+
return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
600
614
|
r.__proto__ = i;
|
|
601
615
|
} || function(r, i) {
|
|
602
616
|
for (var n in i)
|
|
603
617
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
604
|
-
},
|
|
618
|
+
}, ut(e, t);
|
|
605
619
|
};
|
|
606
|
-
function
|
|
620
|
+
function qe(e, t) {
|
|
607
621
|
if (typeof t != "function" && t !== null)
|
|
608
622
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
609
|
-
|
|
623
|
+
ut(e, t);
|
|
610
624
|
function r() {
|
|
611
625
|
this.constructor = e;
|
|
612
626
|
}
|
|
613
627
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
614
628
|
}
|
|
615
|
-
var
|
|
616
|
-
return
|
|
629
|
+
var O = function() {
|
|
630
|
+
return O = Object.assign || function(t) {
|
|
617
631
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
618
632
|
r = arguments[i];
|
|
619
633
|
for (var s in r)
|
|
620
634
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
621
635
|
}
|
|
622
636
|
return t;
|
|
623
|
-
},
|
|
637
|
+
}, O.apply(this, arguments);
|
|
624
638
|
};
|
|
625
639
|
function bi(e, t) {
|
|
626
640
|
var r = {};
|
|
@@ -631,14 +645,46 @@ function bi(e, t) {
|
|
|
631
645
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
632
646
|
return r;
|
|
633
647
|
}
|
|
634
|
-
function
|
|
648
|
+
function hs(e) {
|
|
649
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
650
|
+
if (r)
|
|
651
|
+
return r.call(e);
|
|
652
|
+
if (e && typeof e.length == "number")
|
|
653
|
+
return {
|
|
654
|
+
next: function() {
|
|
655
|
+
return e && i >= e.length && (e = void 0), { value: e && e[i++], done: !e };
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
659
|
+
}
|
|
660
|
+
function fs(e, t) {
|
|
661
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
662
|
+
if (!r)
|
|
663
|
+
return e;
|
|
664
|
+
var i = r.call(e), n, s = [], o;
|
|
665
|
+
try {
|
|
666
|
+
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
667
|
+
s.push(n.value);
|
|
668
|
+
} catch (u) {
|
|
669
|
+
o = { error: u };
|
|
670
|
+
} finally {
|
|
671
|
+
try {
|
|
672
|
+
n && !n.done && (r = i.return) && r.call(i);
|
|
673
|
+
} finally {
|
|
674
|
+
if (o)
|
|
675
|
+
throw o.error;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
return s;
|
|
679
|
+
}
|
|
680
|
+
function Ke(e, t, r) {
|
|
635
681
|
if (r || arguments.length === 2)
|
|
636
682
|
for (var i = 0, n = t.length, s; i < n; i++)
|
|
637
683
|
(s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
|
|
638
|
-
return e.concat(s ||
|
|
684
|
+
return e.concat(s || t);
|
|
639
685
|
}
|
|
640
|
-
function
|
|
641
|
-
var r = t && t.cache ? t.cache :
|
|
686
|
+
function et(e, t) {
|
|
687
|
+
var r = t && t.cache ? t.cache : Si, i = t && t.serializer ? t.serializer : wi, n = t && t.strategy ? t.strategy : _i;
|
|
642
688
|
return n(e, {
|
|
643
689
|
cache: r,
|
|
644
690
|
serializer: i
|
|
@@ -647,98 +693,90 @@ function rt(e, t) {
|
|
|
647
693
|
function yi(e) {
|
|
648
694
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
649
695
|
}
|
|
650
|
-
function
|
|
696
|
+
function rr(e, t, r, i) {
|
|
651
697
|
var n = yi(i) ? i : r(i), s = t.get(n);
|
|
652
698
|
return typeof s > "u" && (s = e.call(this, i), t.set(n, s)), s;
|
|
653
699
|
}
|
|
654
|
-
function
|
|
700
|
+
function ir(e, t, r) {
|
|
655
701
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
656
702
|
return typeof s > "u" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
657
703
|
}
|
|
658
|
-
function
|
|
704
|
+
function _t(e, t, r, i, n) {
|
|
659
705
|
return r.bind(t, e, i, n);
|
|
660
706
|
}
|
|
707
|
+
function _i(e, t) {
|
|
708
|
+
var r = e.length === 1 ? rr : ir;
|
|
709
|
+
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
710
|
+
}
|
|
661
711
|
function xi(e, t) {
|
|
662
|
-
|
|
663
|
-
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
712
|
+
return _t(e, this, ir, t.cache.create(), t.serializer);
|
|
664
713
|
}
|
|
665
714
|
function Ei(e, t) {
|
|
666
|
-
return
|
|
715
|
+
return _t(e, this, rr, t.cache.create(), t.serializer);
|
|
667
716
|
}
|
|
668
717
|
var wi = function() {
|
|
669
718
|
return JSON.stringify(arguments);
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}()
|
|
682
|
-
), Ti = {
|
|
719
|
+
};
|
|
720
|
+
function xt() {
|
|
721
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
722
|
+
}
|
|
723
|
+
xt.prototype.get = function(e) {
|
|
724
|
+
return this.cache[e];
|
|
725
|
+
};
|
|
726
|
+
xt.prototype.set = function(e, t) {
|
|
727
|
+
this.cache[e] = t;
|
|
728
|
+
};
|
|
729
|
+
var Si = {
|
|
683
730
|
create: function() {
|
|
684
|
-
return new
|
|
731
|
+
return new xt();
|
|
685
732
|
}
|
|
686
|
-
},
|
|
687
|
-
variadic:
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
691
|
-
r = arguments[i];
|
|
692
|
-
for (var s in r)
|
|
693
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
694
|
-
}
|
|
695
|
-
return t;
|
|
696
|
-
}, Xe.apply(this, arguments);
|
|
697
|
-
};
|
|
698
|
-
var H;
|
|
733
|
+
}, tt = {
|
|
734
|
+
variadic: xi,
|
|
735
|
+
monadic: Ei
|
|
736
|
+
}, H;
|
|
699
737
|
(function(e) {
|
|
700
738
|
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";
|
|
701
739
|
})(H || (H = {}));
|
|
702
|
-
var
|
|
740
|
+
var D;
|
|
703
741
|
(function(e) {
|
|
704
742
|
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";
|
|
705
|
-
})(
|
|
706
|
-
var
|
|
743
|
+
})(D || (D = {}));
|
|
744
|
+
var Se;
|
|
707
745
|
(function(e) {
|
|
708
746
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
709
|
-
})(
|
|
710
|
-
function
|
|
711
|
-
return e.type ===
|
|
747
|
+
})(Se || (Se = {}));
|
|
748
|
+
function Bt(e) {
|
|
749
|
+
return e.type === D.literal;
|
|
712
750
|
}
|
|
713
|
-
function
|
|
714
|
-
return e.type ===
|
|
751
|
+
function Ti(e) {
|
|
752
|
+
return e.type === D.argument;
|
|
715
753
|
}
|
|
716
754
|
function nr(e) {
|
|
717
|
-
return e.type ===
|
|
755
|
+
return e.type === D.number;
|
|
718
756
|
}
|
|
719
757
|
function sr(e) {
|
|
720
|
-
return e.type ===
|
|
758
|
+
return e.type === D.date;
|
|
721
759
|
}
|
|
722
760
|
function or(e) {
|
|
723
|
-
return e.type ===
|
|
761
|
+
return e.type === D.time;
|
|
724
762
|
}
|
|
725
763
|
function ar(e) {
|
|
726
|
-
return e.type ===
|
|
764
|
+
return e.type === D.select;
|
|
727
765
|
}
|
|
728
766
|
function ur(e) {
|
|
729
|
-
return e.type ===
|
|
767
|
+
return e.type === D.plural;
|
|
730
768
|
}
|
|
731
|
-
function
|
|
732
|
-
return e.type ===
|
|
769
|
+
function Hi(e) {
|
|
770
|
+
return e.type === D.pound;
|
|
733
771
|
}
|
|
734
772
|
function lr(e) {
|
|
735
|
-
return e.type ===
|
|
773
|
+
return e.type === D.tag;
|
|
736
774
|
}
|
|
737
775
|
function hr(e) {
|
|
738
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
776
|
+
return !!(e && typeof e == "object" && e.type === Se.number);
|
|
739
777
|
}
|
|
740
|
-
function
|
|
741
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
778
|
+
function lt(e) {
|
|
779
|
+
return !!(e && typeof e == "object" && e.type === Se.dateTime);
|
|
742
780
|
}
|
|
743
781
|
var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pi = /(?:[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;
|
|
744
782
|
function Ai(e) {
|
|
@@ -832,39 +870,29 @@ function Ai(e) {
|
|
|
832
870
|
return "";
|
|
833
871
|
}), t;
|
|
834
872
|
}
|
|
835
|
-
var
|
|
836
|
-
return L = Object.assign || function(t) {
|
|
837
|
-
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
838
|
-
r = arguments[i];
|
|
839
|
-
for (var s in r)
|
|
840
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
841
|
-
}
|
|
842
|
-
return t;
|
|
843
|
-
}, L.apply(this, arguments);
|
|
844
|
-
};
|
|
845
|
-
var $i = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
873
|
+
var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
846
874
|
function Bi(e) {
|
|
847
875
|
if (e.length === 0)
|
|
848
876
|
throw new Error("Number skeleton cannot be empty");
|
|
849
|
-
for (var t = e.split(
|
|
877
|
+
for (var t = e.split(Oi).filter(function(p) {
|
|
850
878
|
return p.length > 0;
|
|
851
879
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
852
|
-
var s = n[i],
|
|
853
|
-
if (
|
|
880
|
+
var s = n[i], o = s.split("/");
|
|
881
|
+
if (o.length === 0)
|
|
854
882
|
throw new Error("Invalid number skeleton");
|
|
855
|
-
for (var u =
|
|
883
|
+
for (var u = o[0], a = o.slice(1), l = 0, h = a; l < h.length; l++) {
|
|
856
884
|
var c = h[l];
|
|
857
885
|
if (c.length === 0)
|
|
858
886
|
throw new Error("Invalid number skeleton");
|
|
859
887
|
}
|
|
860
|
-
r.push({ stem: u, options:
|
|
888
|
+
r.push({ stem: u, options: a });
|
|
861
889
|
}
|
|
862
890
|
return r;
|
|
863
891
|
}
|
|
864
|
-
function
|
|
892
|
+
function $i(e) {
|
|
865
893
|
return e.replace(/^(.*?)-/, "");
|
|
866
894
|
}
|
|
867
|
-
var
|
|
895
|
+
var $t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Mi = /(\*)(0+)|(#+)(0+)|(0+)/g, dr = /^(0+)$/;
|
|
868
896
|
function Mt(e) {
|
|
869
897
|
var t = {};
|
|
870
898
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, i, n) {
|
|
@@ -911,7 +939,7 @@ function mr(e) {
|
|
|
911
939
|
};
|
|
912
940
|
}
|
|
913
941
|
}
|
|
914
|
-
function
|
|
942
|
+
function Ci(e) {
|
|
915
943
|
var t;
|
|
916
944
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
917
945
|
notation: "engineering"
|
|
@@ -929,7 +957,7 @@ function Ct(e) {
|
|
|
929
957
|
var t = {}, r = mr(e);
|
|
930
958
|
return r || t;
|
|
931
959
|
}
|
|
932
|
-
function
|
|
960
|
+
function Di(e) {
|
|
933
961
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
934
962
|
var n = i[r];
|
|
935
963
|
switch (n.stem) {
|
|
@@ -953,7 +981,7 @@ function Li(e) {
|
|
|
953
981
|
continue;
|
|
954
982
|
case "measure-unit":
|
|
955
983
|
case "unit":
|
|
956
|
-
t.style = "unit", t.unit =
|
|
984
|
+
t.style = "unit", t.unit = $i(n.options[0]);
|
|
957
985
|
continue;
|
|
958
986
|
case "compact-short":
|
|
959
987
|
case "K":
|
|
@@ -964,13 +992,13 @@ function Li(e) {
|
|
|
964
992
|
t.notation = "compact", t.compactDisplay = "long";
|
|
965
993
|
continue;
|
|
966
994
|
case "scientific":
|
|
967
|
-
t =
|
|
968
|
-
return
|
|
995
|
+
t = O(O(O({}, t), { notation: "scientific" }), n.options.reduce(function(a, l) {
|
|
996
|
+
return O(O({}, a), Ct(l));
|
|
969
997
|
}, {}));
|
|
970
998
|
continue;
|
|
971
999
|
case "engineering":
|
|
972
|
-
t =
|
|
973
|
-
return
|
|
1000
|
+
t = O(O(O({}, t), { notation: "engineering" }), n.options.reduce(function(a, l) {
|
|
1001
|
+
return O(O({}, a), Ct(l));
|
|
974
1002
|
}, {}));
|
|
975
1003
|
continue;
|
|
976
1004
|
case "notation-simple":
|
|
@@ -1015,7 +1043,7 @@ function Li(e) {
|
|
|
1015
1043
|
case "integer-width":
|
|
1016
1044
|
if (n.options.length > 1)
|
|
1017
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1018
|
-
n.options[0].replace(
|
|
1046
|
+
n.options[0].replace(Mi, function(a, l, h, c, p, _) {
|
|
1019
1047
|
if (l)
|
|
1020
1048
|
t.minimumIntegerDigits = h.length;
|
|
1021
1049
|
else {
|
|
@@ -1032,28 +1060,28 @@ function Li(e) {
|
|
|
1032
1060
|
t.minimumIntegerDigits = n.stem.length;
|
|
1033
1061
|
continue;
|
|
1034
1062
|
}
|
|
1035
|
-
if (
|
|
1063
|
+
if ($t.test(n.stem)) {
|
|
1036
1064
|
if (n.options.length > 1)
|
|
1037
1065
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1038
|
-
n.stem.replace(
|
|
1066
|
+
n.stem.replace($t, function(a, l, h, c, p, _) {
|
|
1039
1067
|
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && _ ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1040
1068
|
});
|
|
1041
1069
|
var s = n.options[0];
|
|
1042
|
-
s === "w" ? t =
|
|
1070
|
+
s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Mt(s)));
|
|
1043
1071
|
continue;
|
|
1044
1072
|
}
|
|
1045
1073
|
if (cr.test(n.stem)) {
|
|
1046
|
-
t =
|
|
1074
|
+
t = O(O({}, t), Mt(n.stem));
|
|
1047
1075
|
continue;
|
|
1048
1076
|
}
|
|
1049
|
-
var
|
|
1050
|
-
|
|
1051
|
-
var u =
|
|
1052
|
-
u && (t =
|
|
1077
|
+
var o = mr(n.stem);
|
|
1078
|
+
o && (t = O(O({}, t), o));
|
|
1079
|
+
var u = Ci(n.stem);
|
|
1080
|
+
u && (t = O(O({}, t), u));
|
|
1053
1081
|
}
|
|
1054
1082
|
return t;
|
|
1055
1083
|
}
|
|
1056
|
-
var
|
|
1084
|
+
var Fe = {
|
|
1057
1085
|
"001": [
|
|
1058
1086
|
"H",
|
|
1059
1087
|
"h"
|
|
@@ -2468,23 +2496,23 @@ var Ve = {
|
|
|
2468
2496
|
"h"
|
|
2469
2497
|
]
|
|
2470
2498
|
};
|
|
2471
|
-
function
|
|
2499
|
+
function Li(e, t) {
|
|
2472
2500
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2473
2501
|
var n = e.charAt(i);
|
|
2474
2502
|
if (n === "j") {
|
|
2475
2503
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2476
2504
|
s++, i++;
|
|
2477
|
-
var
|
|
2505
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), a = "a", l = Ii(t);
|
|
2478
2506
|
for ((l == "H" || l == "k") && (u = 0); u-- > 0; )
|
|
2479
|
-
r +=
|
|
2480
|
-
for (;
|
|
2507
|
+
r += a;
|
|
2508
|
+
for (; o-- > 0; )
|
|
2481
2509
|
r = l + r;
|
|
2482
2510
|
} else
|
|
2483
2511
|
n === "J" ? r += "H" : r += n;
|
|
2484
2512
|
}
|
|
2485
2513
|
return r;
|
|
2486
2514
|
}
|
|
2487
|
-
function
|
|
2515
|
+
function Ii(e) {
|
|
2488
2516
|
var t = e.hourCycle;
|
|
2489
2517
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2490
2518
|
e.hourCycles && // @ts-ignore
|
|
@@ -2503,23 +2531,23 @@ function Ni(e) {
|
|
|
2503
2531
|
}
|
|
2504
2532
|
var r = e.language, i;
|
|
2505
2533
|
r !== "root" && (i = e.maximize().region);
|
|
2506
|
-
var n =
|
|
2534
|
+
var n = Fe[i || ""] || Fe[r || ""] || Fe["".concat(r, "-001")] || Fe["001"];
|
|
2507
2535
|
return n[0];
|
|
2508
2536
|
}
|
|
2509
|
-
var
|
|
2510
|
-
function
|
|
2537
|
+
var rt, Ni = new RegExp("^".concat(fr.source, "*")), Ri = new RegExp("".concat(fr.source, "*$"));
|
|
2538
|
+
function P(e, t) {
|
|
2511
2539
|
return { start: e, end: t };
|
|
2512
2540
|
}
|
|
2513
|
-
var
|
|
2541
|
+
var ki = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ui = !!String.fromCodePoint, Fi = !!Object.fromEntries, Vi = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, ji = !!String.prototype.trimEnd, zi = !!Number.isSafeInteger, Xi = zi ? Number.isSafeInteger : function(e) {
|
|
2514
2542
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2515
|
-
},
|
|
2543
|
+
}, ht = !0;
|
|
2516
2544
|
try {
|
|
2517
|
-
var
|
|
2518
|
-
|
|
2545
|
+
var Wi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2546
|
+
ht = ((rt = Wi.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
|
|
2519
2547
|
} catch {
|
|
2520
|
-
|
|
2548
|
+
ht = !1;
|
|
2521
2549
|
}
|
|
2522
|
-
var Dt =
|
|
2550
|
+
var Dt = ki ? (
|
|
2523
2551
|
// Native
|
|
2524
2552
|
function(t, r, i) {
|
|
2525
2553
|
return t.startsWith(r, i);
|
|
@@ -2529,31 +2557,31 @@ var Dt = Ui ? (
|
|
|
2529
2557
|
function(t, r, i) {
|
|
2530
2558
|
return t.slice(i, i + r.length) === r;
|
|
2531
2559
|
}
|
|
2532
|
-
),
|
|
2560
|
+
), ft = Ui ? String.fromCodePoint : (
|
|
2533
2561
|
// IE11
|
|
2534
2562
|
function() {
|
|
2535
2563
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2536
2564
|
t[r] = arguments[r];
|
|
2537
|
-
for (var i = "", n = t.length, s = 0,
|
|
2538
|
-
if (
|
|
2539
|
-
throw RangeError(
|
|
2540
|
-
i +=
|
|
2565
|
+
for (var i = "", n = t.length, s = 0, o; n > s; ) {
|
|
2566
|
+
if (o = t[s++], o > 1114111)
|
|
2567
|
+
throw RangeError(o + " is not a valid code point");
|
|
2568
|
+
i += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2541
2569
|
}
|
|
2542
2570
|
return i;
|
|
2543
2571
|
}
|
|
2544
2572
|
), Lt = (
|
|
2545
2573
|
// native
|
|
2546
|
-
|
|
2574
|
+
Fi ? Object.fromEntries : (
|
|
2547
2575
|
// Ponyfill
|
|
2548
2576
|
function(t) {
|
|
2549
2577
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
2550
|
-
var s = n[i],
|
|
2551
|
-
r[
|
|
2578
|
+
var s = n[i], o = s[0], u = s[1];
|
|
2579
|
+
r[o] = u;
|
|
2552
2580
|
}
|
|
2553
2581
|
return r;
|
|
2554
2582
|
}
|
|
2555
2583
|
)
|
|
2556
|
-
), pr =
|
|
2584
|
+
), pr = Vi ? (
|
|
2557
2585
|
// Native
|
|
2558
2586
|
function(t, r) {
|
|
2559
2587
|
return t.codePointAt(r);
|
|
@@ -2567,7 +2595,7 @@ var Dt = Ui ? (
|
|
|
2567
2595
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2568
2596
|
}
|
|
2569
2597
|
}
|
|
2570
|
-
),
|
|
2598
|
+
), qi = Gi ? (
|
|
2571
2599
|
// Native
|
|
2572
2600
|
function(t) {
|
|
2573
2601
|
return t.trimStart();
|
|
@@ -2575,9 +2603,9 @@ var Dt = Ui ? (
|
|
|
2575
2603
|
) : (
|
|
2576
2604
|
// Ponyfill
|
|
2577
2605
|
function(t) {
|
|
2578
|
-
return t.replace(
|
|
2606
|
+
return t.replace(Ni, "");
|
|
2579
2607
|
}
|
|
2580
|
-
),
|
|
2608
|
+
), Yi = ji ? (
|
|
2581
2609
|
// Native
|
|
2582
2610
|
function(t) {
|
|
2583
2611
|
return t.trimEnd();
|
|
@@ -2585,32 +2613,32 @@ var Dt = Ui ? (
|
|
|
2585
2613
|
) : (
|
|
2586
2614
|
// Ponyfill
|
|
2587
2615
|
function(t) {
|
|
2588
|
-
return t.replace(
|
|
2616
|
+
return t.replace(Ri, "");
|
|
2589
2617
|
}
|
|
2590
2618
|
);
|
|
2591
2619
|
function gr(e, t) {
|
|
2592
2620
|
return new RegExp(e, t);
|
|
2593
2621
|
}
|
|
2594
|
-
var
|
|
2595
|
-
if (
|
|
2622
|
+
var ct;
|
|
2623
|
+
if (ht) {
|
|
2596
2624
|
var It = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2597
|
-
|
|
2625
|
+
ct = function(t, r) {
|
|
2598
2626
|
var i;
|
|
2599
2627
|
It.lastIndex = r;
|
|
2600
2628
|
var n = It.exec(t);
|
|
2601
2629
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2602
2630
|
};
|
|
2603
2631
|
} else
|
|
2604
|
-
|
|
2632
|
+
ct = function(t, r) {
|
|
2605
2633
|
for (var i = []; ; ) {
|
|
2606
2634
|
var n = pr(t, r);
|
|
2607
|
-
if (n === void 0 || vr(n) ||
|
|
2635
|
+
if (n === void 0 || vr(n) || Ki(n))
|
|
2608
2636
|
break;
|
|
2609
2637
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2610
2638
|
}
|
|
2611
|
-
return
|
|
2639
|
+
return ft.apply(void 0, i);
|
|
2612
2640
|
};
|
|
2613
|
-
var
|
|
2641
|
+
var Zi = (
|
|
2614
2642
|
/** @class */
|
|
2615
2643
|
function() {
|
|
2616
2644
|
function e(t, r) {
|
|
@@ -2624,33 +2652,33 @@ var Ji = (
|
|
|
2624
2652
|
for (var n = []; !this.isEOF(); ) {
|
|
2625
2653
|
var s = this.char();
|
|
2626
2654
|
if (s === 123) {
|
|
2627
|
-
var
|
|
2628
|
-
if (
|
|
2629
|
-
return
|
|
2630
|
-
n.push(
|
|
2655
|
+
var o = this.parseArgument(t, i);
|
|
2656
|
+
if (o.err)
|
|
2657
|
+
return o;
|
|
2658
|
+
n.push(o.val);
|
|
2631
2659
|
} else {
|
|
2632
2660
|
if (s === 125 && t > 0)
|
|
2633
2661
|
break;
|
|
2634
2662
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2635
2663
|
var u = this.clonePosition();
|
|
2636
2664
|
this.bump(), n.push({
|
|
2637
|
-
type:
|
|
2638
|
-
location:
|
|
2665
|
+
type: D.pound,
|
|
2666
|
+
location: P(u, this.clonePosition())
|
|
2639
2667
|
});
|
|
2640
2668
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2641
2669
|
if (i)
|
|
2642
2670
|
break;
|
|
2643
|
-
return this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2644
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2645
|
-
var
|
|
2646
|
-
if (
|
|
2647
|
-
return
|
|
2648
|
-
n.push(
|
|
2671
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
|
|
2672
|
+
} else if (s === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
|
2673
|
+
var o = this.parseTag(t, r);
|
|
2674
|
+
if (o.err)
|
|
2675
|
+
return o;
|
|
2676
|
+
n.push(o.val);
|
|
2649
2677
|
} else {
|
|
2650
|
-
var
|
|
2651
|
-
if (
|
|
2652
|
-
return
|
|
2653
|
-
n.push(
|
|
2678
|
+
var o = this.parseLiteral(t, r);
|
|
2679
|
+
if (o.err)
|
|
2680
|
+
return o;
|
|
2681
|
+
n.push(o.val);
|
|
2654
2682
|
}
|
|
2655
2683
|
}
|
|
2656
2684
|
}
|
|
@@ -2662,9 +2690,9 @@ var Ji = (
|
|
|
2662
2690
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2663
2691
|
return {
|
|
2664
2692
|
val: {
|
|
2665
|
-
type:
|
|
2693
|
+
type: D.literal,
|
|
2666
2694
|
value: "<".concat(n, "/>"),
|
|
2667
|
-
location:
|
|
2695
|
+
location: P(i, this.clonePosition())
|
|
2668
2696
|
},
|
|
2669
2697
|
err: null
|
|
2670
2698
|
};
|
|
@@ -2672,27 +2700,27 @@ var Ji = (
|
|
|
2672
2700
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2673
2701
|
if (s.err)
|
|
2674
2702
|
return s;
|
|
2675
|
-
var
|
|
2703
|
+
var o = s.val, u = this.clonePosition();
|
|
2676
2704
|
if (this.bumpIf("</")) {
|
|
2677
|
-
if (this.isEOF() || !
|
|
2678
|
-
return this.error(H.INVALID_TAG,
|
|
2679
|
-
var
|
|
2680
|
-
return n !== l ? this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2705
|
+
if (this.isEOF() || !dt(this.char()))
|
|
2706
|
+
return this.error(H.INVALID_TAG, P(u, this.clonePosition()));
|
|
2707
|
+
var a = this.clonePosition(), l = this.parseTagName();
|
|
2708
|
+
return n !== l ? this.error(H.UNMATCHED_CLOSING_TAG, P(a, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2681
2709
|
val: {
|
|
2682
|
-
type:
|
|
2710
|
+
type: D.tag,
|
|
2683
2711
|
value: n,
|
|
2684
|
-
children:
|
|
2685
|
-
location:
|
|
2712
|
+
children: o,
|
|
2713
|
+
location: P(i, this.clonePosition())
|
|
2686
2714
|
},
|
|
2687
2715
|
err: null
|
|
2688
|
-
} : this.error(H.INVALID_TAG,
|
|
2716
|
+
} : this.error(H.INVALID_TAG, P(u, this.clonePosition())));
|
|
2689
2717
|
} else
|
|
2690
|
-
return this.error(H.UNCLOSED_TAG,
|
|
2718
|
+
return this.error(H.UNCLOSED_TAG, P(i, this.clonePosition()));
|
|
2691
2719
|
} else
|
|
2692
|
-
return this.error(H.INVALID_TAG,
|
|
2720
|
+
return this.error(H.INVALID_TAG, P(i, this.clonePosition()));
|
|
2693
2721
|
}, e.prototype.parseTagName = function() {
|
|
2694
2722
|
var t = this.offset();
|
|
2695
|
-
for (this.bump(); !this.isEOF() &&
|
|
2723
|
+
for (this.bump(); !this.isEOF() && Qi(this.char()); )
|
|
2696
2724
|
this.bump();
|
|
2697
2725
|
return this.message.slice(t, this.offset());
|
|
2698
2726
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2702,9 +2730,9 @@ var Ji = (
|
|
|
2702
2730
|
n += s;
|
|
2703
2731
|
continue;
|
|
2704
2732
|
}
|
|
2705
|
-
var
|
|
2706
|
-
if (
|
|
2707
|
-
n +=
|
|
2733
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2734
|
+
if (o) {
|
|
2735
|
+
n += o;
|
|
2708
2736
|
continue;
|
|
2709
2737
|
}
|
|
2710
2738
|
var u = this.tryParseLeftAngleBracket();
|
|
@@ -2714,14 +2742,14 @@ var Ji = (
|
|
|
2714
2742
|
}
|
|
2715
2743
|
break;
|
|
2716
2744
|
}
|
|
2717
|
-
var
|
|
2745
|
+
var a = P(i, this.clonePosition());
|
|
2718
2746
|
return {
|
|
2719
|
-
val: { type:
|
|
2747
|
+
val: { type: D.literal, value: n, location: a },
|
|
2720
2748
|
err: null
|
|
2721
2749
|
};
|
|
2722
2750
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2723
2751
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2724
|
-
!
|
|
2752
|
+
!Ji(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2725
2753
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2726
2754
|
if (this.isEOF() || this.char() !== 39)
|
|
2727
2755
|
return null;
|
|
@@ -2755,49 +2783,49 @@ var Ji = (
|
|
|
2755
2783
|
r.push(i);
|
|
2756
2784
|
this.bump();
|
|
2757
2785
|
}
|
|
2758
|
-
return
|
|
2786
|
+
return ft.apply(void 0, r);
|
|
2759
2787
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2760
2788
|
if (this.isEOF())
|
|
2761
2789
|
return null;
|
|
2762
2790
|
var i = this.char();
|
|
2763
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2791
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), ft(i));
|
|
2764
2792
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2765
2793
|
var i = this.clonePosition();
|
|
2766
2794
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2767
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2795
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2768
2796
|
if (this.char() === 125)
|
|
2769
|
-
return this.bump(), this.error(H.EMPTY_ARGUMENT,
|
|
2797
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, P(i, this.clonePosition()));
|
|
2770
2798
|
var n = this.parseIdentifierIfPossible().value;
|
|
2771
2799
|
if (!n)
|
|
2772
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2800
|
+
return this.error(H.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2773
2801
|
if (this.bumpSpace(), this.isEOF())
|
|
2774
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2802
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition()));
|
|
2775
2803
|
switch (this.char()) {
|
|
2776
2804
|
case 125:
|
|
2777
2805
|
return this.bump(), {
|
|
2778
2806
|
val: {
|
|
2779
|
-
type:
|
|
2807
|
+
type: D.argument,
|
|
2780
2808
|
// value does not include the opening and closing braces.
|
|
2781
2809
|
value: n,
|
|
2782
|
-
location:
|
|
2810
|
+
location: P(i, this.clonePosition())
|
|
2783
2811
|
},
|
|
2784
2812
|
err: null
|
|
2785
2813
|
};
|
|
2786
2814
|
case 44:
|
|
2787
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2815
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2788
2816
|
default:
|
|
2789
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2817
|
+
return this.error(H.MALFORMED_ARGUMENT, P(i, this.clonePosition()));
|
|
2790
2818
|
}
|
|
2791
2819
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2792
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2820
|
+
var t = this.clonePosition(), r = this.offset(), i = ct(this.message, r), n = r + i.length;
|
|
2793
2821
|
this.bumpTo(n);
|
|
2794
|
-
var s = this.clonePosition(),
|
|
2795
|
-
return { value: i, location:
|
|
2822
|
+
var s = this.clonePosition(), o = P(t, s);
|
|
2823
|
+
return { value: i, location: o };
|
|
2796
2824
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2797
|
-
var s,
|
|
2825
|
+
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, a = this.clonePosition();
|
|
2798
2826
|
switch (u) {
|
|
2799
2827
|
case "":
|
|
2800
|
-
return this.error(H.EXPECT_ARGUMENT_TYPE,
|
|
2828
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, P(o, a));
|
|
2801
2829
|
case "number":
|
|
2802
2830
|
case "date":
|
|
2803
2831
|
case "time": {
|
|
@@ -2808,35 +2836,35 @@ var Ji = (
|
|
|
2808
2836
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2809
2837
|
if (c.err)
|
|
2810
2838
|
return c;
|
|
2811
|
-
var p =
|
|
2839
|
+
var p = Yi(c.val);
|
|
2812
2840
|
if (p.length === 0)
|
|
2813
|
-
return this.error(H.EXPECT_ARGUMENT_STYLE,
|
|
2814
|
-
var _ =
|
|
2841
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
|
|
2842
|
+
var _ = P(h, this.clonePosition());
|
|
2815
2843
|
l = { style: p, styleLocation: _ };
|
|
2816
2844
|
}
|
|
2817
2845
|
var S = this.tryParseArgumentClose(n);
|
|
2818
2846
|
if (S.err)
|
|
2819
2847
|
return S;
|
|
2820
|
-
var v =
|
|
2848
|
+
var v = P(n, this.clonePosition());
|
|
2821
2849
|
if (l && Dt(l?.style, "::", 0)) {
|
|
2822
|
-
var
|
|
2850
|
+
var M = qi(l.style.slice(2));
|
|
2823
2851
|
if (u === "number") {
|
|
2824
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2852
|
+
var c = this.parseNumberSkeletonFromString(M, l.styleLocation);
|
|
2825
2853
|
return c.err ? c : {
|
|
2826
|
-
val: { type:
|
|
2854
|
+
val: { type: D.number, value: i, location: v, style: c.val },
|
|
2827
2855
|
err: null
|
|
2828
2856
|
};
|
|
2829
2857
|
} else {
|
|
2830
|
-
if (
|
|
2858
|
+
if (M.length === 0)
|
|
2831
2859
|
return this.error(H.EXPECT_DATE_TIME_SKELETON, v);
|
|
2832
|
-
var V =
|
|
2833
|
-
this.locale && (V =
|
|
2860
|
+
var V = M;
|
|
2861
|
+
this.locale && (V = Li(M, this.locale));
|
|
2834
2862
|
var p = {
|
|
2835
|
-
type:
|
|
2863
|
+
type: Se.dateTime,
|
|
2836
2864
|
pattern: V,
|
|
2837
2865
|
location: l.styleLocation,
|
|
2838
2866
|
parsedOptions: this.shouldParseSkeletons ? Ai(V) : {}
|
|
2839
|
-
}, R = u === "date" ?
|
|
2867
|
+
}, R = u === "date" ? D.date : D.time;
|
|
2840
2868
|
return {
|
|
2841
2869
|
val: { type: R, value: i, location: v, style: p },
|
|
2842
2870
|
err: null
|
|
@@ -2845,7 +2873,7 @@ var Ji = (
|
|
|
2845
2873
|
}
|
|
2846
2874
|
return {
|
|
2847
2875
|
val: {
|
|
2848
|
-
type: u === "number" ?
|
|
2876
|
+
type: u === "number" ? D.number : u === "date" ? D.date : D.time,
|
|
2849
2877
|
value: i,
|
|
2850
2878
|
location: v,
|
|
2851
2879
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2856,14 +2884,14 @@ var Ji = (
|
|
|
2856
2884
|
case "plural":
|
|
2857
2885
|
case "selectordinal":
|
|
2858
2886
|
case "select": {
|
|
2859
|
-
var
|
|
2887
|
+
var B = this.clonePosition();
|
|
2860
2888
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2861
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2889
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, P(B, O({}, B)));
|
|
2862
2890
|
this.bumpSpace();
|
|
2863
2891
|
var z = this.parseIdentifierIfPossible(), I = 0;
|
|
2864
2892
|
if (u !== "select" && z.value === "offset") {
|
|
2865
2893
|
if (!this.bumpIf(":"))
|
|
2866
|
-
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2894
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
|
|
2867
2895
|
this.bumpSpace();
|
|
2868
2896
|
var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2869
2897
|
if (c.err)
|
|
@@ -2876,10 +2904,10 @@ var Ji = (
|
|
|
2876
2904
|
var S = this.tryParseArgumentClose(n);
|
|
2877
2905
|
if (S.err)
|
|
2878
2906
|
return S;
|
|
2879
|
-
var W =
|
|
2907
|
+
var W = P(n, this.clonePosition());
|
|
2880
2908
|
return u === "select" ? {
|
|
2881
2909
|
val: {
|
|
2882
|
-
type:
|
|
2910
|
+
type: D.select,
|
|
2883
2911
|
value: i,
|
|
2884
2912
|
options: Lt(U.val),
|
|
2885
2913
|
location: W
|
|
@@ -2887,7 +2915,7 @@ var Ji = (
|
|
|
2887
2915
|
err: null
|
|
2888
2916
|
} : {
|
|
2889
2917
|
val: {
|
|
2890
|
-
type:
|
|
2918
|
+
type: D.plural,
|
|
2891
2919
|
value: i,
|
|
2892
2920
|
options: Lt(U.val),
|
|
2893
2921
|
offset: I,
|
|
@@ -2898,10 +2926,10 @@ var Ji = (
|
|
|
2898
2926
|
};
|
|
2899
2927
|
}
|
|
2900
2928
|
default:
|
|
2901
|
-
return this.error(H.INVALID_ARGUMENT_TYPE,
|
|
2929
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, P(o, a));
|
|
2902
2930
|
}
|
|
2903
2931
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2904
|
-
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2932
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2905
2933
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2906
2934
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2907
2935
|
var i = this.char();
|
|
@@ -2910,7 +2938,7 @@ var Ji = (
|
|
|
2910
2938
|
this.bump();
|
|
2911
2939
|
var n = this.clonePosition();
|
|
2912
2940
|
if (!this.bumpUntil("'"))
|
|
2913
|
-
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2941
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(n, this.clonePosition()));
|
|
2914
2942
|
this.bump();
|
|
2915
2943
|
break;
|
|
2916
2944
|
}
|
|
@@ -2946,31 +2974,31 @@ var Ji = (
|
|
|
2946
2974
|
}
|
|
2947
2975
|
return {
|
|
2948
2976
|
val: {
|
|
2949
|
-
type:
|
|
2977
|
+
type: Se.number,
|
|
2950
2978
|
tokens: i,
|
|
2951
2979
|
location: r,
|
|
2952
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2980
|
+
parsedOptions: this.shouldParseSkeletons ? Di(i) : {}
|
|
2953
2981
|
},
|
|
2954
2982
|
err: null
|
|
2955
2983
|
};
|
|
2956
2984
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
2957
|
-
for (var s,
|
|
2985
|
+
for (var s, o = !1, u = [], a = /* @__PURE__ */ new Set(), l = n.value, h = n.location; ; ) {
|
|
2958
2986
|
if (l.length === 0) {
|
|
2959
2987
|
var c = this.clonePosition();
|
|
2960
2988
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2961
2989
|
var p = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2962
2990
|
if (p.err)
|
|
2963
2991
|
return p;
|
|
2964
|
-
h =
|
|
2992
|
+
h = P(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
2965
2993
|
} else
|
|
2966
2994
|
break;
|
|
2967
2995
|
}
|
|
2968
|
-
if (
|
|
2996
|
+
if (a.has(l))
|
|
2969
2997
|
return this.error(r === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2970
|
-
l === "other" && (
|
|
2998
|
+
l === "other" && (o = !0), this.bumpSpace();
|
|
2971
2999
|
var _ = this.clonePosition();
|
|
2972
3000
|
if (!this.bumpIf("{"))
|
|
2973
|
-
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3001
|
+
return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
|
|
2974
3002
|
var S = this.parseMessage(t + 1, r, i);
|
|
2975
3003
|
if (S.err)
|
|
2976
3004
|
return S;
|
|
@@ -2981,23 +3009,23 @@ var Ji = (
|
|
|
2981
3009
|
l,
|
|
2982
3010
|
{
|
|
2983
3011
|
value: S.val,
|
|
2984
|
-
location:
|
|
3012
|
+
location: P(_, this.clonePosition())
|
|
2985
3013
|
}
|
|
2986
|
-
]),
|
|
3014
|
+
]), a.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, h = s.location;
|
|
2987
3015
|
}
|
|
2988
|
-
return u.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3016
|
+
return u.length === 0 ? this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(H.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2989
3017
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2990
3018
|
var i = 1, n = this.clonePosition();
|
|
2991
3019
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
2992
|
-
for (var s = !1,
|
|
3020
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
2993
3021
|
var u = this.char();
|
|
2994
3022
|
if (u >= 48 && u <= 57)
|
|
2995
|
-
s = !0,
|
|
3023
|
+
s = !0, o = o * 10 + (u - 48), this.bump();
|
|
2996
3024
|
else
|
|
2997
3025
|
break;
|
|
2998
3026
|
}
|
|
2999
|
-
var
|
|
3000
|
-
return s ? (
|
|
3027
|
+
var a = P(n, this.clonePosition());
|
|
3028
|
+
return s ? (o *= i, Xi(o) ? { val: o, err: null } : this.error(r, a)) : this.error(t, a);
|
|
3001
3029
|
}, e.prototype.offset = function() {
|
|
3002
3030
|
return this.position.offset;
|
|
3003
3031
|
}, e.prototype.isEOF = function() {
|
|
@@ -3063,47 +3091,47 @@ var Ji = (
|
|
|
3063
3091
|
}, e;
|
|
3064
3092
|
}()
|
|
3065
3093
|
);
|
|
3066
|
-
function
|
|
3094
|
+
function dt(e) {
|
|
3067
3095
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3068
3096
|
}
|
|
3069
|
-
function
|
|
3070
|
-
return
|
|
3097
|
+
function Ji(e) {
|
|
3098
|
+
return dt(e) || e === 47;
|
|
3071
3099
|
}
|
|
3072
|
-
function
|
|
3100
|
+
function Qi(e) {
|
|
3073
3101
|
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;
|
|
3074
3102
|
}
|
|
3075
3103
|
function vr(e) {
|
|
3076
3104
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3077
3105
|
}
|
|
3078
|
-
function
|
|
3106
|
+
function Ki(e) {
|
|
3079
3107
|
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;
|
|
3080
3108
|
}
|
|
3081
|
-
function
|
|
3109
|
+
function mt(e) {
|
|
3082
3110
|
e.forEach(function(t) {
|
|
3083
3111
|
if (delete t.location, ar(t) || ur(t))
|
|
3084
3112
|
for (var r in t.options)
|
|
3085
|
-
delete t.options[r].location,
|
|
3113
|
+
delete t.options[r].location, mt(t.options[r].value);
|
|
3086
3114
|
else
|
|
3087
|
-
nr(t) && hr(t.style) || (sr(t) || or(t)) &&
|
|
3115
|
+
nr(t) && hr(t.style) || (sr(t) || or(t)) && lt(t.style) ? delete t.style.location : lr(t) && mt(t.children);
|
|
3088
3116
|
});
|
|
3089
3117
|
}
|
|
3090
|
-
function
|
|
3091
|
-
t === void 0 && (t = {}), t =
|
|
3092
|
-
var r = new
|
|
3118
|
+
function en(e, t) {
|
|
3119
|
+
t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3120
|
+
var r = new Zi(e, t).parse();
|
|
3093
3121
|
if (r.err) {
|
|
3094
3122
|
var i = SyntaxError(H[r.err.kind]);
|
|
3095
3123
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3096
3124
|
}
|
|
3097
|
-
return t?.captureLocation ||
|
|
3125
|
+
return t?.captureLocation || mt(r.val), r.val;
|
|
3098
3126
|
}
|
|
3099
|
-
var
|
|
3127
|
+
var Te;
|
|
3100
3128
|
(function(e) {
|
|
3101
3129
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3102
|
-
})(
|
|
3103
|
-
var
|
|
3130
|
+
})(Te || (Te = {}));
|
|
3131
|
+
var Ye = (
|
|
3104
3132
|
/** @class */
|
|
3105
3133
|
function(e) {
|
|
3106
|
-
|
|
3134
|
+
qe(t, e);
|
|
3107
3135
|
function t(r, i, n) {
|
|
3108
3136
|
var s = e.call(this, r) || this;
|
|
3109
3137
|
return s.code = i, s.originalMessage = n, s;
|
|
@@ -3115,61 +3143,61 @@ var Je = (
|
|
|
3115
3143
|
), Nt = (
|
|
3116
3144
|
/** @class */
|
|
3117
3145
|
function(e) {
|
|
3118
|
-
|
|
3146
|
+
qe(t, e);
|
|
3119
3147
|
function t(r, i, n, s) {
|
|
3120
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3148
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Te.INVALID_VALUE, s) || this;
|
|
3121
3149
|
}
|
|
3122
3150
|
return t;
|
|
3123
|
-
}(
|
|
3124
|
-
),
|
|
3151
|
+
}(Ye)
|
|
3152
|
+
), tn = (
|
|
3125
3153
|
/** @class */
|
|
3126
3154
|
function(e) {
|
|
3127
|
-
|
|
3155
|
+
qe(t, e);
|
|
3128
3156
|
function t(r, i, n) {
|
|
3129
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3157
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Te.INVALID_VALUE, n) || this;
|
|
3130
3158
|
}
|
|
3131
3159
|
return t;
|
|
3132
|
-
}(
|
|
3133
|
-
),
|
|
3160
|
+
}(Ye)
|
|
3161
|
+
), rn = (
|
|
3134
3162
|
/** @class */
|
|
3135
3163
|
function(e) {
|
|
3136
|
-
|
|
3164
|
+
qe(t, e);
|
|
3137
3165
|
function t(r, i) {
|
|
3138
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3166
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Te.MISSING_VALUE, i) || this;
|
|
3139
3167
|
}
|
|
3140
3168
|
return t;
|
|
3141
|
-
}(
|
|
3169
|
+
}(Ye)
|
|
3142
3170
|
), j;
|
|
3143
3171
|
(function(e) {
|
|
3144
3172
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3145
3173
|
})(j || (j = {}));
|
|
3146
|
-
function
|
|
3174
|
+
function nn(e) {
|
|
3147
3175
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3148
3176
|
var i = t[t.length - 1];
|
|
3149
3177
|
return !i || i.type !== j.literal || r.type !== j.literal ? t.push(r) : i.value += r.value, t;
|
|
3150
3178
|
}, []);
|
|
3151
3179
|
}
|
|
3152
|
-
function
|
|
3180
|
+
function sn(e) {
|
|
3153
3181
|
return typeof e == "function";
|
|
3154
3182
|
}
|
|
3155
|
-
function
|
|
3156
|
-
if (e.length === 1 &&
|
|
3183
|
+
function Ge(e, t, r, i, n, s, o) {
|
|
3184
|
+
if (e.length === 1 && Bt(e[0]))
|
|
3157
3185
|
return [
|
|
3158
3186
|
{
|
|
3159
3187
|
type: j.literal,
|
|
3160
3188
|
value: e[0].value
|
|
3161
3189
|
}
|
|
3162
3190
|
];
|
|
3163
|
-
for (var u = [],
|
|
3164
|
-
var h = l[
|
|
3165
|
-
if (
|
|
3191
|
+
for (var u = [], a = 0, l = e; a < l.length; a++) {
|
|
3192
|
+
var h = l[a];
|
|
3193
|
+
if (Bt(h)) {
|
|
3166
3194
|
u.push({
|
|
3167
3195
|
type: j.literal,
|
|
3168
3196
|
value: h.value
|
|
3169
3197
|
});
|
|
3170
3198
|
continue;
|
|
3171
3199
|
}
|
|
3172
|
-
if (
|
|
3200
|
+
if (Hi(h)) {
|
|
3173
3201
|
typeof s == "number" && u.push({
|
|
3174
3202
|
type: j.literal,
|
|
3175
3203
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3178,9 +3206,9 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3178
3206
|
}
|
|
3179
3207
|
var c = h.value;
|
|
3180
3208
|
if (!(n && c in n))
|
|
3181
|
-
throw new
|
|
3209
|
+
throw new rn(c, o);
|
|
3182
3210
|
var p = n[c];
|
|
3183
|
-
if (
|
|
3211
|
+
if (Ti(h)) {
|
|
3184
3212
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), u.push({
|
|
3185
3213
|
type: typeof p == "string" ? j.literal : j.object,
|
|
3186
3214
|
value: p
|
|
@@ -3188,7 +3216,7 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3188
3216
|
continue;
|
|
3189
3217
|
}
|
|
3190
3218
|
if (sr(h)) {
|
|
3191
|
-
var _ = typeof h.style == "string" ? i.date[h.style] :
|
|
3219
|
+
var _ = typeof h.style == "string" ? i.date[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3192
3220
|
u.push({
|
|
3193
3221
|
type: j.literal,
|
|
3194
3222
|
value: r.getDateTimeFormat(t, _).format(p)
|
|
@@ -3196,7 +3224,7 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3196
3224
|
continue;
|
|
3197
3225
|
}
|
|
3198
3226
|
if (or(h)) {
|
|
3199
|
-
var _ = typeof h.style == "string" ? i.time[h.style] :
|
|
3227
|
+
var _ = typeof h.style == "string" ? i.time[h.style] : lt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3200
3228
|
u.push({
|
|
3201
3229
|
type: j.literal,
|
|
3202
3230
|
value: r.getDateTimeFormat(t, _).format(p)
|
|
@@ -3212,10 +3240,10 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3212
3240
|
continue;
|
|
3213
3241
|
}
|
|
3214
3242
|
if (lr(h)) {
|
|
3215
|
-
var S = h.children, v = h.value,
|
|
3216
|
-
if (!
|
|
3217
|
-
throw new
|
|
3218
|
-
var V =
|
|
3243
|
+
var S = h.children, v = h.value, M = n[v];
|
|
3244
|
+
if (!sn(M))
|
|
3245
|
+
throw new tn(v, "function", o);
|
|
3246
|
+
var V = Ge(S, t, r, i, n, s), R = M(V.map(function(I) {
|
|
3219
3247
|
return I.value;
|
|
3220
3248
|
}));
|
|
3221
3249
|
Array.isArray(R) || (R = [R]), u.push.apply(u, R.map(function(I) {
|
|
@@ -3226,41 +3254,41 @@ function je(e, t, r, i, n, s, a) {
|
|
|
3226
3254
|
}));
|
|
3227
3255
|
}
|
|
3228
3256
|
if (ar(h)) {
|
|
3229
|
-
var
|
|
3230
|
-
if (!
|
|
3231
|
-
throw new Nt(h.value, p, Object.keys(h.options),
|
|
3232
|
-
u.push.apply(u,
|
|
3257
|
+
var B = h.options[p] || h.options.other;
|
|
3258
|
+
if (!B)
|
|
3259
|
+
throw new Nt(h.value, p, Object.keys(h.options), o);
|
|
3260
|
+
u.push.apply(u, Ge(B.value, t, r, i, n));
|
|
3233
3261
|
continue;
|
|
3234
3262
|
}
|
|
3235
3263
|
if (ur(h)) {
|
|
3236
|
-
var
|
|
3237
|
-
if (!
|
|
3264
|
+
var B = h.options["=".concat(p)];
|
|
3265
|
+
if (!B) {
|
|
3238
3266
|
if (!Intl.PluralRules)
|
|
3239
|
-
throw new
|
|
3267
|
+
throw new Ye(`Intl.PluralRules is not available in this environment.
|
|
3240
3268
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3241
|
-
`,
|
|
3269
|
+
`, Te.MISSING_INTL_API, o);
|
|
3242
3270
|
var z = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3243
|
-
|
|
3271
|
+
B = h.options[z] || h.options.other;
|
|
3244
3272
|
}
|
|
3245
|
-
if (!
|
|
3246
|
-
throw new Nt(h.value, p, Object.keys(h.options),
|
|
3247
|
-
u.push.apply(u,
|
|
3273
|
+
if (!B)
|
|
3274
|
+
throw new Nt(h.value, p, Object.keys(h.options), o);
|
|
3275
|
+
u.push.apply(u, Ge(B.value, t, r, i, n, p - (h.offset || 0)));
|
|
3248
3276
|
continue;
|
|
3249
3277
|
}
|
|
3250
3278
|
}
|
|
3251
|
-
return
|
|
3279
|
+
return nn(u);
|
|
3252
3280
|
}
|
|
3253
|
-
function
|
|
3254
|
-
return t ?
|
|
3255
|
-
return r[i] =
|
|
3281
|
+
function on(e, t) {
|
|
3282
|
+
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3283
|
+
return r[i] = O(O({}, e[i]), t[i] || {}), r;
|
|
3256
3284
|
}, {})) : e;
|
|
3257
3285
|
}
|
|
3258
|
-
function
|
|
3286
|
+
function an(e, t) {
|
|
3259
3287
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3260
|
-
return r[i] =
|
|
3261
|
-
},
|
|
3288
|
+
return r[i] = on(e[i], t[i]), r;
|
|
3289
|
+
}, O({}, e)) : e;
|
|
3262
3290
|
}
|
|
3263
|
-
function
|
|
3291
|
+
function it(e) {
|
|
3264
3292
|
return {
|
|
3265
3293
|
create: function() {
|
|
3266
3294
|
return {
|
|
@@ -3274,35 +3302,35 @@ function st(e) {
|
|
|
3274
3302
|
}
|
|
3275
3303
|
};
|
|
3276
3304
|
}
|
|
3277
|
-
function
|
|
3305
|
+
function un(e) {
|
|
3278
3306
|
return e === void 0 && (e = {
|
|
3279
3307
|
number: {},
|
|
3280
3308
|
dateTime: {},
|
|
3281
3309
|
pluralRules: {}
|
|
3282
3310
|
}), {
|
|
3283
|
-
getNumberFormat:
|
|
3311
|
+
getNumberFormat: et(function() {
|
|
3284
3312
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3285
3313
|
r[i] = arguments[i];
|
|
3286
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ke([void 0], r, !1)))();
|
|
3287
3315
|
}, {
|
|
3288
|
-
cache:
|
|
3289
|
-
strategy:
|
|
3316
|
+
cache: it(e.number),
|
|
3317
|
+
strategy: tt.variadic
|
|
3290
3318
|
}),
|
|
3291
|
-
getDateTimeFormat:
|
|
3319
|
+
getDateTimeFormat: et(function() {
|
|
3292
3320
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3293
3321
|
r[i] = arguments[i];
|
|
3294
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3322
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ke([void 0], r, !1)))();
|
|
3295
3323
|
}, {
|
|
3296
|
-
cache:
|
|
3297
|
-
strategy:
|
|
3324
|
+
cache: it(e.dateTime),
|
|
3325
|
+
strategy: tt.variadic
|
|
3298
3326
|
}),
|
|
3299
|
-
getPluralRules:
|
|
3327
|
+
getPluralRules: et(function() {
|
|
3300
3328
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3301
3329
|
r[i] = arguments[i];
|
|
3302
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ke([void 0], r, !1)))();
|
|
3303
3331
|
}, {
|
|
3304
|
-
cache:
|
|
3305
|
-
strategy:
|
|
3332
|
+
cache: it(e.pluralRules),
|
|
3333
|
+
strategy: tt.variadic
|
|
3306
3334
|
})
|
|
3307
3335
|
};
|
|
3308
3336
|
}
|
|
@@ -3316,35 +3344,35 @@ var br = (
|
|
|
3316
3344
|
number: {},
|
|
3317
3345
|
dateTime: {},
|
|
3318
3346
|
pluralRules: {}
|
|
3319
|
-
}, this.format = function(
|
|
3320
|
-
var l = s.formatToParts(
|
|
3347
|
+
}, this.format = function(a) {
|
|
3348
|
+
var l = s.formatToParts(a);
|
|
3321
3349
|
if (l.length === 1)
|
|
3322
3350
|
return l[0].value;
|
|
3323
3351
|
var h = l.reduce(function(c, p) {
|
|
3324
3352
|
return !c.length || p.type !== j.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3325
3353
|
}, []);
|
|
3326
3354
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3327
|
-
}, this.formatToParts = function(
|
|
3328
|
-
return
|
|
3355
|
+
}, this.formatToParts = function(a) {
|
|
3356
|
+
return Ge(s.ast, s.locales, s.formatters, s.formats, a, void 0, s.message);
|
|
3329
3357
|
}, this.resolvedOptions = function() {
|
|
3330
|
-
var
|
|
3358
|
+
var a;
|
|
3331
3359
|
return {
|
|
3332
|
-
locale: ((
|
|
3360
|
+
locale: ((a = s.resolvedLocale) === null || a === void 0 ? void 0 : a.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3333
3361
|
};
|
|
3334
3362
|
}, this.getAst = function() {
|
|
3335
3363
|
return s.ast;
|
|
3336
3364
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3337
3365
|
if (this.message = t, !e.__parse)
|
|
3338
3366
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3339
|
-
var
|
|
3340
|
-
|
|
3341
|
-
var u = bi(
|
|
3342
|
-
this.ast = e.__parse(t,
|
|
3367
|
+
var o = n || {};
|
|
3368
|
+
o.formatters;
|
|
3369
|
+
var u = bi(o, ["formatters"]);
|
|
3370
|
+
this.ast = e.__parse(t, O(O({}, u), { locale: this.resolvedLocale }));
|
|
3343
3371
|
} else
|
|
3344
3372
|
this.ast = t;
|
|
3345
3373
|
if (!Array.isArray(this.ast))
|
|
3346
3374
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3347
|
-
this.formats =
|
|
3375
|
+
this.formats = an(e.formats, i), this.formatters = n && n.formatters || un(this.formatterCache);
|
|
3348
3376
|
}
|
|
3349
3377
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3350
3378
|
get: function() {
|
|
@@ -3357,7 +3385,7 @@ var br = (
|
|
|
3357
3385
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3358
3386
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3359
3387
|
}
|
|
3360
|
-
}, e.__parse =
|
|
3388
|
+
}, e.__parse = en, e.formats = {
|
|
3361
3389
|
number: {
|
|
3362
3390
|
integer: {
|
|
3363
3391
|
maximumFractionDigits: 0
|
|
@@ -3418,7 +3446,7 @@ var br = (
|
|
|
3418
3446
|
}, e;
|
|
3419
3447
|
}()
|
|
3420
3448
|
);
|
|
3421
|
-
function
|
|
3449
|
+
function ln(e, t) {
|
|
3422
3450
|
if (t == null)
|
|
3423
3451
|
return;
|
|
3424
3452
|
if (t in e)
|
|
@@ -3439,36 +3467,36 @@ function hn(e, t) {
|
|
|
3439
3467
|
i = void 0;
|
|
3440
3468
|
return i;
|
|
3441
3469
|
}
|
|
3442
|
-
const
|
|
3470
|
+
const fe = {}, hn = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), yr = (e, t) => {
|
|
3443
3471
|
if (t == null)
|
|
3444
3472
|
return;
|
|
3445
|
-
if (t in
|
|
3446
|
-
return
|
|
3447
|
-
const r =
|
|
3473
|
+
if (t in fe && e in fe[t])
|
|
3474
|
+
return fe[t][e];
|
|
3475
|
+
const r = Re(t);
|
|
3448
3476
|
for (let i = 0; i < r.length; i++) {
|
|
3449
|
-
const n = r[i], s =
|
|
3477
|
+
const n = r[i], s = cn(n, e);
|
|
3450
3478
|
if (s)
|
|
3451
|
-
return
|
|
3479
|
+
return hn(e, t, s);
|
|
3452
3480
|
}
|
|
3453
3481
|
};
|
|
3454
3482
|
let Et;
|
|
3455
|
-
const
|
|
3456
|
-
function
|
|
3483
|
+
const Ne = Ie({});
|
|
3484
|
+
function fn(e) {
|
|
3457
3485
|
return Et[e] || null;
|
|
3458
3486
|
}
|
|
3459
3487
|
function _r(e) {
|
|
3460
3488
|
return e in Et;
|
|
3461
3489
|
}
|
|
3462
|
-
function
|
|
3490
|
+
function cn(e, t) {
|
|
3463
3491
|
if (!_r(e))
|
|
3464
3492
|
return null;
|
|
3465
|
-
const r =
|
|
3466
|
-
return
|
|
3493
|
+
const r = fn(e);
|
|
3494
|
+
return ln(r, t);
|
|
3467
3495
|
}
|
|
3468
|
-
function
|
|
3496
|
+
function dn(e) {
|
|
3469
3497
|
if (e == null)
|
|
3470
3498
|
return;
|
|
3471
|
-
const t =
|
|
3499
|
+
const t = Re(e);
|
|
3472
3500
|
for (let r = 0; r < t.length; r++) {
|
|
3473
3501
|
const i = t[r];
|
|
3474
3502
|
if (_r(i))
|
|
@@ -3476,64 +3504,64 @@ function mn(e) {
|
|
|
3476
3504
|
}
|
|
3477
3505
|
}
|
|
3478
3506
|
function xr(e, ...t) {
|
|
3479
|
-
delete
|
|
3507
|
+
delete fe[e], Ne.update((r) => (r[e] = vi.all([r[e] || {}, ...t]), r));
|
|
3480
3508
|
}
|
|
3481
3509
|
Pe(
|
|
3482
|
-
[
|
|
3510
|
+
[Ne],
|
|
3483
3511
|
([e]) => Object.keys(e)
|
|
3484
3512
|
);
|
|
3485
|
-
|
|
3486
|
-
const
|
|
3487
|
-
function
|
|
3488
|
-
|
|
3513
|
+
Ne.subscribe((e) => Et = e);
|
|
3514
|
+
const je = {};
|
|
3515
|
+
function mn(e, t) {
|
|
3516
|
+
je[e].delete(t), je[e].size === 0 && delete je[e];
|
|
3489
3517
|
}
|
|
3490
3518
|
function Er(e) {
|
|
3491
|
-
return
|
|
3519
|
+
return je[e];
|
|
3492
3520
|
}
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3521
|
+
function pn(e) {
|
|
3522
|
+
return Re(e).map((t) => {
|
|
3495
3523
|
const r = Er(t);
|
|
3496
3524
|
return [t, r ? [...r] : []];
|
|
3497
3525
|
}).filter(([, t]) => t.length > 0);
|
|
3498
3526
|
}
|
|
3499
|
-
function
|
|
3500
|
-
return e == null ? !1 :
|
|
3527
|
+
function ze(e) {
|
|
3528
|
+
return e == null ? !1 : Re(e).some(
|
|
3501
3529
|
(t) => {
|
|
3502
3530
|
var r;
|
|
3503
3531
|
return (r = Er(t)) == null ? void 0 : r.size;
|
|
3504
3532
|
}
|
|
3505
3533
|
);
|
|
3506
3534
|
}
|
|
3507
|
-
function
|
|
3535
|
+
function gn(e, t) {
|
|
3508
3536
|
return Promise.all(
|
|
3509
|
-
t.map((i) => (
|
|
3537
|
+
t.map((i) => (mn(e, i), i().then((n) => n.default || n)))
|
|
3510
3538
|
).then((i) => xr(e, ...i));
|
|
3511
3539
|
}
|
|
3512
|
-
const
|
|
3540
|
+
const Oe = {};
|
|
3513
3541
|
function wr(e) {
|
|
3514
|
-
if (!
|
|
3515
|
-
return e in
|
|
3516
|
-
const t =
|
|
3517
|
-
return
|
|
3542
|
+
if (!ze(e))
|
|
3543
|
+
return e in Oe ? Oe[e] : Promise.resolve();
|
|
3544
|
+
const t = pn(e);
|
|
3545
|
+
return Oe[e] = Promise.all(
|
|
3518
3546
|
t.map(
|
|
3519
|
-
([r, i]) =>
|
|
3547
|
+
([r, i]) => gn(r, i)
|
|
3520
3548
|
)
|
|
3521
3549
|
).then(() => {
|
|
3522
|
-
if (
|
|
3550
|
+
if (ze(e))
|
|
3523
3551
|
return wr(e);
|
|
3524
|
-
delete
|
|
3525
|
-
}),
|
|
3552
|
+
delete Oe[e];
|
|
3553
|
+
}), Oe[e];
|
|
3526
3554
|
}
|
|
3527
|
-
var Rt = Object.getOwnPropertySymbols,
|
|
3555
|
+
var Rt = Object.getOwnPropertySymbols, vn = Object.prototype.hasOwnProperty, bn = Object.prototype.propertyIsEnumerable, yn = (e, t) => {
|
|
3528
3556
|
var r = {};
|
|
3529
3557
|
for (var i in e)
|
|
3530
|
-
|
|
3558
|
+
vn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3531
3559
|
if (e != null && Rt)
|
|
3532
3560
|
for (var i of Rt(e))
|
|
3533
|
-
t.indexOf(i) < 0 &&
|
|
3561
|
+
t.indexOf(i) < 0 && bn.call(e, i) && (r[i] = e[i]);
|
|
3534
3562
|
return r;
|
|
3535
3563
|
};
|
|
3536
|
-
const
|
|
3564
|
+
const _n = {
|
|
3537
3565
|
number: {
|
|
3538
3566
|
scientific: { notation: "scientific" },
|
|
3539
3567
|
engineering: { notation: "engineering" },
|
|
@@ -3563,28 +3591,28 @@ const xn = {
|
|
|
3563
3591
|
}
|
|
3564
3592
|
}
|
|
3565
3593
|
};
|
|
3566
|
-
function
|
|
3594
|
+
function xn({ locale: e, id: t }) {
|
|
3567
3595
|
console.warn(
|
|
3568
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3596
|
+
`[svelte-i18n] The message "${t}" was not found in "${Re(
|
|
3569
3597
|
e
|
|
3570
|
-
).join('", "')}".${
|
|
3598
|
+
).join('", "')}".${ze(ce()) ? `
|
|
3571
3599
|
|
|
3572
3600
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3573
3601
|
);
|
|
3574
3602
|
}
|
|
3575
|
-
const
|
|
3603
|
+
const En = {
|
|
3576
3604
|
fallbackLocale: null,
|
|
3577
3605
|
loadingDelay: 200,
|
|
3578
|
-
formats:
|
|
3606
|
+
formats: _n,
|
|
3579
3607
|
warnOnMissingMessages: !0,
|
|
3580
3608
|
handleMissingMessage: void 0,
|
|
3581
3609
|
ignoreTag: !0
|
|
3582
|
-
}, Be =
|
|
3583
|
-
function
|
|
3610
|
+
}, Be = En;
|
|
3611
|
+
function He() {
|
|
3584
3612
|
return Be;
|
|
3585
3613
|
}
|
|
3586
|
-
function
|
|
3587
|
-
const t = e, { formats: r } = t, i =
|
|
3614
|
+
function wn(e) {
|
|
3615
|
+
const t = e, { formats: r } = t, i = yn(t, ["formats"]);
|
|
3588
3616
|
let n = e.fallbackLocale;
|
|
3589
3617
|
if (e.initialLocale)
|
|
3590
3618
|
try {
|
|
@@ -3594,143 +3622,143 @@ function Sn(e) {
|
|
|
3594
3622
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3595
3623
|
);
|
|
3596
3624
|
}
|
|
3597
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3625
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = xn : console.warn(
|
|
3598
3626
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3599
|
-
)), 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)),
|
|
3627
|
+
)), 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);
|
|
3600
3628
|
}
|
|
3601
|
-
const
|
|
3602
|
-
var
|
|
3629
|
+
const nt = Ie(!1);
|
|
3630
|
+
var Sn = Object.defineProperty, Tn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, Pn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, On = (e, t) => {
|
|
3603
3631
|
for (var r in t || (t = {}))
|
|
3604
3632
|
Pn.call(t, r) && Ut(e, r, t[r]);
|
|
3605
3633
|
if (kt)
|
|
3606
3634
|
for (var r of kt(t))
|
|
3607
3635
|
An.call(t, r) && Ut(e, r, t[r]);
|
|
3608
3636
|
return e;
|
|
3609
|
-
}, Bn = (e, t) =>
|
|
3610
|
-
let
|
|
3611
|
-
const
|
|
3637
|
+
}, Bn = (e, t) => Tn(e, Hn(t));
|
|
3638
|
+
let pt;
|
|
3639
|
+
const Xe = Ie(null);
|
|
3612
3640
|
function Ft(e) {
|
|
3613
3641
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3614
3642
|
}
|
|
3615
|
-
function
|
|
3643
|
+
function Re(e, t = He().fallbackLocale) {
|
|
3616
3644
|
const r = Ft(e);
|
|
3617
3645
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Ft(t)])] : r;
|
|
3618
3646
|
}
|
|
3619
|
-
function
|
|
3620
|
-
return
|
|
3647
|
+
function ce() {
|
|
3648
|
+
return pt ?? void 0;
|
|
3621
3649
|
}
|
|
3622
|
-
|
|
3623
|
-
|
|
3650
|
+
Xe.subscribe((e) => {
|
|
3651
|
+
pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3624
3652
|
});
|
|
3625
|
-
const
|
|
3626
|
-
if (e &&
|
|
3627
|
-
const { loadingDelay: t } =
|
|
3653
|
+
const $n = (e) => {
|
|
3654
|
+
if (e && dn(e) && ze(e)) {
|
|
3655
|
+
const { loadingDelay: t } = He();
|
|
3628
3656
|
let r;
|
|
3629
|
-
return typeof window < "u" &&
|
|
3630
|
-
() =>
|
|
3657
|
+
return typeof window < "u" && ce() != null && t ? r = window.setTimeout(
|
|
3658
|
+
() => nt.set(!0),
|
|
3631
3659
|
t
|
|
3632
|
-
) :
|
|
3633
|
-
|
|
3660
|
+
) : nt.set(!0), wr(e).then(() => {
|
|
3661
|
+
Xe.set(e);
|
|
3634
3662
|
}).finally(() => {
|
|
3635
|
-
clearTimeout(r),
|
|
3663
|
+
clearTimeout(r), nt.set(!1);
|
|
3636
3664
|
});
|
|
3637
3665
|
}
|
|
3638
|
-
return
|
|
3639
|
-
},
|
|
3640
|
-
set:
|
|
3641
|
-
}),
|
|
3666
|
+
return Xe.set(e);
|
|
3667
|
+
}, pe = Bn(On({}, Xe), {
|
|
3668
|
+
set: $n
|
|
3669
|
+
}), Ze = (e) => {
|
|
3642
3670
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3643
3671
|
return (i) => {
|
|
3644
3672
|
const n = JSON.stringify(i);
|
|
3645
3673
|
return n in t ? t[n] : t[n] = e(i);
|
|
3646
3674
|
};
|
|
3647
3675
|
};
|
|
3648
|
-
var
|
|
3676
|
+
var Mn = Object.defineProperty, We = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
|
|
3649
3677
|
for (var r in t || (t = {}))
|
|
3650
3678
|
Sr.call(t, r) && Vt(e, r, t[r]);
|
|
3651
|
-
if (
|
|
3652
|
-
for (var r of
|
|
3679
|
+
if (We)
|
|
3680
|
+
for (var r of We(t))
|
|
3653
3681
|
Tr.call(t, r) && Vt(e, r, t[r]);
|
|
3654
3682
|
return e;
|
|
3655
3683
|
}, Ae = (e, t) => {
|
|
3656
3684
|
var r = {};
|
|
3657
3685
|
for (var i in e)
|
|
3658
3686
|
Sr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3659
|
-
if (e != null &&
|
|
3660
|
-
for (var i of
|
|
3687
|
+
if (e != null && We)
|
|
3688
|
+
for (var i of We(e))
|
|
3661
3689
|
t.indexOf(i) < 0 && Tr.call(e, i) && (r[i] = e[i]);
|
|
3662
3690
|
return r;
|
|
3663
3691
|
};
|
|
3664
|
-
const
|
|
3665
|
-
const { formats: r } =
|
|
3692
|
+
const De = (e, t) => {
|
|
3693
|
+
const { formats: r } = He();
|
|
3666
3694
|
if (e in r && t in r[e])
|
|
3667
3695
|
return r[e][t];
|
|
3668
3696
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3669
|
-
},
|
|
3697
|
+
}, Cn = Ze(
|
|
3670
3698
|
(e) => {
|
|
3671
3699
|
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3672
3700
|
if (r == null)
|
|
3673
3701
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3674
|
-
return i && (n =
|
|
3702
|
+
return i && (n = De("number", i)), new Intl.NumberFormat(r, n);
|
|
3675
3703
|
}
|
|
3676
|
-
),
|
|
3704
|
+
), Dn = Ze(
|
|
3677
3705
|
(e) => {
|
|
3678
3706
|
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3679
3707
|
if (r == null)
|
|
3680
3708
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3681
|
-
return i ? n =
|
|
3709
|
+
return i ? n = De("date", i) : Object.keys(n).length === 0 && (n = De("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3682
3710
|
}
|
|
3683
|
-
),
|
|
3711
|
+
), Ln = Ze(
|
|
3684
3712
|
(e) => {
|
|
3685
3713
|
var t = e, { locale: r, format: i } = t, n = Ae(t, ["locale", "format"]);
|
|
3686
3714
|
if (r == null)
|
|
3687
3715
|
throw new Error(
|
|
3688
3716
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3689
3717
|
);
|
|
3690
|
-
return i ? n =
|
|
3718
|
+
return i ? n = De("time", i) : Object.keys(n).length === 0 && (n = De("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3691
3719
|
}
|
|
3692
|
-
),
|
|
3720
|
+
), In = (e = {}) => {
|
|
3693
3721
|
var t = e, {
|
|
3694
|
-
locale: r =
|
|
3722
|
+
locale: r = ce()
|
|
3695
3723
|
} = t, i = Ae(t, [
|
|
3696
3724
|
"locale"
|
|
3697
3725
|
]);
|
|
3698
|
-
return
|
|
3699
|
-
},
|
|
3726
|
+
return Cn(wt({ locale: r }, i));
|
|
3727
|
+
}, Nn = (e = {}) => {
|
|
3700
3728
|
var t = e, {
|
|
3701
|
-
locale: r =
|
|
3729
|
+
locale: r = ce()
|
|
3702
3730
|
} = t, i = Ae(t, [
|
|
3703
3731
|
"locale"
|
|
3704
3732
|
]);
|
|
3705
|
-
return
|
|
3706
|
-
},
|
|
3733
|
+
return Dn(wt({ locale: r }, i));
|
|
3734
|
+
}, Rn = (e = {}) => {
|
|
3707
3735
|
var t = e, {
|
|
3708
|
-
locale: r =
|
|
3736
|
+
locale: r = ce()
|
|
3709
3737
|
} = t, i = Ae(t, [
|
|
3710
3738
|
"locale"
|
|
3711
3739
|
]);
|
|
3712
|
-
return
|
|
3713
|
-
},
|
|
3740
|
+
return Ln(wt({ locale: r }, i));
|
|
3741
|
+
}, kn = Ze(
|
|
3714
3742
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3715
|
-
(e, t =
|
|
3716
|
-
ignoreTag:
|
|
3743
|
+
(e, t = ce()) => new br(e, t, He().formats, {
|
|
3744
|
+
ignoreTag: He().ignoreTag
|
|
3717
3745
|
})
|
|
3718
|
-
),
|
|
3746
|
+
), Un = (e, t = {}) => {
|
|
3719
3747
|
var r, i, n, s;
|
|
3720
|
-
let
|
|
3721
|
-
typeof e == "object" && (
|
|
3748
|
+
let o = t;
|
|
3749
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3722
3750
|
const {
|
|
3723
3751
|
values: u,
|
|
3724
|
-
locale:
|
|
3752
|
+
locale: a = ce(),
|
|
3725
3753
|
default: l
|
|
3726
|
-
} =
|
|
3727
|
-
if (
|
|
3754
|
+
} = o;
|
|
3755
|
+
if (a == null)
|
|
3728
3756
|
throw new Error(
|
|
3729
3757
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3730
3758
|
);
|
|
3731
|
-
let h = yr(e,
|
|
3759
|
+
let h = yr(e, a);
|
|
3732
3760
|
if (!h)
|
|
3733
|
-
h = (s = (n = (i = (r =
|
|
3761
|
+
h = (s = (n = (i = (r = He()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: a, id: e, defaultValue: l })) != null ? n : l) != null ? s : e;
|
|
3734
3762
|
else if (typeof h != "string")
|
|
3735
3763
|
return console.warn(
|
|
3736
3764
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3739,7 +3767,7 @@ const Le = (e, t) => {
|
|
|
3739
3767
|
return h;
|
|
3740
3768
|
let c = h;
|
|
3741
3769
|
try {
|
|
3742
|
-
c =
|
|
3770
|
+
c = kn(h, a).format(u);
|
|
3743
3771
|
} catch (p) {
|
|
3744
3772
|
p instanceof Error && console.warn(
|
|
3745
3773
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3747,18 +3775,18 @@ const Le = (e, t) => {
|
|
|
3747
3775
|
);
|
|
3748
3776
|
}
|
|
3749
3777
|
return c;
|
|
3750
|
-
},
|
|
3751
|
-
Pe([
|
|
3752
|
-
Pe([
|
|
3753
|
-
Pe([
|
|
3754
|
-
Pe([
|
|
3778
|
+
}, Fn = (e, t) => Rn(t).format(e), Vn = (e, t) => Nn(t).format(e), Gn = (e, t) => In(t).format(e), jn = (e, t = ce()) => yr(e, t), zn = Pe([pe, Ne], () => Un);
|
|
3779
|
+
Pe([pe], () => Fn);
|
|
3780
|
+
Pe([pe], () => Vn);
|
|
3781
|
+
Pe([pe], () => Gn);
|
|
3782
|
+
Pe([pe, Ne], () => jn);
|
|
3755
3783
|
function Gt(e, t) {
|
|
3756
3784
|
xr(e, t);
|
|
3757
3785
|
}
|
|
3758
|
-
function
|
|
3759
|
-
|
|
3786
|
+
function Xn(e) {
|
|
3787
|
+
wn({
|
|
3760
3788
|
fallbackLocale: "en"
|
|
3761
|
-
}),
|
|
3789
|
+
}), pe.set(e);
|
|
3762
3790
|
}
|
|
3763
3791
|
const jt = {
|
|
3764
3792
|
en: {
|
|
@@ -3828,18 +3856,18 @@ if (typeof window < "u") {
|
|
|
3828
3856
|
}
|
|
3829
3857
|
};
|
|
3830
3858
|
};
|
|
3831
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3859
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-CVLG3P4a.js").then(({ default: t }) => {
|
|
3832
3860
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3833
3861
|
});
|
|
3834
3862
|
}
|
|
3835
|
-
let
|
|
3836
|
-
function
|
|
3863
|
+
let Wn = Ie(null);
|
|
3864
|
+
function qn(e, t) {
|
|
3837
3865
|
if (e) {
|
|
3838
3866
|
const r = document.createElement("style");
|
|
3839
3867
|
r.innerHTML = t, e.appendChild(r);
|
|
3840
3868
|
}
|
|
3841
3869
|
}
|
|
3842
|
-
function
|
|
3870
|
+
function Yn(e, t) {
|
|
3843
3871
|
const r = new URL(t);
|
|
3844
3872
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
3845
3873
|
const n = document.createElement("style");
|
|
@@ -3848,7 +3876,7 @@ function Zn(e, t) {
|
|
|
3848
3876
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
3849
3877
|
});
|
|
3850
3878
|
}
|
|
3851
|
-
function
|
|
3879
|
+
function Zn(e, t, r) {
|
|
3852
3880
|
if (window.emMessageBus) {
|
|
3853
3881
|
const i = document.createElement("style");
|
|
3854
3882
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -3861,15 +3889,15 @@ var Hr = { exports: {} };
|
|
|
3861
3889
|
(function(r, i) {
|
|
3862
3890
|
e.exports = i();
|
|
3863
3891
|
})(er, function() {
|
|
3864
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond",
|
|
3892
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", u = "minute", a = "hour", l = "day", h = "week", c = "month", p = "quarter", _ = "year", S = "date", v = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|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(x) {
|
|
3865
3893
|
var g = ["th", "st", "nd", "rd"], d = x % 100;
|
|
3866
3894
|
return "[" + x + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3867
|
-
} },
|
|
3895
|
+
} }, B = function(x, g, d) {
|
|
3868
3896
|
var b = String(x);
|
|
3869
3897
|
return !b || b.length >= g ? x : "" + Array(g + 1 - b.length).join(d) + x;
|
|
3870
|
-
}, z = { s:
|
|
3898
|
+
}, z = { s: B, z: function(x) {
|
|
3871
3899
|
var g = -x.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), m = d % 60;
|
|
3872
|
-
return (g <= 0 ? "+" : "-") +
|
|
3900
|
+
return (g <= 0 ? "+" : "-") + B(b, 2, "0") + ":" + B(m, 2, "0");
|
|
3873
3901
|
}, m: function x(g, d) {
|
|
3874
3902
|
if (g.date() < d.date())
|
|
3875
3903
|
return -x(d, g);
|
|
@@ -3878,12 +3906,12 @@ var Hr = { exports: {} };
|
|
|
3878
3906
|
}, a: function(x) {
|
|
3879
3907
|
return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
|
|
3880
3908
|
}, p: function(x) {
|
|
3881
|
-
return { M: c, y: _, w: h, d: l, D: S, h:
|
|
3909
|
+
return { M: c, y: _, w: h, d: l, D: S, h: a, m: u, s: o, ms: s, Q: p }[x] || String(x || "").toLowerCase().replace(/s$/, "");
|
|
3882
3910
|
}, u: function(x) {
|
|
3883
3911
|
return x === void 0;
|
|
3884
3912
|
} }, I = "en", U = {};
|
|
3885
3913
|
U[I] = R;
|
|
3886
|
-
var W = "$isDayjsObject",
|
|
3914
|
+
var W = "$isDayjsObject", oe = function(x) {
|
|
3887
3915
|
return x instanceof k || !(!x || !x[W]);
|
|
3888
3916
|
}, Y = function x(g, d, b) {
|
|
3889
3917
|
var m;
|
|
@@ -3900,14 +3928,14 @@ var Hr = { exports: {} };
|
|
|
3900
3928
|
U[$] = g, m = $;
|
|
3901
3929
|
}
|
|
3902
3930
|
return !b && m && (I = m), m || !b && I;
|
|
3903
|
-
},
|
|
3904
|
-
if (
|
|
3931
|
+
}, C = function(x, g) {
|
|
3932
|
+
if (oe(x))
|
|
3905
3933
|
return x.clone();
|
|
3906
3934
|
var d = typeof g == "object" ? g : {};
|
|
3907
3935
|
return d.date = x, d.args = arguments, new k(d);
|
|
3908
|
-
},
|
|
3909
|
-
|
|
3910
|
-
return
|
|
3936
|
+
}, A = z;
|
|
3937
|
+
A.l = Y, A.i = oe, A.w = function(x, g) {
|
|
3938
|
+
return C(x, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3911
3939
|
};
|
|
3912
3940
|
var k = function() {
|
|
3913
3941
|
function x(d) {
|
|
@@ -3919,15 +3947,15 @@ var Hr = { exports: {} };
|
|
|
3919
3947
|
var m = b.date, E = b.utc;
|
|
3920
3948
|
if (m === null)
|
|
3921
3949
|
return /* @__PURE__ */ new Date(NaN);
|
|
3922
|
-
if (
|
|
3950
|
+
if (A.u(m))
|
|
3923
3951
|
return /* @__PURE__ */ new Date();
|
|
3924
3952
|
if (m instanceof Date)
|
|
3925
3953
|
return new Date(m);
|
|
3926
3954
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3927
|
-
var w = m.match(
|
|
3955
|
+
var w = m.match(M);
|
|
3928
3956
|
if (w) {
|
|
3929
|
-
var $ = w[2] - 1 || 0,
|
|
3930
|
-
return E ? new Date(Date.UTC(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0,
|
|
3957
|
+
var $ = w[2] - 1 || 0, L = (w[7] || "0").substring(0, 3);
|
|
3958
|
+
return E ? new Date(Date.UTC(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L)) : new Date(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, L);
|
|
3931
3959
|
}
|
|
3932
3960
|
}
|
|
3933
3961
|
return new Date(m);
|
|
@@ -3936,69 +3964,69 @@ var Hr = { exports: {} };
|
|
|
3936
3964
|
var d = this.$d;
|
|
3937
3965
|
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();
|
|
3938
3966
|
}, g.$utils = function() {
|
|
3939
|
-
return
|
|
3967
|
+
return A;
|
|
3940
3968
|
}, g.isValid = function() {
|
|
3941
3969
|
return this.$d.toString() !== v;
|
|
3942
3970
|
}, g.isSame = function(d, b) {
|
|
3943
|
-
var m =
|
|
3971
|
+
var m = C(d);
|
|
3944
3972
|
return this.startOf(b) <= m && m <= this.endOf(b);
|
|
3945
3973
|
}, g.isAfter = function(d, b) {
|
|
3946
|
-
return
|
|
3974
|
+
return C(d) < this.startOf(b);
|
|
3947
3975
|
}, g.isBefore = function(d, b) {
|
|
3948
|
-
return this.endOf(b) <
|
|
3976
|
+
return this.endOf(b) < C(d);
|
|
3949
3977
|
}, g.$g = function(d, b, m) {
|
|
3950
|
-
return
|
|
3978
|
+
return A.u(d) ? this[b] : this.set(m, d);
|
|
3951
3979
|
}, g.unix = function() {
|
|
3952
3980
|
return Math.floor(this.valueOf() / 1e3);
|
|
3953
3981
|
}, g.valueOf = function() {
|
|
3954
3982
|
return this.$d.getTime();
|
|
3955
3983
|
}, g.startOf = function(d, b) {
|
|
3956
|
-
var m = this, E = !!
|
|
3957
|
-
var ie =
|
|
3984
|
+
var m = this, E = !!A.u(b) || b, w = A.p(d), $ = function(ae, G) {
|
|
3985
|
+
var ie = A.w(m.$u ? Date.UTC(m.$y, G, ae) : new Date(m.$y, G, ae), m);
|
|
3958
3986
|
return E ? ie : ie.endOf(l);
|
|
3959
|
-
},
|
|
3960
|
-
return
|
|
3961
|
-
}, N = this.$W, F = this.$M, X = this.$D,
|
|
3987
|
+
}, L = function(ae, G) {
|
|
3988
|
+
return A.w(m.toDate()[ae].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), m);
|
|
3989
|
+
}, N = this.$W, F = this.$M, X = this.$D, he = "set" + (this.$u ? "UTC" : "");
|
|
3962
3990
|
switch (w) {
|
|
3963
3991
|
case _:
|
|
3964
3992
|
return E ? $(1, 0) : $(31, 11);
|
|
3965
3993
|
case c:
|
|
3966
3994
|
return E ? $(1, F) : $(0, F + 1);
|
|
3967
3995
|
case h:
|
|
3968
|
-
var re = this.$locale().weekStart || 0,
|
|
3969
|
-
return $(E ? X -
|
|
3996
|
+
var re = this.$locale().weekStart || 0, de = (N < re ? N + 7 : N) - re;
|
|
3997
|
+
return $(E ? X - de : X + (6 - de), F);
|
|
3970
3998
|
case l:
|
|
3971
3999
|
case S:
|
|
3972
|
-
return
|
|
3973
|
-
case o:
|
|
3974
|
-
return D(fe + "Minutes", 1);
|
|
3975
|
-
case u:
|
|
3976
|
-
return D(fe + "Seconds", 2);
|
|
4000
|
+
return L(he + "Hours", 0);
|
|
3977
4001
|
case a:
|
|
3978
|
-
return
|
|
4002
|
+
return L(he + "Minutes", 1);
|
|
4003
|
+
case u:
|
|
4004
|
+
return L(he + "Seconds", 2);
|
|
4005
|
+
case o:
|
|
4006
|
+
return L(he + "Milliseconds", 3);
|
|
3979
4007
|
default:
|
|
3980
4008
|
return this.clone();
|
|
3981
4009
|
}
|
|
3982
4010
|
}, g.endOf = function(d) {
|
|
3983
4011
|
return this.startOf(d, !1);
|
|
3984
4012
|
}, g.$set = function(d, b) {
|
|
3985
|
-
var m, E =
|
|
4013
|
+
var m, E = A.p(d), w = "set" + (this.$u ? "UTC" : ""), $ = (m = {}, m[l] = w + "Date", m[S] = w + "Date", m[c] = w + "Month", m[_] = w + "FullYear", m[a] = w + "Hours", m[u] = w + "Minutes", m[o] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], L = E === l ? this.$D + (b - this.$W) : b;
|
|
3986
4014
|
if (E === c || E === _) {
|
|
3987
4015
|
var N = this.clone().set(S, 1);
|
|
3988
|
-
N.$d[$](
|
|
4016
|
+
N.$d[$](L), N.init(), this.$d = N.set(S, Math.min(this.$D, N.daysInMonth())).$d;
|
|
3989
4017
|
} else
|
|
3990
|
-
$ && this.$d[$](
|
|
4018
|
+
$ && this.$d[$](L);
|
|
3991
4019
|
return this.init(), this;
|
|
3992
4020
|
}, g.set = function(d, b) {
|
|
3993
4021
|
return this.clone().$set(d, b);
|
|
3994
4022
|
}, g.get = function(d) {
|
|
3995
|
-
return this[
|
|
4023
|
+
return this[A.p(d)]();
|
|
3996
4024
|
}, g.add = function(d, b) {
|
|
3997
4025
|
var m, E = this;
|
|
3998
4026
|
d = Number(d);
|
|
3999
|
-
var w =
|
|
4000
|
-
var X =
|
|
4001
|
-
return
|
|
4027
|
+
var w = A.p(b), $ = function(F) {
|
|
4028
|
+
var X = C(E);
|
|
4029
|
+
return A.w(X.date(X.date() + Math.round(F * d)), E);
|
|
4002
4030
|
};
|
|
4003
4031
|
if (w === c)
|
|
4004
4032
|
return this.set(c, this.$M + d);
|
|
@@ -4008,33 +4036,33 @@ var Hr = { exports: {} };
|
|
|
4008
4036
|
return $(1);
|
|
4009
4037
|
if (w === h)
|
|
4010
4038
|
return $(7);
|
|
4011
|
-
var
|
|
4012
|
-
return
|
|
4039
|
+
var L = (m = {}, m[u] = i, m[a] = n, m[o] = r, m)[w] || 1, N = this.$d.getTime() + d * L;
|
|
4040
|
+
return A.w(N, this);
|
|
4013
4041
|
}, g.subtract = function(d, b) {
|
|
4014
4042
|
return this.add(-1 * d, b);
|
|
4015
4043
|
}, g.format = function(d) {
|
|
4016
4044
|
var b = this, m = this.$locale();
|
|
4017
4045
|
if (!this.isValid())
|
|
4018
4046
|
return m.invalidDate || v;
|
|
4019
|
-
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
4020
|
-
return G && (G[ie] || G(b, E)) ||
|
|
4021
|
-
},
|
|
4022
|
-
return
|
|
4023
|
-
},
|
|
4024
|
-
var
|
|
4025
|
-
return
|
|
4047
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = A.z(this), $ = this.$H, L = this.$m, N = this.$M, F = m.weekdays, X = m.months, he = m.meridiem, re = function(G, ie, ue, ge) {
|
|
4048
|
+
return G && (G[ie] || G(b, E)) || ue[ie].slice(0, ge);
|
|
4049
|
+
}, de = function(G) {
|
|
4050
|
+
return A.s($ % 12 || 12, G, "0");
|
|
4051
|
+
}, ae = he || function(G, ie, ue) {
|
|
4052
|
+
var ge = G < 12 ? "AM" : "PM";
|
|
4053
|
+
return ue ? ge.toLowerCase() : ge;
|
|
4026
4054
|
};
|
|
4027
4055
|
return E.replace(V, function(G, ie) {
|
|
4028
|
-
return ie || function(
|
|
4029
|
-
switch (
|
|
4056
|
+
return ie || function(ue) {
|
|
4057
|
+
switch (ue) {
|
|
4030
4058
|
case "YY":
|
|
4031
4059
|
return String(b.$y).slice(-2);
|
|
4032
4060
|
case "YYYY":
|
|
4033
|
-
return
|
|
4061
|
+
return A.s(b.$y, 4, "0");
|
|
4034
4062
|
case "M":
|
|
4035
4063
|
return N + 1;
|
|
4036
4064
|
case "MM":
|
|
4037
|
-
return
|
|
4065
|
+
return A.s(N + 1, 2, "0");
|
|
4038
4066
|
case "MMM":
|
|
4039
4067
|
return re(m.monthsShort, N, X, 3);
|
|
4040
4068
|
case "MMMM":
|
|
@@ -4042,7 +4070,7 @@ var Hr = { exports: {} };
|
|
|
4042
4070
|
case "D":
|
|
4043
4071
|
return b.$D;
|
|
4044
4072
|
case "DD":
|
|
4045
|
-
return
|
|
4073
|
+
return A.s(b.$D, 2, "0");
|
|
4046
4074
|
case "d":
|
|
4047
4075
|
return String(b.$W);
|
|
4048
4076
|
case "dd":
|
|
@@ -4054,25 +4082,25 @@ var Hr = { exports: {} };
|
|
|
4054
4082
|
case "H":
|
|
4055
4083
|
return String($);
|
|
4056
4084
|
case "HH":
|
|
4057
|
-
return
|
|
4085
|
+
return A.s($, 2, "0");
|
|
4058
4086
|
case "h":
|
|
4059
|
-
return
|
|
4087
|
+
return de(1);
|
|
4060
4088
|
case "hh":
|
|
4061
|
-
return
|
|
4089
|
+
return de(2);
|
|
4062
4090
|
case "a":
|
|
4063
|
-
return
|
|
4091
|
+
return ae($, L, !0);
|
|
4064
4092
|
case "A":
|
|
4065
|
-
return
|
|
4093
|
+
return ae($, L, !1);
|
|
4066
4094
|
case "m":
|
|
4067
|
-
return String(
|
|
4095
|
+
return String(L);
|
|
4068
4096
|
case "mm":
|
|
4069
|
-
return
|
|
4097
|
+
return A.s(L, 2, "0");
|
|
4070
4098
|
case "s":
|
|
4071
4099
|
return String(b.$s);
|
|
4072
4100
|
case "ss":
|
|
4073
|
-
return
|
|
4101
|
+
return A.s(b.$s, 2, "0");
|
|
4074
4102
|
case "SSS":
|
|
4075
|
-
return
|
|
4103
|
+
return A.s(b.$ms, 3, "0");
|
|
4076
4104
|
case "Z":
|
|
4077
4105
|
return w;
|
|
4078
4106
|
}
|
|
@@ -4082,8 +4110,8 @@ var Hr = { exports: {} };
|
|
|
4082
4110
|
}, g.utcOffset = function() {
|
|
4083
4111
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4084
4112
|
}, g.diff = function(d, b, m) {
|
|
4085
|
-
var E, w = this, $ =
|
|
4086
|
-
return
|
|
4113
|
+
var E, w = this, $ = A.p(b), L = C(d), N = (L.utcOffset() - this.utcOffset()) * i, F = this - L, X = function() {
|
|
4114
|
+
return A.m(w, L);
|
|
4087
4115
|
};
|
|
4088
4116
|
switch ($) {
|
|
4089
4117
|
case _:
|
|
@@ -4101,19 +4129,19 @@ var Hr = { exports: {} };
|
|
|
4101
4129
|
case l:
|
|
4102
4130
|
E = (F - N) / 864e5;
|
|
4103
4131
|
break;
|
|
4104
|
-
case
|
|
4132
|
+
case a:
|
|
4105
4133
|
E = F / n;
|
|
4106
4134
|
break;
|
|
4107
4135
|
case u:
|
|
4108
4136
|
E = F / i;
|
|
4109
4137
|
break;
|
|
4110
|
-
case
|
|
4138
|
+
case o:
|
|
4111
4139
|
E = F / r;
|
|
4112
4140
|
break;
|
|
4113
4141
|
default:
|
|
4114
4142
|
E = F;
|
|
4115
4143
|
}
|
|
4116
|
-
return m ? E :
|
|
4144
|
+
return m ? E : A.a(E);
|
|
4117
4145
|
}, g.daysInMonth = function() {
|
|
4118
4146
|
return this.endOf(c).$D;
|
|
4119
4147
|
}, g.$locale = function() {
|
|
@@ -4124,7 +4152,7 @@ var Hr = { exports: {} };
|
|
|
4124
4152
|
var m = this.clone(), E = Y(d, b, !0);
|
|
4125
4153
|
return E && (m.$L = E), m;
|
|
4126
4154
|
}, g.clone = function() {
|
|
4127
|
-
return
|
|
4155
|
+
return A.w(this.$d, this);
|
|
4128
4156
|
}, g.toDate = function() {
|
|
4129
4157
|
return new Date(this.valueOf());
|
|
4130
4158
|
}, g.toJSON = function() {
|
|
@@ -4134,51 +4162,51 @@ var Hr = { exports: {} };
|
|
|
4134
4162
|
}, g.toString = function() {
|
|
4135
4163
|
return this.$d.toUTCString();
|
|
4136
4164
|
}, x;
|
|
4137
|
-
}(),
|
|
4138
|
-
return
|
|
4139
|
-
|
|
4165
|
+
}(), le = k.prototype;
|
|
4166
|
+
return C.prototype = le, [["$ms", s], ["$s", o], ["$m", u], ["$H", a], ["$W", l], ["$M", c], ["$y", _], ["$D", S]].forEach(function(x) {
|
|
4167
|
+
le[x[1]] = function(g) {
|
|
4140
4168
|
return this.$g(g, x[0], x[1]);
|
|
4141
4169
|
};
|
|
4142
|
-
}),
|
|
4143
|
-
return x.$i || (x(g, k,
|
|
4144
|
-
},
|
|
4145
|
-
return
|
|
4146
|
-
},
|
|
4170
|
+
}), C.extend = function(x, g) {
|
|
4171
|
+
return x.$i || (x(g, k, C), x.$i = !0), C;
|
|
4172
|
+
}, C.locale = Y, C.isDayjs = oe, C.unix = function(x) {
|
|
4173
|
+
return C(1e3 * x);
|
|
4174
|
+
}, C.en = U[I], C.Ls = U, C.p = {}, C;
|
|
4147
4175
|
});
|
|
4148
4176
|
})(Hr);
|
|
4149
|
-
var
|
|
4150
|
-
const zt = /* @__PURE__ */
|
|
4151
|
-
var
|
|
4177
|
+
var Jn = Hr.exports;
|
|
4178
|
+
const zt = /* @__PURE__ */ yt(Jn);
|
|
4179
|
+
var Pr = { exports: {} };
|
|
4152
4180
|
(function(e, t) {
|
|
4153
4181
|
(function(r, i) {
|
|
4154
4182
|
e.exports = i();
|
|
4155
4183
|
})(er, function() {
|
|
4156
4184
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4157
|
-
return function(s,
|
|
4158
|
-
var
|
|
4185
|
+
return function(s, o, u) {
|
|
4186
|
+
var a = o.prototype;
|
|
4159
4187
|
u.utc = function(v) {
|
|
4160
|
-
var
|
|
4161
|
-
return new
|
|
4162
|
-
},
|
|
4163
|
-
var
|
|
4164
|
-
return v ?
|
|
4165
|
-
},
|
|
4188
|
+
var M = { date: v, utc: !0, args: arguments };
|
|
4189
|
+
return new o(M);
|
|
4190
|
+
}, a.utc = function(v) {
|
|
4191
|
+
var M = u(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4192
|
+
return v ? M.add(this.utcOffset(), r) : M;
|
|
4193
|
+
}, a.local = function() {
|
|
4166
4194
|
return u(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4167
4195
|
};
|
|
4168
|
-
var l =
|
|
4169
|
-
|
|
4196
|
+
var l = a.parse;
|
|
4197
|
+
a.parse = function(v) {
|
|
4170
4198
|
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), l.call(this, v);
|
|
4171
4199
|
};
|
|
4172
|
-
var h =
|
|
4173
|
-
|
|
4200
|
+
var h = a.init;
|
|
4201
|
+
a.init = function() {
|
|
4174
4202
|
if (this.$u) {
|
|
4175
4203
|
var v = this.$d;
|
|
4176
4204
|
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
4177
4205
|
} else
|
|
4178
4206
|
h.call(this);
|
|
4179
4207
|
};
|
|
4180
|
-
var c =
|
|
4181
|
-
|
|
4208
|
+
var c = a.utcOffset;
|
|
4209
|
+
a.utcOffset = function(v, M) {
|
|
4182
4210
|
var V = this.$utils().u;
|
|
4183
4211
|
if (V(v))
|
|
4184
4212
|
return this.$u ? 0 : V(this.$offset) ? c.call(this) : this.$offset;
|
|
@@ -4187,64 +4215,64 @@ var Or = { exports: {} };
|
|
|
4187
4215
|
var U = I.match(i);
|
|
4188
4216
|
if (!U)
|
|
4189
4217
|
return null;
|
|
4190
|
-
var W = ("" + U[0]).match(n) || ["-", 0, 0],
|
|
4191
|
-
return Y === 0 ? 0 :
|
|
4218
|
+
var W = ("" + U[0]).match(n) || ["-", 0, 0], oe = W[0], Y = 60 * +W[1] + +W[2];
|
|
4219
|
+
return Y === 0 ? 0 : oe === "+" ? Y : -Y;
|
|
4192
4220
|
}(v), v === null))
|
|
4193
4221
|
return this;
|
|
4194
|
-
var R = Math.abs(v) <= 16 ? 60 * v : v,
|
|
4195
|
-
if (
|
|
4196
|
-
return
|
|
4222
|
+
var R = Math.abs(v) <= 16 ? 60 * v : v, B = this;
|
|
4223
|
+
if (M)
|
|
4224
|
+
return B.$offset = R, B.$u = v === 0, B;
|
|
4197
4225
|
if (v !== 0) {
|
|
4198
4226
|
var z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4199
|
-
(
|
|
4227
|
+
(B = this.local().add(R + z, r)).$offset = R, B.$x.$localOffset = z;
|
|
4200
4228
|
} else
|
|
4201
|
-
|
|
4202
|
-
return
|
|
4229
|
+
B = this.utc();
|
|
4230
|
+
return B;
|
|
4203
4231
|
};
|
|
4204
|
-
var p =
|
|
4205
|
-
|
|
4206
|
-
var
|
|
4207
|
-
return p.call(this,
|
|
4208
|
-
},
|
|
4232
|
+
var p = a.format;
|
|
4233
|
+
a.format = function(v) {
|
|
4234
|
+
var M = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4235
|
+
return p.call(this, M);
|
|
4236
|
+
}, a.valueOf = function() {
|
|
4209
4237
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4210
4238
|
return this.$d.valueOf() - 6e4 * v;
|
|
4211
|
-
},
|
|
4239
|
+
}, a.isUTC = function() {
|
|
4212
4240
|
return !!this.$u;
|
|
4213
|
-
},
|
|
4241
|
+
}, a.toISOString = function() {
|
|
4214
4242
|
return this.toDate().toISOString();
|
|
4215
|
-
},
|
|
4243
|
+
}, a.toString = function() {
|
|
4216
4244
|
return this.toDate().toUTCString();
|
|
4217
4245
|
};
|
|
4218
|
-
var _ =
|
|
4219
|
-
|
|
4246
|
+
var _ = a.toDate;
|
|
4247
|
+
a.toDate = function(v) {
|
|
4220
4248
|
return v === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : _.call(this);
|
|
4221
4249
|
};
|
|
4222
|
-
var S =
|
|
4223
|
-
|
|
4250
|
+
var S = a.diff;
|
|
4251
|
+
a.diff = function(v, M, V) {
|
|
4224
4252
|
if (v && this.$u === v.$u)
|
|
4225
|
-
return S.call(this, v,
|
|
4226
|
-
var R = this.local(),
|
|
4227
|
-
return S.call(R,
|
|
4253
|
+
return S.call(this, v, M, V);
|
|
4254
|
+
var R = this.local(), B = u(v).local();
|
|
4255
|
+
return S.call(R, B, M, V);
|
|
4228
4256
|
};
|
|
4229
4257
|
};
|
|
4230
4258
|
});
|
|
4231
|
-
})(
|
|
4232
|
-
var
|
|
4233
|
-
const
|
|
4234
|
-
function
|
|
4259
|
+
})(Pr);
|
|
4260
|
+
var Qn = Pr.exports;
|
|
4261
|
+
const Kn = /* @__PURE__ */ yt(Qn);
|
|
4262
|
+
function es(e) {
|
|
4235
4263
|
Dr(e, "svelte-3ui5us", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative;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)}");
|
|
4236
4264
|
}
|
|
4237
4265
|
function Xt(e, t, r) {
|
|
4238
4266
|
const i = e.slice();
|
|
4239
4267
|
return i[54] = t[r], i[56] = r, i;
|
|
4240
4268
|
}
|
|
4241
|
-
function
|
|
4242
|
-
let t, r, i, n, s =
|
|
4269
|
+
function ts(e) {
|
|
4270
|
+
let t, r, i, n, s = At(
|
|
4243
4271
|
/*displayMessages*/
|
|
4244
4272
|
e[4]
|
|
4245
|
-
),
|
|
4246
|
-
for (let
|
|
4247
|
-
a
|
|
4273
|
+
), o = [];
|
|
4274
|
+
for (let a = 0; a < s.length; a += 1)
|
|
4275
|
+
o[a] = qt(Xt(e, s, a));
|
|
4248
4276
|
let u = (
|
|
4249
4277
|
/*videoExists*/
|
|
4250
4278
|
e[7] && Yt(e)
|
|
@@ -4252,9 +4280,9 @@ function rs(e) {
|
|
|
4252
4280
|
return {
|
|
4253
4281
|
c() {
|
|
4254
4282
|
t = q("div");
|
|
4255
|
-
for (let
|
|
4256
|
-
a
|
|
4257
|
-
r =
|
|
4283
|
+
for (let a = 0; a < o.length; a += 1)
|
|
4284
|
+
o[a].c();
|
|
4285
|
+
r = _e(), u && u.c(), i = _e(), n = q("cashier-video-modal"), te(t, "class", "CashierVerificationsWrapper"), J(
|
|
4258
4286
|
n,
|
|
4259
4287
|
"clientstylingurl",
|
|
4260
4288
|
/*clientstylingurl*/
|
|
@@ -4276,61 +4304,61 @@ function rs(e) {
|
|
|
4276
4304
|
e[8]
|
|
4277
4305
|
);
|
|
4278
4306
|
},
|
|
4279
|
-
m(
|
|
4280
|
-
|
|
4281
|
-
for (let h = 0; h <
|
|
4282
|
-
|
|
4283
|
-
|
|
4307
|
+
m(a, l) {
|
|
4308
|
+
se(a, t, l);
|
|
4309
|
+
for (let h = 0; h < o.length; h += 1)
|
|
4310
|
+
o[h] && o[h].m(t, null);
|
|
4311
|
+
se(a, r, l), u && u.m(a, l), se(a, i, l), se(a, n, l);
|
|
4284
4312
|
},
|
|
4285
|
-
p(
|
|
4313
|
+
p(a, l) {
|
|
4286
4314
|
if (l[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4287
4315
|
2096) {
|
|
4288
|
-
s =
|
|
4316
|
+
s = At(
|
|
4289
4317
|
/*displayMessages*/
|
|
4290
|
-
|
|
4318
|
+
a[4]
|
|
4291
4319
|
);
|
|
4292
4320
|
let h;
|
|
4293
4321
|
for (h = 0; h < s.length; h += 1) {
|
|
4294
|
-
const c = Xt(
|
|
4295
|
-
|
|
4322
|
+
const c = Xt(a, s, h);
|
|
4323
|
+
o[h] ? o[h].p(c, l) : (o[h] = qt(c), o[h].c(), o[h].m(t, null));
|
|
4296
4324
|
}
|
|
4297
|
-
for (; h <
|
|
4298
|
-
|
|
4299
|
-
|
|
4325
|
+
for (; h < o.length; h += 1)
|
|
4326
|
+
o[h].d(1);
|
|
4327
|
+
o.length = s.length;
|
|
4300
4328
|
}
|
|
4301
4329
|
/*videoExists*/
|
|
4302
|
-
|
|
4330
|
+
a[7] ? u ? u.p(a, l) : (u = Yt(a), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null), l[0] & /*clientstylingurl*/
|
|
4303
4331
|
2 && J(
|
|
4304
4332
|
n,
|
|
4305
4333
|
"clientstylingurl",
|
|
4306
4334
|
/*clientstylingurl*/
|
|
4307
|
-
|
|
4335
|
+
a[1]
|
|
4308
4336
|
), l[0] & /*clientstyling*/
|
|
4309
4337
|
1 && J(
|
|
4310
4338
|
n,
|
|
4311
4339
|
"clientstyling",
|
|
4312
4340
|
/*clientstyling*/
|
|
4313
|
-
|
|
4341
|
+
a[0]
|
|
4314
4342
|
), l[0] & /*ismobileview*/
|
|
4315
4343
|
4 && J(
|
|
4316
4344
|
n,
|
|
4317
4345
|
"ismobileview",
|
|
4318
4346
|
/*ismobileview*/
|
|
4319
|
-
|
|
4347
|
+
a[2]
|
|
4320
4348
|
), l[0] & /*videoSrc*/
|
|
4321
4349
|
256 && J(
|
|
4322
4350
|
n,
|
|
4323
4351
|
"videosrc",
|
|
4324
4352
|
/*videoSrc*/
|
|
4325
|
-
|
|
4353
|
+
a[8]
|
|
4326
4354
|
);
|
|
4327
4355
|
},
|
|
4328
|
-
d(
|
|
4329
|
-
|
|
4356
|
+
d(a) {
|
|
4357
|
+
a && (K(t), K(r), K(i), K(n)), Nr(o, a), u && u.d(a);
|
|
4330
4358
|
}
|
|
4331
4359
|
};
|
|
4332
4360
|
}
|
|
4333
|
-
function
|
|
4361
|
+
function rs(e) {
|
|
4334
4362
|
let t;
|
|
4335
4363
|
return {
|
|
4336
4364
|
c() {
|
|
@@ -4347,7 +4375,7 @@ function is(e) {
|
|
|
4347
4375
|
);
|
|
4348
4376
|
},
|
|
4349
4377
|
m(r, i) {
|
|
4350
|
-
|
|
4378
|
+
se(r, t, i);
|
|
4351
4379
|
},
|
|
4352
4380
|
p(r, i) {
|
|
4353
4381
|
i[0] & /*clientstylingurl*/
|
|
@@ -4385,10 +4413,10 @@ function Wt(e) {
|
|
|
4385
4413
|
c() {
|
|
4386
4414
|
t = q("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");
|
|
4387
4415
|
},
|
|
4388
|
-
m(s,
|
|
4389
|
-
|
|
4416
|
+
m(s, o) {
|
|
4417
|
+
se(s, t, o), r || (i = bt(t, "click", n), r = !0);
|
|
4390
4418
|
},
|
|
4391
|
-
p(s,
|
|
4419
|
+
p(s, o) {
|
|
4392
4420
|
e = s;
|
|
4393
4421
|
},
|
|
4394
4422
|
d(s) {
|
|
@@ -4400,7 +4428,7 @@ function qt(e) {
|
|
|
4400
4428
|
let t, r, i, n, s = (
|
|
4401
4429
|
/*message*/
|
|
4402
4430
|
e[54] + ""
|
|
4403
|
-
),
|
|
4431
|
+
), o, u, a, l, h = (
|
|
4404
4432
|
/*displayMessages*/
|
|
4405
4433
|
e[4].length > 1 && /*index*/
|
|
4406
4434
|
e[56] === 0 && Wt(e)
|
|
@@ -4417,7 +4445,7 @@ function qt(e) {
|
|
|
4417
4445
|
}
|
|
4418
4446
|
return {
|
|
4419
4447
|
c() {
|
|
4420
|
-
t = q("div"), r = q("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 =
|
|
4448
|
+
t = q("div"), r = q("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 = q("p"), o = _e(), h && h.c(), u = _e(), te(r, "class", "IconVerification"), te(n, "class", "text"), te(t, "class", "CashierVerificationMessage"), Ee(
|
|
4421
4449
|
t,
|
|
4422
4450
|
"ShowAll",
|
|
4423
4451
|
/*allVerificationsVisible*/
|
|
@@ -4425,7 +4453,7 @@ function qt(e) {
|
|
|
4425
4453
|
);
|
|
4426
4454
|
},
|
|
4427
4455
|
m(p, _) {
|
|
4428
|
-
|
|
4456
|
+
se(p, t, _), ne(t, r), ne(t, i), ne(t, n), n.innerHTML = s, ne(t, o), h && h.m(t, null), ne(t, u), a || (l = bt(t, "click", c), a = !0);
|
|
4429
4457
|
},
|
|
4430
4458
|
p(p, _) {
|
|
4431
4459
|
e = p, _[0] & /*displayMessages*/
|
|
@@ -4433,7 +4461,7 @@ function qt(e) {
|
|
|
4433
4461
|
e[54] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4434
4462
|
e[4].length > 1 && /*index*/
|
|
4435
4463
|
e[56] === 0 ? h ? h.p(e, _) : (h = Wt(e), h.c(), h.m(t, u)) : h && (h.d(1), h = null), _[0] & /*allVerificationsVisible*/
|
|
4436
|
-
32 &&
|
|
4464
|
+
32 && Ee(
|
|
4437
4465
|
t,
|
|
4438
4466
|
"ShowAll",
|
|
4439
4467
|
/*allVerificationsVisible*/
|
|
@@ -4441,7 +4469,7 @@ function qt(e) {
|
|
|
4441
4469
|
);
|
|
4442
4470
|
},
|
|
4443
4471
|
d(p) {
|
|
4444
|
-
p && K(t), h && h.d(),
|
|
4472
|
+
p && K(t), h && h.d(), a = !1, l();
|
|
4445
4473
|
}
|
|
4446
4474
|
};
|
|
4447
4475
|
}
|
|
@@ -4449,10 +4477,10 @@ function Yt(e) {
|
|
|
4449
4477
|
let t, r, i, n, s = (
|
|
4450
4478
|
/*$_*/
|
|
4451
4479
|
e[10]("verification.video.how-to") + ""
|
|
4452
|
-
),
|
|
4480
|
+
), o, u, a;
|
|
4453
4481
|
return {
|
|
4454
4482
|
c() {
|
|
4455
|
-
t = q("div"), r = q("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 =
|
|
4483
|
+
t = q("div"), r = q("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 = q("div"), o = vt(s), te(r, "class", "IconVideo"), te(n, "class", "CashierVerificationVideoLink"), Ee(
|
|
4456
4484
|
n,
|
|
4457
4485
|
"CashierVerificationVideoLinkDesktop",
|
|
4458
4486
|
/*desktopView*/
|
|
@@ -4460,7 +4488,7 @@ function Yt(e) {
|
|
|
4460
4488
|
), te(t, "class", "CashierVerificationVideo");
|
|
4461
4489
|
},
|
|
4462
4490
|
m(l, h) {
|
|
4463
|
-
|
|
4491
|
+
se(l, t, h), ne(t, r), ne(t, i), ne(t, n), ne(n, o), u || (a = bt(
|
|
4464
4492
|
n,
|
|
4465
4493
|
"click",
|
|
4466
4494
|
/*click_handler_2*/
|
|
@@ -4470,8 +4498,8 @@ function Yt(e) {
|
|
|
4470
4498
|
p(l, h) {
|
|
4471
4499
|
h[0] & /*$_*/
|
|
4472
4500
|
1024 && s !== (s = /*$_*/
|
|
4473
|
-
l[10]("verification.video.how-to") + "") && kr(
|
|
4474
|
-
64 &&
|
|
4501
|
+
l[10]("verification.video.how-to") + "") && kr(o, s), h[0] & /*desktopView*/
|
|
4502
|
+
64 && Ee(
|
|
4475
4503
|
n,
|
|
4476
4504
|
"CashierVerificationVideoLinkDesktop",
|
|
4477
4505
|
/*desktopView*/
|
|
@@ -4479,40 +4507,40 @@ function Yt(e) {
|
|
|
4479
4507
|
);
|
|
4480
4508
|
},
|
|
4481
4509
|
d(l) {
|
|
4482
|
-
l && K(t), u = !1,
|
|
4510
|
+
l && K(t), u = !1, a();
|
|
4483
4511
|
}
|
|
4484
4512
|
};
|
|
4485
4513
|
}
|
|
4486
|
-
function
|
|
4514
|
+
function is(e) {
|
|
4487
4515
|
let t;
|
|
4488
|
-
function r(s,
|
|
4516
|
+
function r(s, o) {
|
|
4489
4517
|
if (
|
|
4490
4518
|
/*isLoading*/
|
|
4491
4519
|
s[9]
|
|
4492
4520
|
)
|
|
4493
|
-
return
|
|
4521
|
+
return rs;
|
|
4494
4522
|
if (
|
|
4495
4523
|
/*displayMessages*/
|
|
4496
4524
|
s[4]
|
|
4497
4525
|
)
|
|
4498
|
-
return
|
|
4526
|
+
return ts;
|
|
4499
4527
|
}
|
|
4500
4528
|
let i = r(e), n = i && i(e);
|
|
4501
4529
|
return {
|
|
4502
4530
|
c() {
|
|
4503
|
-
t = q("div"), n && n.c(), te(t, "class", "CashierVerifications"),
|
|
4531
|
+
t = q("div"), n && n.c(), te(t, "class", "CashierVerifications"), Ee(
|
|
4504
4532
|
t,
|
|
4505
4533
|
"CashierVerificationsDesktop",
|
|
4506
4534
|
/*desktopView*/
|
|
4507
4535
|
e[6]
|
|
4508
4536
|
);
|
|
4509
4537
|
},
|
|
4510
|
-
m(s,
|
|
4511
|
-
|
|
4538
|
+
m(s, o) {
|
|
4539
|
+
se(s, t, o), n && n.m(t, null), e[24](t);
|
|
4512
4540
|
},
|
|
4513
|
-
p(s,
|
|
4514
|
-
i === (i = r(s)) && n ? n.p(s,
|
|
4515
|
-
64 &&
|
|
4541
|
+
p(s, o) {
|
|
4542
|
+
i === (i = r(s)) && n ? n.p(s, o) : (n && n.d(1), n = i && i(s), n && (n.c(), n.m(t, null))), o[0] & /*desktopView*/
|
|
4543
|
+
64 && Ee(
|
|
4516
4544
|
t,
|
|
4517
4545
|
"CashierVerificationsDesktop",
|
|
4518
4546
|
/*desktopView*/
|
|
@@ -4526,27 +4554,27 @@ function ns(e) {
|
|
|
4526
4554
|
}
|
|
4527
4555
|
};
|
|
4528
4556
|
}
|
|
4529
|
-
const
|
|
4530
|
-
function
|
|
4557
|
+
const ns = "verification_explanation_video_widgets.MP4";
|
|
4558
|
+
function ss(e, t, r) {
|
|
4531
4559
|
let i, n;
|
|
4532
|
-
Ht(e,
|
|
4533
|
-
let { endpoint: s } = t, { lang:
|
|
4534
|
-
var
|
|
4560
|
+
Ht(e, zn, (f) => r(10, i = f)), Ht(e, Wn, (f) => r(30, n = f)), zt.extend(Kn);
|
|
4561
|
+
let { endpoint: s } = t, { lang: o = "en" } = t, { translationurl: u = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: _ = "" } = t, { mbsource: S = "" } = t, v, M = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Set(), R, B, z, I = !0, U = !0, W = !1, oe = "", Y = !1;
|
|
4562
|
+
var C;
|
|
4535
4563
|
(function(f) {
|
|
4536
4564
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
4537
|
-
})(
|
|
4538
|
-
var
|
|
4565
|
+
})(C || (C = {}));
|
|
4566
|
+
var A;
|
|
4539
4567
|
(function(f) {
|
|
4540
4568
|
f.Requested = "Requested";
|
|
4541
|
-
})(
|
|
4569
|
+
})(A || (A = {}));
|
|
4542
4570
|
var k;
|
|
4543
4571
|
(function(f) {
|
|
4544
4572
|
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";
|
|
4545
4573
|
})(k || (k = {}));
|
|
4546
|
-
var
|
|
4574
|
+
var le;
|
|
4547
4575
|
(function(f) {
|
|
4548
4576
|
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";
|
|
4549
|
-
})(
|
|
4577
|
+
})(le || (le = {})), Vr(() => () => {
|
|
4550
4578
|
});
|
|
4551
4579
|
const x = [
|
|
4552
4580
|
k.InProgress,
|
|
@@ -4567,10 +4595,10 @@ function os(e, t, r) {
|
|
|
4567
4595
|
Gt(f, jt[f]);
|
|
4568
4596
|
});
|
|
4569
4597
|
const d = () => {
|
|
4570
|
-
|
|
4598
|
+
Xn(o);
|
|
4571
4599
|
}, b = () => {
|
|
4572
|
-
r(20,
|
|
4573
|
-
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${
|
|
4600
|
+
r(20, B = w());
|
|
4601
|
+
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${o}`), y = new Headers();
|
|
4574
4602
|
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${_}`), y.append("X-Client-Request-Timestamp", zt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4575
4603
|
const T = {
|
|
4576
4604
|
method: "POST",
|
|
@@ -4578,9 +4606,9 @@ function os(e, t, r) {
|
|
|
4578
4606
|
body: JSON.stringify({})
|
|
4579
4607
|
};
|
|
4580
4608
|
r(9, Y = !0), fetch(f, T).then((Q) => Q.json()).then((Q) => {
|
|
4581
|
-
const
|
|
4582
|
-
R = $(
|
|
4583
|
-
|
|
4609
|
+
const Je = m(Q?.Verifications);
|
|
4610
|
+
R = $(Je), R.VerificationStatuses.forEach((ke) => {
|
|
4611
|
+
ke.VerificationUrlType !== "Widget" && M.add(ke.Vendor);
|
|
4584
4612
|
}), r(4, z = re());
|
|
4585
4613
|
}).finally(() => r(9, Y = !1));
|
|
4586
4614
|
}, m = (f) => f ? f.sort((y, T) => new Date(T.Created).getTime() - new Date(y.Created).getTime()) : [], E = () => {
|
|
@@ -4600,7 +4628,7 @@ function os(e, t, r) {
|
|
|
4600
4628
|
};
|
|
4601
4629
|
const y = F(f);
|
|
4602
4630
|
if (y && y.length) {
|
|
4603
|
-
const T =
|
|
4631
|
+
const T = L(y);
|
|
4604
4632
|
return {
|
|
4605
4633
|
VerificationSummaryStatus: T.Status,
|
|
4606
4634
|
VerificationUrl: T.Flags?.DeferredUrlKey,
|
|
@@ -4611,7 +4639,7 @@ function os(e, t, r) {
|
|
|
4611
4639
|
VerificationSummaryStatus: f.some((Q) => Q.Status === k.Failed) ? k.Failed : k.Verified,
|
|
4612
4640
|
VerificationStatuses: N(f, [k.Failed])
|
|
4613
4641
|
};
|
|
4614
|
-
},
|
|
4642
|
+
}, L = (f) => f.reduce(
|
|
4615
4643
|
(y, T) => y ? new Date(y) < new Date(T) ? T : y : T,
|
|
4616
4644
|
0
|
|
4617
4645
|
), N = (f, y) => f.filter((T) => y.includes(T.Status)).map((T) => ({
|
|
@@ -4620,43 +4648,43 @@ function os(e, t, r) {
|
|
|
4620
4648
|
VerificationDocuments: T.Documents ? [...T.Documents] : [],
|
|
4621
4649
|
VerificationUrlType: T.FlowInfo?.Type,
|
|
4622
4650
|
VerificationUrl: T.FlowInfo?.Url
|
|
4623
|
-
})), F = (f) => f.filter((y) => x.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || X(y) ||
|
|
4624
|
-
const y = f.Documents && f.VendorName ===
|
|
4651
|
+
})), F = (f) => f.filter((y) => x.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || X(y) || he(y) : !1), X = (f) => {
|
|
4652
|
+
const y = f.Documents && f.VendorName === C.Manual, T = f.Documents && f.Documents.some((Q) => Q.Status === A.Requested);
|
|
4625
4653
|
return y && T;
|
|
4626
|
-
},
|
|
4654
|
+
}, he = (f) => f.VendorName === C.ShuftiPro && f.Status === k.Referred, re = () => {
|
|
4627
4655
|
switch (R.VerificationSummaryStatus) {
|
|
4628
4656
|
case k.InProgress:
|
|
4629
4657
|
const f = [];
|
|
4630
|
-
return
|
|
4631
|
-
f.push(
|
|
4658
|
+
return M.forEach((y) => {
|
|
4659
|
+
f.push(de(y));
|
|
4632
4660
|
}), f;
|
|
4633
4661
|
case k.Referred:
|
|
4634
4662
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4635
4663
|
case k.Failed:
|
|
4636
4664
|
return [i("verification.message.failed")];
|
|
4637
4665
|
}
|
|
4638
|
-
},
|
|
4666
|
+
}, de = (f) => {
|
|
4639
4667
|
const y = R.VerificationStatuses.filter((T) => T.Vendor === f);
|
|
4640
|
-
if (f ===
|
|
4641
|
-
return
|
|
4668
|
+
if (f === C.ShuftiPro)
|
|
4669
|
+
return ae(y);
|
|
4642
4670
|
{
|
|
4643
4671
|
const T = i("verification.idenfy.link-name"), Q = {
|
|
4644
4672
|
link: `<a href="${y[0].VerificationUrl}" target="_blank">${T}</a>`
|
|
4645
4673
|
};
|
|
4646
4674
|
return i("verification.idenfy.in-progress", { values: Q });
|
|
4647
4675
|
}
|
|
4648
|
-
},
|
|
4676
|
+
}, ae = (f) => {
|
|
4649
4677
|
const y = [], T = {}, Q = [
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4678
|
+
le.Biometric,
|
|
4679
|
+
le.Documents,
|
|
4680
|
+
le.ProofOfAddress
|
|
4653
4681
|
];
|
|
4654
|
-
f.forEach((
|
|
4655
|
-
Q.includes(
|
|
4682
|
+
f.forEach((me) => {
|
|
4683
|
+
Q.includes(me.Type) && (y.push(me.Type), T[me.Type] = G(me, ie(me.Type)));
|
|
4656
4684
|
});
|
|
4657
|
-
let
|
|
4658
|
-
return
|
|
4659
|
-
}, G = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, ie = (f) => i(`verification.shuftipro.link-name.${f}`),
|
|
4685
|
+
let Je = y.every((me) => V.has(me)), ke = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4686
|
+
return Je ? i("verification.shuftipro.validations-started") : i(ke, { values: T });
|
|
4687
|
+
}, G = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, ie = (f) => i(`verification.shuftipro.link-name.${f}`), ue = (f, y) => {
|
|
4660
4688
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4661
4689
|
if (f.target.closest(".verificationLink")) {
|
|
4662
4690
|
const T = f.target.className.split(" ")[1];
|
|
@@ -4665,12 +4693,12 @@ function os(e, t, r) {
|
|
|
4665
4693
|
return;
|
|
4666
4694
|
}
|
|
4667
4695
|
y === 0 && r(5, I = !I);
|
|
4668
|
-
},
|
|
4696
|
+
}, ge = () => {
|
|
4669
4697
|
r(6, U = p === "false");
|
|
4670
|
-
},
|
|
4671
|
-
r(8,
|
|
4698
|
+
}, Ar = () => {
|
|
4699
|
+
r(8, oe = B + "/" + o + "/" + ns);
|
|
4672
4700
|
try {
|
|
4673
|
-
fetch(
|
|
4701
|
+
fetch(oe, { method: "HEAD" }).then((f) => {
|
|
4674
4702
|
r(7, W = f.ok);
|
|
4675
4703
|
});
|
|
4676
4704
|
} catch {
|
|
@@ -4678,27 +4706,27 @@ function os(e, t, r) {
|
|
|
4678
4706
|
}
|
|
4679
4707
|
}, St = () => {
|
|
4680
4708
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4681
|
-
},
|
|
4709
|
+
}, Or = (f, y) => ue(y, f), Br = (f, y) => ue(y, f), $r = () => St();
|
|
4682
4710
|
function Mr(f) {
|
|
4683
|
-
|
|
4711
|
+
st[f ? "unshift" : "push"](() => {
|
|
4684
4712
|
v = f, r(3, v);
|
|
4685
4713
|
});
|
|
4686
4714
|
}
|
|
4687
4715
|
return e.$$set = (f) => {
|
|
4688
|
-
"endpoint" in f && r(13, s = f.endpoint), "lang" in f && r(14,
|
|
4716
|
+
"endpoint" in f && r(13, s = f.endpoint), "lang" in f && r(14, o = f.lang), "translationurl" in f && r(15, u = f.translationurl), "clientstyling" in f && r(0, a = f.clientstyling), "clientstylingurl" in f && r(1, l = f.clientstylingurl), "session" in f && r(16, h = f.session), "customerid" in f && r(17, c = f.customerid), "ismobileview" in f && r(2, p = f.ismobileview), "playersession" in f && r(18, _ = f.playersession), "mbsource" in f && r(19, S = f.mbsource);
|
|
4689
4717
|
}, e.$$.update = () => {
|
|
4690
4718
|
e.$$.dirty[0] & /*lang*/
|
|
4691
|
-
16384 &&
|
|
4719
|
+
16384 && o && d(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4692
4720
|
335872 && s && h && _ && b(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4693
4721
|
335872 && s && !h && _ && E(), e.$$.dirty[0] & /*translationurl*/
|
|
4694
4722
|
32768 && u && g(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4695
|
-
9 &&
|
|
4696
|
-
10 && l && v &&
|
|
4697
|
-
4 && p &&
|
|
4698
|
-
1048576 &&
|
|
4699
|
-
524296 && S && v &&
|
|
4723
|
+
9 && a && v && qn(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4724
|
+
10 && l && v && Yn(), e.$$.dirty[0] & /*ismobileview*/
|
|
4725
|
+
4 && p && ge(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4726
|
+
1048576 && B && Ar(), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4727
|
+
524296 && S && v && Zn(v, `${S}.Style`);
|
|
4700
4728
|
}, [
|
|
4701
|
-
|
|
4729
|
+
a,
|
|
4702
4730
|
l,
|
|
4703
4731
|
p,
|
|
4704
4732
|
v,
|
|
@@ -4706,32 +4734,32 @@ function os(e, t, r) {
|
|
|
4706
4734
|
I,
|
|
4707
4735
|
U,
|
|
4708
4736
|
W,
|
|
4709
|
-
|
|
4737
|
+
oe,
|
|
4710
4738
|
Y,
|
|
4711
4739
|
i,
|
|
4712
|
-
|
|
4740
|
+
ue,
|
|
4713
4741
|
St,
|
|
4714
4742
|
s,
|
|
4715
|
-
|
|
4743
|
+
o,
|
|
4716
4744
|
u,
|
|
4717
4745
|
h,
|
|
4718
4746
|
c,
|
|
4719
4747
|
_,
|
|
4720
4748
|
S,
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
$r,
|
|
4749
|
+
B,
|
|
4750
|
+
Or,
|
|
4724
4751
|
Br,
|
|
4752
|
+
$r,
|
|
4725
4753
|
Mr
|
|
4726
4754
|
];
|
|
4727
4755
|
}
|
|
4728
|
-
class
|
|
4756
|
+
class os extends ei {
|
|
4729
4757
|
constructor(t) {
|
|
4730
4758
|
super(), Qr(
|
|
4731
4759
|
this,
|
|
4732
4760
|
t,
|
|
4733
|
-
|
|
4734
|
-
|
|
4761
|
+
ss,
|
|
4762
|
+
is,
|
|
4735
4763
|
Jt,
|
|
4736
4764
|
{
|
|
4737
4765
|
endpoint: 13,
|
|
@@ -4745,7 +4773,7 @@ class as extends ei {
|
|
|
4745
4773
|
playersession: 18,
|
|
4746
4774
|
mbsource: 19
|
|
4747
4775
|
},
|
|
4748
|
-
|
|
4776
|
+
es,
|
|
4749
4777
|
[-1, -1]
|
|
4750
4778
|
);
|
|
4751
4779
|
}
|
|
@@ -4810,30 +4838,34 @@ class as extends ei {
|
|
|
4810
4838
|
this.$$set({ mbsource: t }), Z();
|
|
4811
4839
|
}
|
|
4812
4840
|
}
|
|
4813
|
-
Kr(
|
|
4841
|
+
Kr(os, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {}, mbsource: {} }, [], [], !0);
|
|
4814
4842
|
export {
|
|
4815
|
-
|
|
4843
|
+
os as C,
|
|
4816
4844
|
ei as S,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4845
|
+
hs as _,
|
|
4846
|
+
Ke as a,
|
|
4847
|
+
fs as b,
|
|
4848
|
+
qe as c,
|
|
4849
|
+
Kr as d,
|
|
4850
|
+
Dr as e,
|
|
4822
4851
|
Z as f,
|
|
4823
|
-
|
|
4824
|
-
|
|
4852
|
+
ls as g,
|
|
4853
|
+
se as h,
|
|
4825
4854
|
Qr as i,
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4855
|
+
K as j,
|
|
4856
|
+
Yn as k,
|
|
4857
|
+
Zn as l,
|
|
4858
|
+
q as m,
|
|
4830
4859
|
ee as n,
|
|
4831
4860
|
Vr as o,
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4861
|
+
_e as p,
|
|
4862
|
+
as as q,
|
|
4863
|
+
te as r,
|
|
4835
4864
|
Jt as s,
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4865
|
+
Ee as t,
|
|
4866
|
+
ne as u,
|
|
4867
|
+
us as v,
|
|
4868
|
+
bt as w,
|
|
4869
|
+
st as x,
|
|
4870
|
+
qn as y
|
|
4839
4871
|
};
|