@everymatrix/cashier-verifications 1.72.1 → 1.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierVerifications-Cpezty7b.js → CashierVerifications-BAf8u9ns.js} +952 -880
- package/components/{CashierVerifications-5TlkZOu9.js → CashierVerifications-CNVgxinr.js} +1017 -945
- package/components/CashierVerifications-CxzuhF7y.cjs +5 -0
- package/components/CashierVideoModal-Bix664Mn.cjs +16 -0
- package/components/CashierVideoModal-CdjPH9oY.js +719 -0
- package/components/CashierVideoModal-Dna7BzOD.js +719 -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-B8lYKrBg.cjs +0 -5
- package/components/CashierVideoModal-CfvC_JtE.js +0 -202
- package/components/CashierVideoModal-DKese1BS.cjs +0 -1
- package/components/CashierVideoModal-W0bdqR6Y.js +0 -202
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ur = Object.defineProperty, Fr = Object.defineProperties;
|
|
2
|
+
var Vr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ot = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var tt = (e, t, r) => t in e ?
|
|
4
|
+
var Gr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var tt = (e, t, r) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Gr.call(t, r) && tt(e, r, t[r]);
|
|
8
8
|
if (Ot)
|
|
9
9
|
for (var r of Ot(t))
|
|
10
|
-
|
|
10
|
+
jr.call(t, r) && tt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, At = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, At = (e, t) => Fr(e, Vr(t));
|
|
13
|
+
var J = (e, t, r) => (tt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var $t = (e, t, r) => new Promise((i, n) => {
|
|
15
|
-
var s = (
|
|
15
|
+
var s = (a) => {
|
|
16
16
|
try {
|
|
17
|
-
l(r.next(
|
|
17
|
+
l(r.next(a));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
n(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (a) => {
|
|
22
22
|
try {
|
|
23
|
-
l(r.throw(
|
|
23
|
+
l(r.throw(a));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
n(u);
|
|
26
26
|
}
|
|
27
|
-
}, l = (
|
|
27
|
+
}, l = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(s, o);
|
|
28
28
|
l((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function te() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function rr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Bt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Re(e) {
|
|
39
|
+
e.forEach(rr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function _t(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ir(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let Ge;
|
|
48
|
-
function
|
|
48
|
+
function _s(e, t) {
|
|
49
49
|
return e === t ? !0 : (Ge || (Ge = document.createElement("a")), Ge.href = t, e === Ge.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function zr(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function nr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const i of t)
|
|
57
57
|
i(void 0);
|
|
58
|
-
return
|
|
58
|
+
return te;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
63
|
function Mt(e, t, r) {
|
|
64
|
-
e.$$.on_destroy.push(
|
|
64
|
+
e.$$.on_destroy.push(nr(t, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function se(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const i =
|
|
69
|
+
function Xr(e, t, r) {
|
|
70
|
+
const i = Wr(e);
|
|
71
71
|
if (!i.getElementById(t)) {
|
|
72
|
-
const n =
|
|
73
|
-
n.id = t, n.textContent = r,
|
|
72
|
+
const n = Y("style");
|
|
73
|
+
n.id = t, n.textContent = r, qr(i, n);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Wr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,59 +83,59 @@ function qr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function qr(e, t) {
|
|
87
|
+
return se(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
91
91
|
), t.sheet;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ae(e, t, r) {
|
|
94
94
|
e.insertBefore(t, r || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ee(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Yr(e, t) {
|
|
100
100
|
for (let r = 0; r < e.length; r += 1)
|
|
101
101
|
e[r] && e[r].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Y(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function xs(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function xt(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function we() {
|
|
113
|
+
return xt(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function Es() {
|
|
116
|
+
return xt("");
|
|
117
117
|
}
|
|
118
118
|
function Et(e, t, r, i) {
|
|
119
119
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function re(e, t, r) {
|
|
122
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function K(e, t, r) {
|
|
125
125
|
const i = t.toLowerCase();
|
|
126
|
-
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
126
|
+
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : re(e, t, r);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Zr(e) {
|
|
129
129
|
return Array.from(e.childNodes);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Jr(e, t) {
|
|
132
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
133
133
|
t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Te(e, t, r) {
|
|
136
136
|
e.classList.toggle(t, !!r);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Qr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,65 +144,65 @@ function Kr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let Le;
|
|
148
|
+
function De(e) {
|
|
149
|
+
Le = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Kr() {
|
|
152
|
+
if (!Le)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return Le;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function ei(e) {
|
|
157
|
+
Kr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
159
|
+
const Ee = [], lt = [];
|
|
160
|
+
let Se = [];
|
|
161
161
|
const Ct = [], ti = /* @__PURE__ */ Promise.resolve();
|
|
162
162
|
let ht = !1;
|
|
163
163
|
function ri() {
|
|
164
164
|
ht || (ht = !0, ti.then(Q));
|
|
165
165
|
}
|
|
166
166
|
function ft(e) {
|
|
167
|
-
|
|
167
|
+
Se.push(e);
|
|
168
168
|
}
|
|
169
169
|
const rt = /* @__PURE__ */ new Set();
|
|
170
|
-
let
|
|
170
|
+
let _e = 0;
|
|
171
171
|
function Q() {
|
|
172
|
-
if (
|
|
172
|
+
if (_e !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = Le;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (;
|
|
178
|
-
const t = _e
|
|
179
|
-
|
|
177
|
+
for (; _e < Ee.length; ) {
|
|
178
|
+
const t = Ee[_e];
|
|
179
|
+
_e++, De(t), ii(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw Ee.length = 0, _e = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
184
|
+
for (De(null), Ee.length = 0, _e = 0; lt.length; )
|
|
185
185
|
lt.pop()();
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
186
|
+
for (let t = 0; t < Se.length; t += 1) {
|
|
187
|
+
const r = Se[t];
|
|
188
188
|
rt.has(r) || (rt.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
190
|
+
Se.length = 0;
|
|
191
|
+
} while (Ee.length);
|
|
192
192
|
for (; Ct.length; )
|
|
193
193
|
Ct.pop()();
|
|
194
|
-
ht = !1, rt.clear(),
|
|
194
|
+
ht = !1, rt.clear(), De(e);
|
|
195
195
|
}
|
|
196
196
|
function ii(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Re(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
200
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ft);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
function ni(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
Se.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), Se = t;
|
|
206
206
|
}
|
|
207
207
|
const si = /* @__PURE__ */ new Set();
|
|
208
208
|
function oi(e, t) {
|
|
@@ -214,26 +214,26 @@ function Dt(e) {
|
|
|
214
214
|
function ai(e, t, r) {
|
|
215
215
|
const { fragment: i, after_update: n } = e.$$;
|
|
216
216
|
i && i.m(t, r), ft(() => {
|
|
217
|
-
const s = e.$$.on_mount.map(
|
|
218
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
217
|
+
const s = e.$$.on_mount.map(rr).filter(_t);
|
|
218
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Re(s), e.$$.on_mount = [];
|
|
219
219
|
}), n.forEach(ft);
|
|
220
220
|
}
|
|
221
221
|
function ui(e, t) {
|
|
222
222
|
const r = e.$$;
|
|
223
|
-
r.fragment !== null && (ni(r.after_update),
|
|
223
|
+
r.fragment !== null && (ni(r.after_update), Re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
224
224
|
}
|
|
225
225
|
function li(e, t) {
|
|
226
|
-
e.$$.dirty[0] === -1 && (
|
|
226
|
+
e.$$.dirty[0] === -1 && (Ee.push(e), ri(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
227
227
|
}
|
|
228
|
-
function hi(e, t, r, i, n, s,
|
|
229
|
-
const
|
|
230
|
-
|
|
228
|
+
function hi(e, t, r, i, n, s, o = null, l = [-1]) {
|
|
229
|
+
const a = Le;
|
|
230
|
+
De(e);
|
|
231
231
|
const u = e.$$ = {
|
|
232
232
|
fragment: null,
|
|
233
233
|
ctx: [],
|
|
234
234
|
// state
|
|
235
235
|
props: s,
|
|
236
|
-
update:
|
|
236
|
+
update: te,
|
|
237
237
|
not_equal: n,
|
|
238
238
|
bound: Bt(),
|
|
239
239
|
// lifecycle
|
|
@@ -242,50 +242,50 @@ function hi(e, t, r, i, n, s, a = null, l = [-1]) {
|
|
|
242
242
|
on_disconnect: [],
|
|
243
243
|
before_update: [],
|
|
244
244
|
after_update: [],
|
|
245
|
-
context: new Map(t.context || (
|
|
245
|
+
context: new Map(t.context || (a ? a.$$.context : [])),
|
|
246
246
|
// everything else
|
|
247
247
|
callbacks: Bt(),
|
|
248
248
|
dirty: l,
|
|
249
249
|
skip_bound: !1,
|
|
250
|
-
root: t.target ||
|
|
250
|
+
root: t.target || a.$$.root
|
|
251
251
|
};
|
|
252
|
-
|
|
252
|
+
o && o(u.root);
|
|
253
253
|
let h = !1;
|
|
254
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, p, ...
|
|
255
|
-
const S =
|
|
254
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, p, ..._) => {
|
|
255
|
+
const S = _.length ? _[0] : p;
|
|
256
256
|
return u.ctx && n(u.ctx[c], u.ctx[c] = S) && (!u.skip_bound && u.bound[c] && u.bound[c](S), h && li(e, c)), p;
|
|
257
|
-
}) : [], u.update(), h = !0,
|
|
257
|
+
}) : [], u.update(), h = !0, Re(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
258
258
|
if (t.hydrate) {
|
|
259
|
-
const c =
|
|
260
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
259
|
+
const c = Zr(t.target);
|
|
260
|
+
u.fragment && u.fragment.l(c), c.forEach(ee);
|
|
261
261
|
} else
|
|
262
262
|
u.fragment && u.fragment.c();
|
|
263
263
|
t.intro && oi(e.$$.fragment), ai(e, t.target, t.anchor), Q();
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
De(a);
|
|
266
266
|
}
|
|
267
|
-
let
|
|
268
|
-
typeof HTMLElement == "function" && (
|
|
267
|
+
let sr;
|
|
268
|
+
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
269
269
|
constructor(t, r, i) {
|
|
270
270
|
super();
|
|
271
271
|
/** The Svelte component constructor */
|
|
272
|
-
|
|
272
|
+
J(this, "$$ctor");
|
|
273
273
|
/** Slots */
|
|
274
|
-
|
|
274
|
+
J(this, "$$s");
|
|
275
275
|
/** The Svelte component instance */
|
|
276
|
-
|
|
276
|
+
J(this, "$$c");
|
|
277
277
|
/** Whether or not the custom element is connected */
|
|
278
|
-
|
|
278
|
+
J(this, "$$cn", !1);
|
|
279
279
|
/** Component props data */
|
|
280
|
-
|
|
280
|
+
J(this, "$$d", {});
|
|
281
281
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
282
|
-
|
|
282
|
+
J(this, "$$r", !1);
|
|
283
283
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
284
|
-
|
|
284
|
+
J(this, "$$p_d", {});
|
|
285
285
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
286
|
-
|
|
286
|
+
J(this, "$$l", {});
|
|
287
287
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
288
|
-
|
|
288
|
+
J(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
289
289
|
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
290
290
|
}
|
|
291
291
|
addEventListener(t, r, i) {
|
|
@@ -306,32 +306,32 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
306
306
|
if (this.$$cn = !0, !this.$$c) {
|
|
307
307
|
let t = function(s) {
|
|
308
308
|
return () => {
|
|
309
|
-
let
|
|
309
|
+
let o;
|
|
310
310
|
return {
|
|
311
311
|
c: function() {
|
|
312
|
-
|
|
312
|
+
o = Y("slot"), s !== "default" && re(o, "name", s);
|
|
313
313
|
},
|
|
314
314
|
/**
|
|
315
315
|
* @param {HTMLElement} target
|
|
316
316
|
* @param {HTMLElement} [anchor]
|
|
317
317
|
*/
|
|
318
318
|
m: function(u, h) {
|
|
319
|
-
|
|
319
|
+
ae(u, o, h);
|
|
320
320
|
},
|
|
321
321
|
d: function(u) {
|
|
322
|
-
u &&
|
|
322
|
+
u && ee(o);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
};
|
|
327
327
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
328
328
|
return;
|
|
329
|
-
const r = {}, i =
|
|
329
|
+
const r = {}, i = Qr(this);
|
|
330
330
|
for (const s of this.$$s)
|
|
331
331
|
s in i && (r[s] = [t(s)]);
|
|
332
332
|
for (const s of this.attributes) {
|
|
333
|
-
const
|
|
334
|
-
|
|
333
|
+
const o = this.$$g_p(s.name);
|
|
334
|
+
o in this.$$d || (this.$$d[o] = ze(o, s.value, this.$$p_d, "toProp"));
|
|
335
335
|
}
|
|
336
336
|
for (const s in this.$$p_d)
|
|
337
337
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -348,21 +348,21 @@ typeof HTMLElement == "function" && (or = class extends HTMLElement {
|
|
|
348
348
|
this.$$r = !0;
|
|
349
349
|
for (const s in this.$$p_d)
|
|
350
350
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
351
|
-
const
|
|
351
|
+
const o = ze(
|
|
352
352
|
s,
|
|
353
353
|
this.$$d[s],
|
|
354
354
|
this.$$p_d,
|
|
355
355
|
"toAttribute"
|
|
356
356
|
);
|
|
357
|
-
|
|
357
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
358
358
|
}
|
|
359
359
|
this.$$r = !1;
|
|
360
360
|
};
|
|
361
361
|
this.$$c.$$.after_update.push(n), n();
|
|
362
362
|
for (const s in this.$$l)
|
|
363
|
-
for (const
|
|
364
|
-
const l = this.$$c.$on(s,
|
|
365
|
-
this.$$l_u.set(
|
|
363
|
+
for (const o of this.$$l[s]) {
|
|
364
|
+
const l = this.$$c.$on(s, o);
|
|
365
|
+
this.$$l_u.set(o, l);
|
|
366
366
|
}
|
|
367
367
|
this.$$l = {};
|
|
368
368
|
}
|
|
@@ -416,7 +416,7 @@ function ze(e, t, r, i) {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
function fi(e, t, r, i, n, s) {
|
|
419
|
-
let
|
|
419
|
+
let o = class extends sr {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(e, r, n), this.$$p_d = t;
|
|
422
422
|
}
|
|
@@ -427,24 +427,24 @@ function fi(e, t, r, i, n, s) {
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
return Object.keys(t).forEach((l) => {
|
|
430
|
-
Object.defineProperty(
|
|
430
|
+
Object.defineProperty(o.prototype, l, {
|
|
431
431
|
get() {
|
|
432
432
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
433
433
|
},
|
|
434
|
-
set(
|
|
434
|
+
set(a) {
|
|
435
435
|
var u;
|
|
436
|
-
|
|
436
|
+
a = ze(l, a, t), this.$$d[l] = a, (u = this.$$c) == null || u.$set({ [l]: a });
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}), i.forEach((l) => {
|
|
440
|
-
Object.defineProperty(
|
|
440
|
+
Object.defineProperty(o.prototype, l, {
|
|
441
441
|
get() {
|
|
442
|
-
var
|
|
443
|
-
return (
|
|
442
|
+
var a;
|
|
443
|
+
return (a = this.$$c) == null ? void 0 : a[l];
|
|
444
444
|
}
|
|
445
445
|
});
|
|
446
446
|
}), e.element = /** @type {any} */
|
|
447
|
-
|
|
447
|
+
o, o;
|
|
448
448
|
}
|
|
449
449
|
class ci {
|
|
450
450
|
constructor() {
|
|
@@ -455,7 +455,7 @@ class ci {
|
|
|
455
455
|
*
|
|
456
456
|
* @type {any}
|
|
457
457
|
*/
|
|
458
|
-
|
|
458
|
+
J(this, "$$");
|
|
459
459
|
/**
|
|
460
460
|
* ### PRIVATE API
|
|
461
461
|
*
|
|
@@ -463,11 +463,11 @@ class ci {
|
|
|
463
463
|
*
|
|
464
464
|
* @type {any}
|
|
465
465
|
*/
|
|
466
|
-
|
|
466
|
+
J(this, "$$set");
|
|
467
467
|
}
|
|
468
468
|
/** @returns {void} */
|
|
469
469
|
$destroy() {
|
|
470
|
-
ui(this, 1), this.$destroy =
|
|
470
|
+
ui(this, 1), this.$destroy = te;
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
473
473
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -476,8 +476,8 @@ class ci {
|
|
|
476
476
|
* @returns {() => void}
|
|
477
477
|
*/
|
|
478
478
|
$on(t, r) {
|
|
479
|
-
if (!
|
|
480
|
-
return
|
|
479
|
+
if (!_t(r))
|
|
480
|
+
return te;
|
|
481
481
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
482
482
|
return i.push(r), () => {
|
|
483
483
|
const n = i.indexOf(r);
|
|
@@ -489,7 +489,7 @@ class ci {
|
|
|
489
489
|
* @returns {void}
|
|
490
490
|
*/
|
|
491
491
|
$set(t) {
|
|
492
|
-
this.$$set && !
|
|
492
|
+
this.$$set && !zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
495
|
const di = "4";
|
|
@@ -497,18 +497,18 @@ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @
|
|
|
497
497
|
const xe = [];
|
|
498
498
|
function mi(e, t) {
|
|
499
499
|
return {
|
|
500
|
-
subscribe:
|
|
500
|
+
subscribe: ke(e, t).subscribe
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ke(e, t = te) {
|
|
504
504
|
let r;
|
|
505
505
|
const i = /* @__PURE__ */ new Set();
|
|
506
506
|
function n(l) {
|
|
507
|
-
if (
|
|
508
|
-
const
|
|
507
|
+
if (ir(e, l) && (e = l, r)) {
|
|
508
|
+
const a = !xe.length;
|
|
509
509
|
for (const u of i)
|
|
510
510
|
u[1](), xe.push(u, e);
|
|
511
|
-
if (
|
|
511
|
+
if (a) {
|
|
512
512
|
for (let u = 0; u < xe.length; u += 2)
|
|
513
513
|
xe[u][0](xe[u + 1]);
|
|
514
514
|
xe.length = 0;
|
|
@@ -518,46 +518,46 @@ function Re(e, t = K) {
|
|
|
518
518
|
function s(l) {
|
|
519
519
|
n(l(e));
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
const u = [l,
|
|
523
|
-
return i.add(u), i.size === 1 && (r = t(n, s) ||
|
|
521
|
+
function o(l, a = te) {
|
|
522
|
+
const u = [l, a];
|
|
523
|
+
return i.add(u), i.size === 1 && (r = t(n, s) || te), l(e), () => {
|
|
524
524
|
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
return { set: n, update: s, subscribe:
|
|
527
|
+
return { set: n, update: s, subscribe: o };
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function $e(e, t, r) {
|
|
530
530
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
531
531
|
if (!n.every(Boolean))
|
|
532
532
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
533
533
|
const s = t.length < 2;
|
|
534
|
-
return mi(r, (
|
|
535
|
-
let
|
|
534
|
+
return mi(r, (o, l) => {
|
|
535
|
+
let a = !1;
|
|
536
536
|
const u = [];
|
|
537
|
-
let h = 0, c =
|
|
537
|
+
let h = 0, c = te;
|
|
538
538
|
const p = () => {
|
|
539
539
|
if (h)
|
|
540
540
|
return;
|
|
541
541
|
c();
|
|
542
|
-
const S = t(i ? u[0] : u,
|
|
543
|
-
s ?
|
|
544
|
-
},
|
|
545
|
-
(S, v) =>
|
|
542
|
+
const S = t(i ? u[0] : u, o, l);
|
|
543
|
+
s ? o(S) : c = _t(S) ? S : te;
|
|
544
|
+
}, _ = n.map(
|
|
545
|
+
(S, v) => nr(
|
|
546
546
|
S,
|
|
547
|
-
(
|
|
548
|
-
u[v] =
|
|
547
|
+
(B) => {
|
|
548
|
+
u[v] = B, h &= ~(1 << v), a && p();
|
|
549
549
|
},
|
|
550
550
|
() => {
|
|
551
551
|
h |= 1 << v;
|
|
552
552
|
}
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
|
-
return
|
|
556
|
-
|
|
555
|
+
return a = !0, p(), function() {
|
|
556
|
+
Re(_), c(), a = !1;
|
|
557
557
|
};
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var or = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
561
561
|
function wt(e) {
|
|
562
562
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
563
563
|
}
|
|
@@ -569,28 +569,28 @@ function gi(e) {
|
|
|
569
569
|
}
|
|
570
570
|
function vi(e) {
|
|
571
571
|
var t = Object.prototype.toString.call(e);
|
|
572
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
572
|
+
return t === "[object RegExp]" || t === "[object Date]" || _i(e);
|
|
573
573
|
}
|
|
574
574
|
var bi = typeof Symbol == "function" && Symbol.for, yi = bi ? Symbol.for("react.element") : 60103;
|
|
575
|
-
function
|
|
575
|
+
function _i(e) {
|
|
576
576
|
return e.$$typeof === yi;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function xi(e) {
|
|
579
579
|
return Array.isArray(e) ? [] : {};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
581
|
+
function Ie(e, t) {
|
|
582
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? He(xi(e), e, t) : e;
|
|
583
583
|
}
|
|
584
584
|
function Ei(e, t, r) {
|
|
585
585
|
return e.concat(t).map(function(i) {
|
|
586
|
-
return
|
|
586
|
+
return Ie(i, r);
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
function wi(e, t) {
|
|
590
590
|
if (!t.customMerge)
|
|
591
|
-
return
|
|
591
|
+
return He;
|
|
592
592
|
var r = t.customMerge(e);
|
|
593
|
-
return typeof r == "function" ? r :
|
|
593
|
+
return typeof r == "function" ? r : He;
|
|
594
594
|
}
|
|
595
595
|
function Si(e) {
|
|
596
596
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -600,7 +600,7 @@ function Si(e) {
|
|
|
600
600
|
function Lt(e) {
|
|
601
601
|
return Object.keys(e).concat(Si(e));
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function ar(e, t) {
|
|
604
604
|
try {
|
|
605
605
|
return t in e;
|
|
606
606
|
} catch (r) {
|
|
@@ -608,29 +608,29 @@ function ur(e, t) {
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
function Ti(e, t) {
|
|
611
|
-
return
|
|
611
|
+
return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
612
612
|
}
|
|
613
613
|
function Hi(e, t, r) {
|
|
614
614
|
var i = {};
|
|
615
615
|
return r.isMergeableObject(e) && Lt(e).forEach(function(n) {
|
|
616
|
-
i[n] =
|
|
616
|
+
i[n] = Ie(e[n], r);
|
|
617
617
|
}), Lt(t).forEach(function(n) {
|
|
618
|
-
Ti(e, n) || (
|
|
618
|
+
Ti(e, n) || (ar(e, n) && r.isMergeableObject(t[n]) ? i[n] = wi(n, r)(e[n], t[n], r) : i[n] = Ie(t[n], r));
|
|
619
619
|
}), i;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Ei, r.isMergeableObject = r.isMergeableObject || pi, r.cloneUnlessOtherwiseSpecified =
|
|
621
|
+
function He(e, t, r) {
|
|
622
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ei, r.isMergeableObject = r.isMergeableObject || pi, r.cloneUnlessOtherwiseSpecified = Ie;
|
|
623
623
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
624
|
-
return s ? i ? r.arrayMerge(e, t, r) : Hi(e, t, r) :
|
|
624
|
+
return s ? i ? r.arrayMerge(e, t, r) : Hi(e, t, r) : Ie(t, r);
|
|
625
625
|
}
|
|
626
|
-
|
|
626
|
+
He.all = function(t, r) {
|
|
627
627
|
if (!Array.isArray(t))
|
|
628
628
|
throw new Error("first argument should be an array");
|
|
629
629
|
return t.reduce(function(i, n) {
|
|
630
|
-
return
|
|
630
|
+
return He(i, n, r);
|
|
631
631
|
}, {});
|
|
632
632
|
};
|
|
633
|
-
var Oi =
|
|
633
|
+
var Oi = He, Pi = Oi;
|
|
634
634
|
const Ai = /* @__PURE__ */ wt(Pi);
|
|
635
635
|
var ct = function(e, t) {
|
|
636
636
|
return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
@@ -649,15 +649,15 @@ function Qe(e, t) {
|
|
|
649
649
|
}
|
|
650
650
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
652
|
+
var oe = function() {
|
|
653
|
+
return oe = Object.assign || function(t) {
|
|
654
654
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
655
655
|
r = arguments[i];
|
|
656
656
|
for (var s in r)
|
|
657
657
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
658
658
|
}
|
|
659
659
|
return t;
|
|
660
|
-
},
|
|
660
|
+
}, oe.apply(this, arguments);
|
|
661
661
|
};
|
|
662
662
|
function $i(e, t) {
|
|
663
663
|
var r = {};
|
|
@@ -688,19 +688,19 @@ function Mi(e, t, r, i) {
|
|
|
688
688
|
var n = Bi(i) ? i : r(i), s = t.get(n);
|
|
689
689
|
return typeof s == "undefined" && (s = e.call(this, i), t.set(n, s)), s;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function ur(e, t, r) {
|
|
692
692
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
693
693
|
return typeof s == "undefined" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function lr(e, t, r, i, n) {
|
|
696
696
|
return r.bind(t, e, i, n);
|
|
697
697
|
}
|
|
698
698
|
function Ci(e, t) {
|
|
699
|
-
var r = e.length === 1 ? Mi :
|
|
700
|
-
return
|
|
699
|
+
var r = e.length === 1 ? Mi : ur;
|
|
700
|
+
return lr(e, this, r, t.cache.create(), t.serializer);
|
|
701
701
|
}
|
|
702
702
|
function Di(e, t) {
|
|
703
|
-
return
|
|
703
|
+
return lr(e, this, ur, t.cache.create(), t.serializer);
|
|
704
704
|
}
|
|
705
705
|
var Li = function() {
|
|
706
706
|
return JSON.stringify(arguments);
|
|
@@ -732,52 +732,52 @@ var Li = function() {
|
|
|
732
732
|
return t;
|
|
733
733
|
}, qe.apply(this, arguments);
|
|
734
734
|
};
|
|
735
|
-
var
|
|
735
|
+
var T;
|
|
736
736
|
(function(e) {
|
|
737
737
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
738
|
-
})(
|
|
738
|
+
})(T || (T = {}));
|
|
739
739
|
var C;
|
|
740
740
|
(function(e) {
|
|
741
741
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
742
742
|
})(C || (C = {}));
|
|
743
|
-
var
|
|
743
|
+
var Oe;
|
|
744
744
|
(function(e) {
|
|
745
745
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
746
|
-
})(
|
|
746
|
+
})(Oe || (Oe = {}));
|
|
747
747
|
function It(e) {
|
|
748
748
|
return e.type === C.literal;
|
|
749
749
|
}
|
|
750
750
|
function Ri(e) {
|
|
751
751
|
return e.type === C.argument;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function hr(e) {
|
|
754
754
|
return e.type === C.number;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function fr(e) {
|
|
757
757
|
return e.type === C.date;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function cr(e) {
|
|
760
760
|
return e.type === C.time;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function dr(e) {
|
|
763
763
|
return e.type === C.select;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function mr(e) {
|
|
766
766
|
return e.type === C.plural;
|
|
767
767
|
}
|
|
768
768
|
function ki(e) {
|
|
769
769
|
return e.type === C.pound;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function pr(e) {
|
|
772
772
|
return e.type === C.tag;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
774
|
+
function gr(e) {
|
|
775
|
+
return !!(e && typeof e == "object" && e.type === Oe.number);
|
|
776
776
|
}
|
|
777
777
|
function dt(e) {
|
|
778
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
778
|
+
return !!(e && typeof e == "object" && e.type === Oe.dateTime);
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ui = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
781
781
|
function Fi(e) {
|
|
782
782
|
var t = {};
|
|
783
783
|
return e.replace(Ui, function(r) {
|
|
@@ -886,25 +886,25 @@ function Gi(e) {
|
|
|
886
886
|
for (var t = e.split(Vi).filter(function(p) {
|
|
887
887
|
return p.length > 0;
|
|
888
888
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
889
|
-
var s = n[i],
|
|
890
|
-
if (
|
|
889
|
+
var s = n[i], o = s.split("/");
|
|
890
|
+
if (o.length === 0)
|
|
891
891
|
throw new Error("Invalid number skeleton");
|
|
892
|
-
for (var l =
|
|
892
|
+
for (var l = o[0], a = o.slice(1), u = 0, h = a; u < h.length; u++) {
|
|
893
893
|
var c = h[u];
|
|
894
894
|
if (c.length === 0)
|
|
895
895
|
throw new Error("Invalid number skeleton");
|
|
896
896
|
}
|
|
897
|
-
r.push({ stem: l, options:
|
|
897
|
+
r.push({ stem: l, options: a });
|
|
898
898
|
}
|
|
899
899
|
return r;
|
|
900
900
|
}
|
|
901
901
|
function ji(e) {
|
|
902
902
|
return e.replace(/^(.*?)-/, "");
|
|
903
903
|
}
|
|
904
|
-
var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
904
|
+
var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, zi = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
|
|
905
905
|
function Rt(e) {
|
|
906
906
|
var t = {};
|
|
907
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
907
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, i, n) {
|
|
908
908
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
909
909
|
}), t;
|
|
910
910
|
}
|
|
@@ -956,7 +956,7 @@ function Xi(e) {
|
|
|
956
956
|
notation: "scientific"
|
|
957
957
|
}, e = e.slice(1)), t) {
|
|
958
958
|
var r = e.slice(0, 2);
|
|
959
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
959
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
|
|
960
960
|
throw new Error("Malformed concise eng/scientific notation");
|
|
961
961
|
t.minimumIntegerDigits = e.length;
|
|
962
962
|
}
|
|
@@ -1001,13 +1001,13 @@ function Wi(e) {
|
|
|
1001
1001
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1002
1002
|
continue;
|
|
1003
1003
|
case "scientific":
|
|
1004
|
-
t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(
|
|
1005
|
-
return L(L({},
|
|
1004
|
+
t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(a, u) {
|
|
1005
|
+
return L(L({}, a), kt(u));
|
|
1006
1006
|
}, {}));
|
|
1007
1007
|
continue;
|
|
1008
1008
|
case "engineering":
|
|
1009
|
-
t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(
|
|
1010
|
-
return L(L({},
|
|
1009
|
+
t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(a, u) {
|
|
1010
|
+
return L(L({}, a), kt(u));
|
|
1011
1011
|
}, {}));
|
|
1012
1012
|
continue;
|
|
1013
1013
|
case "notation-simple":
|
|
@@ -1052,39 +1052,39 @@ function Wi(e) {
|
|
|
1052
1052
|
case "integer-width":
|
|
1053
1053
|
if (n.options.length > 1)
|
|
1054
1054
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1055
|
-
n.options[0].replace(zi, function(
|
|
1055
|
+
n.options[0].replace(zi, function(a, u, h, c, p, _) {
|
|
1056
1056
|
if (u)
|
|
1057
1057
|
t.minimumIntegerDigits = h.length;
|
|
1058
1058
|
else {
|
|
1059
1059
|
if (c && p)
|
|
1060
1060
|
throw new Error("We currently do not support maximum integer digits");
|
|
1061
|
-
if (
|
|
1061
|
+
if (_)
|
|
1062
1062
|
throw new Error("We currently do not support exact integer digits");
|
|
1063
1063
|
}
|
|
1064
1064
|
return "";
|
|
1065
1065
|
});
|
|
1066
1066
|
continue;
|
|
1067
1067
|
}
|
|
1068
|
-
if (
|
|
1068
|
+
if (yr.test(n.stem)) {
|
|
1069
1069
|
t.minimumIntegerDigits = n.stem.length;
|
|
1070
1070
|
continue;
|
|
1071
1071
|
}
|
|
1072
1072
|
if (Nt.test(n.stem)) {
|
|
1073
1073
|
if (n.options.length > 1)
|
|
1074
1074
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1075
|
-
n.stem.replace(Nt, function(
|
|
1076
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p &&
|
|
1075
|
+
n.stem.replace(Nt, function(a, u, h, c, p, _) {
|
|
1076
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && _ ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1077
1077
|
});
|
|
1078
1078
|
var s = n.options[0];
|
|
1079
1079
|
s === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = L(L({}, t), Rt(s)));
|
|
1080
1080
|
continue;
|
|
1081
1081
|
}
|
|
1082
|
-
if (
|
|
1082
|
+
if (br.test(n.stem)) {
|
|
1083
1083
|
t = L(L({}, t), Rt(n.stem));
|
|
1084
1084
|
continue;
|
|
1085
1085
|
}
|
|
1086
|
-
var
|
|
1087
|
-
|
|
1086
|
+
var o = _r(n.stem);
|
|
1087
|
+
o && (t = L(L({}, t), o));
|
|
1088
1088
|
var l = Xi(n.stem);
|
|
1089
1089
|
l && (t = L(L({}, t), l));
|
|
1090
1090
|
}
|
|
@@ -2511,10 +2511,10 @@ function qi(e, t) {
|
|
|
2511
2511
|
if (n === "j") {
|
|
2512
2512
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2513
2513
|
s++, i++;
|
|
2514
|
-
var
|
|
2514
|
+
var o = 1 + (s & 1), l = s < 2 ? 1 : 3 + (s >> 1), a = "a", u = Yi(t);
|
|
2515
2515
|
for ((u == "H" || u == "k") && (l = 0); l-- > 0; )
|
|
2516
|
-
r +=
|
|
2517
|
-
for (;
|
|
2516
|
+
r += a;
|
|
2517
|
+
for (; o-- > 0; )
|
|
2518
2518
|
r = u + r;
|
|
2519
2519
|
} else
|
|
2520
2520
|
n === "J" ? r += "H" : r += n;
|
|
@@ -2543,15 +2543,15 @@ function Yi(e) {
|
|
|
2543
2543
|
var n = je[i || ""] || je[r || ""] || je["".concat(r, "-001")] || je["001"];
|
|
2544
2544
|
return n[0];
|
|
2545
2545
|
}
|
|
2546
|
-
var ot, Zi = new RegExp("^".concat(
|
|
2547
|
-
function
|
|
2546
|
+
var ot, Zi = new RegExp("^".concat(vr.source, "*")), Ji = new RegExp("".concat(vr.source, "*$"));
|
|
2547
|
+
function O(e, t) {
|
|
2548
2548
|
return { start: e, end: t };
|
|
2549
2549
|
}
|
|
2550
2550
|
var Qi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ki = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, on = sn ? Number.isSafeInteger : function(e) {
|
|
2551
2551
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
2552
|
}, mt = !0;
|
|
2553
2553
|
try {
|
|
2554
|
-
var an =
|
|
2554
|
+
var an = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2555
2555
|
mt = ((ot = an.exec("a")) === null || ot === void 0 ? void 0 : ot[0]) === "a";
|
|
2556
2556
|
} catch (e) {
|
|
2557
2557
|
mt = !1;
|
|
@@ -2571,10 +2571,10 @@ var Ut = Qi ? (
|
|
|
2571
2571
|
function() {
|
|
2572
2572
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2573
2573
|
t[r] = arguments[r];
|
|
2574
|
-
for (var i = "", n = t.length, s = 0,
|
|
2575
|
-
if (
|
|
2576
|
-
throw RangeError(
|
|
2577
|
-
i +=
|
|
2574
|
+
for (var i = "", n = t.length, s = 0, o; n > s; ) {
|
|
2575
|
+
if (o = t[s++], o > 1114111)
|
|
2576
|
+
throw RangeError(o + " is not a valid code point");
|
|
2577
|
+
i += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2578
2578
|
}
|
|
2579
2579
|
return i;
|
|
2580
2580
|
}
|
|
@@ -2584,13 +2584,13 @@ var Ut = Qi ? (
|
|
|
2584
2584
|
// Ponyfill
|
|
2585
2585
|
function(t) {
|
|
2586
2586
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
2587
|
-
var s = n[i],
|
|
2588
|
-
r[
|
|
2587
|
+
var s = n[i], o = s[0], l = s[1];
|
|
2588
|
+
r[o] = l;
|
|
2589
2589
|
}
|
|
2590
2590
|
return r;
|
|
2591
2591
|
}
|
|
2592
2592
|
)
|
|
2593
|
-
),
|
|
2593
|
+
), xr = tn ? (
|
|
2594
2594
|
// Native
|
|
2595
2595
|
function(t, r) {
|
|
2596
2596
|
return t.codePointAt(r);
|
|
@@ -2625,12 +2625,12 @@ var Ut = Qi ? (
|
|
|
2625
2625
|
return t.replace(Ji, "");
|
|
2626
2626
|
}
|
|
2627
2627
|
);
|
|
2628
|
-
function
|
|
2628
|
+
function Er(e, t) {
|
|
2629
2629
|
return new RegExp(e, t);
|
|
2630
2630
|
}
|
|
2631
2631
|
var gt;
|
|
2632
2632
|
if (mt) {
|
|
2633
|
-
var Vt =
|
|
2633
|
+
var Vt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2634
2634
|
gt = function(t, r) {
|
|
2635
2635
|
var i;
|
|
2636
2636
|
Vt.lastIndex = r;
|
|
@@ -2640,8 +2640,8 @@ if (mt) {
|
|
|
2640
2640
|
} else
|
|
2641
2641
|
gt = function(t, r) {
|
|
2642
2642
|
for (var i = []; ; ) {
|
|
2643
|
-
var n =
|
|
2644
|
-
if (n === void 0 ||
|
|
2643
|
+
var n = xr(t, r);
|
|
2644
|
+
if (n === void 0 || wr(n) || dn(n))
|
|
2645
2645
|
break;
|
|
2646
2646
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2647
2647
|
}
|
|
@@ -2661,10 +2661,10 @@ var hn = (
|
|
|
2661
2661
|
for (var n = []; !this.isEOF(); ) {
|
|
2662
2662
|
var s = this.char();
|
|
2663
2663
|
if (s === 123) {
|
|
2664
|
-
var
|
|
2665
|
-
if (
|
|
2666
|
-
return
|
|
2667
|
-
n.push(
|
|
2664
|
+
var o = this.parseArgument(t, i);
|
|
2665
|
+
if (o.err)
|
|
2666
|
+
return o;
|
|
2667
|
+
n.push(o.val);
|
|
2668
2668
|
} else {
|
|
2669
2669
|
if (s === 125 && t > 0)
|
|
2670
2670
|
break;
|
|
@@ -2672,22 +2672,22 @@ var hn = (
|
|
|
2672
2672
|
var l = this.clonePosition();
|
|
2673
2673
|
this.bump(), n.push({
|
|
2674
2674
|
type: C.pound,
|
|
2675
|
-
location:
|
|
2675
|
+
location: O(l, this.clonePosition())
|
|
2676
2676
|
});
|
|
2677
2677
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2678
2678
|
if (i)
|
|
2679
2679
|
break;
|
|
2680
|
-
return this.error(
|
|
2680
|
+
return this.error(T.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2681
2681
|
} else if (s === 60 && !this.ignoreTag && vt(this.peek() || 0)) {
|
|
2682
|
-
var
|
|
2683
|
-
if (
|
|
2684
|
-
return
|
|
2685
|
-
n.push(
|
|
2682
|
+
var o = this.parseTag(t, r);
|
|
2683
|
+
if (o.err)
|
|
2684
|
+
return o;
|
|
2685
|
+
n.push(o.val);
|
|
2686
2686
|
} else {
|
|
2687
|
-
var
|
|
2688
|
-
if (
|
|
2689
|
-
return
|
|
2690
|
-
n.push(
|
|
2687
|
+
var o = this.parseLiteral(t, r);
|
|
2688
|
+
if (o.err)
|
|
2689
|
+
return o;
|
|
2690
|
+
n.push(o.val);
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
@@ -2701,7 +2701,7 @@ var hn = (
|
|
|
2701
2701
|
val: {
|
|
2702
2702
|
type: C.literal,
|
|
2703
2703
|
value: "<".concat(n, "/>"),
|
|
2704
|
-
location:
|
|
2704
|
+
location: O(i, this.clonePosition())
|
|
2705
2705
|
},
|
|
2706
2706
|
err: null
|
|
2707
2707
|
};
|
|
@@ -2709,24 +2709,24 @@ var hn = (
|
|
|
2709
2709
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2710
2710
|
if (s.err)
|
|
2711
2711
|
return s;
|
|
2712
|
-
var
|
|
2712
|
+
var o = s.val, l = this.clonePosition();
|
|
2713
2713
|
if (this.bumpIf("</")) {
|
|
2714
2714
|
if (this.isEOF() || !vt(this.char()))
|
|
2715
|
-
return this.error(
|
|
2716
|
-
var
|
|
2717
|
-
return n !== u ? this.error(
|
|
2715
|
+
return this.error(T.INVALID_TAG, O(l, this.clonePosition()));
|
|
2716
|
+
var a = this.clonePosition(), u = this.parseTagName();
|
|
2717
|
+
return n !== u ? this.error(T.UNMATCHED_CLOSING_TAG, O(a, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2718
2718
|
val: {
|
|
2719
2719
|
type: C.tag,
|
|
2720
2720
|
value: n,
|
|
2721
|
-
children:
|
|
2722
|
-
location:
|
|
2721
|
+
children: o,
|
|
2722
|
+
location: O(i, this.clonePosition())
|
|
2723
2723
|
},
|
|
2724
2724
|
err: null
|
|
2725
|
-
} : this.error(
|
|
2725
|
+
} : this.error(T.INVALID_TAG, O(l, this.clonePosition())));
|
|
2726
2726
|
} else
|
|
2727
|
-
return this.error(
|
|
2727
|
+
return this.error(T.UNCLOSED_TAG, O(i, this.clonePosition()));
|
|
2728
2728
|
} else
|
|
2729
|
-
return this.error(
|
|
2729
|
+
return this.error(T.INVALID_TAG, O(i, this.clonePosition()));
|
|
2730
2730
|
}, e.prototype.parseTagName = function() {
|
|
2731
2731
|
var t = this.offset();
|
|
2732
2732
|
for (this.bump(); !this.isEOF() && cn(this.char()); )
|
|
@@ -2739,9 +2739,9 @@ var hn = (
|
|
|
2739
2739
|
n += s;
|
|
2740
2740
|
continue;
|
|
2741
2741
|
}
|
|
2742
|
-
var
|
|
2743
|
-
if (
|
|
2744
|
-
n +=
|
|
2742
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2743
|
+
if (o) {
|
|
2744
|
+
n += o;
|
|
2745
2745
|
continue;
|
|
2746
2746
|
}
|
|
2747
2747
|
var l = this.tryParseLeftAngleBracket();
|
|
@@ -2751,9 +2751,9 @@ var hn = (
|
|
|
2751
2751
|
}
|
|
2752
2752
|
break;
|
|
2753
2753
|
}
|
|
2754
|
-
var
|
|
2754
|
+
var a = O(i, this.clonePosition());
|
|
2755
2755
|
return {
|
|
2756
|
-
val: { type: C.literal, value: n, location:
|
|
2756
|
+
val: { type: C.literal, value: n, location: a },
|
|
2757
2757
|
err: null
|
|
2758
2758
|
};
|
|
2759
2759
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2801,14 +2801,14 @@ var hn = (
|
|
|
2801
2801
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2802
2802
|
var i = this.clonePosition();
|
|
2803
2803
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2804
|
-
return this.error(
|
|
2804
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
|
|
2805
2805
|
if (this.char() === 125)
|
|
2806
|
-
return this.bump(), this.error(
|
|
2806
|
+
return this.bump(), this.error(T.EMPTY_ARGUMENT, O(i, this.clonePosition()));
|
|
2807
2807
|
var n = this.parseIdentifierIfPossible().value;
|
|
2808
2808
|
if (!n)
|
|
2809
|
-
return this.error(
|
|
2809
|
+
return this.error(T.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
|
|
2810
2810
|
if (this.bumpSpace(), this.isEOF())
|
|
2811
|
-
return this.error(
|
|
2811
|
+
return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition()));
|
|
2812
2812
|
switch (this.char()) {
|
|
2813
2813
|
case 125:
|
|
2814
2814
|
return this.bump(), {
|
|
@@ -2816,25 +2816,25 @@ var hn = (
|
|
|
2816
2816
|
type: C.argument,
|
|
2817
2817
|
// value does not include the opening and closing braces.
|
|
2818
2818
|
value: n,
|
|
2819
|
-
location:
|
|
2819
|
+
location: O(i, this.clonePosition())
|
|
2820
2820
|
},
|
|
2821
2821
|
err: null
|
|
2822
2822
|
};
|
|
2823
2823
|
case 44:
|
|
2824
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2824
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(i, this.clonePosition())) : this.parseArgumentOptions(t, r, n, i);
|
|
2825
2825
|
default:
|
|
2826
|
-
return this.error(
|
|
2826
|
+
return this.error(T.MALFORMED_ARGUMENT, O(i, this.clonePosition()));
|
|
2827
2827
|
}
|
|
2828
2828
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2829
2829
|
var t = this.clonePosition(), r = this.offset(), i = gt(this.message, r), n = r + i.length;
|
|
2830
2830
|
this.bumpTo(n);
|
|
2831
|
-
var s = this.clonePosition(),
|
|
2832
|
-
return { value: i, location:
|
|
2831
|
+
var s = this.clonePosition(), o = O(t, s);
|
|
2832
|
+
return { value: i, location: o };
|
|
2833
2833
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
2834
|
-
var s,
|
|
2834
|
+
var s, o = this.clonePosition(), l = this.parseIdentifierIfPossible().value, a = this.clonePosition();
|
|
2835
2835
|
switch (l) {
|
|
2836
2836
|
case "":
|
|
2837
|
-
return this.error(
|
|
2837
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, O(o, a));
|
|
2838
2838
|
case "number":
|
|
2839
2839
|
case "date":
|
|
2840
2840
|
case "time": {
|
|
@@ -2847,32 +2847,32 @@ var hn = (
|
|
|
2847
2847
|
return c;
|
|
2848
2848
|
var p = ln(c.val);
|
|
2849
2849
|
if (p.length === 0)
|
|
2850
|
-
return this.error(
|
|
2851
|
-
var
|
|
2852
|
-
u = { style: p, styleLocation:
|
|
2850
|
+
return this.error(T.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2851
|
+
var _ = O(h, this.clonePosition());
|
|
2852
|
+
u = { style: p, styleLocation: _ };
|
|
2853
2853
|
}
|
|
2854
2854
|
var S = this.tryParseArgumentClose(n);
|
|
2855
2855
|
if (S.err)
|
|
2856
2856
|
return S;
|
|
2857
|
-
var v =
|
|
2857
|
+
var v = O(n, this.clonePosition());
|
|
2858
2858
|
if (u && Ut(u == null ? void 0 : u.style, "::", 0)) {
|
|
2859
|
-
var
|
|
2859
|
+
var B = un(u.style.slice(2));
|
|
2860
2860
|
if (l === "number") {
|
|
2861
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2861
|
+
var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
2862
2862
|
return c.err ? c : {
|
|
2863
2863
|
val: { type: C.number, value: i, location: v, style: c.val },
|
|
2864
2864
|
err: null
|
|
2865
2865
|
};
|
|
2866
2866
|
} else {
|
|
2867
|
-
if (
|
|
2868
|
-
return this.error(
|
|
2869
|
-
var
|
|
2870
|
-
this.locale && (
|
|
2867
|
+
if (B.length === 0)
|
|
2868
|
+
return this.error(T.EXPECT_DATE_TIME_SKELETON, v);
|
|
2869
|
+
var G = B;
|
|
2870
|
+
this.locale && (G = qi(B, this.locale));
|
|
2871
2871
|
var p = {
|
|
2872
|
-
type:
|
|
2873
|
-
pattern:
|
|
2872
|
+
type: Oe.dateTime,
|
|
2873
|
+
pattern: G,
|
|
2874
2874
|
location: u.styleLocation,
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ? Fi(
|
|
2875
|
+
parsedOptions: this.shouldParseSkeletons ? Fi(G) : {}
|
|
2876
2876
|
}, R = l === "date" ? C.date : C.time;
|
|
2877
2877
|
return {
|
|
2878
2878
|
val: { type: R, value: i, location: v, style: p },
|
|
@@ -2893,52 +2893,52 @@ var hn = (
|
|
|
2893
2893
|
case "plural":
|
|
2894
2894
|
case "selectordinal":
|
|
2895
2895
|
case "select": {
|
|
2896
|
-
var
|
|
2896
|
+
var A = this.clonePosition();
|
|
2897
2897
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(
|
|
2898
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(A, qe({}, A)));
|
|
2899
2899
|
this.bumpSpace();
|
|
2900
|
-
var
|
|
2901
|
-
if (l !== "select" &&
|
|
2900
|
+
var X = this.parseIdentifierIfPossible(), I = 0;
|
|
2901
|
+
if (l !== "select" && X.value === "offset") {
|
|
2902
2902
|
if (!this.bumpIf(":"))
|
|
2903
|
-
return this.error(
|
|
2903
|
+
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2904
2904
|
this.bumpSpace();
|
|
2905
|
-
var c = this.tryParseDecimalInteger(
|
|
2905
|
+
var c = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2906
2906
|
if (c.err)
|
|
2907
2907
|
return c;
|
|
2908
|
-
this.bumpSpace(),
|
|
2908
|
+
this.bumpSpace(), X = this.parseIdentifierIfPossible(), I = c.val;
|
|
2909
2909
|
}
|
|
2910
|
-
var
|
|
2911
|
-
if (
|
|
2912
|
-
return
|
|
2910
|
+
var F = this.tryParsePluralOrSelectOptions(t, l, r, X);
|
|
2911
|
+
if (F.err)
|
|
2912
|
+
return F;
|
|
2913
2913
|
var S = this.tryParseArgumentClose(n);
|
|
2914
2914
|
if (S.err)
|
|
2915
2915
|
return S;
|
|
2916
|
-
var
|
|
2916
|
+
var q = O(n, this.clonePosition());
|
|
2917
2917
|
return l === "select" ? {
|
|
2918
2918
|
val: {
|
|
2919
2919
|
type: C.select,
|
|
2920
2920
|
value: i,
|
|
2921
|
-
options: Ft(
|
|
2922
|
-
location:
|
|
2921
|
+
options: Ft(F.val),
|
|
2922
|
+
location: q
|
|
2923
2923
|
},
|
|
2924
2924
|
err: null
|
|
2925
2925
|
} : {
|
|
2926
2926
|
val: {
|
|
2927
2927
|
type: C.plural,
|
|
2928
2928
|
value: i,
|
|
2929
|
-
options: Ft(
|
|
2930
|
-
offset:
|
|
2929
|
+
options: Ft(F.val),
|
|
2930
|
+
offset: I,
|
|
2931
2931
|
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
2932
|
-
location:
|
|
2932
|
+
location: q
|
|
2933
2933
|
},
|
|
2934
2934
|
err: null
|
|
2935
2935
|
};
|
|
2936
2936
|
}
|
|
2937
2937
|
default:
|
|
2938
|
-
return this.error(
|
|
2938
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, O(o, a));
|
|
2939
2939
|
}
|
|
2940
2940
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2941
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2941
|
+
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2942
2942
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2943
2943
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2944
2944
|
var i = this.char();
|
|
@@ -2947,7 +2947,7 @@ var hn = (
|
|
|
2947
2947
|
this.bump();
|
|
2948
2948
|
var n = this.clonePosition();
|
|
2949
2949
|
if (!this.bumpUntil("'"))
|
|
2950
|
-
return this.error(
|
|
2950
|
+
return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(n, this.clonePosition()));
|
|
2951
2951
|
this.bump();
|
|
2952
2952
|
break;
|
|
2953
2953
|
}
|
|
@@ -2979,11 +2979,11 @@ var hn = (
|
|
|
2979
2979
|
try {
|
|
2980
2980
|
i = Gi(t);
|
|
2981
2981
|
} catch (n) {
|
|
2982
|
-
return this.error(
|
|
2982
|
+
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2983
2983
|
}
|
|
2984
2984
|
return {
|
|
2985
2985
|
val: {
|
|
2986
|
-
type:
|
|
2986
|
+
type: Oe.number,
|
|
2987
2987
|
tokens: i,
|
|
2988
2988
|
location: r,
|
|
2989
2989
|
parsedOptions: this.shouldParseSkeletons ? Wi(i) : {}
|
|
@@ -2991,50 +2991,50 @@ var hn = (
|
|
|
2991
2991
|
err: null
|
|
2992
2992
|
};
|
|
2993
2993
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
2994
|
-
for (var s,
|
|
2994
|
+
for (var s, o = !1, l = [], a = /* @__PURE__ */ new Set(), u = n.value, h = n.location; ; ) {
|
|
2995
2995
|
if (u.length === 0) {
|
|
2996
2996
|
var c = this.clonePosition();
|
|
2997
2997
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2998
|
-
var p = this.tryParseDecimalInteger(
|
|
2998
|
+
var p = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2999
2999
|
if (p.err)
|
|
3000
3000
|
return p;
|
|
3001
|
-
h =
|
|
3001
|
+
h = O(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3002
3002
|
} else
|
|
3003
3003
|
break;
|
|
3004
3004
|
}
|
|
3005
|
-
if (
|
|
3006
|
-
return this.error(r === "select" ?
|
|
3007
|
-
u === "other" && (
|
|
3008
|
-
var
|
|
3005
|
+
if (a.has(u))
|
|
3006
|
+
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3007
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3008
|
+
var _ = this.clonePosition();
|
|
3009
3009
|
if (!this.bumpIf("{"))
|
|
3010
|
-
return this.error(r === "select" ?
|
|
3010
|
+
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
3011
3011
|
var S = this.parseMessage(t + 1, r, i);
|
|
3012
3012
|
if (S.err)
|
|
3013
3013
|
return S;
|
|
3014
|
-
var v = this.tryParseArgumentClose(
|
|
3014
|
+
var v = this.tryParseArgumentClose(_);
|
|
3015
3015
|
if (v.err)
|
|
3016
3016
|
return v;
|
|
3017
3017
|
l.push([
|
|
3018
3018
|
u,
|
|
3019
3019
|
{
|
|
3020
3020
|
value: S.val,
|
|
3021
|
-
location:
|
|
3021
|
+
location: O(_, this.clonePosition())
|
|
3022
3022
|
}
|
|
3023
|
-
]),
|
|
3023
|
+
]), a.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3024
3024
|
}
|
|
3025
|
-
return l.length === 0 ? this.error(r === "select" ?
|
|
3025
|
+
return l.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(T.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
|
|
3026
3026
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3027
3027
|
var i = 1, n = this.clonePosition();
|
|
3028
3028
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
3029
|
-
for (var s = !1,
|
|
3029
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3030
3030
|
var l = this.char();
|
|
3031
3031
|
if (l >= 48 && l <= 57)
|
|
3032
|
-
s = !0,
|
|
3032
|
+
s = !0, o = o * 10 + (l - 48), this.bump();
|
|
3033
3033
|
else
|
|
3034
3034
|
break;
|
|
3035
3035
|
}
|
|
3036
|
-
var
|
|
3037
|
-
return s ? (
|
|
3036
|
+
var a = O(n, this.clonePosition());
|
|
3037
|
+
return s ? (o *= i, on(o) ? { val: o, err: null } : this.error(r, a)) : this.error(t, a);
|
|
3038
3038
|
}, e.prototype.offset = function() {
|
|
3039
3039
|
return this.position.offset;
|
|
3040
3040
|
}, e.prototype.isEOF = function() {
|
|
@@ -3049,7 +3049,7 @@ var hn = (
|
|
|
3049
3049
|
var t = this.position.offset;
|
|
3050
3050
|
if (t >= this.message.length)
|
|
3051
3051
|
throw Error("out of bound");
|
|
3052
|
-
var r =
|
|
3052
|
+
var r = xr(this.message, t);
|
|
3053
3053
|
if (r === void 0)
|
|
3054
3054
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3055
3055
|
return r;
|
|
@@ -3090,7 +3090,7 @@ var hn = (
|
|
|
3090
3090
|
break;
|
|
3091
3091
|
}
|
|
3092
3092
|
}, e.prototype.bumpSpace = function() {
|
|
3093
|
-
for (; !this.isEOF() &&
|
|
3093
|
+
for (; !this.isEOF() && wr(this.char()); )
|
|
3094
3094
|
this.bump();
|
|
3095
3095
|
}, e.prototype.peek = function() {
|
|
3096
3096
|
if (this.isEOF())
|
|
@@ -3109,7 +3109,7 @@ function fn(e) {
|
|
|
3109
3109
|
function cn(e) {
|
|
3110
3110
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function wr(e) {
|
|
3113
3113
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3114
3114
|
}
|
|
3115
3115
|
function dn(e) {
|
|
@@ -3117,26 +3117,26 @@ function dn(e) {
|
|
|
3117
3117
|
}
|
|
3118
3118
|
function bt(e) {
|
|
3119
3119
|
e.forEach(function(t) {
|
|
3120
|
-
if (delete t.location,
|
|
3120
|
+
if (delete t.location, dr(t) || mr(t))
|
|
3121
3121
|
for (var r in t.options)
|
|
3122
3122
|
delete t.options[r].location, bt(t.options[r].value);
|
|
3123
3123
|
else
|
|
3124
|
-
|
|
3124
|
+
hr(t) && gr(t.style) || (fr(t) || cr(t)) && dt(t.style) ? delete t.style.location : pr(t) && bt(t.children);
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
3127
3127
|
function mn(e, t) {
|
|
3128
3128
|
t === void 0 && (t = {}), t = qe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3129
3129
|
var r = new hn(e, t).parse();
|
|
3130
3130
|
if (r.err) {
|
|
3131
|
-
var i = SyntaxError(
|
|
3131
|
+
var i = SyntaxError(T[r.err.kind]);
|
|
3132
3132
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3133
3133
|
}
|
|
3134
3134
|
return t != null && t.captureLocation || bt(r.val), r.val;
|
|
3135
3135
|
}
|
|
3136
|
-
var
|
|
3136
|
+
var Pe;
|
|
3137
3137
|
(function(e) {
|
|
3138
3138
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3139
|
-
})(
|
|
3139
|
+
})(Pe || (Pe = {}));
|
|
3140
3140
|
var Ke = (
|
|
3141
3141
|
/** @class */
|
|
3142
3142
|
function(e) {
|
|
@@ -3154,7 +3154,7 @@ var Ke = (
|
|
|
3154
3154
|
function(e) {
|
|
3155
3155
|
Qe(t, e);
|
|
3156
3156
|
function t(r, i, n, s) {
|
|
3157
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3157
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), Pe.INVALID_VALUE, s) || this;
|
|
3158
3158
|
}
|
|
3159
3159
|
return t;
|
|
3160
3160
|
}(Ke)
|
|
@@ -3163,7 +3163,7 @@ var Ke = (
|
|
|
3163
3163
|
function(e) {
|
|
3164
3164
|
Qe(t, e);
|
|
3165
3165
|
function t(r, i, n) {
|
|
3166
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3166
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), Pe.INVALID_VALUE, n) || this;
|
|
3167
3167
|
}
|
|
3168
3168
|
return t;
|
|
3169
3169
|
}(Ke)
|
|
@@ -3172,130 +3172,130 @@ var Ke = (
|
|
|
3172
3172
|
function(e) {
|
|
3173
3173
|
Qe(t, e);
|
|
3174
3174
|
function t(r, i) {
|
|
3175
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3175
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), Pe.MISSING_VALUE, i) || this;
|
|
3176
3176
|
}
|
|
3177
3177
|
return t;
|
|
3178
3178
|
}(Ke)
|
|
3179
|
-
),
|
|
3179
|
+
), z;
|
|
3180
3180
|
(function(e) {
|
|
3181
3181
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3182
|
-
})(
|
|
3182
|
+
})(z || (z = {}));
|
|
3183
3183
|
function vn(e) {
|
|
3184
3184
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3185
3185
|
var i = t[t.length - 1];
|
|
3186
|
-
return !i || i.type !==
|
|
3186
|
+
return !i || i.type !== z.literal || r.type !== z.literal ? t.push(r) : i.value += r.value, t;
|
|
3187
3187
|
}, []);
|
|
3188
3188
|
}
|
|
3189
3189
|
function bn(e) {
|
|
3190
3190
|
return typeof e == "function";
|
|
3191
3191
|
}
|
|
3192
|
-
function Xe(e, t, r, i, n, s,
|
|
3192
|
+
function Xe(e, t, r, i, n, s, o) {
|
|
3193
3193
|
if (e.length === 1 && It(e[0]))
|
|
3194
3194
|
return [
|
|
3195
3195
|
{
|
|
3196
|
-
type:
|
|
3196
|
+
type: z.literal,
|
|
3197
3197
|
value: e[0].value
|
|
3198
3198
|
}
|
|
3199
3199
|
];
|
|
3200
|
-
for (var l = [],
|
|
3201
|
-
var h = u[
|
|
3200
|
+
for (var l = [], a = 0, u = e; a < u.length; a++) {
|
|
3201
|
+
var h = u[a];
|
|
3202
3202
|
if (It(h)) {
|
|
3203
3203
|
l.push({
|
|
3204
|
-
type:
|
|
3204
|
+
type: z.literal,
|
|
3205
3205
|
value: h.value
|
|
3206
3206
|
});
|
|
3207
3207
|
continue;
|
|
3208
3208
|
}
|
|
3209
3209
|
if (ki(h)) {
|
|
3210
3210
|
typeof s == "number" && l.push({
|
|
3211
|
-
type:
|
|
3211
|
+
type: z.literal,
|
|
3212
3212
|
value: r.getNumberFormat(t).format(s)
|
|
3213
3213
|
});
|
|
3214
3214
|
continue;
|
|
3215
3215
|
}
|
|
3216
3216
|
var c = h.value;
|
|
3217
3217
|
if (!(n && c in n))
|
|
3218
|
-
throw new gn(c,
|
|
3218
|
+
throw new gn(c, o);
|
|
3219
3219
|
var p = n[c];
|
|
3220
3220
|
if (Ri(h)) {
|
|
3221
3221
|
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), l.push({
|
|
3222
|
-
type: typeof p == "string" ?
|
|
3222
|
+
type: typeof p == "string" ? z.literal : z.object,
|
|
3223
3223
|
value: p
|
|
3224
3224
|
});
|
|
3225
3225
|
continue;
|
|
3226
3226
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3227
|
+
if (fr(h)) {
|
|
3228
|
+
var _ = typeof h.style == "string" ? i.date[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
|
|
3229
3229
|
l.push({
|
|
3230
|
-
type:
|
|
3231
|
-
value: r.getDateTimeFormat(t,
|
|
3230
|
+
type: z.literal,
|
|
3231
|
+
value: r.getDateTimeFormat(t, _).format(p)
|
|
3232
3232
|
});
|
|
3233
3233
|
continue;
|
|
3234
3234
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
var
|
|
3235
|
+
if (cr(h)) {
|
|
3236
|
+
var _ = typeof h.style == "string" ? i.time[h.style] : dt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3237
3237
|
l.push({
|
|
3238
|
-
type:
|
|
3239
|
-
value: r.getDateTimeFormat(t,
|
|
3238
|
+
type: z.literal,
|
|
3239
|
+
value: r.getDateTimeFormat(t, _).format(p)
|
|
3240
3240
|
});
|
|
3241
3241
|
continue;
|
|
3242
3242
|
}
|
|
3243
|
-
if (
|
|
3244
|
-
var
|
|
3245
|
-
|
|
3246
|
-
type:
|
|
3247
|
-
value: r.getNumberFormat(t,
|
|
3243
|
+
if (hr(h)) {
|
|
3244
|
+
var _ = typeof h.style == "string" ? i.number[h.style] : gr(h.style) ? h.style.parsedOptions : void 0;
|
|
3245
|
+
_ && _.scale && (p = p * (_.scale || 1)), l.push({
|
|
3246
|
+
type: z.literal,
|
|
3247
|
+
value: r.getNumberFormat(t, _).format(p)
|
|
3248
3248
|
});
|
|
3249
3249
|
continue;
|
|
3250
3250
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
var S = h.children, v = h.value,
|
|
3253
|
-
if (!bn(
|
|
3254
|
-
throw new pn(v, "function",
|
|
3255
|
-
var
|
|
3256
|
-
return
|
|
3251
|
+
if (pr(h)) {
|
|
3252
|
+
var S = h.children, v = h.value, B = n[v];
|
|
3253
|
+
if (!bn(B))
|
|
3254
|
+
throw new pn(v, "function", o);
|
|
3255
|
+
var G = Xe(S, t, r, i, n, s), R = B(G.map(function(I) {
|
|
3256
|
+
return I.value;
|
|
3257
3257
|
}));
|
|
3258
|
-
Array.isArray(R) || (R = [R]), l.push.apply(l, R.map(function(
|
|
3258
|
+
Array.isArray(R) || (R = [R]), l.push.apply(l, R.map(function(I) {
|
|
3259
3259
|
return {
|
|
3260
|
-
type: typeof
|
|
3261
|
-
value:
|
|
3260
|
+
type: typeof I == "string" ? z.literal : z.object,
|
|
3261
|
+
value: I
|
|
3262
3262
|
};
|
|
3263
3263
|
}));
|
|
3264
3264
|
}
|
|
3265
|
-
if (
|
|
3266
|
-
var
|
|
3267
|
-
if (
|
|
3268
|
-
throw new Gt(h.value, p, Object.keys(h.options),
|
|
3269
|
-
l.push.apply(l, Xe(
|
|
3265
|
+
if (dr(h)) {
|
|
3266
|
+
var A = h.options[p] || h.options.other;
|
|
3267
|
+
if (!A)
|
|
3268
|
+
throw new Gt(h.value, p, Object.keys(h.options), o);
|
|
3269
|
+
l.push.apply(l, Xe(A.value, t, r, i, n));
|
|
3270
3270
|
continue;
|
|
3271
3271
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var
|
|
3274
|
-
if (
|
|
3272
|
+
if (mr(h)) {
|
|
3273
|
+
var A = h.options["=".concat(p)];
|
|
3274
|
+
if (!A) {
|
|
3275
3275
|
if (!Intl.PluralRules)
|
|
3276
3276
|
throw new Ke(`Intl.PluralRules is not available in this environment.
|
|
3277
3277
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3278
|
-
`,
|
|
3279
|
-
var
|
|
3280
|
-
|
|
3278
|
+
`, Pe.MISSING_INTL_API, o);
|
|
3279
|
+
var X = r.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3280
|
+
A = h.options[X] || h.options.other;
|
|
3281
3281
|
}
|
|
3282
|
-
if (
|
|
3283
|
-
throw new Gt(h.value, p, Object.keys(h.options),
|
|
3284
|
-
l.push.apply(l, Xe(
|
|
3282
|
+
if (!A)
|
|
3283
|
+
throw new Gt(h.value, p, Object.keys(h.options), o);
|
|
3284
|
+
l.push.apply(l, Xe(A.value, t, r, i, n, p - (h.offset || 0)));
|
|
3285
3285
|
continue;
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
3288
|
return vn(l);
|
|
3289
3289
|
}
|
|
3290
3290
|
function yn(e, t) {
|
|
3291
|
-
return t ?
|
|
3292
|
-
return r[i] =
|
|
3291
|
+
return t ? oe(oe(oe({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3292
|
+
return r[i] = oe(oe({}, e[i]), t[i] || {}), r;
|
|
3293
3293
|
}, {})) : e;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function _n(e, t) {
|
|
3296
3296
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3297
3297
|
return r[i] = yn(e[i], t[i]), r;
|
|
3298
|
-
},
|
|
3298
|
+
}, oe({}, e)) : e;
|
|
3299
3299
|
}
|
|
3300
3300
|
function at(e) {
|
|
3301
3301
|
return {
|
|
@@ -3311,7 +3311,7 @@ function at(e) {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
};
|
|
3313
3313
|
}
|
|
3314
|
-
function
|
|
3314
|
+
function xn(e) {
|
|
3315
3315
|
return e === void 0 && (e = {
|
|
3316
3316
|
number: {},
|
|
3317
3317
|
dateTime: {},
|
|
@@ -3343,7 +3343,7 @@ function _n(e) {
|
|
|
3343
3343
|
})
|
|
3344
3344
|
};
|
|
3345
3345
|
}
|
|
3346
|
-
var
|
|
3346
|
+
var Sr = (
|
|
3347
3347
|
/** @class */
|
|
3348
3348
|
function() {
|
|
3349
3349
|
function e(t, r, i, n) {
|
|
@@ -3353,35 +3353,35 @@ var Tr = (
|
|
|
3353
3353
|
number: {},
|
|
3354
3354
|
dateTime: {},
|
|
3355
3355
|
pluralRules: {}
|
|
3356
|
-
}, this.format = function(
|
|
3357
|
-
var u = s.formatToParts(
|
|
3356
|
+
}, this.format = function(a) {
|
|
3357
|
+
var u = s.formatToParts(a);
|
|
3358
3358
|
if (u.length === 1)
|
|
3359
3359
|
return u[0].value;
|
|
3360
3360
|
var h = u.reduce(function(c, p) {
|
|
3361
|
-
return !c.length || p.type !==
|
|
3361
|
+
return !c.length || p.type !== z.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3362
3362
|
}, []);
|
|
3363
3363
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3364
|
-
}, this.formatToParts = function(
|
|
3365
|
-
return Xe(s.ast, s.locales, s.formatters, s.formats,
|
|
3364
|
+
}, this.formatToParts = function(a) {
|
|
3365
|
+
return Xe(s.ast, s.locales, s.formatters, s.formats, a, void 0, s.message);
|
|
3366
3366
|
}, this.resolvedOptions = function() {
|
|
3367
|
-
var
|
|
3367
|
+
var a;
|
|
3368
3368
|
return {
|
|
3369
|
-
locale: ((
|
|
3369
|
+
locale: ((a = s.resolvedLocale) === null || a === void 0 ? void 0 : a.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3370
3370
|
};
|
|
3371
3371
|
}, this.getAst = function() {
|
|
3372
3372
|
return s.ast;
|
|
3373
3373
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3374
3374
|
if (this.message = t, !e.__parse)
|
|
3375
3375
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3376
|
-
var
|
|
3377
|
-
|
|
3378
|
-
var l = $i(
|
|
3379
|
-
this.ast = e.__parse(t,
|
|
3376
|
+
var o = n || {};
|
|
3377
|
+
o.formatters;
|
|
3378
|
+
var l = $i(o, ["formatters"]);
|
|
3379
|
+
this.ast = e.__parse(t, oe(oe({}, l), { locale: this.resolvedLocale }));
|
|
3380
3380
|
} else
|
|
3381
3381
|
this.ast = t;
|
|
3382
3382
|
if (!Array.isArray(this.ast))
|
|
3383
3383
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3384
|
-
this.formats =
|
|
3384
|
+
this.formats = _n(e.formats, i), this.formatters = n && n.formatters || xn(this.formatterCache);
|
|
3385
3385
|
}
|
|
3386
3386
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3387
3387
|
get: function() {
|
|
@@ -3476,12 +3476,12 @@ function En(e, t) {
|
|
|
3476
3476
|
i = void 0;
|
|
3477
3477
|
return i;
|
|
3478
3478
|
}
|
|
3479
|
-
const
|
|
3479
|
+
const me = {}, wn = (e, t, r) => r && (t in me || (me[t] = {}), e in me[t] || (me[t][e] = r), r), Tr = (e, t) => {
|
|
3480
3480
|
if (t == null)
|
|
3481
3481
|
return;
|
|
3482
|
-
if (t in
|
|
3483
|
-
return
|
|
3484
|
-
const r =
|
|
3482
|
+
if (t in me && e in me[t])
|
|
3483
|
+
return me[t][e];
|
|
3484
|
+
const r = Fe(t);
|
|
3485
3485
|
for (let i = 0; i < r.length; i++) {
|
|
3486
3486
|
const n = r[i], s = Tn(n, e);
|
|
3487
3487
|
if (s)
|
|
@@ -3489,15 +3489,15 @@ const ce = {}, wn = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (c
|
|
|
3489
3489
|
}
|
|
3490
3490
|
};
|
|
3491
3491
|
let St;
|
|
3492
|
-
const
|
|
3492
|
+
const Ue = ke({});
|
|
3493
3493
|
function Sn(e) {
|
|
3494
3494
|
return St[e] || null;
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3496
|
+
function Hr(e) {
|
|
3497
3497
|
return e in St;
|
|
3498
3498
|
}
|
|
3499
3499
|
function Tn(e, t) {
|
|
3500
|
-
if (!
|
|
3500
|
+
if (!Hr(e))
|
|
3501
3501
|
return null;
|
|
3502
3502
|
const r = Sn(e);
|
|
3503
3503
|
return En(r, t);
|
|
@@ -3505,61 +3505,61 @@ function Tn(e, t) {
|
|
|
3505
3505
|
function Hn(e) {
|
|
3506
3506
|
if (e == null)
|
|
3507
3507
|
return;
|
|
3508
|
-
const t =
|
|
3508
|
+
const t = Fe(e);
|
|
3509
3509
|
for (let r = 0; r < t.length; r++) {
|
|
3510
3510
|
const i = t[r];
|
|
3511
|
-
if (
|
|
3511
|
+
if (Hr(i))
|
|
3512
3512
|
return i;
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3516
|
-
delete
|
|
3515
|
+
function Or(e, ...t) {
|
|
3516
|
+
delete me[e], Ue.update((r) => (r[e] = Ai.all([r[e] || {}, ...t]), r));
|
|
3517
3517
|
}
|
|
3518
|
-
|
|
3519
|
-
[
|
|
3518
|
+
$e(
|
|
3519
|
+
[Ue],
|
|
3520
3520
|
([e]) => Object.keys(e)
|
|
3521
3521
|
);
|
|
3522
|
-
|
|
3522
|
+
Ue.subscribe((e) => St = e);
|
|
3523
3523
|
const We = {};
|
|
3524
3524
|
function On(e, t) {
|
|
3525
3525
|
We[e].delete(t), We[e].size === 0 && delete We[e];
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3527
|
+
function Pr(e) {
|
|
3528
3528
|
return We[e];
|
|
3529
3529
|
}
|
|
3530
3530
|
function Pn(e) {
|
|
3531
|
-
return
|
|
3532
|
-
const r =
|
|
3531
|
+
return Fe(e).map((t) => {
|
|
3532
|
+
const r = Pr(t);
|
|
3533
3533
|
return [t, r ? [...r] : []];
|
|
3534
3534
|
}).filter(([, t]) => t.length > 0);
|
|
3535
3535
|
}
|
|
3536
3536
|
function Ye(e) {
|
|
3537
|
-
return e == null ? !1 :
|
|
3537
|
+
return e == null ? !1 : Fe(e).some(
|
|
3538
3538
|
(t) => {
|
|
3539
3539
|
var r;
|
|
3540
|
-
return (r =
|
|
3540
|
+
return (r = Pr(t)) == null ? void 0 : r.size;
|
|
3541
3541
|
}
|
|
3542
3542
|
);
|
|
3543
3543
|
}
|
|
3544
3544
|
function An(e, t) {
|
|
3545
3545
|
return Promise.all(
|
|
3546
3546
|
t.map((i) => (On(e, i), i().then((n) => n.default || n)))
|
|
3547
|
-
).then((i) =>
|
|
3547
|
+
).then((i) => Or(e, ...i));
|
|
3548
3548
|
}
|
|
3549
|
-
const
|
|
3550
|
-
function
|
|
3549
|
+
const Me = {};
|
|
3550
|
+
function Ar(e) {
|
|
3551
3551
|
if (!Ye(e))
|
|
3552
|
-
return e in
|
|
3552
|
+
return e in Me ? Me[e] : Promise.resolve();
|
|
3553
3553
|
const t = Pn(e);
|
|
3554
|
-
return
|
|
3554
|
+
return Me[e] = Promise.all(
|
|
3555
3555
|
t.map(
|
|
3556
3556
|
([r, i]) => An(r, i)
|
|
3557
3557
|
)
|
|
3558
3558
|
).then(() => {
|
|
3559
3559
|
if (Ye(e))
|
|
3560
|
-
return
|
|
3561
|
-
delete
|
|
3562
|
-
}),
|
|
3560
|
+
return Ar(e);
|
|
3561
|
+
delete Me[e];
|
|
3562
|
+
}), Me[e];
|
|
3563
3563
|
}
|
|
3564
3564
|
var jt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Bn = Object.prototype.propertyIsEnumerable, Mn = (e, t) => {
|
|
3565
3565
|
var r = {};
|
|
@@ -3602,9 +3602,9 @@ const Cn = {
|
|
|
3602
3602
|
};
|
|
3603
3603
|
function Dn({ locale: e, id: t }) {
|
|
3604
3604
|
console.warn(
|
|
3605
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3605
|
+
`[svelte-i18n] The message "${t}" was not found in "${Fe(
|
|
3606
3606
|
e
|
|
3607
|
-
).join('", "')}".${Ye(
|
|
3607
|
+
).join('", "')}".${Ye(pe()) ? `
|
|
3608
3608
|
|
|
3609
3609
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3610
3610
|
);
|
|
@@ -3616,16 +3616,16 @@ const Ln = {
|
|
|
3616
3616
|
warnOnMissingMessages: !0,
|
|
3617
3617
|
handleMissingMessage: void 0,
|
|
3618
3618
|
ignoreTag: !0
|
|
3619
|
-
},
|
|
3620
|
-
function
|
|
3621
|
-
return
|
|
3619
|
+
}, Ce = Ln;
|
|
3620
|
+
function Ae() {
|
|
3621
|
+
return Ce;
|
|
3622
3622
|
}
|
|
3623
3623
|
function In(e) {
|
|
3624
3624
|
const t = e, { formats: r } = t, i = Mn(t, ["formats"]);
|
|
3625
3625
|
let n = e.fallbackLocale;
|
|
3626
3626
|
if (e.initialLocale)
|
|
3627
3627
|
try {
|
|
3628
|
-
|
|
3628
|
+
Sr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3629
3629
|
} catch (s) {
|
|
3630
3630
|
console.warn(
|
|
3631
3631
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
@@ -3633,9 +3633,9 @@ function In(e) {
|
|
|
3633
3633
|
}
|
|
3634
3634
|
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = Dn : console.warn(
|
|
3635
3635
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3636
|
-
)), Object.assign(
|
|
3636
|
+
)), Object.assign(Ce, i, { initialLocale: n }), r && ("number" in r && Object.assign(Ce.formats.number, r.number), "date" in r && Object.assign(Ce.formats.date, r.date), "time" in r && Object.assign(Ce.formats.time, r.time)), be.set(n);
|
|
3637
3637
|
}
|
|
3638
|
-
const ut =
|
|
3638
|
+
const ut = ke(!1);
|
|
3639
3639
|
var Nn = Object.defineProperty, Rn = Object.defineProperties, kn = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vn = (e, t) => {
|
|
3640
3640
|
for (var r in t || (t = {}))
|
|
3641
3641
|
Un.call(t, r) && Xt(e, r, t[r]);
|
|
@@ -3645,15 +3645,15 @@ var Nn = Object.defineProperty, Rn = Object.defineProperties, kn = Object.getOwn
|
|
|
3645
3645
|
return e;
|
|
3646
3646
|
}, Gn = (e, t) => Rn(e, kn(t));
|
|
3647
3647
|
let yt;
|
|
3648
|
-
const Ze =
|
|
3648
|
+
const Ze = ke(null);
|
|
3649
3649
|
function Wt(e) {
|
|
3650
3650
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3652
|
+
function Fe(e, t = Ae().fallbackLocale) {
|
|
3653
3653
|
const r = Wt(e);
|
|
3654
3654
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Wt(t)])] : r;
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3656
|
+
function pe() {
|
|
3657
3657
|
return yt != null ? yt : void 0;
|
|
3658
3658
|
}
|
|
3659
3659
|
Ze.subscribe((e) => {
|
|
@@ -3661,19 +3661,19 @@ Ze.subscribe((e) => {
|
|
|
3661
3661
|
});
|
|
3662
3662
|
const jn = (e) => {
|
|
3663
3663
|
if (e && Hn(e) && Ye(e)) {
|
|
3664
|
-
const { loadingDelay: t } =
|
|
3664
|
+
const { loadingDelay: t } = Ae();
|
|
3665
3665
|
let r;
|
|
3666
|
-
return typeof window != "undefined" &&
|
|
3666
|
+
return typeof window != "undefined" && pe() != null && t ? r = window.setTimeout(
|
|
3667
3667
|
() => ut.set(!0),
|
|
3668
3668
|
t
|
|
3669
|
-
) : ut.set(!0),
|
|
3669
|
+
) : ut.set(!0), Ar(e).then(() => {
|
|
3670
3670
|
Ze.set(e);
|
|
3671
3671
|
}).finally(() => {
|
|
3672
3672
|
clearTimeout(r), ut.set(!1);
|
|
3673
3673
|
});
|
|
3674
3674
|
}
|
|
3675
3675
|
return Ze.set(e);
|
|
3676
|
-
},
|
|
3676
|
+
}, be = Gn(Vn({}, Ze), {
|
|
3677
3677
|
set: jn
|
|
3678
3678
|
}), et = (e) => {
|
|
3679
3679
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3682,92 +3682,92 @@ const jn = (e) => {
|
|
|
3682
3682
|
return n in t ? t[n] : t[n] = e(i);
|
|
3683
3683
|
};
|
|
3684
3684
|
};
|
|
3685
|
-
var zn = Object.defineProperty, Je = Object.getOwnPropertySymbols,
|
|
3685
|
+
var zn = Object.defineProperty, Je = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
3686
3686
|
for (var r in t || (t = {}))
|
|
3687
|
-
|
|
3687
|
+
$r.call(t, r) && qt(e, r, t[r]);
|
|
3688
3688
|
if (Je)
|
|
3689
3689
|
for (var r of Je(t))
|
|
3690
|
-
|
|
3690
|
+
Br.call(t, r) && qt(e, r, t[r]);
|
|
3691
3691
|
return e;
|
|
3692
|
-
},
|
|
3692
|
+
}, Be = (e, t) => {
|
|
3693
3693
|
var r = {};
|
|
3694
3694
|
for (var i in e)
|
|
3695
|
-
|
|
3695
|
+
$r.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3696
3696
|
if (e != null && Je)
|
|
3697
3697
|
for (var i of Je(e))
|
|
3698
|
-
t.indexOf(i) < 0 &&
|
|
3698
|
+
t.indexOf(i) < 0 && Br.call(e, i) && (r[i] = e[i]);
|
|
3699
3699
|
return r;
|
|
3700
3700
|
};
|
|
3701
|
-
const
|
|
3702
|
-
const { formats: r } =
|
|
3701
|
+
const Ne = (e, t) => {
|
|
3702
|
+
const { formats: r } = Ae();
|
|
3703
3703
|
if (e in r && t in r[e])
|
|
3704
3704
|
return r[e][t];
|
|
3705
3705
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3706
3706
|
}, Xn = et(
|
|
3707
3707
|
(e) => {
|
|
3708
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3708
|
+
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3709
3709
|
if (r == null)
|
|
3710
3710
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3711
|
-
return i && (n =
|
|
3711
|
+
return i && (n = Ne("number", i)), new Intl.NumberFormat(r, n);
|
|
3712
3712
|
}
|
|
3713
3713
|
), Wn = et(
|
|
3714
3714
|
(e) => {
|
|
3715
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3715
|
+
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3716
3716
|
if (r == null)
|
|
3717
3717
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3718
|
-
return i ? n =
|
|
3718
|
+
return i ? n = Ne("date", i) : Object.keys(n).length === 0 && (n = Ne("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3719
3719
|
}
|
|
3720
3720
|
), qn = et(
|
|
3721
3721
|
(e) => {
|
|
3722
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3722
|
+
var t = e, { locale: r, format: i } = t, n = Be(t, ["locale", "format"]);
|
|
3723
3723
|
if (r == null)
|
|
3724
3724
|
throw new Error(
|
|
3725
3725
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3726
3726
|
);
|
|
3727
|
-
return i ? n =
|
|
3727
|
+
return i ? n = Ne("time", i) : Object.keys(n).length === 0 && (n = Ne("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3728
3728
|
}
|
|
3729
3729
|
), Yn = (e = {}) => {
|
|
3730
3730
|
var t = e, {
|
|
3731
|
-
locale: r =
|
|
3732
|
-
} = t, i =
|
|
3731
|
+
locale: r = pe()
|
|
3732
|
+
} = t, i = Be(t, [
|
|
3733
3733
|
"locale"
|
|
3734
3734
|
]);
|
|
3735
3735
|
return Xn(Tt({ locale: r }, i));
|
|
3736
3736
|
}, Zn = (e = {}) => {
|
|
3737
3737
|
var t = e, {
|
|
3738
|
-
locale: r =
|
|
3739
|
-
} = t, i =
|
|
3738
|
+
locale: r = pe()
|
|
3739
|
+
} = t, i = Be(t, [
|
|
3740
3740
|
"locale"
|
|
3741
3741
|
]);
|
|
3742
3742
|
return Wn(Tt({ locale: r }, i));
|
|
3743
3743
|
}, Jn = (e = {}) => {
|
|
3744
3744
|
var t = e, {
|
|
3745
|
-
locale: r =
|
|
3746
|
-
} = t, i =
|
|
3745
|
+
locale: r = pe()
|
|
3746
|
+
} = t, i = Be(t, [
|
|
3747
3747
|
"locale"
|
|
3748
3748
|
]);
|
|
3749
3749
|
return qn(Tt({ locale: r }, i));
|
|
3750
3750
|
}, Qn = et(
|
|
3751
3751
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3752
|
-
(e, t =
|
|
3753
|
-
ignoreTag:
|
|
3752
|
+
(e, t = pe()) => new Sr(e, t, Ae().formats, {
|
|
3753
|
+
ignoreTag: Ae().ignoreTag
|
|
3754
3754
|
})
|
|
3755
3755
|
), Kn = (e, t = {}) => {
|
|
3756
3756
|
var r, i, n, s;
|
|
3757
|
-
let
|
|
3758
|
-
typeof e == "object" && (
|
|
3757
|
+
let o = t;
|
|
3758
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3759
3759
|
const {
|
|
3760
3760
|
values: l,
|
|
3761
|
-
locale:
|
|
3761
|
+
locale: a = pe(),
|
|
3762
3762
|
default: u
|
|
3763
|
-
} =
|
|
3764
|
-
if (
|
|
3763
|
+
} = o;
|
|
3764
|
+
if (a == null)
|
|
3765
3765
|
throw new Error(
|
|
3766
3766
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3767
3767
|
);
|
|
3768
|
-
let h =
|
|
3768
|
+
let h = Tr(e, a);
|
|
3769
3769
|
if (!h)
|
|
3770
|
-
h = (s = (n = (i = (r =
|
|
3770
|
+
h = (s = (n = (i = (r = Ae()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: a, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3771
3771
|
else if (typeof h != "string")
|
|
3772
3772
|
return console.warn(
|
|
3773
3773
|
`[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.`
|
|
@@ -3776,7 +3776,7 @@ const Ie = (e, t) => {
|
|
|
3776
3776
|
return h;
|
|
3777
3777
|
let c = h;
|
|
3778
3778
|
try {
|
|
3779
|
-
c = Qn(h,
|
|
3779
|
+
c = Qn(h, a).format(l);
|
|
3780
3780
|
} catch (p) {
|
|
3781
3781
|
p instanceof Error && console.warn(
|
|
3782
3782
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3784,18 +3784,18 @@ const Ie = (e, t) => {
|
|
|
3784
3784
|
);
|
|
3785
3785
|
}
|
|
3786
3786
|
return c;
|
|
3787
|
-
}, es = (e, t) => Jn(t).format(e), ts = (e, t) => Zn(t).format(e), rs = (e, t) => Yn(t).format(e), is = (e, t =
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3787
|
+
}, es = (e, t) => Jn(t).format(e), ts = (e, t) => Zn(t).format(e), rs = (e, t) => Yn(t).format(e), is = (e, t = pe()) => Tr(e, t), ns = $e([be, Ue], () => Kn);
|
|
3788
|
+
$e([be], () => es);
|
|
3789
|
+
$e([be], () => ts);
|
|
3790
|
+
$e([be], () => rs);
|
|
3791
|
+
$e([be, Ue], () => is);
|
|
3792
3792
|
function Yt(e, t) {
|
|
3793
|
-
|
|
3793
|
+
Or(e, t);
|
|
3794
3794
|
}
|
|
3795
3795
|
function ss(e) {
|
|
3796
3796
|
In({
|
|
3797
3797
|
fallbackLocale: "en"
|
|
3798
|
-
}),
|
|
3798
|
+
}), be.set(e);
|
|
3799
3799
|
}
|
|
3800
3800
|
const Zt = {
|
|
3801
3801
|
en: {
|
|
@@ -3865,83 +3865,106 @@ if (typeof window != "undefined") {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
};
|
|
3867
3867
|
};
|
|
3868
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3868
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-CdjPH9oY.js").then(({ default: t }) => {
|
|
3869
3869
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3870
3870
|
});
|
|
3871
3871
|
}
|
|
3872
|
-
let os =
|
|
3873
|
-
|
|
3872
|
+
let os = ke(null);
|
|
3873
|
+
function as(e, t) {
|
|
3874
|
+
if (e) {
|
|
3875
|
+
const r = document.createElement("style");
|
|
3876
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3877
|
+
}
|
|
3878
|
+
}
|
|
3879
|
+
function us(e, t) {
|
|
3880
|
+
const r = new URL(t);
|
|
3881
|
+
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
3882
|
+
const n = document.createElement("style");
|
|
3883
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3884
|
+
}).catch((i) => {
|
|
3885
|
+
console.error("There was an error while trying to load client styling from URL", i);
|
|
3886
|
+
});
|
|
3887
|
+
}
|
|
3888
|
+
function ls(e, t, r) {
|
|
3889
|
+
if (window.emMessageBus) {
|
|
3890
|
+
const i = document.createElement("style");
|
|
3891
|
+
window.emMessageBus.subscribe(t, (n) => {
|
|
3892
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3893
|
+
});
|
|
3894
|
+
}
|
|
3895
|
+
}
|
|
3896
|
+
var Mr = { exports: {} };
|
|
3874
3897
|
(function(e, t) {
|
|
3875
3898
|
(function(r, i) {
|
|
3876
3899
|
e.exports = i();
|
|
3877
|
-
})(
|
|
3878
|
-
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond",
|
|
3879
|
-
var g = ["th", "st", "nd", "rd"], d =
|
|
3880
|
-
return "[" +
|
|
3881
|
-
} },
|
|
3882
|
-
var
|
|
3883
|
-
return !
|
|
3884
|
-
},
|
|
3885
|
-
var g = -
|
|
3886
|
-
return (g <= 0 ? "+" : "-") +
|
|
3887
|
-
}, m: function
|
|
3900
|
+
})(or, function() {
|
|
3901
|
+
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", l = "minute", a = "hour", u = "day", h = "week", c = "month", p = "quarter", _ = "year", S = "date", v = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|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) {
|
|
3902
|
+
var g = ["th", "st", "nd", "rd"], d = x % 100;
|
|
3903
|
+
return "[" + x + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
3904
|
+
} }, A = function(x, g, d) {
|
|
3905
|
+
var b = String(x);
|
|
3906
|
+
return !b || b.length >= g ? x : "" + Array(g + 1 - b.length).join(d) + x;
|
|
3907
|
+
}, X = { s: A, z: function(x) {
|
|
3908
|
+
var g = -x.utcOffset(), d = Math.abs(g), b = Math.floor(d / 60), m = d % 60;
|
|
3909
|
+
return (g <= 0 ? "+" : "-") + A(b, 2, "0") + ":" + A(m, 2, "0");
|
|
3910
|
+
}, m: function x(g, d) {
|
|
3888
3911
|
if (g.date() < d.date())
|
|
3889
|
-
return -
|
|
3890
|
-
var
|
|
3891
|
-
return +(-(
|
|
3892
|
-
}, a: function(
|
|
3893
|
-
return
|
|
3894
|
-
}, p: function(
|
|
3895
|
-
return { M: c, y:
|
|
3896
|
-
}, u: function(
|
|
3897
|
-
return
|
|
3898
|
-
} },
|
|
3899
|
-
|
|
3900
|
-
var
|
|
3901
|
-
return
|
|
3902
|
-
},
|
|
3912
|
+
return -x(d, g);
|
|
3913
|
+
var b = 12 * (d.year() - g.year()) + (d.month() - g.month()), m = g.clone().add(b, c), E = d - m < 0, w = g.clone().add(b + (E ? -1 : 1), c);
|
|
3914
|
+
return +(-(b + (d - m) / (E ? m - w : w - m)) || 0);
|
|
3915
|
+
}, a: function(x) {
|
|
3916
|
+
return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
|
|
3917
|
+
}, p: function(x) {
|
|
3918
|
+
return { M: c, y: _, w: h, d: u, D: S, h: a, m: l, s: o, ms: s, Q: p }[x] || String(x || "").toLowerCase().replace(/s$/, "");
|
|
3919
|
+
}, u: function(x) {
|
|
3920
|
+
return x === void 0;
|
|
3921
|
+
} }, I = "en", F = {};
|
|
3922
|
+
F[I] = R;
|
|
3923
|
+
var q = "$isDayjsObject", ue = function(x) {
|
|
3924
|
+
return x instanceof k || !(!x || !x[q]);
|
|
3925
|
+
}, Z = function x(g, d, b) {
|
|
3903
3926
|
var m;
|
|
3904
3927
|
if (!g)
|
|
3905
|
-
return
|
|
3928
|
+
return I;
|
|
3906
3929
|
if (typeof g == "string") {
|
|
3907
3930
|
var E = g.toLowerCase();
|
|
3908
|
-
|
|
3931
|
+
F[E] && (m = E), d && (F[E] = d, m = E);
|
|
3909
3932
|
var w = g.split("-");
|
|
3910
3933
|
if (!m && w.length > 1)
|
|
3911
|
-
return
|
|
3934
|
+
return x(w[0]);
|
|
3912
3935
|
} else {
|
|
3913
|
-
var
|
|
3914
|
-
|
|
3936
|
+
var $ = g.name;
|
|
3937
|
+
F[$] = g, m = $;
|
|
3915
3938
|
}
|
|
3916
|
-
return !
|
|
3917
|
-
},
|
|
3918
|
-
if (
|
|
3919
|
-
return
|
|
3939
|
+
return !b && m && (I = m), m || !b && I;
|
|
3940
|
+
}, M = function(x, g) {
|
|
3941
|
+
if (ue(x))
|
|
3942
|
+
return x.clone();
|
|
3920
3943
|
var d = typeof g == "object" ? g : {};
|
|
3921
|
-
return d.date =
|
|
3922
|
-
},
|
|
3923
|
-
|
|
3924
|
-
return
|
|
3944
|
+
return d.date = x, d.args = arguments, new k(d);
|
|
3945
|
+
}, P = X;
|
|
3946
|
+
P.l = Z, P.i = ue, P.w = function(x, g) {
|
|
3947
|
+
return M(x, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3925
3948
|
};
|
|
3926
|
-
var
|
|
3927
|
-
function
|
|
3928
|
-
this.$L =
|
|
3949
|
+
var k = function() {
|
|
3950
|
+
function x(d) {
|
|
3951
|
+
this.$L = Z(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[q] = !0;
|
|
3929
3952
|
}
|
|
3930
|
-
var g =
|
|
3953
|
+
var g = x.prototype;
|
|
3931
3954
|
return g.parse = function(d) {
|
|
3932
|
-
this.$d = function(
|
|
3933
|
-
var m =
|
|
3955
|
+
this.$d = function(b) {
|
|
3956
|
+
var m = b.date, E = b.utc;
|
|
3934
3957
|
if (m === null)
|
|
3935
3958
|
return /* @__PURE__ */ new Date(NaN);
|
|
3936
|
-
if (
|
|
3959
|
+
if (P.u(m))
|
|
3937
3960
|
return /* @__PURE__ */ new Date();
|
|
3938
3961
|
if (m instanceof Date)
|
|
3939
3962
|
return new Date(m);
|
|
3940
3963
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
3941
|
-
var w = m.match(
|
|
3964
|
+
var w = m.match(B);
|
|
3942
3965
|
if (w) {
|
|
3943
|
-
var
|
|
3944
|
-
return E ? new Date(Date.UTC(w[1],
|
|
3966
|
+
var $ = w[2] - 1 || 0, D = (w[7] || "0").substring(0, 3);
|
|
3967
|
+
return E ? new Date(Date.UTC(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, D)) : new Date(w[1], $, w[3] || 1, w[4] || 0, w[5] || 0, w[6] || 0, D);
|
|
3945
3968
|
}
|
|
3946
3969
|
}
|
|
3947
3970
|
return new Date(m);
|
|
@@ -3950,195 +3973,195 @@ var Cr = { exports: {} };
|
|
|
3950
3973
|
var d = this.$d;
|
|
3951
3974
|
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3952
3975
|
}, g.$utils = function() {
|
|
3953
|
-
return
|
|
3976
|
+
return P;
|
|
3954
3977
|
}, g.isValid = function() {
|
|
3955
3978
|
return this.$d.toString() !== v;
|
|
3956
|
-
}, g.isSame = function(d,
|
|
3957
|
-
var m =
|
|
3958
|
-
return this.startOf(
|
|
3959
|
-
}, g.isAfter = function(d,
|
|
3960
|
-
return
|
|
3961
|
-
}, g.isBefore = function(d,
|
|
3962
|
-
return this.endOf(
|
|
3963
|
-
}, g.$g = function(d,
|
|
3964
|
-
return
|
|
3979
|
+
}, g.isSame = function(d, b) {
|
|
3980
|
+
var m = M(d);
|
|
3981
|
+
return this.startOf(b) <= m && m <= this.endOf(b);
|
|
3982
|
+
}, g.isAfter = function(d, b) {
|
|
3983
|
+
return M(d) < this.startOf(b);
|
|
3984
|
+
}, g.isBefore = function(d, b) {
|
|
3985
|
+
return this.endOf(b) < M(d);
|
|
3986
|
+
}, g.$g = function(d, b, m) {
|
|
3987
|
+
return P.u(d) ? this[b] : this.set(m, d);
|
|
3965
3988
|
}, g.unix = function() {
|
|
3966
3989
|
return Math.floor(this.valueOf() / 1e3);
|
|
3967
3990
|
}, g.valueOf = function() {
|
|
3968
3991
|
return this.$d.getTime();
|
|
3969
|
-
}, g.startOf = function(d,
|
|
3970
|
-
var m = this, E = !!
|
|
3971
|
-
var
|
|
3972
|
-
return E ?
|
|
3973
|
-
}, D = function(
|
|
3974
|
-
return
|
|
3975
|
-
},
|
|
3992
|
+
}, g.startOf = function(d, b) {
|
|
3993
|
+
var m = this, E = !!P.u(b) || b, w = P.p(d), $ = function(le, j) {
|
|
3994
|
+
var ne = P.w(m.$u ? Date.UTC(m.$y, j, le) : new Date(m.$y, j, le), m);
|
|
3995
|
+
return E ? ne : ne.endOf(u);
|
|
3996
|
+
}, D = function(le, j) {
|
|
3997
|
+
return P.w(m.toDate()[le].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), m);
|
|
3998
|
+
}, N = this.$W, V = this.$M, W = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
3976
3999
|
switch (w) {
|
|
3977
|
-
case
|
|
3978
|
-
return E ?
|
|
4000
|
+
case _:
|
|
4001
|
+
return E ? $(1, 0) : $(31, 11);
|
|
3979
4002
|
case c:
|
|
3980
|
-
return E ?
|
|
4003
|
+
return E ? $(1, V) : $(0, V + 1);
|
|
3981
4004
|
case h:
|
|
3982
|
-
var
|
|
3983
|
-
return
|
|
4005
|
+
var ie = this.$locale().weekStart || 0, ge = (N < ie ? N + 7 : N) - ie;
|
|
4006
|
+
return $(E ? W - ge : W + (6 - ge), V);
|
|
3984
4007
|
case u:
|
|
3985
4008
|
case S:
|
|
3986
|
-
return D(
|
|
3987
|
-
case o:
|
|
3988
|
-
return D(le + "Minutes", 1);
|
|
3989
|
-
case l:
|
|
3990
|
-
return D(le + "Seconds", 2);
|
|
4009
|
+
return D(ce + "Hours", 0);
|
|
3991
4010
|
case a:
|
|
3992
|
-
return D(
|
|
4011
|
+
return D(ce + "Minutes", 1);
|
|
4012
|
+
case l:
|
|
4013
|
+
return D(ce + "Seconds", 2);
|
|
4014
|
+
case o:
|
|
4015
|
+
return D(ce + "Milliseconds", 3);
|
|
3993
4016
|
default:
|
|
3994
4017
|
return this.clone();
|
|
3995
4018
|
}
|
|
3996
4019
|
}, g.endOf = function(d) {
|
|
3997
4020
|
return this.startOf(d, !1);
|
|
3998
|
-
}, g.$set = function(d,
|
|
3999
|
-
var m, E =
|
|
4000
|
-
if (E === c || E ===
|
|
4001
|
-
var
|
|
4002
|
-
|
|
4021
|
+
}, g.$set = function(d, b) {
|
|
4022
|
+
var m, E = P.p(d), w = "set" + (this.$u ? "UTC" : ""), $ = (m = {}, m[u] = w + "Date", m[S] = w + "Date", m[c] = w + "Month", m[_] = w + "FullYear", m[a] = w + "Hours", m[l] = w + "Minutes", m[o] = w + "Seconds", m[s] = w + "Milliseconds", m)[E], D = E === u ? this.$D + (b - this.$W) : b;
|
|
4023
|
+
if (E === c || E === _) {
|
|
4024
|
+
var N = this.clone().set(S, 1);
|
|
4025
|
+
N.$d[$](D), N.init(), this.$d = N.set(S, Math.min(this.$D, N.daysInMonth())).$d;
|
|
4003
4026
|
} else
|
|
4004
|
-
|
|
4027
|
+
$ && this.$d[$](D);
|
|
4005
4028
|
return this.init(), this;
|
|
4006
|
-
}, g.set = function(d,
|
|
4007
|
-
return this.clone().$set(d,
|
|
4029
|
+
}, g.set = function(d, b) {
|
|
4030
|
+
return this.clone().$set(d, b);
|
|
4008
4031
|
}, g.get = function(d) {
|
|
4009
|
-
return this[
|
|
4010
|
-
}, g.add = function(d,
|
|
4032
|
+
return this[P.p(d)]();
|
|
4033
|
+
}, g.add = function(d, b) {
|
|
4011
4034
|
var m, E = this;
|
|
4012
4035
|
d = Number(d);
|
|
4013
|
-
var w =
|
|
4014
|
-
var
|
|
4015
|
-
return
|
|
4036
|
+
var w = P.p(b), $ = function(V) {
|
|
4037
|
+
var W = M(E);
|
|
4038
|
+
return P.w(W.date(W.date() + Math.round(V * d)), E);
|
|
4016
4039
|
};
|
|
4017
4040
|
if (w === c)
|
|
4018
4041
|
return this.set(c, this.$M + d);
|
|
4019
|
-
if (w ===
|
|
4020
|
-
return this.set(
|
|
4042
|
+
if (w === _)
|
|
4043
|
+
return this.set(_, this.$y + d);
|
|
4021
4044
|
if (w === u)
|
|
4022
|
-
return
|
|
4045
|
+
return $(1);
|
|
4023
4046
|
if (w === h)
|
|
4024
|
-
return
|
|
4025
|
-
var D = (m = {}, m[l] = i, m[
|
|
4026
|
-
return
|
|
4027
|
-
}, g.subtract = function(d,
|
|
4028
|
-
return this.add(-1 * d,
|
|
4047
|
+
return $(7);
|
|
4048
|
+
var D = (m = {}, m[l] = i, m[a] = n, m[o] = r, m)[w] || 1, N = this.$d.getTime() + d * D;
|
|
4049
|
+
return P.w(N, this);
|
|
4050
|
+
}, g.subtract = function(d, b) {
|
|
4051
|
+
return this.add(-1 * d, b);
|
|
4029
4052
|
}, g.format = function(d) {
|
|
4030
|
-
var
|
|
4053
|
+
var b = this, m = this.$locale();
|
|
4031
4054
|
if (!this.isValid())
|
|
4032
4055
|
return m.invalidDate || v;
|
|
4033
|
-
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
4034
|
-
return
|
|
4035
|
-
},
|
|
4036
|
-
return
|
|
4037
|
-
},
|
|
4038
|
-
var
|
|
4039
|
-
return
|
|
4056
|
+
var E = d || "YYYY-MM-DDTHH:mm:ssZ", w = P.z(this), $ = this.$H, D = this.$m, N = this.$M, V = m.weekdays, W = m.months, ce = m.meridiem, ie = function(j, ne, he, ye) {
|
|
4057
|
+
return j && (j[ne] || j(b, E)) || he[ne].slice(0, ye);
|
|
4058
|
+
}, ge = function(j) {
|
|
4059
|
+
return P.s($ % 12 || 12, j, "0");
|
|
4060
|
+
}, le = ce || function(j, ne, he) {
|
|
4061
|
+
var ye = j < 12 ? "AM" : "PM";
|
|
4062
|
+
return he ? ye.toLowerCase() : ye;
|
|
4040
4063
|
};
|
|
4041
|
-
return E.replace(
|
|
4042
|
-
return
|
|
4043
|
-
switch (
|
|
4064
|
+
return E.replace(G, function(j, ne) {
|
|
4065
|
+
return ne || function(he) {
|
|
4066
|
+
switch (he) {
|
|
4044
4067
|
case "YY":
|
|
4045
|
-
return String(
|
|
4068
|
+
return String(b.$y).slice(-2);
|
|
4046
4069
|
case "YYYY":
|
|
4047
|
-
return
|
|
4070
|
+
return P.s(b.$y, 4, "0");
|
|
4048
4071
|
case "M":
|
|
4049
|
-
return
|
|
4072
|
+
return N + 1;
|
|
4050
4073
|
case "MM":
|
|
4051
|
-
return
|
|
4074
|
+
return P.s(N + 1, 2, "0");
|
|
4052
4075
|
case "MMM":
|
|
4053
|
-
return
|
|
4076
|
+
return ie(m.monthsShort, N, W, 3);
|
|
4054
4077
|
case "MMMM":
|
|
4055
|
-
return
|
|
4078
|
+
return ie(W, N);
|
|
4056
4079
|
case "D":
|
|
4057
|
-
return
|
|
4080
|
+
return b.$D;
|
|
4058
4081
|
case "DD":
|
|
4059
|
-
return
|
|
4082
|
+
return P.s(b.$D, 2, "0");
|
|
4060
4083
|
case "d":
|
|
4061
|
-
return String(
|
|
4084
|
+
return String(b.$W);
|
|
4062
4085
|
case "dd":
|
|
4063
|
-
return
|
|
4086
|
+
return ie(m.weekdaysMin, b.$W, V, 2);
|
|
4064
4087
|
case "ddd":
|
|
4065
|
-
return
|
|
4088
|
+
return ie(m.weekdaysShort, b.$W, V, 3);
|
|
4066
4089
|
case "dddd":
|
|
4067
|
-
return V[
|
|
4090
|
+
return V[b.$W];
|
|
4068
4091
|
case "H":
|
|
4069
|
-
return String(
|
|
4092
|
+
return String($);
|
|
4070
4093
|
case "HH":
|
|
4071
|
-
return
|
|
4094
|
+
return P.s($, 2, "0");
|
|
4072
4095
|
case "h":
|
|
4073
|
-
return
|
|
4096
|
+
return ge(1);
|
|
4074
4097
|
case "hh":
|
|
4075
|
-
return
|
|
4098
|
+
return ge(2);
|
|
4076
4099
|
case "a":
|
|
4077
|
-
return
|
|
4100
|
+
return le($, D, !0);
|
|
4078
4101
|
case "A":
|
|
4079
|
-
return
|
|
4102
|
+
return le($, D, !1);
|
|
4080
4103
|
case "m":
|
|
4081
4104
|
return String(D);
|
|
4082
4105
|
case "mm":
|
|
4083
|
-
return
|
|
4106
|
+
return P.s(D, 2, "0");
|
|
4084
4107
|
case "s":
|
|
4085
|
-
return String(
|
|
4108
|
+
return String(b.$s);
|
|
4086
4109
|
case "ss":
|
|
4087
|
-
return
|
|
4110
|
+
return P.s(b.$s, 2, "0");
|
|
4088
4111
|
case "SSS":
|
|
4089
|
-
return
|
|
4112
|
+
return P.s(b.$ms, 3, "0");
|
|
4090
4113
|
case "Z":
|
|
4091
4114
|
return w;
|
|
4092
4115
|
}
|
|
4093
4116
|
return null;
|
|
4094
|
-
}(
|
|
4117
|
+
}(j) || w.replace(":", "");
|
|
4095
4118
|
});
|
|
4096
4119
|
}, g.utcOffset = function() {
|
|
4097
4120
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4098
|
-
}, g.diff = function(d,
|
|
4099
|
-
var E, w = this,
|
|
4100
|
-
return
|
|
4121
|
+
}, g.diff = function(d, b, m) {
|
|
4122
|
+
var E, w = this, $ = P.p(b), D = M(d), N = (D.utcOffset() - this.utcOffset()) * i, V = this - D, W = function() {
|
|
4123
|
+
return P.m(w, D);
|
|
4101
4124
|
};
|
|
4102
|
-
switch (
|
|
4103
|
-
case
|
|
4104
|
-
E =
|
|
4125
|
+
switch ($) {
|
|
4126
|
+
case _:
|
|
4127
|
+
E = W() / 12;
|
|
4105
4128
|
break;
|
|
4106
4129
|
case c:
|
|
4107
|
-
E =
|
|
4130
|
+
E = W();
|
|
4108
4131
|
break;
|
|
4109
4132
|
case p:
|
|
4110
|
-
E =
|
|
4133
|
+
E = W() / 3;
|
|
4111
4134
|
break;
|
|
4112
4135
|
case h:
|
|
4113
|
-
E = (V -
|
|
4136
|
+
E = (V - N) / 6048e5;
|
|
4114
4137
|
break;
|
|
4115
4138
|
case u:
|
|
4116
|
-
E = (V -
|
|
4139
|
+
E = (V - N) / 864e5;
|
|
4117
4140
|
break;
|
|
4118
|
-
case
|
|
4141
|
+
case a:
|
|
4119
4142
|
E = V / n;
|
|
4120
4143
|
break;
|
|
4121
4144
|
case l:
|
|
4122
4145
|
E = V / i;
|
|
4123
4146
|
break;
|
|
4124
|
-
case
|
|
4147
|
+
case o:
|
|
4125
4148
|
E = V / r;
|
|
4126
4149
|
break;
|
|
4127
4150
|
default:
|
|
4128
4151
|
E = V;
|
|
4129
4152
|
}
|
|
4130
|
-
return m ? E :
|
|
4153
|
+
return m ? E : P.a(E);
|
|
4131
4154
|
}, g.daysInMonth = function() {
|
|
4132
4155
|
return this.endOf(c).$D;
|
|
4133
4156
|
}, g.$locale = function() {
|
|
4134
|
-
return
|
|
4135
|
-
}, g.locale = function(d,
|
|
4157
|
+
return F[this.$L];
|
|
4158
|
+
}, g.locale = function(d, b) {
|
|
4136
4159
|
if (!d)
|
|
4137
4160
|
return this.$L;
|
|
4138
|
-
var m = this.clone(), E =
|
|
4161
|
+
var m = this.clone(), E = Z(d, b, !0);
|
|
4139
4162
|
return E && (m.$L = E), m;
|
|
4140
4163
|
}, g.clone = function() {
|
|
4141
|
-
return
|
|
4164
|
+
return P.w(this.$d, this);
|
|
4142
4165
|
}, g.toDate = function() {
|
|
4143
4166
|
return new Date(this.valueOf());
|
|
4144
4167
|
}, g.toJSON = function() {
|
|
@@ -4147,268 +4170,307 @@ var Cr = { exports: {} };
|
|
|
4147
4170
|
return this.$d.toISOString();
|
|
4148
4171
|
}, g.toString = function() {
|
|
4149
4172
|
return this.$d.toUTCString();
|
|
4150
|
-
},
|
|
4151
|
-
}(),
|
|
4152
|
-
return
|
|
4153
|
-
|
|
4154
|
-
return this.$g(g,
|
|
4173
|
+
}, x;
|
|
4174
|
+
}(), fe = k.prototype;
|
|
4175
|
+
return M.prototype = fe, [["$ms", s], ["$s", o], ["$m", l], ["$H", a], ["$W", u], ["$M", c], ["$y", _], ["$D", S]].forEach(function(x) {
|
|
4176
|
+
fe[x[1]] = function(g) {
|
|
4177
|
+
return this.$g(g, x[0], x[1]);
|
|
4155
4178
|
};
|
|
4156
|
-
}),
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4159
|
-
return
|
|
4160
|
-
},
|
|
4179
|
+
}), M.extend = function(x, g) {
|
|
4180
|
+
return x.$i || (x(g, k, M), x.$i = !0), M;
|
|
4181
|
+
}, M.locale = Z, M.isDayjs = ue, M.unix = function(x) {
|
|
4182
|
+
return M(1e3 * x);
|
|
4183
|
+
}, M.en = F[I], M.Ls = F, M.p = {}, M;
|
|
4161
4184
|
});
|
|
4162
|
-
})(
|
|
4163
|
-
var
|
|
4164
|
-
const Jt = /* @__PURE__ */ wt(
|
|
4165
|
-
var
|
|
4185
|
+
})(Mr);
|
|
4186
|
+
var hs = Mr.exports;
|
|
4187
|
+
const Jt = /* @__PURE__ */ wt(hs);
|
|
4188
|
+
var Cr = { exports: {} };
|
|
4166
4189
|
(function(e, t) {
|
|
4167
4190
|
(function(r, i) {
|
|
4168
4191
|
e.exports = i();
|
|
4169
|
-
})(
|
|
4192
|
+
})(or, function() {
|
|
4170
4193
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4171
|
-
return function(s,
|
|
4172
|
-
var
|
|
4194
|
+
return function(s, o, l) {
|
|
4195
|
+
var a = o.prototype;
|
|
4173
4196
|
l.utc = function(v) {
|
|
4174
|
-
var
|
|
4175
|
-
return new
|
|
4176
|
-
},
|
|
4177
|
-
var
|
|
4178
|
-
return v ?
|
|
4179
|
-
},
|
|
4197
|
+
var B = { date: v, utc: !0, args: arguments };
|
|
4198
|
+
return new o(B);
|
|
4199
|
+
}, a.utc = function(v) {
|
|
4200
|
+
var B = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4201
|
+
return v ? B.add(this.utcOffset(), r) : B;
|
|
4202
|
+
}, a.local = function() {
|
|
4180
4203
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4181
4204
|
};
|
|
4182
|
-
var u =
|
|
4183
|
-
|
|
4205
|
+
var u = a.parse;
|
|
4206
|
+
a.parse = function(v) {
|
|
4184
4207
|
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), u.call(this, v);
|
|
4185
4208
|
};
|
|
4186
|
-
var h =
|
|
4187
|
-
|
|
4209
|
+
var h = a.init;
|
|
4210
|
+
a.init = function() {
|
|
4188
4211
|
if (this.$u) {
|
|
4189
4212
|
var v = this.$d;
|
|
4190
4213
|
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();
|
|
4191
4214
|
} else
|
|
4192
4215
|
h.call(this);
|
|
4193
4216
|
};
|
|
4194
|
-
var c =
|
|
4195
|
-
|
|
4196
|
-
var
|
|
4197
|
-
if (
|
|
4198
|
-
return this.$u ? 0 :
|
|
4199
|
-
if (typeof v == "string" && (v = function(
|
|
4200
|
-
|
|
4201
|
-
var
|
|
4202
|
-
if (!
|
|
4217
|
+
var c = a.utcOffset;
|
|
4218
|
+
a.utcOffset = function(v, B) {
|
|
4219
|
+
var G = this.$utils().u;
|
|
4220
|
+
if (G(v))
|
|
4221
|
+
return this.$u ? 0 : G(this.$offset) ? c.call(this) : this.$offset;
|
|
4222
|
+
if (typeof v == "string" && (v = function(I) {
|
|
4223
|
+
I === void 0 && (I = "");
|
|
4224
|
+
var F = I.match(i);
|
|
4225
|
+
if (!F)
|
|
4203
4226
|
return null;
|
|
4204
|
-
var
|
|
4205
|
-
return
|
|
4227
|
+
var q = ("" + F[0]).match(n) || ["-", 0, 0], ue = q[0], Z = 60 * +q[1] + +q[2];
|
|
4228
|
+
return Z === 0 ? 0 : ue === "+" ? Z : -Z;
|
|
4206
4229
|
}(v), v === null))
|
|
4207
4230
|
return this;
|
|
4208
|
-
var R = Math.abs(v) <= 16 ? 60 * v : v,
|
|
4209
|
-
if (
|
|
4210
|
-
return
|
|
4231
|
+
var R = Math.abs(v) <= 16 ? 60 * v : v, A = this;
|
|
4232
|
+
if (B)
|
|
4233
|
+
return A.$offset = R, A.$u = v === 0, A;
|
|
4211
4234
|
if (v !== 0) {
|
|
4212
|
-
var
|
|
4213
|
-
(
|
|
4235
|
+
var X = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4236
|
+
(A = this.local().add(R + X, r)).$offset = R, A.$x.$localOffset = X;
|
|
4214
4237
|
} else
|
|
4215
|
-
|
|
4216
|
-
return
|
|
4238
|
+
A = this.utc();
|
|
4239
|
+
return A;
|
|
4217
4240
|
};
|
|
4218
|
-
var p =
|
|
4219
|
-
|
|
4220
|
-
var
|
|
4221
|
-
return p.call(this,
|
|
4222
|
-
},
|
|
4241
|
+
var p = a.format;
|
|
4242
|
+
a.format = function(v) {
|
|
4243
|
+
var B = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4244
|
+
return p.call(this, B);
|
|
4245
|
+
}, a.valueOf = function() {
|
|
4223
4246
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4224
4247
|
return this.$d.valueOf() - 6e4 * v;
|
|
4225
|
-
},
|
|
4248
|
+
}, a.isUTC = function() {
|
|
4226
4249
|
return !!this.$u;
|
|
4227
|
-
},
|
|
4250
|
+
}, a.toISOString = function() {
|
|
4228
4251
|
return this.toDate().toISOString();
|
|
4229
|
-
},
|
|
4252
|
+
}, a.toString = function() {
|
|
4230
4253
|
return this.toDate().toUTCString();
|
|
4231
4254
|
};
|
|
4232
|
-
var
|
|
4233
|
-
|
|
4234
|
-
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
4255
|
+
var _ = a.toDate;
|
|
4256
|
+
a.toDate = function(v) {
|
|
4257
|
+
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : _.call(this);
|
|
4235
4258
|
};
|
|
4236
|
-
var S =
|
|
4237
|
-
|
|
4259
|
+
var S = a.diff;
|
|
4260
|
+
a.diff = function(v, B, G) {
|
|
4238
4261
|
if (v && this.$u === v.$u)
|
|
4239
|
-
return S.call(this, v,
|
|
4240
|
-
var R = this.local(),
|
|
4241
|
-
return S.call(R,
|
|
4262
|
+
return S.call(this, v, B, G);
|
|
4263
|
+
var R = this.local(), A = l(v).local();
|
|
4264
|
+
return S.call(R, A, B, G);
|
|
4242
4265
|
};
|
|
4243
4266
|
};
|
|
4244
4267
|
});
|
|
4245
|
-
})(
|
|
4246
|
-
var
|
|
4247
|
-
const
|
|
4248
|
-
function
|
|
4249
|
-
|
|
4268
|
+
})(Cr);
|
|
4269
|
+
var fs = Cr.exports;
|
|
4270
|
+
const cs = /* @__PURE__ */ wt(fs);
|
|
4271
|
+
function ds(e) {
|
|
4272
|
+
Xr(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)}");
|
|
4250
4273
|
}
|
|
4251
4274
|
function Qt(e, t, r) {
|
|
4252
4275
|
const i = e.slice();
|
|
4253
|
-
return i[
|
|
4276
|
+
return i[54] = t[r], i[56] = r, i;
|
|
4254
4277
|
}
|
|
4255
|
-
function
|
|
4278
|
+
function ms(e) {
|
|
4256
4279
|
let t, r, i, n, s = Dt(
|
|
4257
4280
|
/*displayMessages*/
|
|
4258
4281
|
e[4]
|
|
4259
|
-
),
|
|
4260
|
-
for (let
|
|
4261
|
-
a
|
|
4282
|
+
), o = [];
|
|
4283
|
+
for (let a = 0; a < s.length; a += 1)
|
|
4284
|
+
o[a] = er(Qt(e, s, a));
|
|
4262
4285
|
let l = (
|
|
4263
4286
|
/*videoExists*/
|
|
4264
|
-
e[7] &&
|
|
4287
|
+
e[7] && tr(e)
|
|
4265
4288
|
);
|
|
4266
4289
|
return {
|
|
4267
4290
|
c() {
|
|
4268
|
-
t =
|
|
4269
|
-
for (let
|
|
4270
|
-
a
|
|
4271
|
-
r =
|
|
4291
|
+
t = Y("div");
|
|
4292
|
+
for (let a = 0; a < o.length; a += 1)
|
|
4293
|
+
o[a].c();
|
|
4294
|
+
r = we(), l && l.c(), i = we(), n = Y("cashier-video-modal"), re(t, "class", "CashierVerificationsWrapper"), K(
|
|
4272
4295
|
n,
|
|
4273
4296
|
"clientstylingurl",
|
|
4274
4297
|
/*clientstylingurl*/
|
|
4275
4298
|
e[1]
|
|
4276
|
-
),
|
|
4299
|
+
), K(
|
|
4277
4300
|
n,
|
|
4278
4301
|
"clientstyling",
|
|
4279
4302
|
/*clientstyling*/
|
|
4280
4303
|
e[0]
|
|
4281
|
-
),
|
|
4304
|
+
), K(
|
|
4282
4305
|
n,
|
|
4283
4306
|
"ismobileview",
|
|
4284
4307
|
/*ismobileview*/
|
|
4285
4308
|
e[2]
|
|
4286
|
-
),
|
|
4309
|
+
), K(
|
|
4287
4310
|
n,
|
|
4288
4311
|
"videosrc",
|
|
4289
4312
|
/*videoSrc*/
|
|
4290
4313
|
e[8]
|
|
4291
4314
|
);
|
|
4292
4315
|
},
|
|
4293
|
-
m(
|
|
4294
|
-
|
|
4295
|
-
for (let h = 0; h <
|
|
4296
|
-
|
|
4297
|
-
|
|
4316
|
+
m(a, u) {
|
|
4317
|
+
ae(a, t, u);
|
|
4318
|
+
for (let h = 0; h < o.length; h += 1)
|
|
4319
|
+
o[h] && o[h].m(t, null);
|
|
4320
|
+
ae(a, r, u), l && l.m(a, u), ae(a, i, u), ae(a, n, u);
|
|
4298
4321
|
},
|
|
4299
|
-
p(
|
|
4322
|
+
p(a, u) {
|
|
4300
4323
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4301
|
-
|
|
4324
|
+
2096) {
|
|
4302
4325
|
s = Dt(
|
|
4303
4326
|
/*displayMessages*/
|
|
4304
|
-
|
|
4327
|
+
a[4]
|
|
4305
4328
|
);
|
|
4306
4329
|
let h;
|
|
4307
4330
|
for (h = 0; h < s.length; h += 1) {
|
|
4308
|
-
const c = Qt(
|
|
4309
|
-
|
|
4331
|
+
const c = Qt(a, s, h);
|
|
4332
|
+
o[h] ? o[h].p(c, u) : (o[h] = er(c), o[h].c(), o[h].m(t, null));
|
|
4310
4333
|
}
|
|
4311
|
-
for (; h <
|
|
4312
|
-
|
|
4313
|
-
|
|
4334
|
+
for (; h < o.length; h += 1)
|
|
4335
|
+
o[h].d(1);
|
|
4336
|
+
o.length = s.length;
|
|
4314
4337
|
}
|
|
4315
4338
|
/*videoExists*/
|
|
4316
|
-
|
|
4317
|
-
2 &&
|
|
4339
|
+
a[7] ? l ? l.p(a, u) : (l = tr(a), l.c(), l.m(i.parentNode, i)) : l && (l.d(1), l = null), u[0] & /*clientstylingurl*/
|
|
4340
|
+
2 && K(
|
|
4318
4341
|
n,
|
|
4319
4342
|
"clientstylingurl",
|
|
4320
4343
|
/*clientstylingurl*/
|
|
4321
|
-
|
|
4344
|
+
a[1]
|
|
4322
4345
|
), u[0] & /*clientstyling*/
|
|
4323
|
-
1 &&
|
|
4346
|
+
1 && K(
|
|
4324
4347
|
n,
|
|
4325
4348
|
"clientstyling",
|
|
4326
4349
|
/*clientstyling*/
|
|
4327
|
-
|
|
4350
|
+
a[0]
|
|
4328
4351
|
), u[0] & /*ismobileview*/
|
|
4329
|
-
4 &&
|
|
4352
|
+
4 && K(
|
|
4330
4353
|
n,
|
|
4331
4354
|
"ismobileview",
|
|
4332
4355
|
/*ismobileview*/
|
|
4333
|
-
|
|
4356
|
+
a[2]
|
|
4334
4357
|
), u[0] & /*videoSrc*/
|
|
4335
|
-
256 &&
|
|
4358
|
+
256 && K(
|
|
4336
4359
|
n,
|
|
4337
4360
|
"videosrc",
|
|
4338
4361
|
/*videoSrc*/
|
|
4339
|
-
|
|
4362
|
+
a[8]
|
|
4340
4363
|
);
|
|
4341
4364
|
},
|
|
4342
|
-
d(
|
|
4343
|
-
|
|
4365
|
+
d(a) {
|
|
4366
|
+
a && (ee(t), ee(r), ee(i), ee(n)), Yr(o, a), l && l.d(a);
|
|
4344
4367
|
}
|
|
4345
4368
|
};
|
|
4346
4369
|
}
|
|
4347
|
-
function
|
|
4370
|
+
function ps(e) {
|
|
4371
|
+
let t;
|
|
4372
|
+
return {
|
|
4373
|
+
c() {
|
|
4374
|
+
t = Y("cashier-spinner"), K(
|
|
4375
|
+
t,
|
|
4376
|
+
"clientstylingurl",
|
|
4377
|
+
/*clientstylingurl*/
|
|
4378
|
+
e[1]
|
|
4379
|
+
), K(
|
|
4380
|
+
t,
|
|
4381
|
+
"clientstyling",
|
|
4382
|
+
/*clientstyling*/
|
|
4383
|
+
e[0]
|
|
4384
|
+
);
|
|
4385
|
+
},
|
|
4386
|
+
m(r, i) {
|
|
4387
|
+
ae(r, t, i);
|
|
4388
|
+
},
|
|
4389
|
+
p(r, i) {
|
|
4390
|
+
i[0] & /*clientstylingurl*/
|
|
4391
|
+
2 && K(
|
|
4392
|
+
t,
|
|
4393
|
+
"clientstylingurl",
|
|
4394
|
+
/*clientstylingurl*/
|
|
4395
|
+
r[1]
|
|
4396
|
+
), i[0] & /*clientstyling*/
|
|
4397
|
+
1 && K(
|
|
4398
|
+
t,
|
|
4399
|
+
"clientstyling",
|
|
4400
|
+
/*clientstyling*/
|
|
4401
|
+
r[0]
|
|
4402
|
+
);
|
|
4403
|
+
},
|
|
4404
|
+
d(r) {
|
|
4405
|
+
r && ee(t);
|
|
4406
|
+
}
|
|
4407
|
+
};
|
|
4408
|
+
}
|
|
4409
|
+
function Kt(e) {
|
|
4348
4410
|
let t, r, i;
|
|
4349
4411
|
function n(...s) {
|
|
4350
4412
|
return (
|
|
4351
4413
|
/*click_handler*/
|
|
4352
|
-
e[
|
|
4414
|
+
e[21](
|
|
4353
4415
|
/*index*/
|
|
4354
|
-
e[
|
|
4416
|
+
e[56],
|
|
4355
4417
|
...s
|
|
4356
4418
|
)
|
|
4357
4419
|
);
|
|
4358
4420
|
}
|
|
4359
4421
|
return {
|
|
4360
4422
|
c() {
|
|
4361
|
-
t =
|
|
4423
|
+
t = Y("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>', re(t, "class", "CashierVerificationChevron");
|
|
4362
4424
|
},
|
|
4363
|
-
m(s,
|
|
4364
|
-
|
|
4425
|
+
m(s, o) {
|
|
4426
|
+
ae(s, t, o), r || (i = Et(t, "click", n), r = !0);
|
|
4365
4427
|
},
|
|
4366
|
-
p(s,
|
|
4428
|
+
p(s, o) {
|
|
4367
4429
|
e = s;
|
|
4368
4430
|
},
|
|
4369
4431
|
d(s) {
|
|
4370
|
-
s &&
|
|
4432
|
+
s && ee(t), r = !1, i();
|
|
4371
4433
|
}
|
|
4372
4434
|
};
|
|
4373
4435
|
}
|
|
4374
|
-
function
|
|
4436
|
+
function er(e) {
|
|
4375
4437
|
let t, r, i, n, s = (
|
|
4376
4438
|
/*message*/
|
|
4377
|
-
e[
|
|
4378
|
-
),
|
|
4439
|
+
e[54] + ""
|
|
4440
|
+
), o, l, a, u, h = (
|
|
4379
4441
|
/*displayMessages*/
|
|
4380
4442
|
e[4].length > 1 && /*index*/
|
|
4381
|
-
e[
|
|
4443
|
+
e[56] === 0 && Kt(e)
|
|
4382
4444
|
);
|
|
4383
4445
|
function c(...p) {
|
|
4384
4446
|
return (
|
|
4385
4447
|
/*click_handler_1*/
|
|
4386
|
-
e[
|
|
4448
|
+
e[22](
|
|
4387
4449
|
/*index*/
|
|
4388
|
-
e[
|
|
4450
|
+
e[56],
|
|
4389
4451
|
...p
|
|
4390
4452
|
)
|
|
4391
4453
|
);
|
|
4392
4454
|
}
|
|
4393
4455
|
return {
|
|
4394
4456
|
c() {
|
|
4395
|
-
t =
|
|
4457
|
+
t = Y("div"), r = Y("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 = we(), n = Y("p"), o = we(), h && h.c(), l = we(), re(r, "class", "IconVerification"), re(n, "class", "text"), re(t, "class", "CashierVerificationMessage"), Te(
|
|
4396
4458
|
t,
|
|
4397
4459
|
"ShowAll",
|
|
4398
4460
|
/*allVerificationsVisible*/
|
|
4399
4461
|
e[5]
|
|
4400
4462
|
);
|
|
4401
4463
|
},
|
|
4402
|
-
m(p,
|
|
4403
|
-
|
|
4464
|
+
m(p, _) {
|
|
4465
|
+
ae(p, t, _), se(t, r), se(t, i), se(t, n), n.innerHTML = s, se(t, o), h && h.m(t, null), se(t, l), a || (u = Et(t, "click", c), a = !0);
|
|
4404
4466
|
},
|
|
4405
|
-
p(p,
|
|
4406
|
-
e = p,
|
|
4467
|
+
p(p, _) {
|
|
4468
|
+
e = p, _[0] & /*displayMessages*/
|
|
4407
4469
|
16 && s !== (s = /*message*/
|
|
4408
|
-
e[
|
|
4470
|
+
e[54] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4409
4471
|
e[4].length > 1 && /*index*/
|
|
4410
|
-
e[
|
|
4411
|
-
32 &&
|
|
4472
|
+
e[56] === 0 ? h ? h.p(e, _) : (h = Kt(e), h.c(), h.m(t, l)) : h && (h.d(1), h = null), _[0] & /*allVerificationsVisible*/
|
|
4473
|
+
32 && Te(
|
|
4412
4474
|
t,
|
|
4413
4475
|
"ShowAll",
|
|
4414
4476
|
/*allVerificationsVisible*/
|
|
@@ -4416,37 +4478,37 @@ function tr(e) {
|
|
|
4416
4478
|
);
|
|
4417
4479
|
},
|
|
4418
4480
|
d(p) {
|
|
4419
|
-
p &&
|
|
4481
|
+
p && ee(t), h && h.d(), a = !1, u();
|
|
4420
4482
|
}
|
|
4421
4483
|
};
|
|
4422
4484
|
}
|
|
4423
|
-
function
|
|
4485
|
+
function tr(e) {
|
|
4424
4486
|
let t, r, i, n, s = (
|
|
4425
4487
|
/*$_*/
|
|
4426
|
-
e[
|
|
4427
|
-
),
|
|
4488
|
+
e[10]("verification.video.how-to") + ""
|
|
4489
|
+
), o, l, a;
|
|
4428
4490
|
return {
|
|
4429
4491
|
c() {
|
|
4430
|
-
t =
|
|
4492
|
+
t = Y("div"), r = Y("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 = we(), n = Y("div"), o = xt(s), re(r, "class", "IconVideo"), re(n, "class", "CashierVerificationVideoLink"), Te(
|
|
4431
4493
|
n,
|
|
4432
4494
|
"CashierVerificationVideoLinkDesktop",
|
|
4433
4495
|
/*desktopView*/
|
|
4434
4496
|
e[6]
|
|
4435
|
-
),
|
|
4497
|
+
), re(t, "class", "CashierVerificationVideo");
|
|
4436
4498
|
},
|
|
4437
4499
|
m(u, h) {
|
|
4438
|
-
|
|
4500
|
+
ae(u, t, h), se(t, r), se(t, i), se(t, n), se(n, o), l || (a = Et(
|
|
4439
4501
|
n,
|
|
4440
4502
|
"click",
|
|
4441
4503
|
/*click_handler_2*/
|
|
4442
|
-
e[
|
|
4504
|
+
e[23]
|
|
4443
4505
|
), l = !0);
|
|
4444
4506
|
},
|
|
4445
4507
|
p(u, h) {
|
|
4446
4508
|
h[0] & /*$_*/
|
|
4447
|
-
|
|
4448
|
-
u[
|
|
4449
|
-
64 &&
|
|
4509
|
+
1024 && s !== (s = /*$_*/
|
|
4510
|
+
u[10]("verification.video.how-to") + "") && Jr(o, s), h[0] & /*desktopView*/
|
|
4511
|
+
64 && Te(
|
|
4450
4512
|
n,
|
|
4451
4513
|
"CashierVerificationVideoLinkDesktop",
|
|
4452
4514
|
/*desktopView*/
|
|
@@ -4454,293 +4516,294 @@ function rr(e) {
|
|
|
4454
4516
|
);
|
|
4455
4517
|
},
|
|
4456
4518
|
d(u) {
|
|
4457
|
-
u &&
|
|
4519
|
+
u && ee(t), l = !1, a();
|
|
4458
4520
|
}
|
|
4459
4521
|
};
|
|
4460
4522
|
}
|
|
4461
|
-
function
|
|
4462
|
-
let t
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4523
|
+
function gs(e) {
|
|
4524
|
+
let t;
|
|
4525
|
+
function r(s, o) {
|
|
4526
|
+
if (
|
|
4527
|
+
/*isLoading*/
|
|
4528
|
+
s[9]
|
|
4529
|
+
)
|
|
4530
|
+
return ps;
|
|
4531
|
+
if (
|
|
4532
|
+
/*displayMessages*/
|
|
4533
|
+
s[4]
|
|
4534
|
+
)
|
|
4535
|
+
return ms;
|
|
4536
|
+
}
|
|
4537
|
+
let i = r(e), n = i && i(e);
|
|
4466
4538
|
return {
|
|
4467
4539
|
c() {
|
|
4468
|
-
t =
|
|
4540
|
+
t = Y("div"), n && n.c(), re(t, "class", "CashierVerifications"), Te(
|
|
4469
4541
|
t,
|
|
4470
4542
|
"CashierVerificationsDesktop",
|
|
4471
4543
|
/*desktopView*/
|
|
4472
4544
|
e[6]
|
|
4473
4545
|
);
|
|
4474
4546
|
},
|
|
4475
|
-
m(
|
|
4476
|
-
|
|
4547
|
+
m(s, o) {
|
|
4548
|
+
ae(s, t, o), n && n.m(t, null), e[24](t);
|
|
4477
4549
|
},
|
|
4478
|
-
p(
|
|
4479
|
-
/*
|
|
4480
|
-
|
|
4481
|
-
64 && Se(
|
|
4550
|
+
p(s, o) {
|
|
4551
|
+
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*/
|
|
4552
|
+
64 && Te(
|
|
4482
4553
|
t,
|
|
4483
4554
|
"CashierVerificationsDesktop",
|
|
4484
4555
|
/*desktopView*/
|
|
4485
|
-
|
|
4556
|
+
s[6]
|
|
4486
4557
|
);
|
|
4487
4558
|
},
|
|
4488
|
-
i:
|
|
4489
|
-
o:
|
|
4490
|
-
d(
|
|
4491
|
-
|
|
4559
|
+
i: te,
|
|
4560
|
+
o: te,
|
|
4561
|
+
d(s) {
|
|
4562
|
+
s && ee(t), n && n.d(), e[24](null);
|
|
4492
4563
|
}
|
|
4493
4564
|
};
|
|
4494
4565
|
}
|
|
4495
|
-
const
|
|
4496
|
-
function
|
|
4566
|
+
const vs = "verification_explanation_video_widgets.MP4";
|
|
4567
|
+
function bs(e, t, r) {
|
|
4497
4568
|
let i, n;
|
|
4498
|
-
Mt(e, ns, (f) => r(
|
|
4499
|
-
let { endpoint: s } = t, { lang:
|
|
4500
|
-
var
|
|
4569
|
+
Mt(e, ns, (f) => r(10, i = f)), Mt(e, os, (f) => r(30, n = f)), Jt.extend(cs);
|
|
4570
|
+
let { endpoint: s } = t, { lang: o = "en" } = t, { translationurl: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: u = "" } = t, { session: h = "" } = t, { customerid: c = "" } = t, { ismobileview: p = "" } = t, { playersession: _ = "" } = t, { mbsource: S = "" } = t, v, B = /* @__PURE__ */ new Set(), G = /* @__PURE__ */ new Set(), R, A, X, I = !0, F = !0, q = !1, ue = "", Z = !1;
|
|
4571
|
+
var M;
|
|
4501
4572
|
(function(f) {
|
|
4502
4573
|
f.Manual = "Manual", f.ShuftiPro = "ShuftiPro";
|
|
4503
|
-
})(
|
|
4504
|
-
var
|
|
4574
|
+
})(M || (M = {}));
|
|
4575
|
+
var P;
|
|
4505
4576
|
(function(f) {
|
|
4506
4577
|
f.Requested = "Requested";
|
|
4507
|
-
})(
|
|
4508
|
-
var
|
|
4578
|
+
})(P || (P = {}));
|
|
4579
|
+
var k;
|
|
4509
4580
|
(function(f) {
|
|
4510
4581
|
f.Unknown = "Unknown", f.Unverified = "Unverified", f.InProgress = "InProgress", f.Failed = "Failed", f.Verified = "Verified", f.Referred = "Referred", f.True = "True", f.False = "False", f.AwaitingForResponse = "AwaitingForResponse";
|
|
4511
|
-
})(
|
|
4512
|
-
var
|
|
4582
|
+
})(k || (k = {}));
|
|
4583
|
+
var fe;
|
|
4513
4584
|
(function(f) {
|
|
4514
4585
|
f.Unknown = "Unknown", f.Documents = "Documents", f.Age = "Age", f.Pep = "Pep", f.Sanction = "Sanction", f.Aml = "Aml", f.ProofOfAddress = "ProofOfAddress", f.SourceOfWealth = "SourceOfWealth", f.SocialMedia = "SocialMedia", f.Biometric = "Biometric";
|
|
4515
|
-
})(
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4586
|
+
})(fe || (fe = {})), ei(() => () => {
|
|
4587
|
+
});
|
|
4588
|
+
const x = [
|
|
4589
|
+
k.InProgress,
|
|
4590
|
+
k.Referred,
|
|
4591
|
+
k.AwaitingForResponse
|
|
4592
|
+
], g = () => {
|
|
4521
4593
|
let f = l;
|
|
4522
4594
|
if (f)
|
|
4523
|
-
return fetch(f).then((
|
|
4524
|
-
Object.keys(
|
|
4525
|
-
Yt(
|
|
4595
|
+
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4596
|
+
Object.keys(y).forEach((H) => {
|
|
4597
|
+
Yt(H, y[H]);
|
|
4526
4598
|
});
|
|
4527
|
-
}).catch((
|
|
4528
|
-
console.log(
|
|
4599
|
+
}).catch((y) => {
|
|
4600
|
+
console.log(y);
|
|
4529
4601
|
});
|
|
4530
4602
|
};
|
|
4531
4603
|
Object.keys(Zt).forEach((f) => {
|
|
4532
4604
|
Yt(f, Zt[f]);
|
|
4533
4605
|
});
|
|
4534
|
-
const
|
|
4535
|
-
ss(
|
|
4536
|
-
},
|
|
4537
|
-
|
|
4538
|
-
f
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
fetch(f.href).then((T) => T.text()).then((T) => {
|
|
4542
|
-
b.innerHTML = T, setTimeout(
|
|
4543
|
-
() => {
|
|
4544
|
-
S.appendChild(b);
|
|
4545
|
-
},
|
|
4546
|
-
1
|
|
4547
|
-
);
|
|
4548
|
-
});
|
|
4549
|
-
}, y = () => {
|
|
4550
|
-
r(18, R = w());
|
|
4551
|
-
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${a}`), b = new Headers();
|
|
4552
|
-
b.append("accept", "application/json"), b.append("Content-Type", "application/json"), b.append("x-sessionid", `${x}`), b.append("X-Client-Request-Timestamp", Jt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4553
|
-
const T = {
|
|
4606
|
+
const d = () => {
|
|
4607
|
+
ss(o);
|
|
4608
|
+
}, b = () => {
|
|
4609
|
+
r(20, A = w());
|
|
4610
|
+
const f = new URL(`${s}/v1/player/${c}/verification/GetKYCCustomerStatus?language=${o}`), y = new Headers();
|
|
4611
|
+
y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("x-sessionid", `${_}`), y.append("X-Client-Request-Timestamp", Jt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4612
|
+
const H = {
|
|
4554
4613
|
method: "POST",
|
|
4555
|
-
headers:
|
|
4614
|
+
headers: y,
|
|
4556
4615
|
body: JSON.stringify({})
|
|
4557
4616
|
};
|
|
4558
|
-
fetch(f,
|
|
4559
|
-
const
|
|
4560
|
-
|
|
4561
|
-
Ve.VerificationUrlType !== "Widget" &&
|
|
4562
|
-
}), r(4,
|
|
4563
|
-
});
|
|
4564
|
-
}, m = (f) => f ? f.sort((
|
|
4565
|
-
n &&
|
|
4617
|
+
r(9, Z = !0), fetch(f, H).then((U) => U.json()).then((U) => {
|
|
4618
|
+
const de = m(U == null ? void 0 : U.Verifications);
|
|
4619
|
+
R = $(de), R.VerificationStatuses.forEach((Ve) => {
|
|
4620
|
+
Ve.VerificationUrlType !== "Widget" && B.add(Ve.Vendor);
|
|
4621
|
+
}), r(4, X = ie());
|
|
4622
|
+
}).finally(() => r(9, Z = !1));
|
|
4623
|
+
}, m = (f) => f ? f.sort((y, H) => new Date(H.Created).getTime() - new Date(y.Created).getTime()) : [], E = () => {
|
|
4624
|
+
n && b();
|
|
4566
4625
|
}, w = () => {
|
|
4567
4626
|
let f = (h || n).split(".")[1];
|
|
4568
4627
|
if (f) {
|
|
4569
|
-
let
|
|
4570
|
-
return
|
|
4628
|
+
let y = JSON.parse(atob(f));
|
|
4629
|
+
return y.cdn + "/cashier/operator-assets/" + (y == null ? void 0 : y.mid);
|
|
4571
4630
|
}
|
|
4572
4631
|
return "";
|
|
4573
|
-
},
|
|
4574
|
-
var
|
|
4632
|
+
}, $ = (f) => {
|
|
4633
|
+
var H;
|
|
4575
4634
|
if (!f || !f.length)
|
|
4576
4635
|
return {
|
|
4577
|
-
VerificationSummaryStatus:
|
|
4636
|
+
VerificationSummaryStatus: k.Unverified,
|
|
4578
4637
|
VerificationStatuses: []
|
|
4579
4638
|
};
|
|
4580
|
-
const
|
|
4581
|
-
if (
|
|
4582
|
-
const U = D(
|
|
4639
|
+
const y = V(f);
|
|
4640
|
+
if (y && y.length) {
|
|
4641
|
+
const U = D(y);
|
|
4583
4642
|
return {
|
|
4584
4643
|
VerificationSummaryStatus: U.Status,
|
|
4585
|
-
VerificationUrl: (
|
|
4586
|
-
VerificationStatuses:
|
|
4644
|
+
VerificationUrl: (H = U.Flags) == null ? void 0 : H.DeferredUrlKey,
|
|
4645
|
+
VerificationStatuses: N(y, U.Status)
|
|
4587
4646
|
};
|
|
4588
4647
|
} else
|
|
4589
4648
|
return {
|
|
4590
|
-
VerificationSummaryStatus: f.some((
|
|
4591
|
-
VerificationStatuses:
|
|
4649
|
+
VerificationSummaryStatus: f.some((de) => de.Status === k.Failed) ? k.Failed : k.Verified,
|
|
4650
|
+
VerificationStatuses: N(f, [k.Failed])
|
|
4592
4651
|
};
|
|
4593
4652
|
}, D = (f) => f.reduce(
|
|
4594
|
-
(
|
|
4653
|
+
(y, H) => y ? new Date(y) < new Date(H) ? H : y : H,
|
|
4595
4654
|
0
|
|
4596
|
-
),
|
|
4597
|
-
var U,
|
|
4655
|
+
), N = (f, y) => f.filter((H) => y.includes(H.Status)).map((H) => {
|
|
4656
|
+
var U, de;
|
|
4598
4657
|
return {
|
|
4599
|
-
Type:
|
|
4600
|
-
Vendor:
|
|
4601
|
-
VerificationDocuments:
|
|
4602
|
-
VerificationUrlType: (U =
|
|
4603
|
-
VerificationUrl: (
|
|
4658
|
+
Type: H.Type,
|
|
4659
|
+
Vendor: H.VendorName,
|
|
4660
|
+
VerificationDocuments: H.Documents ? [...H.Documents] : [],
|
|
4661
|
+
VerificationUrlType: (U = H.FlowInfo) == null ? void 0 : U.Type,
|
|
4662
|
+
VerificationUrl: (de = H.FlowInfo) == null ? void 0 : de.Url
|
|
4604
4663
|
};
|
|
4605
|
-
}), V = (f) => f.filter((
|
|
4606
|
-
const
|
|
4607
|
-
return
|
|
4608
|
-
},
|
|
4609
|
-
switch (
|
|
4610
|
-
case
|
|
4664
|
+
}), V = (f) => f.filter((y) => x.includes(y.Status) ? y.FlowInfo && y.FlowInfo.Url || W(y) || ce(y) : !1), W = (f) => {
|
|
4665
|
+
const y = f.Documents && f.VendorName === M.Manual, H = f.Documents && f.Documents.some((U) => U.Status === P.Requested);
|
|
4666
|
+
return y && H;
|
|
4667
|
+
}, ce = (f) => f.VendorName === M.ShuftiPro && f.Status === k.Referred, ie = () => {
|
|
4668
|
+
switch (R.VerificationSummaryStatus) {
|
|
4669
|
+
case k.InProgress:
|
|
4611
4670
|
const f = [];
|
|
4612
|
-
return
|
|
4613
|
-
f.push(
|
|
4671
|
+
return B.forEach((y) => {
|
|
4672
|
+
f.push(ge(y));
|
|
4614
4673
|
}), f;
|
|
4615
|
-
case
|
|
4674
|
+
case k.Referred:
|
|
4616
4675
|
return [i("verification.idenfy.referred-awaiting")];
|
|
4617
|
-
case
|
|
4676
|
+
case k.Failed:
|
|
4618
4677
|
return [i("verification.message.failed")];
|
|
4619
4678
|
}
|
|
4620
|
-
},
|
|
4621
|
-
const
|
|
4622
|
-
if (f ===
|
|
4623
|
-
return
|
|
4679
|
+
}, ge = (f) => {
|
|
4680
|
+
const y = R.VerificationStatuses.filter((H) => H.Vendor === f);
|
|
4681
|
+
if (f === M.ShuftiPro)
|
|
4682
|
+
return le(y);
|
|
4624
4683
|
{
|
|
4625
|
-
const
|
|
4626
|
-
link: `<a href="${
|
|
4684
|
+
const H = i("verification.idenfy.link-name"), U = {
|
|
4685
|
+
link: `<a href="${y[0].VerificationUrl}" target="_blank">${H}</a>`
|
|
4627
4686
|
};
|
|
4628
4687
|
return i("verification.idenfy.in-progress", { values: U });
|
|
4629
4688
|
}
|
|
4630
|
-
},
|
|
4631
|
-
const
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4689
|
+
}, le = (f) => {
|
|
4690
|
+
const y = [], H = {}, U = [
|
|
4691
|
+
fe.Biometric,
|
|
4692
|
+
fe.Documents,
|
|
4693
|
+
fe.ProofOfAddress
|
|
4635
4694
|
];
|
|
4636
|
-
f.forEach((
|
|
4637
|
-
U.includes(
|
|
4695
|
+
f.forEach((ve) => {
|
|
4696
|
+
U.includes(ve.Type) && (y.push(ve.Type), H[ve.Type] = j(ve, ne(ve.Type)));
|
|
4638
4697
|
});
|
|
4639
|
-
let
|
|
4640
|
-
return
|
|
4641
|
-
},
|
|
4698
|
+
let de = y.every((ve) => G.has(ve)), Ve = `verification.shuftipro.in-progress.${y.sort().join(".")}`;
|
|
4699
|
+
return de ? i("verification.shuftipro.validations-started") : i(Ve, { values: H });
|
|
4700
|
+
}, j = (f, y) => `<a class="verificationLink ${f.Type}" href=" ${f.VerificationUrl} " target="_blank">${y}</a>`, ne = (f) => i(`verification.shuftipro.link-name.${f}`), he = (f, y) => {
|
|
4642
4701
|
if (f.stopPropagation(), f.target && (f.target.href || f.target.closest("a"))) {
|
|
4643
4702
|
if (f.target.closest(".verificationLink")) {
|
|
4644
|
-
const
|
|
4645
|
-
|
|
4703
|
+
const H = f.target.className.split(" ")[1];
|
|
4704
|
+
G.add(H), r(4, X = ie());
|
|
4646
4705
|
}
|
|
4647
4706
|
return;
|
|
4648
4707
|
}
|
|
4649
|
-
|
|
4650
|
-
},
|
|
4651
|
-
r(6,
|
|
4652
|
-
},
|
|
4653
|
-
r(8,
|
|
4708
|
+
y === 0 && r(5, I = !I);
|
|
4709
|
+
}, ye = () => {
|
|
4710
|
+
r(6, F = p === "false");
|
|
4711
|
+
}, Lr = () => {
|
|
4712
|
+
r(8, ue = A + "/" + o + "/" + vs);
|
|
4654
4713
|
try {
|
|
4655
|
-
fetch(
|
|
4656
|
-
r(7,
|
|
4714
|
+
fetch(ue, { method: "HEAD" }).then((f) => {
|
|
4715
|
+
r(7, q = f.ok);
|
|
4657
4716
|
});
|
|
4658
4717
|
} catch (f) {
|
|
4659
|
-
r(7,
|
|
4718
|
+
r(7, q = !1);
|
|
4660
4719
|
}
|
|
4661
4720
|
}, Ht = () => {
|
|
4662
4721
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
4663
|
-
},
|
|
4664
|
-
function
|
|
4722
|
+
}, Ir = (f, y) => he(y, f), Nr = (f, y) => he(y, f), Rr = () => Ht();
|
|
4723
|
+
function kr(f) {
|
|
4665
4724
|
lt[f ? "unshift" : "push"](() => {
|
|
4666
|
-
|
|
4725
|
+
v = f, r(3, v);
|
|
4667
4726
|
});
|
|
4668
4727
|
}
|
|
4669
4728
|
return e.$$set = (f) => {
|
|
4670
|
-
"endpoint" in f && r(
|
|
4729
|
+
"endpoint" in f && r(13, s = f.endpoint), "lang" in f && r(14, o = f.lang), "translationurl" in f && r(15, l = f.translationurl), "clientstyling" in f && r(0, a = f.clientstyling), "clientstylingurl" in f && r(1, u = 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);
|
|
4671
4730
|
}, e.$$.update = () => {
|
|
4672
4731
|
e.$$.dirty[0] & /*lang*/
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
9 &&
|
|
4678
|
-
10 && u &&
|
|
4679
|
-
4 && p &&
|
|
4680
|
-
|
|
4732
|
+
16384 && o && d(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4733
|
+
335872 && s && h && _ && b(), e.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
4734
|
+
335872 && s && !h && _ && E(), e.$$.dirty[0] & /*translationurl*/
|
|
4735
|
+
32768 && l && g(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4736
|
+
9 && a && v && as(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4737
|
+
10 && u && v && us(), e.$$.dirty[0] & /*ismobileview*/
|
|
4738
|
+
4 && p && ye(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
4739
|
+
1048576 && A && Lr(), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4740
|
+
524296 && S && v && ls(v, `${S}.Style`);
|
|
4681
4741
|
}, [
|
|
4682
|
-
|
|
4742
|
+
a,
|
|
4683
4743
|
u,
|
|
4684
4744
|
p,
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4745
|
+
v,
|
|
4746
|
+
X,
|
|
4747
|
+
I,
|
|
4748
|
+
F,
|
|
4749
|
+
q,
|
|
4750
|
+
ue,
|
|
4751
|
+
Z,
|
|
4691
4752
|
i,
|
|
4692
|
-
|
|
4753
|
+
he,
|
|
4693
4754
|
Ht,
|
|
4694
4755
|
s,
|
|
4695
|
-
|
|
4756
|
+
o,
|
|
4696
4757
|
l,
|
|
4697
4758
|
h,
|
|
4698
4759
|
c,
|
|
4699
|
-
|
|
4700
|
-
|
|
4760
|
+
_,
|
|
4761
|
+
S,
|
|
4762
|
+
A,
|
|
4763
|
+
Ir,
|
|
4701
4764
|
Nr,
|
|
4702
4765
|
Rr,
|
|
4703
|
-
kr
|
|
4704
|
-
Ur
|
|
4766
|
+
kr
|
|
4705
4767
|
];
|
|
4706
4768
|
}
|
|
4707
|
-
class
|
|
4769
|
+
class Dr extends ci {
|
|
4708
4770
|
constructor(t) {
|
|
4709
4771
|
super(), hi(
|
|
4710
4772
|
this,
|
|
4711
4773
|
t,
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4774
|
+
bs,
|
|
4775
|
+
gs,
|
|
4776
|
+
ir,
|
|
4715
4777
|
{
|
|
4716
|
-
endpoint:
|
|
4717
|
-
lang:
|
|
4718
|
-
translationurl:
|
|
4778
|
+
endpoint: 13,
|
|
4779
|
+
lang: 14,
|
|
4780
|
+
translationurl: 15,
|
|
4719
4781
|
clientstyling: 0,
|
|
4720
4782
|
clientstylingurl: 1,
|
|
4721
|
-
session:
|
|
4722
|
-
customerid:
|
|
4783
|
+
session: 16,
|
|
4784
|
+
customerid: 17,
|
|
4723
4785
|
ismobileview: 2,
|
|
4724
|
-
playersession:
|
|
4786
|
+
playersession: 18,
|
|
4787
|
+
mbsource: 19
|
|
4725
4788
|
},
|
|
4726
|
-
|
|
4789
|
+
ds,
|
|
4727
4790
|
[-1, -1]
|
|
4728
4791
|
);
|
|
4729
4792
|
}
|
|
4730
4793
|
get endpoint() {
|
|
4731
|
-
return this.$$.ctx[
|
|
4794
|
+
return this.$$.ctx[13];
|
|
4732
4795
|
}
|
|
4733
4796
|
set endpoint(t) {
|
|
4734
4797
|
this.$$set({ endpoint: t }), Q();
|
|
4735
4798
|
}
|
|
4736
4799
|
get lang() {
|
|
4737
|
-
return this.$$.ctx[
|
|
4800
|
+
return this.$$.ctx[14];
|
|
4738
4801
|
}
|
|
4739
4802
|
set lang(t) {
|
|
4740
4803
|
this.$$set({ lang: t }), Q();
|
|
4741
4804
|
}
|
|
4742
4805
|
get translationurl() {
|
|
4743
|
-
return this.$$.ctx[
|
|
4806
|
+
return this.$$.ctx[15];
|
|
4744
4807
|
}
|
|
4745
4808
|
set translationurl(t) {
|
|
4746
4809
|
this.$$set({ translationurl: t }), Q();
|
|
@@ -4758,13 +4821,13 @@ class Lr extends ci {
|
|
|
4758
4821
|
this.$$set({ clientstylingurl: t }), Q();
|
|
4759
4822
|
}
|
|
4760
4823
|
get session() {
|
|
4761
|
-
return this.$$.ctx[
|
|
4824
|
+
return this.$$.ctx[16];
|
|
4762
4825
|
}
|
|
4763
4826
|
set session(t) {
|
|
4764
4827
|
this.$$set({ session: t }), Q();
|
|
4765
4828
|
}
|
|
4766
4829
|
get customerid() {
|
|
4767
|
-
return this.$$.ctx[
|
|
4830
|
+
return this.$$.ctx[17];
|
|
4768
4831
|
}
|
|
4769
4832
|
set customerid(t) {
|
|
4770
4833
|
this.$$set({ customerid: t }), Q();
|
|
@@ -4776,37 +4839,46 @@ class Lr extends ci {
|
|
|
4776
4839
|
this.$$set({ ismobileview: t }), Q();
|
|
4777
4840
|
}
|
|
4778
4841
|
get playersession() {
|
|
4779
|
-
return this.$$.ctx[
|
|
4842
|
+
return this.$$.ctx[18];
|
|
4780
4843
|
}
|
|
4781
4844
|
set playersession(t) {
|
|
4782
4845
|
this.$$set({ playersession: t }), Q();
|
|
4783
4846
|
}
|
|
4847
|
+
get mbsource() {
|
|
4848
|
+
return this.$$.ctx[19];
|
|
4849
|
+
}
|
|
4850
|
+
set mbsource(t) {
|
|
4851
|
+
this.$$set({ mbsource: t }), Q();
|
|
4852
|
+
}
|
|
4784
4853
|
}
|
|
4785
|
-
fi(
|
|
4786
|
-
const
|
|
4854
|
+
fi(Dr, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {}, mbsource: {} }, [], [], !0);
|
|
4855
|
+
const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4787
4856
|
__proto__: null,
|
|
4788
|
-
default:
|
|
4857
|
+
default: Dr
|
|
4789
4858
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4790
4859
|
export {
|
|
4791
|
-
|
|
4860
|
+
ws as C,
|
|
4792
4861
|
ci as S,
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4862
|
+
Xr as a,
|
|
4863
|
+
ae as b,
|
|
4864
|
+
_s as c,
|
|
4865
|
+
ee as d,
|
|
4866
|
+
Es as e,
|
|
4798
4867
|
Q as f,
|
|
4799
|
-
|
|
4800
|
-
|
|
4868
|
+
re as g,
|
|
4869
|
+
se as h,
|
|
4801
4870
|
hi as i,
|
|
4802
|
-
|
|
4803
|
-
|
|
4871
|
+
Y as j,
|
|
4872
|
+
we as k,
|
|
4804
4873
|
lt as l,
|
|
4805
4874
|
Et as m,
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4875
|
+
te as n,
|
|
4876
|
+
ei as o,
|
|
4877
|
+
xs as p,
|
|
4878
|
+
as as q,
|
|
4879
|
+
us as r,
|
|
4880
|
+
ir as s,
|
|
4881
|
+
Te as t,
|
|
4882
|
+
ls as u,
|
|
4883
|
+
fi as v
|
|
4812
4884
|
};
|