@everymatrix/cashier-session-expiration-modal 1.77.3 → 1.77.5
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/{CashierSessionExpirationModal-Cfjtll5A.js → CashierSessionExpirationModal-BAFxIrEq.js} +817 -835
- package/components/{CashierSessionExpirationModal-DyPySpmH.cjs → CashierSessionExpirationModal-DqNHgUjj.cjs} +6 -6
- package/components/{CashierSessionExpirationModal-Wl8GAMRI.js → CashierSessionExpirationModal-ge0R8xm0.js} +847 -865
- package/es2015/cashier-session-expiration-modal.cjs +1 -1
- package/es2015/cashier-session-expiration-modal.js +1 -1
- package/esnext/cashier-session-expiration-modal.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function de() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
4
|
-
function
|
|
3
|
+
const zr = (e) => e;
|
|
4
|
+
function zi(e, t) {
|
|
5
5
|
for (const n in t)
|
|
6
6
|
e[n] = t[n];
|
|
7
7
|
return (
|
|
@@ -9,29 +9,29 @@ function ji(e, t) {
|
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Wr(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
15
|
function rr() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
18
|
function Ie(e) {
|
|
19
|
-
e.forEach(
|
|
19
|
+
e.forEach(Wr);
|
|
20
20
|
}
|
|
21
21
|
function Yt(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Vr(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
27
|
+
let At;
|
|
28
28
|
function ir(e, t) {
|
|
29
|
-
return e === t ? !0 : (
|
|
29
|
+
return e === t ? !0 : (At || (At = document.createElement("a")), At.href = t, e === At.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Wi(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Xr(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const r of t)
|
|
37
37
|
r(void 0);
|
|
@@ -40,17 +40,17 @@ function Vr(e, ...t) {
|
|
|
40
40
|
const n = e.subscribe(...t);
|
|
41
41
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function or(e, t, n) {
|
|
44
|
+
e.$$.on_destroy.push(Xr(t, n));
|
|
45
45
|
}
|
|
46
46
|
function Nt(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Yr(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] && r ?
|
|
52
|
+
function Yr(e, t, n, r) {
|
|
53
|
+
return e[1] && r ? zi(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
55
|
function Ht(e, t, n, r) {
|
|
56
56
|
if (e[2] && r) {
|
|
@@ -58,18 +58,18 @@ function Ht(e, t, n, r) {
|
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const
|
|
61
|
+
const o = [], u = Math.max(t.dirty.length, i.length);
|
|
62
62
|
for (let a = 0; a < u; a += 1)
|
|
63
|
-
|
|
64
|
-
return
|
|
63
|
+
o[a] = t.dirty[a] | i[a];
|
|
64
|
+
return o;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function It(e, t, n, r, i,
|
|
70
|
+
function It(e, t, n, r, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const u =
|
|
72
|
+
const u = Yr(t, n, r, o);
|
|
73
73
|
e.p(u, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -82,17 +82,17 @@ function Pt(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
let
|
|
85
|
+
const Zr = typeof window < "u";
|
|
86
|
+
let Vi = Zr ? () => window.performance.now() : () => Date.now(), Nn = Zr ? (e) => requestAnimationFrame(e) : de;
|
|
87
87
|
const Ve = /* @__PURE__ */ new Set();
|
|
88
|
-
function
|
|
88
|
+
function qr(e) {
|
|
89
89
|
Ve.forEach((t) => {
|
|
90
90
|
t.c(e) || (Ve.delete(t), t.f());
|
|
91
|
-
}), Ve.size !== 0 && Nn(
|
|
91
|
+
}), Ve.size !== 0 && Nn(qr);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Xi(e) {
|
|
94
94
|
let t;
|
|
95
|
-
return Ve.size === 0 && Nn(
|
|
95
|
+
return Ve.size === 0 && Nn(qr), {
|
|
96
96
|
promise: new Promise((n) => {
|
|
97
97
|
Ve.add(t = { c: e, f: n });
|
|
98
98
|
}),
|
|
@@ -104,11 +104,11 @@ function Vi(e) {
|
|
|
104
104
|
function J(e, t) {
|
|
105
105
|
e.appendChild(t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Yi(e, t, n) {
|
|
108
108
|
const r = Hn(e);
|
|
109
109
|
if (!r.getElementById(t)) {
|
|
110
|
-
const i =
|
|
111
|
-
i.id = t, i.textContent = n,
|
|
110
|
+
const i = re("style");
|
|
111
|
+
i.id = t, i.textContent = n, Jr(r, i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
function Hn(e) {
|
|
@@ -121,27 +121,27 @@ function Hn(e) {
|
|
|
121
121
|
t
|
|
122
122
|
) : e.ownerDocument;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
const t =
|
|
126
|
-
return t.textContent = "/* empty */",
|
|
124
|
+
function Zi(e) {
|
|
125
|
+
const t = re("style");
|
|
126
|
+
return t.textContent = "/* empty */", Jr(Hn(e), t), t.sheet;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Jr(e, t) {
|
|
129
129
|
return J(
|
|
130
130
|
/** @type {Document} */
|
|
131
131
|
e.head || e,
|
|
132
132
|
t
|
|
133
133
|
), t.sheet;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ce(e, t, n) {
|
|
136
136
|
e.insertBefore(t, n || null);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function be(e) {
|
|
139
139
|
e.parentNode && e.parentNode.removeChild(e);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function re(e) {
|
|
142
142
|
return document.createElement(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function sr(e) {
|
|
145
145
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
146
146
|
}
|
|
147
147
|
function Ke(e) {
|
|
@@ -150,16 +150,16 @@ function Ke(e) {
|
|
|
150
150
|
function ht() {
|
|
151
151
|
return Ke(" ");
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Qr() {
|
|
154
154
|
return Ke("");
|
|
155
155
|
}
|
|
156
156
|
function kt(e, t, n, r) {
|
|
157
157
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function W(e, t, n) {
|
|
160
160
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function qi(e) {
|
|
163
163
|
return Array.from(e.childNodes);
|
|
164
164
|
}
|
|
165
165
|
function Zt(e, t) {
|
|
@@ -167,7 +167,7 @@ function Zt(e, t) {
|
|
|
167
167
|
t);
|
|
168
168
|
}
|
|
169
169
|
let Ot;
|
|
170
|
-
function
|
|
170
|
+
function Ji() {
|
|
171
171
|
if (Ot === void 0) {
|
|
172
172
|
Ot = !1;
|
|
173
173
|
try {
|
|
@@ -178,16 +178,16 @@ function qi() {
|
|
|
178
178
|
}
|
|
179
179
|
return Ot;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Qi(e, t) {
|
|
182
182
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
183
|
-
const r =
|
|
183
|
+
const r = re("iframe");
|
|
184
184
|
r.setAttribute(
|
|
185
185
|
"style",
|
|
186
186
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
187
187
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
188
|
-
const i =
|
|
189
|
-
let
|
|
190
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",
|
|
188
|
+
const i = Ji();
|
|
189
|
+
let o;
|
|
190
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = kt(
|
|
191
191
|
window,
|
|
192
192
|
"message",
|
|
193
193
|
/** @param {MessageEvent} event */
|
|
@@ -195,15 +195,15 @@ function Ji(e, t) {
|
|
|
195
195
|
u.source === r.contentWindow && t();
|
|
196
196
|
}
|
|
197
197
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
198
|
-
|
|
198
|
+
o = kt(r.contentWindow, "resize", t), t();
|
|
199
199
|
}), J(e, r), () => {
|
|
200
|
-
(i ||
|
|
200
|
+
(i || o && r.contentWindow) && o(), be(r);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ki(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
204
204
|
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function eo(e) {
|
|
207
207
|
const t = {};
|
|
208
208
|
return e.childNodes.forEach(
|
|
209
209
|
/** @param {Element} node */
|
|
@@ -214,43 +214,43 @@ function Ki(e) {
|
|
|
214
214
|
}
|
|
215
215
|
const Ft = /* @__PURE__ */ new Map();
|
|
216
216
|
let Gt = 0;
|
|
217
|
-
function
|
|
217
|
+
function to(e) {
|
|
218
218
|
let t = 5381, n = e.length;
|
|
219
219
|
for (; n--; )
|
|
220
220
|
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
221
221
|
return t >>> 0;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const n = { stylesheet:
|
|
223
|
+
function no(e, t) {
|
|
224
|
+
const n = { stylesheet: Zi(t), rules: {} };
|
|
225
225
|
return Ft.set(e, n), n;
|
|
226
226
|
}
|
|
227
|
-
function ar(e, t, n, r, i,
|
|
227
|
+
function ar(e, t, n, r, i, o, u, a = 0) {
|
|
228
228
|
const c = 16.666 / r;
|
|
229
229
|
let l = `{
|
|
230
230
|
`;
|
|
231
231
|
for (let C = 0; C <= 1; C += c) {
|
|
232
|
-
const F = t + (n - t) *
|
|
232
|
+
const F = t + (n - t) * o(C);
|
|
233
233
|
l += C * 100 + `%{${u(F, 1 - F)}}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
236
|
const f = l + `100% {${u(n, 1 - n)}}
|
|
237
|
-
}`, _ = `__svelte_${
|
|
237
|
+
}`, _ = `__svelte_${to(f)}_${a}`, y = Hn(e), { stylesheet: M, rules: b } = Ft.get(y) || no(y, e);
|
|
238
238
|
b[_] || (b[_] = !0, M.insertRule(`@keyframes ${_} ${f}`, M.cssRules.length));
|
|
239
239
|
const d = e.style.animation || "";
|
|
240
240
|
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`, Gt += 1, _;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ro(e, t) {
|
|
243
243
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
244
|
-
t ? (
|
|
244
|
+
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
245
245
|
// remove all Svelte animations
|
|
246
246
|
), i = n.length - r.length;
|
|
247
|
-
i && (e.style.animation = r.join(", "), Gt -= i, Gt ||
|
|
247
|
+
i && (e.style.animation = r.join(", "), Gt -= i, Gt || io());
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function io() {
|
|
250
250
|
Nn(() => {
|
|
251
251
|
Gt || (Ft.forEach((e) => {
|
|
252
252
|
const { ownerNode: t } = e.stylesheet;
|
|
253
|
-
t &&
|
|
253
|
+
t && be(t);
|
|
254
254
|
}), Ft.clear());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
@@ -258,23 +258,23 @@ let pt;
|
|
|
258
258
|
function dt(e) {
|
|
259
259
|
pt = e;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Kr() {
|
|
262
262
|
if (!pt)
|
|
263
263
|
throw new Error("Function called outside component initialization");
|
|
264
264
|
return pt;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
|
|
266
|
+
function oo(e) {
|
|
267
|
+
Kr().$$.on_mount.push(e);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
|
|
269
|
+
function so(e) {
|
|
270
|
+
Kr().$$.on_destroy.push(e);
|
|
271
271
|
}
|
|
272
272
|
const We = [], jt = [];
|
|
273
273
|
let Xe = [];
|
|
274
|
-
const ur = [],
|
|
274
|
+
const ur = [], ao = /* @__PURE__ */ Promise.resolve();
|
|
275
275
|
let yn = !1;
|
|
276
|
-
function
|
|
277
|
-
yn || (yn = !0,
|
|
276
|
+
function uo() {
|
|
277
|
+
yn || (yn = !0, ao.then(le));
|
|
278
278
|
}
|
|
279
279
|
function Ye(e) {
|
|
280
280
|
Xe.push(e);
|
|
@@ -289,7 +289,7 @@ function le() {
|
|
|
289
289
|
try {
|
|
290
290
|
for (; je < We.length; ) {
|
|
291
291
|
const t = We[je];
|
|
292
|
-
je++, dt(t),
|
|
292
|
+
je++, dt(t), lo(t.$$);
|
|
293
293
|
}
|
|
294
294
|
} catch (t) {
|
|
295
295
|
throw We.length = 0, je = 0, t;
|
|
@@ -306,38 +306,38 @@ function le() {
|
|
|
306
306
|
ur.pop()();
|
|
307
307
|
yn = !1, an.clear(), dt(e);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function lo(e) {
|
|
310
310
|
if (e.fragment !== null) {
|
|
311
311
|
e.update(), Ie(e.before_update);
|
|
312
312
|
const t = e.dirty;
|
|
313
313
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function co(e) {
|
|
317
317
|
const t = [], n = [];
|
|
318
318
|
Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
|
|
319
319
|
}
|
|
320
|
-
let
|
|
321
|
-
function
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
})),
|
|
320
|
+
let ot;
|
|
321
|
+
function fo() {
|
|
322
|
+
return ot || (ot = Promise.resolve(), ot.then(() => {
|
|
323
|
+
ot = null;
|
|
324
|
+
})), ot;
|
|
325
325
|
}
|
|
326
326
|
function un(e, t, n) {
|
|
327
|
-
e.dispatchEvent(
|
|
327
|
+
e.dispatchEvent(Ki(`${t ? "intro" : "outro"}${n}`));
|
|
328
328
|
}
|
|
329
329
|
const Rt = /* @__PURE__ */ new Set();
|
|
330
|
-
let
|
|
331
|
-
function
|
|
332
|
-
|
|
330
|
+
let Me;
|
|
331
|
+
function ei() {
|
|
332
|
+
Me = {
|
|
333
333
|
r: 0,
|
|
334
334
|
c: [],
|
|
335
|
-
p:
|
|
335
|
+
p: Me
|
|
336
336
|
// parent group
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
339
|
+
function ti() {
|
|
340
|
+
Me.r || Ie(Me.c), Me = Me.p;
|
|
341
341
|
}
|
|
342
342
|
function Se(e, t) {
|
|
343
343
|
e && e.i && (Rt.delete(e), e.i(t));
|
|
@@ -346,17 +346,17 @@ function Ne(e, t, n, r) {
|
|
|
346
346
|
if (e && e.o) {
|
|
347
347
|
if (Rt.has(e))
|
|
348
348
|
return;
|
|
349
|
-
Rt.add(e),
|
|
349
|
+
Rt.add(e), Me.c.push(() => {
|
|
350
350
|
Rt.delete(e), r && (n && e.d(1), r());
|
|
351
351
|
}), e.o(t);
|
|
352
352
|
} else
|
|
353
353
|
r && r();
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const ho = { duration: 0 };
|
|
356
356
|
function lr(e, t, n, r) {
|
|
357
|
-
let
|
|
357
|
+
let o = t(e, n, { direction: "both" }), u = r ? 0 : 1, a = null, c = null, l = null, f;
|
|
358
358
|
function _() {
|
|
359
|
-
l &&
|
|
359
|
+
l && ro(e, l);
|
|
360
360
|
}
|
|
361
361
|
function y(b, d) {
|
|
362
362
|
const C = (
|
|
@@ -377,23 +377,23 @@ function lr(e, t, n, r) {
|
|
|
377
377
|
const {
|
|
378
378
|
delay: d = 0,
|
|
379
379
|
duration: C = 300,
|
|
380
|
-
easing: F =
|
|
380
|
+
easing: F = zr,
|
|
381
381
|
tick: $ = de,
|
|
382
|
-
css:
|
|
383
|
-
} =
|
|
384
|
-
start:
|
|
382
|
+
css: w
|
|
383
|
+
} = o || ho, H = {
|
|
384
|
+
start: Vi() + d,
|
|
385
385
|
b
|
|
386
386
|
};
|
|
387
|
-
b || (H.group =
|
|
388
|
-
e.inert, e.inert = !0)), a || c ? c = H : (
|
|
389
|
-
if (c && R > c.start && (a = y(c, C), c = null, un(e, a.b, "start"),
|
|
387
|
+
b || (H.group = Me, Me.r += 1), "inert" in e && (b ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
388
|
+
e.inert, e.inert = !0)), a || c ? c = H : (w && (_(), l = ar(e, u, b, C, d, F, w)), b && $(0, 1), a = y(H, C), Ye(() => un(e, b, "start")), Xi((R) => {
|
|
389
|
+
if (c && R > c.start && (a = y(c, C), c = null, un(e, a.b, "start"), w && (_(), l = ar(
|
|
390
390
|
e,
|
|
391
391
|
u,
|
|
392
392
|
a.b,
|
|
393
393
|
a.duration,
|
|
394
394
|
0,
|
|
395
395
|
F,
|
|
396
|
-
|
|
396
|
+
o.css
|
|
397
397
|
))), a) {
|
|
398
398
|
if (R >= a.end)
|
|
399
399
|
$(u = a.b, 1 - u), un(e, a.b, "end"), c || (a.b ? _() : --a.group.r || Ie(a.group.c)), a = null;
|
|
@@ -407,8 +407,8 @@ function lr(e, t, n, r) {
|
|
|
407
407
|
}
|
|
408
408
|
return {
|
|
409
409
|
run(b) {
|
|
410
|
-
Yt(
|
|
411
|
-
|
|
410
|
+
Yt(o) ? fo().then(() => {
|
|
411
|
+
o = o({ direction: b ? "in" : "out" }), M(b);
|
|
412
412
|
}) : M(b);
|
|
413
413
|
},
|
|
414
414
|
end() {
|
|
@@ -416,28 +416,28 @@ function lr(e, t, n, r) {
|
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function mo(e, t, n) {
|
|
420
420
|
const { fragment: r, after_update: i } = e.$$;
|
|
421
421
|
r && r.m(t, n), Ye(() => {
|
|
422
|
-
const
|
|
423
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
422
|
+
const o = e.$$.on_mount.map(Wr).filter(Yt);
|
|
423
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ie(o), e.$$.on_mount = [];
|
|
424
424
|
}), i.forEach(Ye);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function po(e, t) {
|
|
427
427
|
const n = e.$$;
|
|
428
|
-
n.fragment !== null && (
|
|
428
|
+
n.fragment !== null && (co(n.after_update), Ie(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
e.$$.dirty[0] === -1 && (We.push(e),
|
|
430
|
+
function go(e, t) {
|
|
431
|
+
e.$$.dirty[0] === -1 && (We.push(e), uo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function _o(e, t, n, r, i, o, u = null, a = [-1]) {
|
|
434
434
|
const c = pt;
|
|
435
435
|
dt(e);
|
|
436
436
|
const l = e.$$ = {
|
|
437
437
|
fragment: null,
|
|
438
438
|
ctx: [],
|
|
439
439
|
// state
|
|
440
|
-
props:
|
|
440
|
+
props: o,
|
|
441
441
|
update: de,
|
|
442
442
|
not_equal: i,
|
|
443
443
|
bound: rr(),
|
|
@@ -458,19 +458,19 @@ function ps(e, t, n, r, i, s, u = null, a = [-1]) {
|
|
|
458
458
|
let f = !1;
|
|
459
459
|
if (l.ctx = n ? n(e, t.props || {}, (_, y, ...M) => {
|
|
460
460
|
const b = M.length ? M[0] : y;
|
|
461
|
-
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), f &&
|
|
461
|
+
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), f && go(e, _)), y;
|
|
462
462
|
}) : [], l.update(), f = !0, Ie(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
|
-
const _ =
|
|
465
|
-
l.fragment && l.fragment.l(_), _.forEach(
|
|
464
|
+
const _ = qi(t.target);
|
|
465
|
+
l.fragment && l.fragment.l(_), _.forEach(be);
|
|
466
466
|
} else
|
|
467
467
|
l.fragment && l.fragment.c();
|
|
468
|
-
t.intro && Se(e.$$.fragment),
|
|
468
|
+
t.intro && Se(e.$$.fragment), mo(e, t.target, t.anchor), le();
|
|
469
469
|
}
|
|
470
470
|
dt(c);
|
|
471
471
|
}
|
|
472
|
-
let
|
|
473
|
-
typeof HTMLElement == "function" && (
|
|
472
|
+
let ni;
|
|
473
|
+
typeof HTMLElement == "function" && (ni = class extends HTMLElement {
|
|
474
474
|
/** The Svelte component constructor */
|
|
475
475
|
$$ctor;
|
|
476
476
|
/** Slots */
|
|
@@ -509,32 +509,32 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
509
509
|
if (this.$$cn = !0, !this.$$c) {
|
|
510
510
|
let e = function(i) {
|
|
511
511
|
return () => {
|
|
512
|
-
let
|
|
512
|
+
let o;
|
|
513
513
|
return {
|
|
514
514
|
c: function() {
|
|
515
|
-
|
|
515
|
+
o = re("slot"), i !== "default" && W(o, "name", i);
|
|
516
516
|
},
|
|
517
517
|
/**
|
|
518
518
|
* @param {HTMLElement} target
|
|
519
519
|
* @param {HTMLElement} [anchor]
|
|
520
520
|
*/
|
|
521
521
|
m: function(c, l) {
|
|
522
|
-
|
|
522
|
+
Ce(c, o, l);
|
|
523
523
|
},
|
|
524
524
|
d: function(c) {
|
|
525
|
-
c &&
|
|
525
|
+
c && be(o);
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
528
|
};
|
|
529
529
|
};
|
|
530
530
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
531
531
|
return;
|
|
532
|
-
const t = {}, n =
|
|
532
|
+
const t = {}, n = eo(this);
|
|
533
533
|
for (const i of this.$$s)
|
|
534
534
|
i in n && (t[i] = [e(i)]);
|
|
535
535
|
for (const i of this.attributes) {
|
|
536
|
-
const
|
|
537
|
-
|
|
536
|
+
const o = this.$$g_p(i.name);
|
|
537
|
+
o in this.$$d || (this.$$d[o] = Dt(o, i.value, this.$$p_d, "toProp"));
|
|
538
538
|
}
|
|
539
539
|
for (const i in this.$$p_d)
|
|
540
540
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -552,21 +552,21 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
552
552
|
this.$$r = !0;
|
|
553
553
|
for (const i in this.$$p_d)
|
|
554
554
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
555
|
-
const
|
|
555
|
+
const o = Dt(
|
|
556
556
|
i,
|
|
557
557
|
this.$$d[i],
|
|
558
558
|
this.$$p_d,
|
|
559
559
|
"toAttribute"
|
|
560
560
|
);
|
|
561
|
-
|
|
561
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
562
562
|
}
|
|
563
563
|
this.$$r = !1;
|
|
564
564
|
};
|
|
565
565
|
this.$$c.$$.after_update.push(r), r();
|
|
566
566
|
for (const i in this.$$l)
|
|
567
|
-
for (const
|
|
568
|
-
const u = this.$$c.$on(i,
|
|
569
|
-
this.$$l_u.set(
|
|
567
|
+
for (const o of this.$$l[i]) {
|
|
568
|
+
const u = this.$$c.$on(i, o);
|
|
569
|
+
this.$$l_u.set(o, u);
|
|
570
570
|
}
|
|
571
571
|
this.$$l = {};
|
|
572
572
|
}
|
|
@@ -616,8 +616,8 @@ function Dt(e, t, n, r) {
|
|
|
616
616
|
return t;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
let u = class extends
|
|
619
|
+
function bo(e, t, n, r, i, o) {
|
|
620
|
+
let u = class extends ni {
|
|
621
621
|
constructor() {
|
|
622
622
|
super(e, n, i), this.$$p_d = t;
|
|
623
623
|
}
|
|
@@ -645,7 +645,7 @@ function gs(e, t, n, r, i, s) {
|
|
|
645
645
|
}), e.element = /** @type {any} */
|
|
646
646
|
u, u;
|
|
647
647
|
}
|
|
648
|
-
class
|
|
648
|
+
class Eo {
|
|
649
649
|
/**
|
|
650
650
|
* ### PRIVATE API
|
|
651
651
|
*
|
|
@@ -664,7 +664,7 @@ class _s {
|
|
|
664
664
|
$$set = void 0;
|
|
665
665
|
/** @returns {void} */
|
|
666
666
|
$destroy() {
|
|
667
|
-
|
|
667
|
+
po(this, 1), this.$destroy = de;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
670
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -686,22 +686,22 @@ class _s {
|
|
|
686
686
|
* @returns {void}
|
|
687
687
|
*/
|
|
688
688
|
$set(t) {
|
|
689
|
-
this.$$set && !
|
|
689
|
+
this.$$set && !Wi(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
-
const
|
|
693
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
694
|
-
function cr(e, { delay: t = 0, duration: n = 400, easing: r =
|
|
692
|
+
const yo = "4";
|
|
693
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yo);
|
|
694
|
+
function cr(e, { delay: t = 0, duration: n = 400, easing: r = zr } = {}) {
|
|
695
695
|
const i = +getComputedStyle(e).opacity;
|
|
696
696
|
return {
|
|
697
697
|
delay: t,
|
|
698
698
|
duration: n,
|
|
699
699
|
easing: r,
|
|
700
|
-
css: (
|
|
700
|
+
css: (o) => `opacity: ${o * i}`
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
703
|
const ze = [];
|
|
704
|
-
function
|
|
704
|
+
function xo(e, t) {
|
|
705
705
|
return {
|
|
706
706
|
subscribe: bt(e, t).subscribe
|
|
707
707
|
};
|
|
@@ -710,7 +710,7 @@ function bt(e, t = de) {
|
|
|
710
710
|
let n;
|
|
711
711
|
const r = /* @__PURE__ */ new Set();
|
|
712
712
|
function i(a) {
|
|
713
|
-
if (
|
|
713
|
+
if (Vr(e, a) && (e = a, n)) {
|
|
714
714
|
const c = !ze.length;
|
|
715
715
|
for (const l of r)
|
|
716
716
|
l[1](), ze.push(l, e);
|
|
@@ -721,23 +721,23 @@ function bt(e, t = de) {
|
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function o(a) {
|
|
725
725
|
i(a(e));
|
|
726
726
|
}
|
|
727
727
|
function u(a, c = de) {
|
|
728
728
|
const l = [a, c];
|
|
729
|
-
return r.add(l), r.size === 1 && (n = t(i,
|
|
729
|
+
return r.add(l), r.size === 1 && (n = t(i, o) || de), a(e), () => {
|
|
730
730
|
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
return { set: i, update:
|
|
733
|
+
return { set: i, update: o, subscribe: u };
|
|
734
734
|
}
|
|
735
735
|
function et(e, t, n) {
|
|
736
736
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
737
737
|
if (!i.every(Boolean))
|
|
738
738
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
739
|
-
const
|
|
740
|
-
return
|
|
739
|
+
const o = t.length < 2;
|
|
740
|
+
return xo(n, (u, a) => {
|
|
741
741
|
let c = !1;
|
|
742
742
|
const l = [];
|
|
743
743
|
let f = 0, _ = de;
|
|
@@ -746,9 +746,9 @@ function et(e, t, n) {
|
|
|
746
746
|
return;
|
|
747
747
|
_();
|
|
748
748
|
const b = t(r ? l[0] : l, u, a);
|
|
749
|
-
|
|
749
|
+
o ? u(b) : _ = Yt(b) ? b : de;
|
|
750
750
|
}, M = i.map(
|
|
751
|
-
(b, d) =>
|
|
751
|
+
(b, d) => Xr(
|
|
752
752
|
b,
|
|
753
753
|
(C) => {
|
|
754
754
|
l[d] = C, f &= ~(1 << d), c && y();
|
|
@@ -763,71 +763,71 @@ function et(e, t, n) {
|
|
|
763
763
|
};
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
var
|
|
766
|
+
var ri = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
767
767
|
function In(e) {
|
|
768
768
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
769
769
|
}
|
|
770
|
-
var
|
|
771
|
-
return
|
|
770
|
+
var vo = function(t) {
|
|
771
|
+
return To(t) && !So(t);
|
|
772
772
|
};
|
|
773
|
-
function
|
|
773
|
+
function To(e) {
|
|
774
774
|
return !!e && typeof e == "object";
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function So(e) {
|
|
777
777
|
var t = Object.prototype.toString.call(e);
|
|
778
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
778
|
+
return t === "[object RegExp]" || t === "[object Date]" || Oo(e);
|
|
779
779
|
}
|
|
780
|
-
var
|
|
781
|
-
function
|
|
782
|
-
return e.$$typeof ===
|
|
780
|
+
var wo = typeof Symbol == "function" && Symbol.for, Ao = wo ? Symbol.for("react.element") : 60103;
|
|
781
|
+
function Oo(e) {
|
|
782
|
+
return e.$$typeof === Ao;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Mo(e) {
|
|
785
785
|
return Array.isArray(e) ? [] : {};
|
|
786
786
|
}
|
|
787
787
|
function gt(e, t) {
|
|
788
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Ze(
|
|
788
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ze(Mo(e), e, t) : e;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Co(e, t, n) {
|
|
791
791
|
return e.concat(t).map(function(r) {
|
|
792
792
|
return gt(r, n);
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function Lo(e, t) {
|
|
796
796
|
if (!t.customMerge)
|
|
797
797
|
return Ze;
|
|
798
798
|
var n = t.customMerge(e);
|
|
799
799
|
return typeof n == "function" ? n : Ze;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function No(e) {
|
|
802
802
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
803
803
|
return Object.propertyIsEnumerable.call(e, t);
|
|
804
804
|
}) : [];
|
|
805
805
|
}
|
|
806
806
|
function fr(e) {
|
|
807
|
-
return Object.keys(e).concat(
|
|
807
|
+
return Object.keys(e).concat(No(e));
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function ii(e, t) {
|
|
810
810
|
try {
|
|
811
811
|
return t in e;
|
|
812
812
|
} catch {
|
|
813
813
|
return !1;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
function
|
|
817
|
-
return
|
|
816
|
+
function Ho(e, t) {
|
|
817
|
+
return ii(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Io(e, t, n) {
|
|
820
820
|
var r = {};
|
|
821
821
|
return n.isMergeableObject(e) && fr(e).forEach(function(i) {
|
|
822
822
|
r[i] = gt(e[i], n);
|
|
823
823
|
}), fr(t).forEach(function(i) {
|
|
824
|
-
|
|
824
|
+
Ho(e, i) || (ii(e, i) && n.isMergeableObject(t[i]) ? r[i] = Lo(i, n)(e[i], t[i], n) : r[i] = gt(t[i], n));
|
|
825
825
|
}), r;
|
|
826
826
|
}
|
|
827
827
|
function Ze(e, t, n) {
|
|
828
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
829
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
830
|
-
return
|
|
828
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Co, n.isMergeableObject = n.isMergeableObject || vo, n.cloneUnlessOtherwiseSpecified = gt;
|
|
829
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
830
|
+
return o ? r ? n.arrayMerge(e, t, n) : Io(e, t, n) : gt(t, n);
|
|
831
831
|
}
|
|
832
832
|
Ze.all = function(t, n) {
|
|
833
833
|
if (!Array.isArray(t))
|
|
@@ -836,8 +836,8 @@ Ze.all = function(t, n) {
|
|
|
836
836
|
return Ze(r, i, n);
|
|
837
837
|
}, {});
|
|
838
838
|
};
|
|
839
|
-
var
|
|
840
|
-
const
|
|
839
|
+
var Po = Ze, Ro = Po;
|
|
840
|
+
const Do = /* @__PURE__ */ In(Ro);
|
|
841
841
|
var xn = function(e, t) {
|
|
842
842
|
return xn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
843
843
|
n.__proto__ = r;
|
|
@@ -855,17 +855,17 @@ function qt(e, t) {
|
|
|
855
855
|
}
|
|
856
856
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
857
857
|
}
|
|
858
|
-
var
|
|
859
|
-
return
|
|
858
|
+
var we = function() {
|
|
859
|
+
return we = Object.assign || function(t) {
|
|
860
860
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
861
861
|
n = arguments[r];
|
|
862
|
-
for (var
|
|
863
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
862
|
+
for (var o in n)
|
|
863
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
864
864
|
}
|
|
865
865
|
return t;
|
|
866
|
-
},
|
|
866
|
+
}, we.apply(this, arguments);
|
|
867
867
|
};
|
|
868
|
-
function
|
|
868
|
+
function Bo(e, t) {
|
|
869
869
|
var n = {};
|
|
870
870
|
for (var r in e)
|
|
871
871
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -876,41 +876,41 @@ function Rs(e, t) {
|
|
|
876
876
|
}
|
|
877
877
|
function ln(e, t, n) {
|
|
878
878
|
if (n || arguments.length === 2)
|
|
879
|
-
for (var r = 0, i = t.length,
|
|
880
|
-
(
|
|
881
|
-
return e.concat(
|
|
879
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
880
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
881
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
882
882
|
}
|
|
883
883
|
function cn(e, t) {
|
|
884
|
-
var n = t && t.cache ? t.cache :
|
|
884
|
+
var n = t && t.cache ? t.cache : zo, r = t && t.serializer ? t.serializer : Go, i = t && t.strategy ? t.strategy : ko;
|
|
885
885
|
return i(e, {
|
|
886
886
|
cache: n,
|
|
887
887
|
serializer: r
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function $o(e) {
|
|
891
891
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
var i =
|
|
895
|
-
return typeof
|
|
893
|
+
function Uo(e, t, n, r) {
|
|
894
|
+
var i = $o(r) ? r : n(r), o = t.get(i);
|
|
895
|
+
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
896
896
|
}
|
|
897
|
-
function
|
|
898
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
899
|
-
return typeof
|
|
897
|
+
function oi(e, t, n) {
|
|
898
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
899
|
+
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
900
900
|
}
|
|
901
901
|
function si(e, t, n, r, i) {
|
|
902
902
|
return n.bind(t, e, r, i);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
var n = e.length === 1 ?
|
|
904
|
+
function ko(e, t) {
|
|
905
|
+
var n = e.length === 1 ? Uo : oi;
|
|
906
906
|
return si(e, this, n, t.cache.create(), t.serializer);
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
return si(e, this,
|
|
908
|
+
function Fo(e, t) {
|
|
909
|
+
return si(e, this, oi, t.cache.create(), t.serializer);
|
|
910
910
|
}
|
|
911
|
-
var
|
|
911
|
+
var Go = function() {
|
|
912
912
|
return JSON.stringify(arguments);
|
|
913
|
-
},
|
|
913
|
+
}, jo = (
|
|
914
914
|
/** @class */
|
|
915
915
|
function() {
|
|
916
916
|
function e() {
|
|
@@ -922,18 +922,18 @@ var ks = function() {
|
|
|
922
922
|
this.cache[t] = n;
|
|
923
923
|
}, e;
|
|
924
924
|
}()
|
|
925
|
-
),
|
|
925
|
+
), zo = {
|
|
926
926
|
create: function() {
|
|
927
|
-
return new
|
|
927
|
+
return new jo();
|
|
928
928
|
}
|
|
929
929
|
}, fn = {
|
|
930
|
-
variadic:
|
|
930
|
+
variadic: Fo
|
|
931
931
|
}, zt = function() {
|
|
932
932
|
return zt = Object.assign || function(t) {
|
|
933
933
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
934
934
|
n = arguments[r];
|
|
935
|
-
for (var
|
|
936
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
935
|
+
for (var o in n)
|
|
936
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
937
937
|
}
|
|
938
938
|
return t;
|
|
939
939
|
}, zt.apply(this, arguments);
|
|
@@ -953,40 +953,40 @@ var qe;
|
|
|
953
953
|
function hr(e) {
|
|
954
954
|
return e.type === X.literal;
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Wo(e) {
|
|
957
957
|
return e.type === X.argument;
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function ai(e) {
|
|
960
960
|
return e.type === X.number;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function ui(e) {
|
|
963
963
|
return e.type === X.date;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function li(e) {
|
|
966
966
|
return e.type === X.time;
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function ci(e) {
|
|
969
969
|
return e.type === X.select;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function fi(e) {
|
|
972
972
|
return e.type === X.plural;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Vo(e) {
|
|
975
975
|
return e.type === X.pound;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function hi(e) {
|
|
978
978
|
return e.type === X.tag;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function mi(e) {
|
|
981
981
|
return !!(e && typeof e == "object" && e.type === qe.number);
|
|
982
982
|
}
|
|
983
983
|
function vn(e) {
|
|
984
984
|
return !!(e && typeof e == "object" && e.type === qe.dateTime);
|
|
985
985
|
}
|
|
986
|
-
var
|
|
987
|
-
function
|
|
986
|
+
var di = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xo = /(?:[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;
|
|
987
|
+
function Yo(e) {
|
|
988
988
|
var t = {};
|
|
989
|
-
return e.replace(
|
|
989
|
+
return e.replace(Xo, function(n) {
|
|
990
990
|
var r = n.length;
|
|
991
991
|
switch (n[0]) {
|
|
992
992
|
case "G":
|
|
@@ -1079,20 +1079,20 @@ var Z = function() {
|
|
|
1079
1079
|
return Z = Object.assign || function(t) {
|
|
1080
1080
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1081
1081
|
n = arguments[r];
|
|
1082
|
-
for (var
|
|
1083
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
1082
|
+
for (var o in n)
|
|
1083
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1084
1084
|
}
|
|
1085
1085
|
return t;
|
|
1086
1086
|
}, Z.apply(this, arguments);
|
|
1087
1087
|
};
|
|
1088
|
-
var
|
|
1089
|
-
function
|
|
1088
|
+
var Zo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1089
|
+
function qo(e) {
|
|
1090
1090
|
if (e.length === 0)
|
|
1091
1091
|
throw new Error("Number skeleton cannot be empty");
|
|
1092
|
-
for (var t = e.split(
|
|
1092
|
+
for (var t = e.split(Zo).filter(function(y) {
|
|
1093
1093
|
return y.length > 0;
|
|
1094
1094
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1095
|
-
var
|
|
1095
|
+
var o = i[r], u = o.split("/");
|
|
1096
1096
|
if (u.length === 0)
|
|
1097
1097
|
throw new Error("Invalid number skeleton");
|
|
1098
1098
|
for (var a = u[0], c = u.slice(1), l = 0, f = c; l < f.length; l++) {
|
|
@@ -1104,17 +1104,17 @@ function Ys(e) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
return n;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Jo(e) {
|
|
1108
1108
|
return e.replace(/^(.*?)-/, "");
|
|
1109
1109
|
}
|
|
1110
|
-
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1110
|
+
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pi = /^(@+)?(\+|#+)?[rs]?$/g, Qo = /(\*)(0+)|(#+)(0+)|(0+)/g, gi = /^(0+)$/;
|
|
1111
1111
|
function dr(e) {
|
|
1112
1112
|
var t = {};
|
|
1113
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1113
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pi, function(n, r, i) {
|
|
1114
1114
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1115
1115
|
}), t;
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function _i(e) {
|
|
1118
1118
|
switch (e) {
|
|
1119
1119
|
case "sign-auto":
|
|
1120
1120
|
return {
|
|
@@ -1154,7 +1154,7 @@ function gi(e) {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Ko(e) {
|
|
1158
1158
|
var t;
|
|
1159
1159
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1160
1160
|
notation: "engineering"
|
|
@@ -1162,17 +1162,17 @@ function Js(e) {
|
|
|
1162
1162
|
notation: "scientific"
|
|
1163
1163
|
}, e = e.slice(1)), t) {
|
|
1164
1164
|
var n = e.slice(0, 2);
|
|
1165
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1165
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gi.test(e))
|
|
1166
1166
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1167
1167
|
t.minimumIntegerDigits = e.length;
|
|
1168
1168
|
}
|
|
1169
1169
|
return t;
|
|
1170
1170
|
}
|
|
1171
1171
|
function pr(e) {
|
|
1172
|
-
var t = {}, n =
|
|
1172
|
+
var t = {}, n = _i(e);
|
|
1173
1173
|
return n || t;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function es(e) {
|
|
1176
1176
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1177
1177
|
var i = r[n];
|
|
1178
1178
|
switch (i.stem) {
|
|
@@ -1196,7 +1196,7 @@ function Qs(e) {
|
|
|
1196
1196
|
continue;
|
|
1197
1197
|
case "measure-unit":
|
|
1198
1198
|
case "unit":
|
|
1199
|
-
t.style = "unit", t.unit =
|
|
1199
|
+
t.style = "unit", t.unit = Jo(i.options[0]);
|
|
1200
1200
|
continue;
|
|
1201
1201
|
case "compact-short":
|
|
1202
1202
|
case "K":
|
|
@@ -1258,7 +1258,7 @@ function Qs(e) {
|
|
|
1258
1258
|
case "integer-width":
|
|
1259
1259
|
if (i.options.length > 1)
|
|
1260
1260
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1261
|
-
i.options[0].replace(
|
|
1261
|
+
i.options[0].replace(Qo, function(c, l, f, _, y, M) {
|
|
1262
1262
|
if (l)
|
|
1263
1263
|
t.minimumIntegerDigits = f.length;
|
|
1264
1264
|
else {
|
|
@@ -1271,7 +1271,7 @@ function Qs(e) {
|
|
|
1271
1271
|
});
|
|
1272
1272
|
continue;
|
|
1273
1273
|
}
|
|
1274
|
-
if (
|
|
1274
|
+
if (gi.test(i.stem)) {
|
|
1275
1275
|
t.minimumIntegerDigits = i.stem.length;
|
|
1276
1276
|
continue;
|
|
1277
1277
|
}
|
|
@@ -1281,17 +1281,17 @@ function Qs(e) {
|
|
|
1281
1281
|
i.stem.replace(mr, function(c, l, f, _, y, M) {
|
|
1282
1282
|
return f === "*" ? t.minimumFractionDigits = l.length : _ && _[0] === "#" ? t.maximumFractionDigits = _.length : y && M ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + M.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1283
1283
|
});
|
|
1284
|
-
var
|
|
1285
|
-
|
|
1284
|
+
var o = i.options[0];
|
|
1285
|
+
o === "w" ? t = Z(Z({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = Z(Z({}, t), dr(o)));
|
|
1286
1286
|
continue;
|
|
1287
1287
|
}
|
|
1288
|
-
if (
|
|
1288
|
+
if (pi.test(i.stem)) {
|
|
1289
1289
|
t = Z(Z({}, t), dr(i.stem));
|
|
1290
1290
|
continue;
|
|
1291
1291
|
}
|
|
1292
|
-
var u =
|
|
1292
|
+
var u = _i(i.stem);
|
|
1293
1293
|
u && (t = Z(Z({}, t), u));
|
|
1294
|
-
var a =
|
|
1294
|
+
var a = Ko(i.stem);
|
|
1295
1295
|
a && (t = Z(Z({}, t), a));
|
|
1296
1296
|
}
|
|
1297
1297
|
return t;
|
|
@@ -2711,13 +2711,13 @@ var Mt = {
|
|
|
2711
2711
|
"h"
|
|
2712
2712
|
]
|
|
2713
2713
|
};
|
|
2714
|
-
function
|
|
2714
|
+
function ts(e, t) {
|
|
2715
2715
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2716
2716
|
var i = e.charAt(r);
|
|
2717
2717
|
if (i === "j") {
|
|
2718
|
-
for (var
|
|
2719
|
-
|
|
2720
|
-
var u = 1 + (
|
|
2718
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2719
|
+
o++, r++;
|
|
2720
|
+
var u = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = ns(t);
|
|
2721
2721
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2722
2722
|
n += c;
|
|
2723
2723
|
for (; u-- > 0; )
|
|
@@ -2727,7 +2727,7 @@ function Ks(e, t) {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
return n;
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function ns(e) {
|
|
2731
2731
|
var t = e.hourCycle;
|
|
2732
2732
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2733
2733
|
e.hourCycles && // @ts-ignore
|
|
@@ -2749,20 +2749,20 @@ function eo(e) {
|
|
|
2749
2749
|
var i = Mt[r || ""] || Mt[n || ""] || Mt["".concat(n, "-001")] || Mt["001"];
|
|
2750
2750
|
return i[0];
|
|
2751
2751
|
}
|
|
2752
|
-
var hn,
|
|
2752
|
+
var hn, rs = new RegExp("^".concat(di.source, "*")), is = new RegExp("".concat(di.source, "*$"));
|
|
2753
2753
|
function B(e, t) {
|
|
2754
2754
|
return { start: e, end: t };
|
|
2755
2755
|
}
|
|
2756
|
-
var
|
|
2756
|
+
var os = !!String.prototype.startsWith && "_a".startsWith("a", 1), ss = !!String.fromCodePoint, as = !!Object.fromEntries, us = !!String.prototype.codePointAt, ls = !!String.prototype.trimStart, cs = !!String.prototype.trimEnd, fs = !!Number.isSafeInteger, hs = fs ? Number.isSafeInteger : function(e) {
|
|
2757
2757
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2758
2758
|
}, Tn = !0;
|
|
2759
2759
|
try {
|
|
2760
|
-
var
|
|
2761
|
-
Tn = ((hn =
|
|
2760
|
+
var ms = Ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2761
|
+
Tn = ((hn = ms.exec("a")) === null || hn === void 0 ? void 0 : hn[0]) === "a";
|
|
2762
2762
|
} catch {
|
|
2763
2763
|
Tn = !1;
|
|
2764
2764
|
}
|
|
2765
|
-
var gr =
|
|
2765
|
+
var gr = os ? (
|
|
2766
2766
|
// Native
|
|
2767
2767
|
function(t, n, r) {
|
|
2768
2768
|
return t.startsWith(n, r);
|
|
@@ -2772,13 +2772,13 @@ var gr = ro ? (
|
|
|
2772
2772
|
function(t, n, r) {
|
|
2773
2773
|
return t.slice(r, r + n.length) === n;
|
|
2774
2774
|
}
|
|
2775
|
-
), Sn =
|
|
2775
|
+
), Sn = ss ? String.fromCodePoint : (
|
|
2776
2776
|
// IE11
|
|
2777
2777
|
function() {
|
|
2778
2778
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2779
2779
|
t[n] = arguments[n];
|
|
2780
|
-
for (var r = "", i = t.length,
|
|
2781
|
-
if (u = t[
|
|
2780
|
+
for (var r = "", i = t.length, o = 0, u; i > o; ) {
|
|
2781
|
+
if (u = t[o++], u > 1114111)
|
|
2782
2782
|
throw RangeError(u + " is not a valid code point");
|
|
2783
2783
|
r += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2784
2784
|
}
|
|
@@ -2786,17 +2786,17 @@ var gr = ro ? (
|
|
|
2786
2786
|
}
|
|
2787
2787
|
), _r = (
|
|
2788
2788
|
// native
|
|
2789
|
-
|
|
2789
|
+
as ? Object.fromEntries : (
|
|
2790
2790
|
// Ponyfill
|
|
2791
2791
|
function(t) {
|
|
2792
2792
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2793
|
-
var
|
|
2793
|
+
var o = i[r], u = o[0], a = o[1];
|
|
2794
2794
|
n[u] = a;
|
|
2795
2795
|
}
|
|
2796
2796
|
return n;
|
|
2797
2797
|
}
|
|
2798
2798
|
)
|
|
2799
|
-
),
|
|
2799
|
+
), bi = us ? (
|
|
2800
2800
|
// Native
|
|
2801
2801
|
function(t, n) {
|
|
2802
2802
|
return t.codePointAt(n);
|
|
@@ -2806,11 +2806,11 @@ var gr = ro ? (
|
|
|
2806
2806
|
function(t, n) {
|
|
2807
2807
|
var r = t.length;
|
|
2808
2808
|
if (!(n < 0 || n >= r)) {
|
|
2809
|
-
var i = t.charCodeAt(n),
|
|
2810
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2809
|
+
var i = t.charCodeAt(n), o;
|
|
2810
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
|
-
),
|
|
2813
|
+
), ds = ls ? (
|
|
2814
2814
|
// Native
|
|
2815
2815
|
function(t) {
|
|
2816
2816
|
return t.trimStart();
|
|
@@ -2818,9 +2818,9 @@ var gr = ro ? (
|
|
|
2818
2818
|
) : (
|
|
2819
2819
|
// Ponyfill
|
|
2820
2820
|
function(t) {
|
|
2821
|
-
return t.replace(
|
|
2821
|
+
return t.replace(rs, "");
|
|
2822
2822
|
}
|
|
2823
|
-
),
|
|
2823
|
+
), ps = cs ? (
|
|
2824
2824
|
// Native
|
|
2825
2825
|
function(t) {
|
|
2826
2826
|
return t.trimEnd();
|
|
@@ -2828,32 +2828,32 @@ var gr = ro ? (
|
|
|
2828
2828
|
) : (
|
|
2829
2829
|
// Ponyfill
|
|
2830
2830
|
function(t) {
|
|
2831
|
-
return t.replace(
|
|
2831
|
+
return t.replace(is, "");
|
|
2832
2832
|
}
|
|
2833
2833
|
);
|
|
2834
|
-
function
|
|
2834
|
+
function Ei(e, t) {
|
|
2835
2835
|
return new RegExp(e, t);
|
|
2836
2836
|
}
|
|
2837
|
-
var
|
|
2837
|
+
var wn;
|
|
2838
2838
|
if (Tn) {
|
|
2839
|
-
var br =
|
|
2840
|
-
|
|
2839
|
+
var br = Ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2840
|
+
wn = function(t, n) {
|
|
2841
2841
|
var r;
|
|
2842
2842
|
br.lastIndex = n;
|
|
2843
2843
|
var i = br.exec(t);
|
|
2844
2844
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2845
2845
|
};
|
|
2846
2846
|
} else
|
|
2847
|
-
|
|
2847
|
+
wn = function(t, n) {
|
|
2848
2848
|
for (var r = []; ; ) {
|
|
2849
|
-
var i =
|
|
2850
|
-
if (i === void 0 ||
|
|
2849
|
+
var i = bi(t, n);
|
|
2850
|
+
if (i === void 0 || yi(i) || Es(i))
|
|
2851
2851
|
break;
|
|
2852
2852
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2853
2853
|
}
|
|
2854
2854
|
return Sn.apply(void 0, r);
|
|
2855
2855
|
};
|
|
2856
|
-
var
|
|
2856
|
+
var gs = (
|
|
2857
2857
|
/** @class */
|
|
2858
2858
|
function() {
|
|
2859
2859
|
function e(t, n) {
|
|
@@ -2865,26 +2865,26 @@ var po = (
|
|
|
2865
2865
|
return this.parseMessage(0, "", !1);
|
|
2866
2866
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2867
2867
|
for (var i = []; !this.isEOF(); ) {
|
|
2868
|
-
var
|
|
2869
|
-
if (
|
|
2868
|
+
var o = this.char();
|
|
2869
|
+
if (o === 123) {
|
|
2870
2870
|
var u = this.parseArgument(t, r);
|
|
2871
2871
|
if (u.err)
|
|
2872
2872
|
return u;
|
|
2873
2873
|
i.push(u.val);
|
|
2874
2874
|
} else {
|
|
2875
|
-
if (
|
|
2875
|
+
if (o === 125 && t > 0)
|
|
2876
2876
|
break;
|
|
2877
|
-
if (
|
|
2877
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2878
2878
|
var a = this.clonePosition();
|
|
2879
2879
|
this.bump(), i.push({
|
|
2880
2880
|
type: X.pound,
|
|
2881
2881
|
location: B(a, this.clonePosition())
|
|
2882
2882
|
});
|
|
2883
|
-
} else if (
|
|
2883
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2884
2884
|
if (r)
|
|
2885
2885
|
break;
|
|
2886
2886
|
return this.error(D.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
|
|
2887
|
-
} else if (
|
|
2887
|
+
} else if (o === 60 && !this.ignoreTag && An(this.peek() || 0)) {
|
|
2888
2888
|
var u = this.parseTag(t, n);
|
|
2889
2889
|
if (u.err)
|
|
2890
2890
|
return u;
|
|
@@ -2912,12 +2912,12 @@ var po = (
|
|
|
2912
2912
|
err: null
|
|
2913
2913
|
};
|
|
2914
2914
|
if (this.bumpIf(">")) {
|
|
2915
|
-
var
|
|
2916
|
-
if (
|
|
2917
|
-
return
|
|
2918
|
-
var u =
|
|
2915
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2916
|
+
if (o.err)
|
|
2917
|
+
return o;
|
|
2918
|
+
var u = o.val, a = this.clonePosition();
|
|
2919
2919
|
if (this.bumpIf("</")) {
|
|
2920
|
-
if (this.isEOF() || !
|
|
2920
|
+
if (this.isEOF() || !An(this.char()))
|
|
2921
2921
|
return this.error(D.INVALID_TAG, B(a, this.clonePosition()));
|
|
2922
2922
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
2923
2923
|
return i !== l ? this.error(D.UNMATCHED_CLOSING_TAG, B(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2935,14 +2935,14 @@ var po = (
|
|
|
2935
2935
|
return this.error(D.INVALID_TAG, B(r, this.clonePosition()));
|
|
2936
2936
|
}, e.prototype.parseTagName = function() {
|
|
2937
2937
|
var t = this.offset();
|
|
2938
|
-
for (this.bump(); !this.isEOF() &&
|
|
2938
|
+
for (this.bump(); !this.isEOF() && bs(this.char()); )
|
|
2939
2939
|
this.bump();
|
|
2940
2940
|
return this.message.slice(t, this.offset());
|
|
2941
2941
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2942
2942
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2943
|
-
var
|
|
2944
|
-
if (
|
|
2945
|
-
i +=
|
|
2943
|
+
var o = this.tryParseQuote(n);
|
|
2944
|
+
if (o) {
|
|
2945
|
+
i += o;
|
|
2946
2946
|
continue;
|
|
2947
2947
|
}
|
|
2948
2948
|
var u = this.tryParseUnquoted(t, n);
|
|
@@ -2964,7 +2964,7 @@ var po = (
|
|
|
2964
2964
|
};
|
|
2965
2965
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2966
2966
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2967
|
-
!
|
|
2967
|
+
!_s(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2968
2968
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2969
2969
|
if (this.isEOF() || this.char() !== 39)
|
|
2970
2970
|
return null;
|
|
@@ -3032,12 +3032,12 @@ var po = (
|
|
|
3032
3032
|
return this.error(D.MALFORMED_ARGUMENT, B(r, this.clonePosition()));
|
|
3033
3033
|
}
|
|
3034
3034
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3035
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3035
|
+
var t = this.clonePosition(), n = this.offset(), r = wn(this.message, n), i = n + r.length;
|
|
3036
3036
|
this.bumpTo(i);
|
|
3037
|
-
var
|
|
3037
|
+
var o = this.clonePosition(), u = B(t, o);
|
|
3038
3038
|
return { value: r, location: u };
|
|
3039
3039
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3040
|
-
var
|
|
3040
|
+
var o, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
3041
3041
|
switch (a) {
|
|
3042
3042
|
case "":
|
|
3043
3043
|
return this.error(D.EXPECT_ARGUMENT_TYPE, B(u, c));
|
|
@@ -3051,7 +3051,7 @@ var po = (
|
|
|
3051
3051
|
var f = this.clonePosition(), _ = this.parseSimpleArgStyleIfPossible();
|
|
3052
3052
|
if (_.err)
|
|
3053
3053
|
return _;
|
|
3054
|
-
var y =
|
|
3054
|
+
var y = ps(_.val);
|
|
3055
3055
|
if (y.length === 0)
|
|
3056
3056
|
return this.error(D.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
|
|
3057
3057
|
var M = B(f, this.clonePosition());
|
|
@@ -3062,7 +3062,7 @@ var po = (
|
|
|
3062
3062
|
return b;
|
|
3063
3063
|
var d = B(i, this.clonePosition());
|
|
3064
3064
|
if (l && gr(l?.style, "::", 0)) {
|
|
3065
|
-
var C =
|
|
3065
|
+
var C = ds(l.style.slice(2));
|
|
3066
3066
|
if (a === "number") {
|
|
3067
3067
|
var _ = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3068
3068
|
return _.err ? _ : {
|
|
@@ -3073,12 +3073,12 @@ var po = (
|
|
|
3073
3073
|
if (C.length === 0)
|
|
3074
3074
|
return this.error(D.EXPECT_DATE_TIME_SKELETON, d);
|
|
3075
3075
|
var F = C;
|
|
3076
|
-
this.locale && (F =
|
|
3076
|
+
this.locale && (F = ts(C, this.locale));
|
|
3077
3077
|
var y = {
|
|
3078
3078
|
type: qe.dateTime,
|
|
3079
3079
|
pattern: F,
|
|
3080
3080
|
location: l.styleLocation,
|
|
3081
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3081
|
+
parsedOptions: this.shouldParseSkeletons ? Yo(F) : {}
|
|
3082
3082
|
}, $ = a === "date" ? X.date : X.time;
|
|
3083
3083
|
return {
|
|
3084
3084
|
val: { type: $, value: r, location: d, style: y },
|
|
@@ -3091,7 +3091,7 @@ var po = (
|
|
|
3091
3091
|
type: a === "number" ? X.number : a === "date" ? X.date : X.time,
|
|
3092
3092
|
value: r,
|
|
3093
3093
|
location: d,
|
|
3094
|
-
style: (
|
|
3094
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3095
3095
|
},
|
|
3096
3096
|
err: null
|
|
3097
3097
|
};
|
|
@@ -3099,9 +3099,9 @@ var po = (
|
|
|
3099
3099
|
case "plural":
|
|
3100
3100
|
case "selectordinal":
|
|
3101
3101
|
case "select": {
|
|
3102
|
-
var
|
|
3102
|
+
var w = this.clonePosition();
|
|
3103
3103
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3104
|
-
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(
|
|
3104
|
+
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(w, zt({}, w)));
|
|
3105
3105
|
this.bumpSpace();
|
|
3106
3106
|
var H = this.parseIdentifierIfPossible(), R = 0;
|
|
3107
3107
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3183,7 +3183,7 @@ var po = (
|
|
|
3183
3183
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3184
3184
|
var r = [];
|
|
3185
3185
|
try {
|
|
3186
|
-
r =
|
|
3186
|
+
r = qo(t);
|
|
3187
3187
|
} catch {
|
|
3188
3188
|
return this.error(D.INVALID_NUMBER_SKELETON, n);
|
|
3189
3189
|
}
|
|
@@ -3192,12 +3192,12 @@ var po = (
|
|
|
3192
3192
|
type: qe.number,
|
|
3193
3193
|
tokens: r,
|
|
3194
3194
|
location: n,
|
|
3195
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3195
|
+
parsedOptions: this.shouldParseSkeletons ? es(r) : {}
|
|
3196
3196
|
},
|
|
3197
3197
|
err: null
|
|
3198
3198
|
};
|
|
3199
3199
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3200
|
-
for (var
|
|
3200
|
+
for (var o, u = !1, a = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
3201
3201
|
if (l.length === 0) {
|
|
3202
3202
|
var _ = this.clonePosition();
|
|
3203
3203
|
if (n !== "select" && this.bumpIf("=")) {
|
|
@@ -3226,21 +3226,21 @@ var po = (
|
|
|
3226
3226
|
value: b.val,
|
|
3227
3227
|
location: B(M, this.clonePosition())
|
|
3228
3228
|
}
|
|
3229
|
-
]), c.add(l), this.bumpSpace(),
|
|
3229
|
+
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
|
|
3230
3230
|
}
|
|
3231
3231
|
return a.length === 0 ? this.error(n === "select" ? D.EXPECT_SELECT_ARGUMENT_SELECTOR : D.EXPECT_PLURAL_ARGUMENT_SELECTOR, B(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(D.MISSING_OTHER_CLAUSE, B(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3232
3232
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3233
3233
|
var r = 1, i = this.clonePosition();
|
|
3234
3234
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3235
|
-
for (var
|
|
3235
|
+
for (var o = !1, u = 0; !this.isEOF(); ) {
|
|
3236
3236
|
var a = this.char();
|
|
3237
3237
|
if (a >= 48 && a <= 57)
|
|
3238
|
-
|
|
3238
|
+
o = !0, u = u * 10 + (a - 48), this.bump();
|
|
3239
3239
|
else
|
|
3240
3240
|
break;
|
|
3241
3241
|
}
|
|
3242
3242
|
var c = B(i, this.clonePosition());
|
|
3243
|
-
return
|
|
3243
|
+
return o ? (u *= r, hs(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3244
3244
|
}, e.prototype.offset = function() {
|
|
3245
3245
|
return this.position.offset;
|
|
3246
3246
|
}, e.prototype.isEOF = function() {
|
|
@@ -3255,7 +3255,7 @@ var po = (
|
|
|
3255
3255
|
var t = this.position.offset;
|
|
3256
3256
|
if (t >= this.message.length)
|
|
3257
3257
|
throw Error("out of bound");
|
|
3258
|
-
var n =
|
|
3258
|
+
var n = bi(this.message, t);
|
|
3259
3259
|
if (n === void 0)
|
|
3260
3260
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3261
3261
|
return n;
|
|
@@ -3296,7 +3296,7 @@ var po = (
|
|
|
3296
3296
|
break;
|
|
3297
3297
|
}
|
|
3298
3298
|
}, e.prototype.bumpSpace = function() {
|
|
3299
|
-
for (; !this.isEOF() &&
|
|
3299
|
+
for (; !this.isEOF() && yi(this.char()); )
|
|
3300
3300
|
this.bump();
|
|
3301
3301
|
}, e.prototype.peek = function() {
|
|
3302
3302
|
if (this.isEOF())
|
|
@@ -3306,33 +3306,33 @@ var po = (
|
|
|
3306
3306
|
}, e;
|
|
3307
3307
|
}()
|
|
3308
3308
|
);
|
|
3309
|
-
function
|
|
3309
|
+
function An(e) {
|
|
3310
3310
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3311
3311
|
}
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3312
|
+
function _s(e) {
|
|
3313
|
+
return An(e) || e === 47;
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3315
|
+
function bs(e) {
|
|
3316
3316
|
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;
|
|
3317
3317
|
}
|
|
3318
|
-
function
|
|
3318
|
+
function yi(e) {
|
|
3319
3319
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3320
3320
|
}
|
|
3321
|
-
function
|
|
3321
|
+
function Es(e) {
|
|
3322
3322
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3323
3323
|
}
|
|
3324
3324
|
function On(e) {
|
|
3325
3325
|
e.forEach(function(t) {
|
|
3326
|
-
if (delete t.location,
|
|
3326
|
+
if (delete t.location, ci(t) || fi(t))
|
|
3327
3327
|
for (var n in t.options)
|
|
3328
3328
|
delete t.options[n].location, On(t.options[n].value);
|
|
3329
3329
|
else
|
|
3330
|
-
|
|
3330
|
+
ai(t) && mi(t.style) || (ui(t) || li(t)) && vn(t.style) ? delete t.style.location : hi(t) && On(t.children);
|
|
3331
3331
|
});
|
|
3332
3332
|
}
|
|
3333
|
-
function
|
|
3333
|
+
function ys(e, t) {
|
|
3334
3334
|
t === void 0 && (t = {}), t = zt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3335
|
-
var n = new
|
|
3335
|
+
var n = new gs(e, t).parse();
|
|
3336
3336
|
if (n.err) {
|
|
3337
3337
|
var r = SyntaxError(D[n.err.kind]);
|
|
3338
3338
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
@@ -3348,8 +3348,8 @@ var Jt = (
|
|
|
3348
3348
|
function(e) {
|
|
3349
3349
|
qt(t, e);
|
|
3350
3350
|
function t(n, r, i) {
|
|
3351
|
-
var
|
|
3352
|
-
return
|
|
3351
|
+
var o = e.call(this, n) || this;
|
|
3352
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3353
3353
|
}
|
|
3354
3354
|
return t.prototype.toString = function() {
|
|
3355
3355
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3359,12 +3359,12 @@ var Jt = (
|
|
|
3359
3359
|
/** @class */
|
|
3360
3360
|
function(e) {
|
|
3361
3361
|
qt(t, e);
|
|
3362
|
-
function t(n, r, i,
|
|
3363
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Je.INVALID_VALUE,
|
|
3362
|
+
function t(n, r, i, o) {
|
|
3363
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Je.INVALID_VALUE, o) || this;
|
|
3364
3364
|
}
|
|
3365
3365
|
return t;
|
|
3366
3366
|
}(Jt)
|
|
3367
|
-
),
|
|
3367
|
+
), xs = (
|
|
3368
3368
|
/** @class */
|
|
3369
3369
|
function(e) {
|
|
3370
3370
|
qt(t, e);
|
|
@@ -3373,7 +3373,7 @@ var Jt = (
|
|
|
3373
3373
|
}
|
|
3374
3374
|
return t;
|
|
3375
3375
|
}(Jt)
|
|
3376
|
-
),
|
|
3376
|
+
), vs = (
|
|
3377
3377
|
/** @class */
|
|
3378
3378
|
function(e) {
|
|
3379
3379
|
qt(t, e);
|
|
@@ -3386,16 +3386,16 @@ var Jt = (
|
|
|
3386
3386
|
(function(e) {
|
|
3387
3387
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3388
3388
|
})(ce || (ce = {}));
|
|
3389
|
-
function
|
|
3389
|
+
function Ts(e) {
|
|
3390
3390
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3391
3391
|
var r = t[t.length - 1];
|
|
3392
3392
|
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
3393
3393
|
}, []);
|
|
3394
3394
|
}
|
|
3395
|
-
function
|
|
3395
|
+
function Ss(e) {
|
|
3396
3396
|
return typeof e == "function";
|
|
3397
3397
|
}
|
|
3398
|
-
function Bt(e, t, n, r, i,
|
|
3398
|
+
function Bt(e, t, n, r, i, o, u) {
|
|
3399
3399
|
if (e.length === 1 && hr(e[0]))
|
|
3400
3400
|
return [
|
|
3401
3401
|
{
|
|
@@ -3412,25 +3412,25 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3412
3412
|
});
|
|
3413
3413
|
continue;
|
|
3414
3414
|
}
|
|
3415
|
-
if (
|
|
3416
|
-
typeof
|
|
3415
|
+
if (Vo(f)) {
|
|
3416
|
+
typeof o == "number" && a.push({
|
|
3417
3417
|
type: ce.literal,
|
|
3418
|
-
value: n.getNumberFormat(t).format(
|
|
3418
|
+
value: n.getNumberFormat(t).format(o)
|
|
3419
3419
|
});
|
|
3420
3420
|
continue;
|
|
3421
3421
|
}
|
|
3422
3422
|
var _ = f.value;
|
|
3423
3423
|
if (!(i && _ in i))
|
|
3424
|
-
throw new
|
|
3424
|
+
throw new vs(_, u);
|
|
3425
3425
|
var y = i[_];
|
|
3426
|
-
if (
|
|
3426
|
+
if (Wo(f)) {
|
|
3427
3427
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3428
3428
|
type: typeof y == "string" ? ce.literal : ce.object,
|
|
3429
3429
|
value: y
|
|
3430
3430
|
});
|
|
3431
3431
|
continue;
|
|
3432
3432
|
}
|
|
3433
|
-
if (
|
|
3433
|
+
if (ui(f)) {
|
|
3434
3434
|
var M = typeof f.style == "string" ? r.date[f.style] : vn(f.style) ? f.style.parsedOptions : void 0;
|
|
3435
3435
|
a.push({
|
|
3436
3436
|
type: ce.literal,
|
|
@@ -3438,7 +3438,7 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3438
3438
|
});
|
|
3439
3439
|
continue;
|
|
3440
3440
|
}
|
|
3441
|
-
if (
|
|
3441
|
+
if (li(f)) {
|
|
3442
3442
|
var M = typeof f.style == "string" ? r.time[f.style] : vn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3443
3443
|
a.push({
|
|
3444
3444
|
type: ce.literal,
|
|
@@ -3446,19 +3446,19 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3446
3446
|
});
|
|
3447
3447
|
continue;
|
|
3448
3448
|
}
|
|
3449
|
-
if (
|
|
3450
|
-
var M = typeof f.style == "string" ? r.number[f.style] :
|
|
3449
|
+
if (ai(f)) {
|
|
3450
|
+
var M = typeof f.style == "string" ? r.number[f.style] : mi(f.style) ? f.style.parsedOptions : void 0;
|
|
3451
3451
|
M && M.scale && (y = y * (M.scale || 1)), a.push({
|
|
3452
3452
|
type: ce.literal,
|
|
3453
3453
|
value: n.getNumberFormat(t, M).format(y)
|
|
3454
3454
|
});
|
|
3455
3455
|
continue;
|
|
3456
3456
|
}
|
|
3457
|
-
if (
|
|
3457
|
+
if (hi(f)) {
|
|
3458
3458
|
var b = f.children, d = f.value, C = i[d];
|
|
3459
|
-
if (!
|
|
3460
|
-
throw new
|
|
3461
|
-
var F = Bt(b, t, n, r, i,
|
|
3459
|
+
if (!Ss(C))
|
|
3460
|
+
throw new xs(d, "function", u);
|
|
3461
|
+
var F = Bt(b, t, n, r, i, o), $ = C(F.map(function(R) {
|
|
3462
3462
|
return R.value;
|
|
3463
3463
|
}));
|
|
3464
3464
|
Array.isArray($) || ($ = [$]), a.push.apply(a, $.map(function(R) {
|
|
@@ -3468,40 +3468,40 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3468
3468
|
};
|
|
3469
3469
|
}));
|
|
3470
3470
|
}
|
|
3471
|
-
if (
|
|
3472
|
-
var
|
|
3473
|
-
if (!
|
|
3471
|
+
if (ci(f)) {
|
|
3472
|
+
var w = f.options[y] || f.options.other;
|
|
3473
|
+
if (!w)
|
|
3474
3474
|
throw new Er(f.value, y, Object.keys(f.options), u);
|
|
3475
|
-
a.push.apply(a, Bt(
|
|
3475
|
+
a.push.apply(a, Bt(w.value, t, n, r, i));
|
|
3476
3476
|
continue;
|
|
3477
3477
|
}
|
|
3478
|
-
if (
|
|
3479
|
-
var
|
|
3480
|
-
if (!
|
|
3478
|
+
if (fi(f)) {
|
|
3479
|
+
var w = f.options["=".concat(y)];
|
|
3480
|
+
if (!w) {
|
|
3481
3481
|
if (!Intl.PluralRules)
|
|
3482
3482
|
throw new Jt(`Intl.PluralRules is not available in this environment.
|
|
3483
3483
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3484
3484
|
`, Je.MISSING_INTL_API, u);
|
|
3485
3485
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3486
|
-
|
|
3486
|
+
w = f.options[H] || f.options.other;
|
|
3487
3487
|
}
|
|
3488
|
-
if (!
|
|
3488
|
+
if (!w)
|
|
3489
3489
|
throw new Er(f.value, y, Object.keys(f.options), u);
|
|
3490
|
-
a.push.apply(a, Bt(
|
|
3490
|
+
a.push.apply(a, Bt(w.value, t, n, r, i, y - (f.offset || 0)));
|
|
3491
3491
|
continue;
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
|
-
return
|
|
3494
|
+
return Ts(a);
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return t ?
|
|
3498
|
-
return n[r] =
|
|
3496
|
+
function ws(e, t) {
|
|
3497
|
+
return t ? we(we(we({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3498
|
+
return n[r] = we(we({}, e[r]), t[r] || {}), n;
|
|
3499
3499
|
}, {})) : e;
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function As(e, t) {
|
|
3502
3502
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3503
|
-
return n[r] =
|
|
3504
|
-
},
|
|
3503
|
+
return n[r] = ws(e[r], t[r]), n;
|
|
3504
|
+
}, we({}, e)) : e;
|
|
3505
3505
|
}
|
|
3506
3506
|
function mn(e) {
|
|
3507
3507
|
return {
|
|
@@ -3517,7 +3517,7 @@ function mn(e) {
|
|
|
3517
3517
|
}
|
|
3518
3518
|
};
|
|
3519
3519
|
}
|
|
3520
|
-
function
|
|
3520
|
+
function Os(e) {
|
|
3521
3521
|
return e === void 0 && (e = {
|
|
3522
3522
|
number: {},
|
|
3523
3523
|
dateTime: {},
|
|
@@ -3549,18 +3549,18 @@ function wo(e) {
|
|
|
3549
3549
|
})
|
|
3550
3550
|
};
|
|
3551
3551
|
}
|
|
3552
|
-
var
|
|
3552
|
+
var xi = (
|
|
3553
3553
|
/** @class */
|
|
3554
3554
|
function() {
|
|
3555
3555
|
function e(t, n, r, i) {
|
|
3556
3556
|
n === void 0 && (n = e.defaultLocale);
|
|
3557
|
-
var
|
|
3557
|
+
var o = this;
|
|
3558
3558
|
if (this.formatterCache = {
|
|
3559
3559
|
number: {},
|
|
3560
3560
|
dateTime: {},
|
|
3561
3561
|
pluralRules: {}
|
|
3562
3562
|
}, this.format = function(c) {
|
|
3563
|
-
var l =
|
|
3563
|
+
var l = o.formatToParts(c);
|
|
3564
3564
|
if (l.length === 1)
|
|
3565
3565
|
return l[0].value;
|
|
3566
3566
|
var f = l.reduce(function(_, y) {
|
|
@@ -3568,26 +3568,26 @@ var yi = (
|
|
|
3568
3568
|
}, []);
|
|
3569
3569
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3570
3570
|
}, this.formatToParts = function(c) {
|
|
3571
|
-
return Bt(
|
|
3571
|
+
return Bt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3572
3572
|
}, this.resolvedOptions = function() {
|
|
3573
3573
|
var c;
|
|
3574
3574
|
return {
|
|
3575
|
-
locale: ((c =
|
|
3575
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3576
3576
|
};
|
|
3577
3577
|
}, this.getAst = function() {
|
|
3578
|
-
return
|
|
3578
|
+
return o.ast;
|
|
3579
3579
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3580
3580
|
if (this.message = t, !e.__parse)
|
|
3581
3581
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3582
3582
|
var u = i || {};
|
|
3583
3583
|
u.formatters;
|
|
3584
|
-
var a =
|
|
3585
|
-
this.ast = e.__parse(t,
|
|
3584
|
+
var a = Bo(u, ["formatters"]);
|
|
3585
|
+
this.ast = e.__parse(t, we(we({}, a), { locale: this.resolvedLocale }));
|
|
3586
3586
|
} else
|
|
3587
3587
|
this.ast = t;
|
|
3588
3588
|
if (!Array.isArray(this.ast))
|
|
3589
3589
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3590
|
-
this.formats =
|
|
3590
|
+
this.formats = As(e.formats, r), this.formatters = i && i.formatters || Os(this.formatterCache);
|
|
3591
3591
|
}
|
|
3592
3592
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3593
3593
|
get: function() {
|
|
@@ -3600,7 +3600,7 @@ var yi = (
|
|
|
3600
3600
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3601
3601
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3602
3602
|
}
|
|
3603
|
-
}, e.__parse =
|
|
3603
|
+
}, e.__parse = ys, e.formats = {
|
|
3604
3604
|
number: {
|
|
3605
3605
|
integer: {
|
|
3606
3606
|
maximumFractionDigits: 0
|
|
@@ -3661,7 +3661,7 @@ var yi = (
|
|
|
3661
3661
|
}, e;
|
|
3662
3662
|
}()
|
|
3663
3663
|
);
|
|
3664
|
-
function
|
|
3664
|
+
function Ms(e, t) {
|
|
3665
3665
|
if (t == null)
|
|
3666
3666
|
return;
|
|
3667
3667
|
if (t in e)
|
|
@@ -3671,9 +3671,9 @@ function Oo(e, t) {
|
|
|
3671
3671
|
for (let i = 0; i < n.length; i++)
|
|
3672
3672
|
if (typeof r == "object") {
|
|
3673
3673
|
if (i > 0) {
|
|
3674
|
-
const
|
|
3675
|
-
if (
|
|
3676
|
-
r = r[
|
|
3674
|
+
const o = n.slice(i, n.length).join(".");
|
|
3675
|
+
if (o in r) {
|
|
3676
|
+
r = r[o];
|
|
3677
3677
|
break;
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
@@ -3682,44 +3682,44 @@ function Oo(e, t) {
|
|
|
3682
3682
|
r = void 0;
|
|
3683
3683
|
return r;
|
|
3684
3684
|
}
|
|
3685
|
-
const He = {},
|
|
3685
|
+
const He = {}, Cs = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), vi = (e, t) => {
|
|
3686
3686
|
if (t == null)
|
|
3687
3687
|
return;
|
|
3688
3688
|
if (t in He && e in He[t])
|
|
3689
3689
|
return He[t][e];
|
|
3690
3690
|
const n = yt(t);
|
|
3691
3691
|
for (let r = 0; r < n.length; r++) {
|
|
3692
|
-
const i = n[r],
|
|
3693
|
-
if (
|
|
3694
|
-
return
|
|
3692
|
+
const i = n[r], o = Ns(i, e);
|
|
3693
|
+
if (o)
|
|
3694
|
+
return Cs(e, t, o);
|
|
3695
3695
|
}
|
|
3696
3696
|
};
|
|
3697
3697
|
let Pn;
|
|
3698
3698
|
const Et = bt({});
|
|
3699
|
-
function
|
|
3699
|
+
function Ls(e) {
|
|
3700
3700
|
return Pn[e] || null;
|
|
3701
3701
|
}
|
|
3702
|
-
function
|
|
3702
|
+
function Ti(e) {
|
|
3703
3703
|
return e in Pn;
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3706
|
-
if (!
|
|
3705
|
+
function Ns(e, t) {
|
|
3706
|
+
if (!Ti(e))
|
|
3707
3707
|
return null;
|
|
3708
|
-
const n =
|
|
3709
|
-
return
|
|
3708
|
+
const n = Ls(e);
|
|
3709
|
+
return Ms(n, t);
|
|
3710
3710
|
}
|
|
3711
|
-
function
|
|
3711
|
+
function Hs(e) {
|
|
3712
3712
|
if (e == null)
|
|
3713
3713
|
return;
|
|
3714
3714
|
const t = yt(e);
|
|
3715
3715
|
for (let n = 0; n < t.length; n++) {
|
|
3716
3716
|
const r = t[n];
|
|
3717
|
-
if (
|
|
3717
|
+
if (Ti(r))
|
|
3718
3718
|
return r;
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
|
-
function
|
|
3722
|
-
delete He[e], Et.update((n) => (n[e] =
|
|
3721
|
+
function Si(e, ...t) {
|
|
3722
|
+
delete He[e], Et.update((n) => (n[e] = Do.all([n[e] || {}, ...t]), n));
|
|
3723
3723
|
}
|
|
3724
3724
|
et(
|
|
3725
3725
|
[Et],
|
|
@@ -3727,15 +3727,15 @@ et(
|
|
|
3727
3727
|
);
|
|
3728
3728
|
Et.subscribe((e) => Pn = e);
|
|
3729
3729
|
const $t = {};
|
|
3730
|
-
function
|
|
3730
|
+
function Is(e, t) {
|
|
3731
3731
|
$t[e].delete(t), $t[e].size === 0 && delete $t[e];
|
|
3732
3732
|
}
|
|
3733
|
-
function
|
|
3733
|
+
function wi(e) {
|
|
3734
3734
|
return $t[e];
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3736
|
+
function Ps(e) {
|
|
3737
3737
|
return yt(e).map((t) => {
|
|
3738
|
-
const n =
|
|
3738
|
+
const n = wi(t);
|
|
3739
3739
|
return [t, n ? [...n] : []];
|
|
3740
3740
|
}).filter(([, t]) => t.length > 0);
|
|
3741
3741
|
}
|
|
@@ -3743,40 +3743,40 @@ function Wt(e) {
|
|
|
3743
3743
|
return e == null ? !1 : yt(e).some(
|
|
3744
3744
|
(t) => {
|
|
3745
3745
|
var n;
|
|
3746
|
-
return (n =
|
|
3746
|
+
return (n = wi(t)) == null ? void 0 : n.size;
|
|
3747
3747
|
}
|
|
3748
3748
|
);
|
|
3749
3749
|
}
|
|
3750
|
-
function
|
|
3750
|
+
function Rs(e, t) {
|
|
3751
3751
|
return Promise.all(
|
|
3752
|
-
t.map((r) => (
|
|
3753
|
-
).then((r) =>
|
|
3752
|
+
t.map((r) => (Is(e, r), r().then((i) => i.default || i)))
|
|
3753
|
+
).then((r) => Si(e, ...r));
|
|
3754
3754
|
}
|
|
3755
|
-
const
|
|
3755
|
+
const st = {};
|
|
3756
3756
|
function Ai(e) {
|
|
3757
3757
|
if (!Wt(e))
|
|
3758
|
-
return e in
|
|
3759
|
-
const t =
|
|
3760
|
-
return
|
|
3758
|
+
return e in st ? st[e] : Promise.resolve();
|
|
3759
|
+
const t = Ps(e);
|
|
3760
|
+
return st[e] = Promise.all(
|
|
3761
3761
|
t.map(
|
|
3762
|
-
([n, r]) =>
|
|
3762
|
+
([n, r]) => Rs(n, r)
|
|
3763
3763
|
)
|
|
3764
3764
|
).then(() => {
|
|
3765
3765
|
if (Wt(e))
|
|
3766
3766
|
return Ai(e);
|
|
3767
|
-
delete
|
|
3768
|
-
}),
|
|
3767
|
+
delete st[e];
|
|
3768
|
+
}), st[e];
|
|
3769
3769
|
}
|
|
3770
|
-
var yr = Object.getOwnPropertySymbols,
|
|
3770
|
+
var yr = Object.getOwnPropertySymbols, Ds = Object.prototype.hasOwnProperty, Bs = Object.prototype.propertyIsEnumerable, $s = (e, t) => {
|
|
3771
3771
|
var n = {};
|
|
3772
3772
|
for (var r in e)
|
|
3773
|
-
|
|
3773
|
+
Ds.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3774
3774
|
if (e != null && yr)
|
|
3775
3775
|
for (var r of yr(e))
|
|
3776
|
-
t.indexOf(r) < 0 &&
|
|
3776
|
+
t.indexOf(r) < 0 && Bs.call(e, r) && (n[r] = e[r]);
|
|
3777
3777
|
return n;
|
|
3778
3778
|
};
|
|
3779
|
-
const
|
|
3779
|
+
const Us = {
|
|
3780
3780
|
number: {
|
|
3781
3781
|
scientific: { notation: "scientific" },
|
|
3782
3782
|
engineering: { notation: "engineering" },
|
|
@@ -3806,7 +3806,7 @@ const $o = {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
};
|
|
3809
|
-
function
|
|
3809
|
+
function ks({ locale: e, id: t }) {
|
|
3810
3810
|
console.warn(
|
|
3811
3811
|
`[svelte-i18n] The message "${t}" was not found in "${yt(
|
|
3812
3812
|
e
|
|
@@ -3815,41 +3815,41 @@ function Uo({ locale: e, id: t }) {
|
|
|
3815
3815
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3816
3816
|
);
|
|
3817
3817
|
}
|
|
3818
|
-
const
|
|
3818
|
+
const Fs = {
|
|
3819
3819
|
fallbackLocale: null,
|
|
3820
3820
|
loadingDelay: 200,
|
|
3821
|
-
formats:
|
|
3821
|
+
formats: Us,
|
|
3822
3822
|
warnOnMissingMessages: !0,
|
|
3823
3823
|
handleMissingMessage: void 0,
|
|
3824
3824
|
ignoreTag: !0
|
|
3825
|
-
}, mt =
|
|
3825
|
+
}, mt = Fs;
|
|
3826
3826
|
function Qe() {
|
|
3827
3827
|
return mt;
|
|
3828
3828
|
}
|
|
3829
|
-
function
|
|
3830
|
-
const t = e, { formats: n } = t, r =
|
|
3829
|
+
function Gs(e) {
|
|
3830
|
+
const t = e, { formats: n } = t, r = $s(t, ["formats"]);
|
|
3831
3831
|
let i = e.fallbackLocale;
|
|
3832
3832
|
if (e.initialLocale)
|
|
3833
3833
|
try {
|
|
3834
|
-
|
|
3834
|
+
xi.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3835
3835
|
} catch {
|
|
3836
3836
|
console.warn(
|
|
3837
3837
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3838
3838
|
);
|
|
3839
3839
|
}
|
|
3840
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3840
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = ks : console.warn(
|
|
3841
3841
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3842
3842
|
)), Object.assign(mt, r, { initialLocale: i }), n && ("number" in n && Object.assign(mt.formats.number, n.number), "date" in n && Object.assign(mt.formats.date, n.date), "time" in n && Object.assign(mt.formats.time, n.time)), Be.set(i);
|
|
3843
3843
|
}
|
|
3844
3844
|
const dn = bt(!1);
|
|
3845
|
-
var
|
|
3845
|
+
var js = Object.defineProperty, zs = Object.defineProperties, Ws = Object.getOwnPropertyDescriptors, xr = Object.getOwnPropertySymbols, Vs = Object.prototype.hasOwnProperty, Xs = Object.prototype.propertyIsEnumerable, vr = (e, t, n) => t in e ? js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ys = (e, t) => {
|
|
3846
3846
|
for (var n in t || (t = {}))
|
|
3847
|
-
|
|
3847
|
+
Vs.call(t, n) && vr(e, n, t[n]);
|
|
3848
3848
|
if (xr)
|
|
3849
3849
|
for (var n of xr(t))
|
|
3850
|
-
|
|
3850
|
+
Xs.call(t, n) && vr(e, n, t[n]);
|
|
3851
3851
|
return e;
|
|
3852
|
-
},
|
|
3852
|
+
}, Zs = (e, t) => zs(e, Ws(t));
|
|
3853
3853
|
let Mn;
|
|
3854
3854
|
const Vt = bt(null);
|
|
3855
3855
|
function Tr(e) {
|
|
@@ -3865,8 +3865,8 @@ function Pe() {
|
|
|
3865
3865
|
Vt.subscribe((e) => {
|
|
3866
3866
|
Mn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3867
3867
|
});
|
|
3868
|
-
const
|
|
3869
|
-
if (e &&
|
|
3868
|
+
const qs = (e) => {
|
|
3869
|
+
if (e && Hs(e) && Wt(e)) {
|
|
3870
3870
|
const { loadingDelay: t } = Qe();
|
|
3871
3871
|
let n;
|
|
3872
3872
|
return typeof window < "u" && Pe() != null && t ? n = window.setTimeout(
|
|
@@ -3879,8 +3879,8 @@ const Zo = (e) => {
|
|
|
3879
3879
|
});
|
|
3880
3880
|
}
|
|
3881
3881
|
return Vt.set(e);
|
|
3882
|
-
}, Be =
|
|
3883
|
-
set:
|
|
3882
|
+
}, Be = Zs(Ys({}, Vt), {
|
|
3883
|
+
set: qs
|
|
3884
3884
|
}), Qt = (e) => {
|
|
3885
3885
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3886
3886
|
return (r) => {
|
|
@@ -3888,20 +3888,20 @@ const Zo = (e) => {
|
|
|
3888
3888
|
return i in t ? t[i] : t[i] = e(r);
|
|
3889
3889
|
};
|
|
3890
3890
|
};
|
|
3891
|
-
var
|
|
3891
|
+
var Js = Object.defineProperty, Xt = Object.getOwnPropertySymbols, Oi = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Sr = (e, t, n) => t in e ? Js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Rn = (e, t) => {
|
|
3892
3892
|
for (var n in t || (t = {}))
|
|
3893
|
-
|
|
3893
|
+
Oi.call(t, n) && Sr(e, n, t[n]);
|
|
3894
3894
|
if (Xt)
|
|
3895
3895
|
for (var n of Xt(t))
|
|
3896
|
-
|
|
3896
|
+
Mi.call(t, n) && Sr(e, n, t[n]);
|
|
3897
3897
|
return e;
|
|
3898
3898
|
}, tt = (e, t) => {
|
|
3899
3899
|
var n = {};
|
|
3900
3900
|
for (var r in e)
|
|
3901
|
-
|
|
3901
|
+
Oi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3902
3902
|
if (e != null && Xt)
|
|
3903
3903
|
for (var r of Xt(e))
|
|
3904
|
-
t.indexOf(r) < 0 &&
|
|
3904
|
+
t.indexOf(r) < 0 && Mi.call(e, r) && (n[r] = e[r]);
|
|
3905
3905
|
return n;
|
|
3906
3906
|
};
|
|
3907
3907
|
const _t = (e, t) => {
|
|
@@ -3909,21 +3909,21 @@ const _t = (e, t) => {
|
|
|
3909
3909
|
if (e in n && t in n[e])
|
|
3910
3910
|
return n[e][t];
|
|
3911
3911
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3912
|
-
},
|
|
3912
|
+
}, Qs = Qt(
|
|
3913
3913
|
(e) => {
|
|
3914
3914
|
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3915
3915
|
if (n == null)
|
|
3916
3916
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3917
3917
|
return r && (i = _t("number", r)), new Intl.NumberFormat(n, i);
|
|
3918
3918
|
}
|
|
3919
|
-
),
|
|
3919
|
+
), Ks = Qt(
|
|
3920
3920
|
(e) => {
|
|
3921
3921
|
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3922
3922
|
if (n == null)
|
|
3923
3923
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3924
3924
|
return r ? i = _t("date", r) : Object.keys(i).length === 0 && (i = _t("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3925
3925
|
}
|
|
3926
|
-
),
|
|
3926
|
+
), ea = Qt(
|
|
3927
3927
|
(e) => {
|
|
3928
3928
|
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3929
3929
|
if (n == null)
|
|
@@ -3932,34 +3932,34 @@ const _t = (e, t) => {
|
|
|
3932
3932
|
);
|
|
3933
3933
|
return r ? i = _t("time", r) : Object.keys(i).length === 0 && (i = _t("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3934
3934
|
}
|
|
3935
|
-
),
|
|
3935
|
+
), ta = (e = {}) => {
|
|
3936
3936
|
var t = e, {
|
|
3937
3937
|
locale: n = Pe()
|
|
3938
3938
|
} = t, r = tt(t, [
|
|
3939
3939
|
"locale"
|
|
3940
3940
|
]);
|
|
3941
|
-
return
|
|
3942
|
-
},
|
|
3941
|
+
return Qs(Rn({ locale: n }, r));
|
|
3942
|
+
}, na = (e = {}) => {
|
|
3943
3943
|
var t = e, {
|
|
3944
3944
|
locale: n = Pe()
|
|
3945
3945
|
} = t, r = tt(t, [
|
|
3946
3946
|
"locale"
|
|
3947
3947
|
]);
|
|
3948
|
-
return
|
|
3949
|
-
},
|
|
3948
|
+
return Ks(Rn({ locale: n }, r));
|
|
3949
|
+
}, ra = (e = {}) => {
|
|
3950
3950
|
var t = e, {
|
|
3951
3951
|
locale: n = Pe()
|
|
3952
3952
|
} = t, r = tt(t, [
|
|
3953
3953
|
"locale"
|
|
3954
3954
|
]);
|
|
3955
|
-
return
|
|
3956
|
-
},
|
|
3955
|
+
return ea(Rn({ locale: n }, r));
|
|
3956
|
+
}, ia = Qt(
|
|
3957
3957
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3958
|
-
(e, t = Pe()) => new
|
|
3958
|
+
(e, t = Pe()) => new xi(e, t, Qe().formats, {
|
|
3959
3959
|
ignoreTag: Qe().ignoreTag
|
|
3960
3960
|
})
|
|
3961
|
-
),
|
|
3962
|
-
var n, r, i,
|
|
3961
|
+
), oa = (e, t = {}) => {
|
|
3962
|
+
var n, r, i, o;
|
|
3963
3963
|
let u = t;
|
|
3964
3964
|
typeof e == "object" && (u = e, e = u.id);
|
|
3965
3965
|
const {
|
|
@@ -3971,9 +3971,9 @@ const _t = (e, t) => {
|
|
|
3971
3971
|
throw new Error(
|
|
3972
3972
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3973
3973
|
);
|
|
3974
|
-
let f =
|
|
3974
|
+
let f = vi(e, c);
|
|
3975
3975
|
if (!f)
|
|
3976
|
-
f = (
|
|
3976
|
+
f = (o = (i = (r = (n = Qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3977
3977
|
else if (typeof f != "string")
|
|
3978
3978
|
return console.warn(
|
|
3979
3979
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3982,7 +3982,7 @@ const _t = (e, t) => {
|
|
|
3982
3982
|
return f;
|
|
3983
3983
|
let _ = f;
|
|
3984
3984
|
try {
|
|
3985
|
-
_ =
|
|
3985
|
+
_ = ia(f, c).format(a);
|
|
3986
3986
|
} catch (y) {
|
|
3987
3987
|
y instanceof Error && console.warn(
|
|
3988
3988
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3990,20 +3990,20 @@ const _t = (e, t) => {
|
|
|
3990
3990
|
);
|
|
3991
3991
|
}
|
|
3992
3992
|
return _;
|
|
3993
|
-
}, sa = (e, t) =>
|
|
3993
|
+
}, sa = (e, t) => ra(t).format(e), aa = (e, t) => na(t).format(e), ua = (e, t) => ta(t).format(e), la = (e, t = Pe()) => vi(e, t), ca = et([Be, Et], () => oa);
|
|
3994
3994
|
et([Be], () => sa);
|
|
3995
|
-
et([Be], () => oa);
|
|
3996
3995
|
et([Be], () => aa);
|
|
3997
|
-
et([Be
|
|
3998
|
-
|
|
3999
|
-
|
|
3996
|
+
et([Be], () => ua);
|
|
3997
|
+
et([Be, Et], () => la);
|
|
3998
|
+
function wr(e, t) {
|
|
3999
|
+
Si(e, t);
|
|
4000
4000
|
}
|
|
4001
|
-
function
|
|
4002
|
-
|
|
4001
|
+
function fa(e) {
|
|
4002
|
+
Gs({
|
|
4003
4003
|
fallbackLocale: "en"
|
|
4004
4004
|
}), Be.set(e);
|
|
4005
4005
|
}
|
|
4006
|
-
const
|
|
4006
|
+
const Ar = {
|
|
4007
4007
|
en: {
|
|
4008
4008
|
sessionExpirationHeader: "Session Warning",
|
|
4009
4009
|
sessionExpirationTitle: "Your session is about to expire!",
|
|
@@ -4028,16 +4028,16 @@ const wr = {
|
|
|
4028
4028
|
};
|
|
4029
4029
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
4030
4030
|
const {
|
|
4031
|
-
entries:
|
|
4031
|
+
entries: Ci,
|
|
4032
4032
|
setPrototypeOf: Or,
|
|
4033
|
-
isFrozen:
|
|
4034
|
-
getPrototypeOf:
|
|
4035
|
-
getOwnPropertyDescriptor:
|
|
4033
|
+
isFrozen: ha,
|
|
4034
|
+
getPrototypeOf: ma,
|
|
4035
|
+
getOwnPropertyDescriptor: da
|
|
4036
4036
|
} = Object;
|
|
4037
4037
|
let {
|
|
4038
4038
|
freeze: fe,
|
|
4039
|
-
seal:
|
|
4040
|
-
create:
|
|
4039
|
+
seal: _e,
|
|
4040
|
+
create: Li
|
|
4041
4041
|
} = Object, {
|
|
4042
4042
|
apply: Cn,
|
|
4043
4043
|
construct: Ln
|
|
@@ -4045,7 +4045,7 @@ let {
|
|
|
4045
4045
|
fe || (fe = function(t) {
|
|
4046
4046
|
return t;
|
|
4047
4047
|
});
|
|
4048
|
-
|
|
4048
|
+
_e || (_e = function(t) {
|
|
4049
4049
|
return t;
|
|
4050
4050
|
});
|
|
4051
4051
|
Cn || (Cn = function(t, n, r) {
|
|
@@ -4054,7 +4054,7 @@ Cn || (Cn = function(t, n, r) {
|
|
|
4054
4054
|
Ln || (Ln = function(t, n) {
|
|
4055
4055
|
return new t(...n);
|
|
4056
4056
|
});
|
|
4057
|
-
const Ct = pe(Array.prototype.forEach), Mr = pe(Array.prototype.pop), at = pe(Array.prototype.push), Ut = pe(String.prototype.toLowerCase), pn = pe(String.prototype.toString), Cr = pe(String.prototype.match), ut = pe(String.prototype.replace),
|
|
4057
|
+
const Ct = pe(Array.prototype.forEach), Mr = pe(Array.prototype.pop), at = pe(Array.prototype.push), Ut = pe(String.prototype.toLowerCase), pn = pe(String.prototype.toString), Cr = pe(String.prototype.match), ut = pe(String.prototype.replace), pa = pe(String.prototype.indexOf), ga = pe(String.prototype.trim), xe = pe(Object.prototype.hasOwnProperty), ue = pe(RegExp.prototype.test), lt = _a(TypeError);
|
|
4058
4058
|
function pe(e) {
|
|
4059
4059
|
return function(t) {
|
|
4060
4060
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
@@ -4062,7 +4062,7 @@ function pe(e) {
|
|
|
4062
4062
|
return Cn(e, t, r);
|
|
4063
4063
|
};
|
|
4064
4064
|
}
|
|
4065
|
-
function
|
|
4065
|
+
function _a(e) {
|
|
4066
4066
|
return function() {
|
|
4067
4067
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4068
4068
|
n[r] = arguments[r];
|
|
@@ -4076,59 +4076,59 @@ function P(e, t) {
|
|
|
4076
4076
|
for (; r--; ) {
|
|
4077
4077
|
let i = t[r];
|
|
4078
4078
|
if (typeof i == "string") {
|
|
4079
|
-
const
|
|
4080
|
-
|
|
4079
|
+
const o = n(i);
|
|
4080
|
+
o !== i && (ha(t) || (t[r] = o), i = o);
|
|
4081
4081
|
}
|
|
4082
4082
|
e[i] = !0;
|
|
4083
4083
|
}
|
|
4084
4084
|
return e;
|
|
4085
4085
|
}
|
|
4086
|
-
function
|
|
4086
|
+
function ba(e) {
|
|
4087
4087
|
for (let t = 0; t < e.length; t++)
|
|
4088
4088
|
xe(e, t) || (e[t] = null);
|
|
4089
4089
|
return e;
|
|
4090
4090
|
}
|
|
4091
4091
|
function De(e) {
|
|
4092
|
-
const t =
|
|
4093
|
-
for (const [n, r] of
|
|
4094
|
-
xe(e, n) && (Array.isArray(r) ? t[n] =
|
|
4092
|
+
const t = Li(null);
|
|
4093
|
+
for (const [n, r] of Ci(e))
|
|
4094
|
+
xe(e, n) && (Array.isArray(r) ? t[n] = ba(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = De(r) : t[n] = r);
|
|
4095
4095
|
return t;
|
|
4096
4096
|
}
|
|
4097
4097
|
function ct(e, t) {
|
|
4098
4098
|
for (; e !== null; ) {
|
|
4099
|
-
const r =
|
|
4099
|
+
const r = da(e, t);
|
|
4100
4100
|
if (r) {
|
|
4101
4101
|
if (r.get)
|
|
4102
4102
|
return pe(r.get);
|
|
4103
4103
|
if (typeof r.value == "function")
|
|
4104
4104
|
return pe(r.value);
|
|
4105
4105
|
}
|
|
4106
|
-
e =
|
|
4106
|
+
e = ma(e);
|
|
4107
4107
|
}
|
|
4108
4108
|
function n() {
|
|
4109
4109
|
return null;
|
|
4110
4110
|
}
|
|
4111
4111
|
return n;
|
|
4112
4112
|
}
|
|
4113
|
-
const Lr = fe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), gn = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), _n = fe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
4113
|
+
const Lr = fe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), gn = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), _n = fe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ea = fe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), bn = fe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ya = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Nr = fe(["#text"]), Hr = fe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), En = fe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ir = fe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Lt = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xa = _e(/\{\{[\w\W]*|[\w\W]*\}\}/gm), va = _e(/<%[\w\W]*|[\w\W]*%>/gm), Ta = _e(/\${[\w\W]*}/gm), Sa = _e(/^data-[\-\w.\u00B7-\uFFFF]/), wa = _e(/^aria-[\-\w]+$/), Ni = _e(
|
|
4114
4114
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4115
4115
|
// eslint-disable-line no-useless-escape
|
|
4116
|
-
), Aa =
|
|
4116
|
+
), Aa = _e(/^(?:\w+script|data):/i), Oa = _e(
|
|
4117
4117
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4118
4118
|
// eslint-disable-line no-control-regex
|
|
4119
|
-
),
|
|
4119
|
+
), Hi = _e(/^html$/i), Ma = _e(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4120
4120
|
var Pr = /* @__PURE__ */ Object.freeze({
|
|
4121
4121
|
__proto__: null,
|
|
4122
|
-
MUSTACHE_EXPR:
|
|
4123
|
-
ERB_EXPR:
|
|
4124
|
-
TMPLIT_EXPR:
|
|
4125
|
-
DATA_ATTR:
|
|
4126
|
-
ARIA_ATTR:
|
|
4127
|
-
IS_ALLOWED_URI:
|
|
4122
|
+
MUSTACHE_EXPR: xa,
|
|
4123
|
+
ERB_EXPR: va,
|
|
4124
|
+
TMPLIT_EXPR: Ta,
|
|
4125
|
+
DATA_ATTR: Sa,
|
|
4126
|
+
ARIA_ATTR: wa,
|
|
4127
|
+
IS_ALLOWED_URI: Ni,
|
|
4128
4128
|
IS_SCRIPT_OR_DATA: Aa,
|
|
4129
|
-
ATTR_WHITESPACE:
|
|
4130
|
-
DOCTYPE_NAME:
|
|
4131
|
-
CUSTOM_ELEMENT:
|
|
4129
|
+
ATTR_WHITESPACE: Oa,
|
|
4130
|
+
DOCTYPE_NAME: Hi,
|
|
4131
|
+
CUSTOM_ELEMENT: Ma
|
|
4132
4132
|
});
|
|
4133
4133
|
const ft = {
|
|
4134
4134
|
element: 1,
|
|
@@ -4137,17 +4137,17 @@ const ft = {
|
|
|
4137
4137
|
progressingInstruction: 7,
|
|
4138
4138
|
comment: 8,
|
|
4139
4139
|
document: 9
|
|
4140
|
-
},
|
|
4140
|
+
}, Ca = function() {
|
|
4141
4141
|
return typeof window > "u" ? null : window;
|
|
4142
|
-
},
|
|
4142
|
+
}, La = function(t, n) {
|
|
4143
4143
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4144
4144
|
return null;
|
|
4145
4145
|
let r = null;
|
|
4146
4146
|
const i = "data-tt-policy-suffix";
|
|
4147
4147
|
n && n.hasAttribute(i) && (r = n.getAttribute(i));
|
|
4148
|
-
const
|
|
4148
|
+
const o = "dompurify" + (r ? "#" + r : "");
|
|
4149
4149
|
try {
|
|
4150
|
-
return t.createPolicy(
|
|
4150
|
+
return t.createPolicy(o, {
|
|
4151
4151
|
createHTML(u) {
|
|
4152
4152
|
return u;
|
|
4153
4153
|
},
|
|
@@ -4156,19 +4156,19 @@ const ft = {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
});
|
|
4158
4158
|
} catch {
|
|
4159
|
-
return console.warn("TrustedTypes policy " +
|
|
4159
|
+
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
4160
4160
|
}
|
|
4161
4161
|
};
|
|
4162
|
-
function
|
|
4163
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4164
|
-
const t = (
|
|
4162
|
+
function Ii() {
|
|
4163
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ca();
|
|
4164
|
+
const t = (A) => Ii(A);
|
|
4165
4165
|
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== ft.document)
|
|
4166
4166
|
return t.isSupported = !1, t;
|
|
4167
4167
|
let {
|
|
4168
4168
|
document: n
|
|
4169
4169
|
} = e;
|
|
4170
4170
|
const r = n, i = r.currentScript, {
|
|
4171
|
-
DocumentFragment:
|
|
4171
|
+
DocumentFragment: o,
|
|
4172
4172
|
HTMLTemplateElement: u,
|
|
4173
4173
|
Node: a,
|
|
4174
4174
|
Element: c,
|
|
@@ -4177,10 +4177,10 @@ function Hi() {
|
|
|
4177
4177
|
HTMLFormElement: _,
|
|
4178
4178
|
DOMParser: y,
|
|
4179
4179
|
trustedTypes: M
|
|
4180
|
-
} = e, b = c.prototype, d = ct(b, "cloneNode"), C = ct(b, "remove"), F = ct(b, "nextSibling"), $ = ct(b, "childNodes"),
|
|
4180
|
+
} = e, b = c.prototype, d = ct(b, "cloneNode"), C = ct(b, "remove"), F = ct(b, "nextSibling"), $ = ct(b, "childNodes"), w = ct(b, "parentNode");
|
|
4181
4181
|
if (typeof u == "function") {
|
|
4182
|
-
const
|
|
4183
|
-
|
|
4182
|
+
const A = n.createElement("template");
|
|
4183
|
+
A.content && A.content.ownerDocument && (n = A.content.ownerDocument);
|
|
4184
4184
|
}
|
|
4185
4185
|
let H, R = "";
|
|
4186
4186
|
const {
|
|
@@ -4192,9 +4192,9 @@ function Hi() {
|
|
|
4192
4192
|
importNode: G
|
|
4193
4193
|
} = r;
|
|
4194
4194
|
let O = {};
|
|
4195
|
-
t.isSupported = typeof
|
|
4195
|
+
t.isSupported = typeof Ci == "function" && typeof w == "function" && U && U.createHTMLDocument !== void 0;
|
|
4196
4196
|
const {
|
|
4197
|
-
MUSTACHE_EXPR:
|
|
4197
|
+
MUSTACHE_EXPR: te,
|
|
4198
4198
|
ERB_EXPR: he,
|
|
4199
4199
|
TMPLIT_EXPR: T,
|
|
4200
4200
|
DATA_ATTR: E,
|
|
@@ -4206,10 +4206,10 @@ function Hi() {
|
|
|
4206
4206
|
let {
|
|
4207
4207
|
IS_ALLOWED_URI: L
|
|
4208
4208
|
} = Pr, N = null;
|
|
4209
|
-
const
|
|
4209
|
+
const j = P({}, [...Lr, ...gn, ..._n, ...bn, ...Nr]);
|
|
4210
4210
|
let I = null;
|
|
4211
4211
|
const q = P({}, [...Hr, ...En, ...Ir, ...Lt]);
|
|
4212
|
-
let m = Object.seal(
|
|
4212
|
+
let m = Object.seal(Li(null, {
|
|
4213
4213
|
tagNameCheck: {
|
|
4214
4214
|
writable: !0,
|
|
4215
4215
|
configurable: !1,
|
|
@@ -4228,70 +4228,70 @@ function Hi() {
|
|
|
4228
4228
|
enumerable: !0,
|
|
4229
4229
|
value: !1
|
|
4230
4230
|
}
|
|
4231
|
-
})), k = null, ee = null, K = !0, Ee = !0, ie = !1, ye = !0,
|
|
4232
|
-
const
|
|
4231
|
+
})), k = null, ee = null, K = !0, Ee = !0, ie = !1, ye = !0, ge = !1, Le = !0, Re = !1, Kt = !1, en = !1, $e = !1, xt = !1, vt = !1, Dn = !0, Bn = !1;
|
|
4232
|
+
const Di = "user-content-";
|
|
4233
4233
|
let tn = !0, nt = !1, Ue = {}, ke = null;
|
|
4234
4234
|
const $n = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4235
4235
|
let Un = null;
|
|
4236
4236
|
const kn = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4237
4237
|
let nn = null;
|
|
4238
|
-
const Fn = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Tt = "http://www.w3.org/1998/Math/MathML", St = "http://www.w3.org/2000/svg",
|
|
4239
|
-
let Fe =
|
|
4240
|
-
const
|
|
4238
|
+
const Fn = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Tt = "http://www.w3.org/1998/Math/MathML", St = "http://www.w3.org/2000/svg", Ae = "http://www.w3.org/1999/xhtml";
|
|
4239
|
+
let Fe = Ae, rn = !1, on = null;
|
|
4240
|
+
const Bi = P({}, [Tt, St, Ae], pn);
|
|
4241
4241
|
let rt = null;
|
|
4242
|
-
const
|
|
4243
|
-
let
|
|
4244
|
-
const
|
|
4245
|
-
return
|
|
4246
|
-
},
|
|
4247
|
-
let
|
|
4248
|
-
if (!(Ge && Ge ===
|
|
4249
|
-
if ((!
|
|
4250
|
-
|
|
4242
|
+
const $i = ["application/xhtml+xml", "text/html"], Ui = "text/html";
|
|
4243
|
+
let ne = null, Ge = null;
|
|
4244
|
+
const ki = n.createElement("form"), Gn = function(s) {
|
|
4245
|
+
return s instanceof RegExp || s instanceof Function;
|
|
4246
|
+
}, sn = function() {
|
|
4247
|
+
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4248
|
+
if (!(Ge && Ge === s)) {
|
|
4249
|
+
if ((!s || typeof s != "object") && (s = {}), s = De(s), rt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4250
|
+
$i.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ui : s.PARSER_MEDIA_TYPE, ne = rt === "application/xhtml+xml" ? pn : Ut, N = xe(s, "ALLOWED_TAGS") ? P({}, s.ALLOWED_TAGS, ne) : j, I = xe(s, "ALLOWED_ATTR") ? P({}, s.ALLOWED_ATTR, ne) : q, on = xe(s, "ALLOWED_NAMESPACES") ? P({}, s.ALLOWED_NAMESPACES, pn) : Bi, nn = xe(s, "ADD_URI_SAFE_ATTR") ? P(
|
|
4251
4251
|
De(Fn),
|
|
4252
4252
|
// eslint-disable-line indent
|
|
4253
|
-
|
|
4253
|
+
s.ADD_URI_SAFE_ATTR,
|
|
4254
4254
|
// eslint-disable-line indent
|
|
4255
|
-
|
|
4255
|
+
ne
|
|
4256
4256
|
// eslint-disable-line indent
|
|
4257
|
-
) : Fn, Un = xe(
|
|
4257
|
+
) : Fn, Un = xe(s, "ADD_DATA_URI_TAGS") ? P(
|
|
4258
4258
|
De(kn),
|
|
4259
4259
|
// eslint-disable-line indent
|
|
4260
|
-
|
|
4260
|
+
s.ADD_DATA_URI_TAGS,
|
|
4261
4261
|
// eslint-disable-line indent
|
|
4262
|
-
|
|
4262
|
+
ne
|
|
4263
4263
|
// eslint-disable-line indent
|
|
4264
|
-
) : kn, ke = xe(
|
|
4265
|
-
if (typeof
|
|
4264
|
+
) : kn, ke = xe(s, "FORBID_CONTENTS") ? P({}, s.FORBID_CONTENTS, ne) : $n, k = xe(s, "FORBID_TAGS") ? P({}, s.FORBID_TAGS, ne) : {}, ee = xe(s, "FORBID_ATTR") ? P({}, s.FORBID_ATTR, ne) : {}, Ue = xe(s, "USE_PROFILES") ? s.USE_PROFILES : !1, K = s.ALLOW_ARIA_ATTR !== !1, Ee = s.ALLOW_DATA_ATTR !== !1, ie = s.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ge = s.SAFE_FOR_TEMPLATES || !1, Le = s.SAFE_FOR_XML !== !1, Re = s.WHOLE_DOCUMENT || !1, $e = s.RETURN_DOM || !1, xt = s.RETURN_DOM_FRAGMENT || !1, vt = s.RETURN_TRUSTED_TYPE || !1, en = s.FORCE_BODY || !1, Dn = s.SANITIZE_DOM !== !1, Bn = s.SANITIZE_NAMED_PROPS || !1, tn = s.KEEP_CONTENT !== !1, nt = s.IN_PLACE || !1, L = s.ALLOWED_URI_REGEXP || Ni, Fe = s.NAMESPACE || Ae, m = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ge && (Ee = !1), xt && ($e = !0), Ue && (N = P({}, Nr), I = [], Ue.html === !0 && (P(N, Lr), P(I, Hr)), Ue.svg === !0 && (P(N, gn), P(I, En), P(I, Lt)), Ue.svgFilters === !0 && (P(N, _n), P(I, En), P(I, Lt)), Ue.mathMl === !0 && (P(N, bn), P(I, Ir), P(I, Lt))), s.ADD_TAGS && (N === j && (N = De(N)), P(N, s.ADD_TAGS, ne)), s.ADD_ATTR && (I === q && (I = De(I)), P(I, s.ADD_ATTR, ne)), s.ADD_URI_SAFE_ATTR && P(nn, s.ADD_URI_SAFE_ATTR, ne), s.FORBID_CONTENTS && (ke === $n && (ke = De(ke)), P(ke, s.FORBID_CONTENTS, ne)), tn && (N["#text"] = !0), Re && P(N, ["html", "head", "body"]), N.table && (P(N, ["tbody"]), delete k.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4265
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4266
4266
|
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4267
|
-
if (typeof
|
|
4267
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4268
4268
|
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4269
|
-
H =
|
|
4269
|
+
H = s.TRUSTED_TYPES_POLICY, R = H.createHTML("");
|
|
4270
4270
|
} else
|
|
4271
|
-
H === void 0 && (H =
|
|
4272
|
-
fe && fe(
|
|
4271
|
+
H === void 0 && (H = La(M, i)), H !== null && typeof R == "string" && (R = H.createHTML(""));
|
|
4272
|
+
fe && fe(s), Ge = s;
|
|
4273
4273
|
}
|
|
4274
|
-
}, jn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = P({}, ["foreignobject", "annotation-xml"]),
|
|
4275
|
-
let p =
|
|
4274
|
+
}, jn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = P({}, ["foreignobject", "annotation-xml"]), Fi = P({}, ["title", "style", "font", "a", "script"]), Wn = P({}, [...gn, ..._n, ...Ea]), Vn = P({}, [...bn, ...ya]), Gi = function(s) {
|
|
4275
|
+
let p = w(s);
|
|
4276
4276
|
(!p || !p.tagName) && (p = {
|
|
4277
4277
|
namespaceURI: Fe,
|
|
4278
4278
|
tagName: "template"
|
|
4279
4279
|
});
|
|
4280
|
-
const S = Ut(
|
|
4281
|
-
return
|
|
4282
|
-
}, ve = function(
|
|
4280
|
+
const S = Ut(s.tagName), z = Ut(p.tagName);
|
|
4281
|
+
return on[s.namespaceURI] ? s.namespaceURI === St ? p.namespaceURI === Ae ? S === "svg" : p.namespaceURI === Tt ? S === "svg" && (z === "annotation-xml" || jn[z]) : !!Wn[S] : s.namespaceURI === Tt ? p.namespaceURI === Ae ? S === "math" : p.namespaceURI === St ? S === "math" && zn[z] : !!Vn[S] : s.namespaceURI === Ae ? p.namespaceURI === St && !zn[z] || p.namespaceURI === Tt && !jn[z] ? !1 : !Vn[S] && (Fi[S] || !Wn[S]) : !!(rt === "application/xhtml+xml" && on[s.namespaceURI]) : !1;
|
|
4282
|
+
}, ve = function(s) {
|
|
4283
4283
|
at(t.removed, {
|
|
4284
|
-
element:
|
|
4284
|
+
element: s
|
|
4285
4285
|
});
|
|
4286
4286
|
try {
|
|
4287
|
-
|
|
4287
|
+
w(s).removeChild(s);
|
|
4288
4288
|
} catch {
|
|
4289
|
-
C(
|
|
4289
|
+
C(s);
|
|
4290
4290
|
}
|
|
4291
|
-
},
|
|
4291
|
+
}, wt = function(s, p) {
|
|
4292
4292
|
try {
|
|
4293
4293
|
at(t.removed, {
|
|
4294
|
-
attribute: p.getAttributeNode(
|
|
4294
|
+
attribute: p.getAttributeNode(s),
|
|
4295
4295
|
from: p
|
|
4296
4296
|
});
|
|
4297
4297
|
} catch {
|
|
@@ -4300,7 +4300,7 @@ function Hi() {
|
|
|
4300
4300
|
from: p
|
|
4301
4301
|
});
|
|
4302
4302
|
}
|
|
4303
|
-
if (p.removeAttribute(
|
|
4303
|
+
if (p.removeAttribute(s), s === "is" && !I[s])
|
|
4304
4304
|
if ($e || xt)
|
|
4305
4305
|
try {
|
|
4306
4306
|
ve(p);
|
|
@@ -4308,81 +4308,81 @@ function Hi() {
|
|
|
4308
4308
|
}
|
|
4309
4309
|
else
|
|
4310
4310
|
try {
|
|
4311
|
-
p.setAttribute(
|
|
4311
|
+
p.setAttribute(s, "");
|
|
4312
4312
|
} catch {
|
|
4313
4313
|
}
|
|
4314
|
-
}, Xn = function(
|
|
4314
|
+
}, Xn = function(s) {
|
|
4315
4315
|
let p = null, S = null;
|
|
4316
4316
|
if (en)
|
|
4317
|
-
|
|
4317
|
+
s = "<remove></remove>" + s;
|
|
4318
4318
|
else {
|
|
4319
|
-
const
|
|
4320
|
-
S =
|
|
4319
|
+
const oe = Cr(s, /^[\r\n\t ]+/);
|
|
4320
|
+
S = oe && oe[0];
|
|
4321
4321
|
}
|
|
4322
|
-
rt === "application/xhtml+xml" && Fe ===
|
|
4323
|
-
const
|
|
4324
|
-
if (Fe ===
|
|
4322
|
+
rt === "application/xhtml+xml" && Fe === Ae && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4323
|
+
const z = H ? H.createHTML(s) : s;
|
|
4324
|
+
if (Fe === Ae)
|
|
4325
4325
|
try {
|
|
4326
|
-
p = new y().parseFromString(
|
|
4326
|
+
p = new y().parseFromString(z, rt);
|
|
4327
4327
|
} catch {
|
|
4328
4328
|
}
|
|
4329
4329
|
if (!p || !p.documentElement) {
|
|
4330
4330
|
p = U.createDocument(Fe, "template", null);
|
|
4331
4331
|
try {
|
|
4332
|
-
p.documentElement.innerHTML = rn ? R :
|
|
4332
|
+
p.documentElement.innerHTML = rn ? R : z;
|
|
4333
4333
|
} catch {
|
|
4334
4334
|
}
|
|
4335
4335
|
}
|
|
4336
|
-
const
|
|
4337
|
-
return
|
|
4338
|
-
}, Yn = function(
|
|
4336
|
+
const se = p.body || p.documentElement;
|
|
4337
|
+
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null), Fe === Ae ? Q.call(p, Re ? "html" : "body")[0] : Re ? p.documentElement : se;
|
|
4338
|
+
}, Yn = function(s) {
|
|
4339
4339
|
return Y.call(
|
|
4340
|
-
|
|
4341
|
-
|
|
4340
|
+
s.ownerDocument || s,
|
|
4341
|
+
s,
|
|
4342
4342
|
// eslint-disable-next-line no-bitwise
|
|
4343
4343
|
l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
|
|
4344
4344
|
null
|
|
4345
4345
|
);
|
|
4346
|
-
}, Zn = function(
|
|
4347
|
-
return
|
|
4348
|
-
}, qn = function(
|
|
4349
|
-
return typeof a == "function" &&
|
|
4350
|
-
},
|
|
4351
|
-
O[
|
|
4352
|
-
|
|
4346
|
+
}, Zn = function(s) {
|
|
4347
|
+
return s instanceof _ && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof f) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
4348
|
+
}, qn = function(s) {
|
|
4349
|
+
return typeof a == "function" && s instanceof a;
|
|
4350
|
+
}, Oe = function(s, p, S) {
|
|
4351
|
+
O[s] && Ct(O[s], (z) => {
|
|
4352
|
+
z.call(t, p, S, Ge);
|
|
4353
4353
|
});
|
|
4354
|
-
}, Jn = function(
|
|
4354
|
+
}, Jn = function(s) {
|
|
4355
4355
|
let p = null;
|
|
4356
|
-
if (
|
|
4357
|
-
return ve(
|
|
4358
|
-
const S =
|
|
4359
|
-
if (
|
|
4356
|
+
if (Oe("beforeSanitizeElements", s, null), Zn(s))
|
|
4357
|
+
return ve(s), !0;
|
|
4358
|
+
const S = ne(s.nodeName);
|
|
4359
|
+
if (Oe("uponSanitizeElement", s, {
|
|
4360
4360
|
tagName: S,
|
|
4361
4361
|
allowedTags: N
|
|
4362
|
-
}),
|
|
4363
|
-
return ve(
|
|
4362
|
+
}), s.hasChildNodes() && !qn(s.firstElementChild) && ue(/<[/\w]/g, s.innerHTML) && ue(/<[/\w]/g, s.textContent) || s.nodeType === ft.progressingInstruction || Le && s.nodeType === ft.comment && ue(/<[/\w]/g, s.data))
|
|
4363
|
+
return ve(s), !0;
|
|
4364
4364
|
if (!N[S] || k[S]) {
|
|
4365
4365
|
if (!k[S] && Kn(S) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4366
4366
|
return !1;
|
|
4367
4367
|
if (tn && !ke[S]) {
|
|
4368
|
-
const
|
|
4369
|
-
if (
|
|
4370
|
-
const
|
|
4371
|
-
for (let me =
|
|
4372
|
-
const Te = d(
|
|
4373
|
-
Te.__removalCount = (
|
|
4368
|
+
const z = w(s) || s.parentNode, se = $(s) || s.childNodes;
|
|
4369
|
+
if (se && z) {
|
|
4370
|
+
const oe = se.length;
|
|
4371
|
+
for (let me = oe - 1; me >= 0; --me) {
|
|
4372
|
+
const Te = d(se[me], !0);
|
|
4373
|
+
Te.__removalCount = (s.__removalCount || 0) + 1, z.insertBefore(Te, F(s));
|
|
4374
4374
|
}
|
|
4375
4375
|
}
|
|
4376
4376
|
}
|
|
4377
|
-
return ve(
|
|
4377
|
+
return ve(s), !0;
|
|
4378
4378
|
}
|
|
4379
|
-
return
|
|
4380
|
-
p = ut(p,
|
|
4381
|
-
}),
|
|
4382
|
-
element:
|
|
4383
|
-
}),
|
|
4384
|
-
}, Qn = function(
|
|
4385
|
-
if (Dn && (p === "id" || p === "name") && (S in n || S in
|
|
4379
|
+
return s instanceof c && !Gi(s) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, s.innerHTML) ? (ve(s), !0) : (ge && s.nodeType === ft.text && (p = s.textContent, Ct([te, he, T], (z) => {
|
|
4380
|
+
p = ut(p, z, " ");
|
|
4381
|
+
}), s.textContent !== p && (at(t.removed, {
|
|
4382
|
+
element: s.cloneNode()
|
|
4383
|
+
}), s.textContent = p)), Oe("afterSanitizeElements", s, null), !1);
|
|
4384
|
+
}, Qn = function(s, p, S) {
|
|
4385
|
+
if (Dn && (p === "id" || p === "name") && (S in n || S in ki))
|
|
4386
4386
|
return !1;
|
|
4387
4387
|
if (!(Ee && !ee[p] && ue(E, p))) {
|
|
4388
4388
|
if (!(K && ue(g, p))) {
|
|
@@ -4391,14 +4391,14 @@ function Hi() {
|
|
|
4391
4391
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4392
4392
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4393
4393
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4394
|
-
!(Kn(
|
|
4394
|
+
!(Kn(s) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, s) || m.tagNameCheck instanceof Function && m.tagNameCheck(s)) && (m.attributeNameCheck instanceof RegExp && ue(m.attributeNameCheck, p) || m.attributeNameCheck instanceof Function && m.attributeNameCheck(p)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4395
4395
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4396
4396
|
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4397
4397
|
)
|
|
4398
4398
|
return !1;
|
|
4399
4399
|
} else if (!nn[p]) {
|
|
4400
4400
|
if (!ue(L, ut(S, h, ""))) {
|
|
4401
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") &&
|
|
4401
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && pa(S, "data:") === 0 && Un[s])) {
|
|
4402
4402
|
if (!(ie && !ue(v, ut(S, h, "")))) {
|
|
4403
4403
|
if (S)
|
|
4404
4404
|
return !1;
|
|
@@ -4409,13 +4409,13 @@ function Hi() {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
}
|
|
4411
4411
|
return !0;
|
|
4412
|
-
}, Kn = function(
|
|
4413
|
-
return
|
|
4414
|
-
}, er = function(
|
|
4415
|
-
|
|
4412
|
+
}, Kn = function(s) {
|
|
4413
|
+
return s !== "annotation-xml" && Cr(s, x);
|
|
4414
|
+
}, er = function(s) {
|
|
4415
|
+
Oe("beforeSanitizeAttributes", s, null);
|
|
4416
4416
|
const {
|
|
4417
4417
|
attributes: p
|
|
4418
|
-
} =
|
|
4418
|
+
} = s;
|
|
4419
4419
|
if (!p)
|
|
4420
4420
|
return;
|
|
4421
4421
|
const S = {
|
|
@@ -4424,30 +4424,30 @@ function Hi() {
|
|
|
4424
4424
|
keepAttr: !0,
|
|
4425
4425
|
allowedAttributes: I
|
|
4426
4426
|
};
|
|
4427
|
-
let
|
|
4428
|
-
for (;
|
|
4429
|
-
const
|
|
4430
|
-
name:
|
|
4427
|
+
let z = p.length;
|
|
4428
|
+
for (; z--; ) {
|
|
4429
|
+
const se = p[z], {
|
|
4430
|
+
name: oe,
|
|
4431
4431
|
namespaceURI: me,
|
|
4432
4432
|
value: Te
|
|
4433
|
-
} =
|
|
4434
|
-
let ae =
|
|
4435
|
-
if (S.attrName = it, S.attrValue = ae, S.keepAttr = !0, S.forceKeepAttr = void 0,
|
|
4436
|
-
|
|
4433
|
+
} = se, it = ne(oe);
|
|
4434
|
+
let ae = oe === "value" ? Te : ga(Te);
|
|
4435
|
+
if (S.attrName = it, S.attrValue = ae, S.keepAttr = !0, S.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", s, S), ae = S.attrValue, Le && ue(/((--!?|])>)|<\/(style|title)/i, ae)) {
|
|
4436
|
+
wt(oe, s);
|
|
4437
4437
|
continue;
|
|
4438
4438
|
}
|
|
4439
|
-
if (S.forceKeepAttr || (
|
|
4439
|
+
if (S.forceKeepAttr || (wt(oe, s), !S.keepAttr))
|
|
4440
4440
|
continue;
|
|
4441
4441
|
if (!ye && ue(/\/>/i, ae)) {
|
|
4442
|
-
|
|
4442
|
+
wt(oe, s);
|
|
4443
4443
|
continue;
|
|
4444
4444
|
}
|
|
4445
|
-
|
|
4445
|
+
ge && Ct([te, he, T], (nr) => {
|
|
4446
4446
|
ae = ut(ae, nr, " ");
|
|
4447
4447
|
});
|
|
4448
|
-
const tr =
|
|
4448
|
+
const tr = ne(s.nodeName);
|
|
4449
4449
|
if (Qn(tr, it, ae)) {
|
|
4450
|
-
if (Bn && (it === "id" || it === "name") && (
|
|
4450
|
+
if (Bn && (it === "id" || it === "name") && (wt(oe, s), ae = Di + ae), H && typeof M == "object" && typeof M.getAttributeType == "function" && !me)
|
|
4451
4451
|
switch (M.getAttributeType(tr, it)) {
|
|
4452
4452
|
case "TrustedHTML": {
|
|
4453
4453
|
ae = H.createHTML(ae);
|
|
@@ -4459,97 +4459,97 @@ function Hi() {
|
|
|
4459
4459
|
}
|
|
4460
4460
|
}
|
|
4461
4461
|
try {
|
|
4462
|
-
me ?
|
|
4462
|
+
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae), Zn(s) ? ve(s) : Mr(t.removed);
|
|
4463
4463
|
} catch {
|
|
4464
4464
|
}
|
|
4465
4465
|
}
|
|
4466
4466
|
}
|
|
4467
|
-
|
|
4468
|
-
},
|
|
4467
|
+
Oe("afterSanitizeAttributes", s, null);
|
|
4468
|
+
}, ji = function A(s) {
|
|
4469
4469
|
let p = null;
|
|
4470
|
-
const S = Yn(
|
|
4471
|
-
for (
|
|
4472
|
-
|
|
4473
|
-
|
|
4470
|
+
const S = Yn(s);
|
|
4471
|
+
for (Oe("beforeSanitizeShadowDOM", s, null); p = S.nextNode(); )
|
|
4472
|
+
Oe("uponSanitizeShadowNode", p, null), !Jn(p) && (p.content instanceof o && A(p.content), er(p));
|
|
4473
|
+
Oe("afterSanitizeShadowDOM", s, null);
|
|
4474
4474
|
};
|
|
4475
|
-
return t.sanitize = function(
|
|
4476
|
-
let
|
|
4477
|
-
if (rn = !
|
|
4478
|
-
if (typeof
|
|
4479
|
-
if (
|
|
4475
|
+
return t.sanitize = function(A) {
|
|
4476
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null, z = null, se = null;
|
|
4477
|
+
if (rn = !A, rn && (A = "<!-->"), typeof A != "string" && !qn(A))
|
|
4478
|
+
if (typeof A.toString == "function") {
|
|
4479
|
+
if (A = A.toString(), typeof A != "string")
|
|
4480
4480
|
throw lt("dirty is not a string, aborting");
|
|
4481
4481
|
} else
|
|
4482
4482
|
throw lt("toString is not a function");
|
|
4483
4483
|
if (!t.isSupported)
|
|
4484
|
-
return
|
|
4485
|
-
if (Kt ||
|
|
4486
|
-
if (
|
|
4487
|
-
const Te =
|
|
4484
|
+
return A;
|
|
4485
|
+
if (Kt || sn(s), t.removed = [], typeof A == "string" && (nt = !1), nt) {
|
|
4486
|
+
if (A.nodeName) {
|
|
4487
|
+
const Te = ne(A.nodeName);
|
|
4488
4488
|
if (!N[Te] || k[Te])
|
|
4489
4489
|
throw lt("root node is forbidden and cannot be sanitized in-place");
|
|
4490
4490
|
}
|
|
4491
|
-
} else if (
|
|
4492
|
-
p = Xn("<!---->"), S = p.ownerDocument.importNode(
|
|
4491
|
+
} else if (A instanceof a)
|
|
4492
|
+
p = Xn("<!---->"), S = p.ownerDocument.importNode(A, !0), S.nodeType === ft.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? p = S : p.appendChild(S);
|
|
4493
4493
|
else {
|
|
4494
|
-
if (!$e && !
|
|
4495
|
-
|
|
4496
|
-
return H && vt ? H.createHTML(
|
|
4497
|
-
if (p = Xn(
|
|
4494
|
+
if (!$e && !ge && !Re && // eslint-disable-next-line unicorn/prefer-includes
|
|
4495
|
+
A.indexOf("<") === -1)
|
|
4496
|
+
return H && vt ? H.createHTML(A) : A;
|
|
4497
|
+
if (p = Xn(A), !p)
|
|
4498
4498
|
return $e ? null : vt ? R : "";
|
|
4499
4499
|
}
|
|
4500
4500
|
p && en && ve(p.firstChild);
|
|
4501
|
-
const
|
|
4502
|
-
for (;
|
|
4503
|
-
Jn(
|
|
4501
|
+
const oe = Yn(nt ? A : p);
|
|
4502
|
+
for (; z = oe.nextNode(); )
|
|
4503
|
+
Jn(z) || (z.content instanceof o && ji(z.content), er(z));
|
|
4504
4504
|
if (nt)
|
|
4505
|
-
return
|
|
4505
|
+
return A;
|
|
4506
4506
|
if ($e) {
|
|
4507
4507
|
if (xt)
|
|
4508
|
-
for (
|
|
4509
|
-
|
|
4508
|
+
for (se = V.call(p.ownerDocument); p.firstChild; )
|
|
4509
|
+
se.appendChild(p.firstChild);
|
|
4510
4510
|
else
|
|
4511
|
-
|
|
4512
|
-
return (I.shadowroot || I.shadowrootmode) && (
|
|
4511
|
+
se = p;
|
|
4512
|
+
return (I.shadowroot || I.shadowrootmode) && (se = G.call(r, se, !0)), se;
|
|
4513
4513
|
}
|
|
4514
4514
|
let me = Re ? p.outerHTML : p.innerHTML;
|
|
4515
|
-
return Re && N["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && ue(
|
|
4516
|
-
` + me),
|
|
4515
|
+
return Re && N["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && ue(Hi, p.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4516
|
+
` + me), ge && Ct([te, he, T], (Te) => {
|
|
4517
4517
|
me = ut(me, Te, " ");
|
|
4518
4518
|
}), H && vt ? H.createHTML(me) : me;
|
|
4519
4519
|
}, t.setConfig = function() {
|
|
4520
|
-
let
|
|
4521
|
-
|
|
4520
|
+
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4521
|
+
sn(A), Kt = !0;
|
|
4522
4522
|
}, t.clearConfig = function() {
|
|
4523
4523
|
Ge = null, Kt = !1;
|
|
4524
|
-
}, t.isValidAttribute = function(
|
|
4525
|
-
Ge ||
|
|
4526
|
-
const S =
|
|
4527
|
-
return Qn(S,
|
|
4528
|
-
}, t.addHook = function(
|
|
4529
|
-
typeof
|
|
4530
|
-
}, t.removeHook = function(
|
|
4531
|
-
if (O[
|
|
4532
|
-
return Mr(O[
|
|
4533
|
-
}, t.removeHooks = function(
|
|
4534
|
-
O[
|
|
4524
|
+
}, t.isValidAttribute = function(A, s, p) {
|
|
4525
|
+
Ge || sn({});
|
|
4526
|
+
const S = ne(A), z = ne(s);
|
|
4527
|
+
return Qn(S, z, p);
|
|
4528
|
+
}, t.addHook = function(A, s) {
|
|
4529
|
+
typeof s == "function" && (O[A] = O[A] || [], at(O[A], s));
|
|
4530
|
+
}, t.removeHook = function(A) {
|
|
4531
|
+
if (O[A])
|
|
4532
|
+
return Mr(O[A]);
|
|
4533
|
+
}, t.removeHooks = function(A) {
|
|
4534
|
+
O[A] && (O[A] = []);
|
|
4535
4535
|
}, t.removeAllHooks = function() {
|
|
4536
4536
|
O = {};
|
|
4537
4537
|
}, t;
|
|
4538
4538
|
}
|
|
4539
|
-
var Rr =
|
|
4539
|
+
var Rr = Ii(), Pi = { exports: {} };
|
|
4540
4540
|
(function(e, t) {
|
|
4541
4541
|
(function(n, r) {
|
|
4542
4542
|
e.exports = r();
|
|
4543
|
-
})(
|
|
4544
|
-
var n = 1e3, r = 6e4, i = 36e5,
|
|
4543
|
+
})(ri, function() {
|
|
4544
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", u = "second", a = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|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, $ = { 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(T) {
|
|
4545
4545
|
var E = ["th", "st", "nd", "rd"], g = T % 100;
|
|
4546
4546
|
return "[" + T + (E[(g - 20) % 10] || E[g] || E[0]) + "]";
|
|
4547
|
-
} },
|
|
4547
|
+
} }, w = function(T, E, g) {
|
|
4548
4548
|
var v = String(T);
|
|
4549
4549
|
return !v || v.length >= E ? T : "" + Array(E + 1 - v.length).join(g) + T;
|
|
4550
|
-
}, H = { s:
|
|
4550
|
+
}, H = { s: w, z: function(T) {
|
|
4551
4551
|
var E = -T.utcOffset(), g = Math.abs(E), v = Math.floor(g / 60), h = g % 60;
|
|
4552
|
-
return (E <= 0 ? "+" : "-") +
|
|
4552
|
+
return (E <= 0 ? "+" : "-") + w(v, 2, "0") + ":" + w(h, 2, "0");
|
|
4553
4553
|
}, m: function T(E, g) {
|
|
4554
4554
|
if (E.date() < g.date())
|
|
4555
4555
|
return -T(g, E);
|
|
@@ -4558,13 +4558,13 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4558
4558
|
}, a: function(T) {
|
|
4559
4559
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
4560
4560
|
}, p: function(T) {
|
|
4561
|
-
return { M: _, y: M, w: f, d: l, D: b, h: c, m: a, s: u, ms:
|
|
4561
|
+
return { M: _, y: M, w: f, d: l, D: b, h: c, m: a, s: u, ms: o, Q: y }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
4562
4562
|
}, u: function(T) {
|
|
4563
4563
|
return T === void 0;
|
|
4564
4564
|
} }, R = "en", U = {};
|
|
4565
4565
|
U[R] = $;
|
|
4566
4566
|
var Y = "$isDayjsObject", V = function(T) {
|
|
4567
|
-
return T instanceof
|
|
4567
|
+
return T instanceof te || !(!T || !T[Y]);
|
|
4568
4568
|
}, Q = function T(E, g, v) {
|
|
4569
4569
|
var h;
|
|
4570
4570
|
if (!E)
|
|
@@ -4584,12 +4584,12 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4584
4584
|
if (V(T))
|
|
4585
4585
|
return T.clone();
|
|
4586
4586
|
var g = typeof E == "object" ? E : {};
|
|
4587
|
-
return g.date = T, g.args = arguments, new
|
|
4587
|
+
return g.date = T, g.args = arguments, new te(g);
|
|
4588
4588
|
}, O = H;
|
|
4589
4589
|
O.l = Q, O.i = V, O.w = function(T, E) {
|
|
4590
4590
|
return G(T, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4591
4591
|
};
|
|
4592
|
-
var
|
|
4592
|
+
var te = function() {
|
|
4593
4593
|
function T(g) {
|
|
4594
4594
|
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[Y] = !0;
|
|
4595
4595
|
}
|
|
@@ -4606,8 +4606,8 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4606
4606
|
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
4607
4607
|
var L = h.match(C);
|
|
4608
4608
|
if (L) {
|
|
4609
|
-
var N = L[2] - 1 || 0,
|
|
4610
|
-
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0,
|
|
4609
|
+
var N = L[2] - 1 || 0, j = (L[7] || "0").substring(0, 3);
|
|
4610
|
+
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, j)) : new Date(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, j);
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
4613
4613
|
return new Date(h);
|
|
@@ -4636,7 +4636,7 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4636
4636
|
var h = this, x = !!O.u(v) || v, L = O.p(g), N = function(Ee, ie) {
|
|
4637
4637
|
var ye = O.w(h.$u ? Date.UTC(h.$y, ie, Ee) : new Date(h.$y, ie, Ee), h);
|
|
4638
4638
|
return x ? ye : ye.endOf(l);
|
|
4639
|
-
},
|
|
4639
|
+
}, j = function(Ee, ie) {
|
|
4640
4640
|
return O.w(h.toDate()[Ee].apply(h.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), h);
|
|
4641
4641
|
}, I = this.$W, q = this.$M, m = this.$D, k = "set" + (this.$u ? "UTC" : "");
|
|
4642
4642
|
switch (L) {
|
|
@@ -4649,25 +4649,25 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4649
4649
|
return N(x ? m - K : m + (6 - K), q);
|
|
4650
4650
|
case l:
|
|
4651
4651
|
case b:
|
|
4652
|
-
return
|
|
4652
|
+
return j(k + "Hours", 0);
|
|
4653
4653
|
case c:
|
|
4654
|
-
return
|
|
4654
|
+
return j(k + "Minutes", 1);
|
|
4655
4655
|
case a:
|
|
4656
|
-
return
|
|
4656
|
+
return j(k + "Seconds", 2);
|
|
4657
4657
|
case u:
|
|
4658
|
-
return
|
|
4658
|
+
return j(k + "Milliseconds", 3);
|
|
4659
4659
|
default:
|
|
4660
4660
|
return this.clone();
|
|
4661
4661
|
}
|
|
4662
4662
|
}, E.endOf = function(g) {
|
|
4663
4663
|
return this.startOf(g, !1);
|
|
4664
4664
|
}, E.$set = function(g, v) {
|
|
4665
|
-
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[a] = L + "Minutes", h[u] = L + "Seconds", h[
|
|
4665
|
+
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[a] = L + "Minutes", h[u] = L + "Seconds", h[o] = L + "Milliseconds", h)[x], j = x === l ? this.$D + (v - this.$W) : v;
|
|
4666
4666
|
if (x === _ || x === M) {
|
|
4667
4667
|
var I = this.clone().set(b, 1);
|
|
4668
|
-
I.$d[N](
|
|
4668
|
+
I.$d[N](j), I.init(), this.$d = I.set(b, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4669
4669
|
} else
|
|
4670
|
-
N && this.$d[N](
|
|
4670
|
+
N && this.$d[N](j);
|
|
4671
4671
|
return this.init(), this;
|
|
4672
4672
|
}, E.set = function(g, v) {
|
|
4673
4673
|
return this.clone().$set(g, v);
|
|
@@ -4688,7 +4688,7 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4688
4688
|
return N(1);
|
|
4689
4689
|
if (L === f)
|
|
4690
4690
|
return N(7);
|
|
4691
|
-
var
|
|
4691
|
+
var j = (h = {}, h[a] = r, h[c] = i, h[u] = n, h)[L] || 1, I = this.$d.getTime() + g * j;
|
|
4692
4692
|
return O.w(I, this);
|
|
4693
4693
|
}, E.subtract = function(g, v) {
|
|
4694
4694
|
return this.add(-1 * g, v);
|
|
@@ -4696,17 +4696,17 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4696
4696
|
var v = this, h = this.$locale();
|
|
4697
4697
|
if (!this.isValid())
|
|
4698
4698
|
return h.invalidDate || d;
|
|
4699
|
-
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H,
|
|
4700
|
-
return ie && (ie[ye] || ie(v, x)) ||
|
|
4699
|
+
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H, j = this.$m, I = this.$M, q = h.weekdays, m = h.months, k = h.meridiem, ee = function(ie, ye, ge, Le) {
|
|
4700
|
+
return ie && (ie[ye] || ie(v, x)) || ge[ye].slice(0, Le);
|
|
4701
4701
|
}, K = function(ie) {
|
|
4702
4702
|
return O.s(N % 12 || 12, ie, "0");
|
|
4703
|
-
}, Ee = k || function(ie, ye,
|
|
4703
|
+
}, Ee = k || function(ie, ye, ge) {
|
|
4704
4704
|
var Le = ie < 12 ? "AM" : "PM";
|
|
4705
|
-
return
|
|
4705
|
+
return ge ? Le.toLowerCase() : Le;
|
|
4706
4706
|
};
|
|
4707
4707
|
return x.replace(F, function(ie, ye) {
|
|
4708
|
-
return ye || function(
|
|
4709
|
-
switch (
|
|
4708
|
+
return ye || function(ge) {
|
|
4709
|
+
switch (ge) {
|
|
4710
4710
|
case "YY":
|
|
4711
4711
|
return String(v.$y).slice(-2);
|
|
4712
4712
|
case "YYYY":
|
|
@@ -4740,13 +4740,13 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4740
4740
|
case "hh":
|
|
4741
4741
|
return K(2);
|
|
4742
4742
|
case "a":
|
|
4743
|
-
return Ee(N,
|
|
4743
|
+
return Ee(N, j, !0);
|
|
4744
4744
|
case "A":
|
|
4745
|
-
return Ee(N,
|
|
4745
|
+
return Ee(N, j, !1);
|
|
4746
4746
|
case "m":
|
|
4747
|
-
return String(
|
|
4747
|
+
return String(j);
|
|
4748
4748
|
case "mm":
|
|
4749
|
-
return O.s(
|
|
4749
|
+
return O.s(j, 2, "0");
|
|
4750
4750
|
case "s":
|
|
4751
4751
|
return String(v.$s);
|
|
4752
4752
|
case "ss":
|
|
@@ -4762,8 +4762,8 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4762
4762
|
}, E.utcOffset = function() {
|
|
4763
4763
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4764
4764
|
}, E.diff = function(g, v, h) {
|
|
4765
|
-
var x, L = this, N = O.p(v),
|
|
4766
|
-
return O.m(L,
|
|
4765
|
+
var x, L = this, N = O.p(v), j = G(g), I = (j.utcOffset() - this.utcOffset()) * r, q = this - j, m = function() {
|
|
4766
|
+
return O.m(L, j);
|
|
4767
4767
|
};
|
|
4768
4768
|
switch (N) {
|
|
4769
4769
|
case M:
|
|
@@ -4814,27 +4814,27 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4814
4814
|
}, E.toString = function() {
|
|
4815
4815
|
return this.$d.toUTCString();
|
|
4816
4816
|
}, T;
|
|
4817
|
-
}(), he =
|
|
4818
|
-
return G.prototype = he, [["$ms",
|
|
4817
|
+
}(), he = te.prototype;
|
|
4818
|
+
return G.prototype = he, [["$ms", o], ["$s", u], ["$m", a], ["$H", c], ["$W", l], ["$M", _], ["$y", M], ["$D", b]].forEach(function(T) {
|
|
4819
4819
|
he[T[1]] = function(E) {
|
|
4820
4820
|
return this.$g(E, T[0], T[1]);
|
|
4821
4821
|
};
|
|
4822
4822
|
}), G.extend = function(T, E) {
|
|
4823
|
-
return T.$i || (T(E,
|
|
4823
|
+
return T.$i || (T(E, te, G), T.$i = !0), G;
|
|
4824
4824
|
}, G.locale = Q, G.isDayjs = V, G.unix = function(T) {
|
|
4825
4825
|
return G(1e3 * T);
|
|
4826
4826
|
}, G.en = U[R], G.Ls = U, G.p = {}, G;
|
|
4827
4827
|
});
|
|
4828
|
-
})(
|
|
4829
|
-
var
|
|
4830
|
-
const Dr = /* @__PURE__ */ In(
|
|
4831
|
-
var
|
|
4828
|
+
})(Pi);
|
|
4829
|
+
var Na = Pi.exports;
|
|
4830
|
+
const Dr = /* @__PURE__ */ In(Na);
|
|
4831
|
+
var Ri = { exports: {} };
|
|
4832
4832
|
(function(e, t) {
|
|
4833
4833
|
(function(n, r) {
|
|
4834
4834
|
e.exports = r();
|
|
4835
|
-
})(
|
|
4835
|
+
})(ri, function() {
|
|
4836
4836
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4837
|
-
return function(
|
|
4837
|
+
return function(o, u, a) {
|
|
4838
4838
|
var c = u.prototype;
|
|
4839
4839
|
a.utc = function(d) {
|
|
4840
4840
|
var C = { date: d, utc: !0, args: arguments };
|
|
@@ -4871,15 +4871,15 @@ var Pi = { exports: {} };
|
|
|
4871
4871
|
return Q === 0 ? 0 : V === "+" ? Q : -Q;
|
|
4872
4872
|
}(d), d === null))
|
|
4873
4873
|
return this;
|
|
4874
|
-
var $ = Math.abs(d) <= 16 ? 60 * d : d,
|
|
4874
|
+
var $ = Math.abs(d) <= 16 ? 60 * d : d, w = this;
|
|
4875
4875
|
if (C)
|
|
4876
|
-
return
|
|
4876
|
+
return w.$offset = $, w.$u = d === 0, w;
|
|
4877
4877
|
if (d !== 0) {
|
|
4878
4878
|
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4879
|
-
(
|
|
4879
|
+
(w = this.local().add($ + H, n)).$offset = $, w.$x.$localOffset = H;
|
|
4880
4880
|
} else
|
|
4881
|
-
|
|
4882
|
-
return
|
|
4881
|
+
w = this.utc();
|
|
4882
|
+
return w;
|
|
4883
4883
|
};
|
|
4884
4884
|
var y = c.format;
|
|
4885
4885
|
c.format = function(d) {
|
|
@@ -4903,22 +4903,22 @@ var Pi = { exports: {} };
|
|
|
4903
4903
|
c.diff = function(d, C, F) {
|
|
4904
4904
|
if (d && this.$u === d.$u)
|
|
4905
4905
|
return b.call(this, d, C, F);
|
|
4906
|
-
var $ = this.local(),
|
|
4907
|
-
return b.call($,
|
|
4906
|
+
var $ = this.local(), w = a(d).local();
|
|
4907
|
+
return b.call($, w, C, F);
|
|
4908
4908
|
};
|
|
4909
4909
|
};
|
|
4910
4910
|
});
|
|
4911
|
-
})(
|
|
4912
|
-
var
|
|
4913
|
-
const
|
|
4911
|
+
})(Ri);
|
|
4912
|
+
var Ha = Ri.exports;
|
|
4913
|
+
const Ia = /* @__PURE__ */ In(Ha);
|
|
4914
4914
|
let Br = bt(null);
|
|
4915
|
-
function
|
|
4915
|
+
function Pa(e, t) {
|
|
4916
4916
|
if (e) {
|
|
4917
4917
|
const n = document.createElement("style");
|
|
4918
4918
|
n.innerHTML = t, e.appendChild(n);
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
function
|
|
4921
|
+
function Ra(e, t) {
|
|
4922
4922
|
const n = new URL(t);
|
|
4923
4923
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4924
4924
|
const i = document.createElement("style");
|
|
@@ -4927,7 +4927,7 @@ function Pa(e, t) {
|
|
|
4927
4927
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4928
4928
|
});
|
|
4929
4929
|
}
|
|
4930
|
-
function
|
|
4930
|
+
function Da(e, t, n) {
|
|
4931
4931
|
if (window.emMessageBus) {
|
|
4932
4932
|
const r = document.createElement("style");
|
|
4933
4933
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4935,15 +4935,15 @@ function Ra(e, t, n) {
|
|
|
4935
4935
|
});
|
|
4936
4936
|
}
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4939
|
-
|
|
4938
|
+
function Ba(e) {
|
|
4939
|
+
Yi(e, "svelte-878602", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #3854FF)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
|
|
4940
4940
|
}
|
|
4941
|
-
const
|
|
4941
|
+
const $a = (e) => ({}), $r = (e) => ({}), Ua = (e) => ({}), Ur = (e) => ({}), ka = (e) => ({}), kr = (e) => ({}), Fa = (e) => ({}), Fr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4942
4942
|
function Gr(e) {
|
|
4943
|
-
let t, n, r, i,
|
|
4943
|
+
let t, n, r, i, o, u = (
|
|
4944
4944
|
/*$_*/
|
|
4945
4945
|
e[8]("sessionExpirationHeader") + ""
|
|
4946
|
-
), a, c, l, f, _, y, M, b, d, C, F, $,
|
|
4946
|
+
), a, c, l, f, _, y, M, b, d, C, F, $, w, H, R;
|
|
4947
4947
|
const U = (
|
|
4948
4948
|
/*#slots*/
|
|
4949
4949
|
e[22].icon
|
|
@@ -4953,7 +4953,7 @@ function Gr(e) {
|
|
|
4953
4953
|
/*$$scope*/
|
|
4954
4954
|
e[21],
|
|
4955
4955
|
Fr
|
|
4956
|
-
), V = Y ||
|
|
4956
|
+
), V = Y || Ga(e), Q = (
|
|
4957
4957
|
/*#slots*/
|
|
4958
4958
|
e[22].title
|
|
4959
4959
|
), G = Nt(
|
|
@@ -4962,16 +4962,16 @@ function Gr(e) {
|
|
|
4962
4962
|
/*$$scope*/
|
|
4963
4963
|
e[21],
|
|
4964
4964
|
kr
|
|
4965
|
-
), O = G ||
|
|
4965
|
+
), O = G || ja(e), te = (
|
|
4966
4966
|
/*#slots*/
|
|
4967
4967
|
e[22].text
|
|
4968
4968
|
), he = Nt(
|
|
4969
|
-
|
|
4969
|
+
te,
|
|
4970
4970
|
e,
|
|
4971
4971
|
/*$$scope*/
|
|
4972
4972
|
e[21],
|
|
4973
4973
|
Ur
|
|
4974
|
-
), T = he ||
|
|
4974
|
+
), T = he || za(e), E = [Va, Wa], g = [];
|
|
4975
4975
|
function v(h, x) {
|
|
4976
4976
|
return (
|
|
4977
4977
|
/*showLoaderButton*/
|
|
@@ -4980,18 +4980,18 @@ function Gr(e) {
|
|
|
4980
4980
|
}
|
|
4981
4981
|
return d = v(e), C = g[d] = E[d](e), {
|
|
4982
4982
|
c() {
|
|
4983
|
-
t =
|
|
4984
|
-
e[6],
|
|
4983
|
+
t = re("div"), n = re("div"), r = re("div"), i = re("div"), o = re("div"), a = Ke(u), c = ht(), l = re("div"), f = re("div"), V && V.c(), _ = ht(), O && O.c(), y = ht(), T && T.c(), M = ht(), b = re("button"), C.c(), W(o, "class", "CashierSessionExpirationModalHeaderTitle"), W(i, "class", "CashierSessionExpirationModalHeader"), W(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
4984
|
+
e[6], W(b, "class", "CashierSessionExpirationButton"), W(f, "class", "CashierSessionExpiration"), W(l, "class", "CashierSessionExpirationModalContainer"), W(r, "class", "CashierSessionExpirationModalWrapper"), W(n, "class", "CashierSessionExpirationModalWindow"), W(n, "id", "CashierSessionExpirationModal"), Ye(() => (
|
|
4985
4985
|
/*div5_elementresize_handler*/
|
|
4986
4986
|
e[24].call(n)
|
|
4987
4987
|
));
|
|
4988
4988
|
},
|
|
4989
4989
|
m(h, x) {
|
|
4990
|
-
|
|
4990
|
+
Ce(h, t, x), J(t, n), J(n, r), J(r, i), J(i, o), J(o, a), J(r, c), J(r, l), J(l, f), V && V.m(f, null), J(f, _), O && O.m(f, null), J(f, y), T && T.m(f, null), J(f, M), J(f, b), g[d].m(b, null), e[23](f), F = Qi(
|
|
4991
4991
|
n,
|
|
4992
4992
|
/*div5_elementresize_handler*/
|
|
4993
4993
|
e[24].bind(n)
|
|
4994
|
-
), e[25](t),
|
|
4994
|
+
), e[25](t), w = !0, H || (R = [
|
|
4995
4995
|
kt(
|
|
4996
4996
|
b,
|
|
4997
4997
|
"click",
|
|
@@ -5007,174 +5007,156 @@ function Gr(e) {
|
|
|
5007
5007
|
], H = !0);
|
|
5008
5008
|
},
|
|
5009
5009
|
p(h, x) {
|
|
5010
|
-
e = h, (!
|
|
5010
|
+
e = h, (!w || x[0] & /*$_*/
|
|
5011
5011
|
256) && u !== (u = /*$_*/
|
|
5012
|
-
e[8]("sessionExpirationHeader") + "") && Zt(a, u), Y ? Y.p && (!
|
|
5012
|
+
e[8]("sessionExpirationHeader") + "") && Zt(a, u), Y ? Y.p && (!w || x[0] & /*$$scope*/
|
|
5013
5013
|
2097152) && It(
|
|
5014
5014
|
Y,
|
|
5015
5015
|
U,
|
|
5016
5016
|
e,
|
|
5017
5017
|
/*$$scope*/
|
|
5018
5018
|
e[21],
|
|
5019
|
-
|
|
5019
|
+
w ? Ht(
|
|
5020
5020
|
U,
|
|
5021
5021
|
/*$$scope*/
|
|
5022
5022
|
e[21],
|
|
5023
5023
|
x,
|
|
5024
|
-
|
|
5024
|
+
Fa
|
|
5025
5025
|
) : Pt(
|
|
5026
5026
|
/*$$scope*/
|
|
5027
5027
|
e[21]
|
|
5028
5028
|
),
|
|
5029
5029
|
Fr
|
|
5030
|
-
) : V && V.p && (!
|
|
5031
|
-
8) && V.p(e,
|
|
5030
|
+
) : V && V.p && (!w || x[0] & /*assetsurl*/
|
|
5031
|
+
8) && V.p(e, w ? x : [-1, -1]), G ? G.p && (!w || x[0] & /*$$scope*/
|
|
5032
5032
|
2097152) && It(
|
|
5033
5033
|
G,
|
|
5034
5034
|
Q,
|
|
5035
5035
|
e,
|
|
5036
5036
|
/*$$scope*/
|
|
5037
5037
|
e[21],
|
|
5038
|
-
|
|
5038
|
+
w ? Ht(
|
|
5039
5039
|
Q,
|
|
5040
5040
|
/*$$scope*/
|
|
5041
5041
|
e[21],
|
|
5042
5042
|
x,
|
|
5043
|
-
|
|
5043
|
+
ka
|
|
5044
5044
|
) : Pt(
|
|
5045
5045
|
/*$$scope*/
|
|
5046
5046
|
e[21]
|
|
5047
5047
|
),
|
|
5048
5048
|
kr
|
|
5049
|
-
) : O && O.p && (!
|
|
5050
|
-
256) && O.p(e,
|
|
5049
|
+
) : O && O.p && (!w || x[0] & /*$_*/
|
|
5050
|
+
256) && O.p(e, w ? x : [-1, -1]), he ? he.p && (!w || x[0] & /*$$scope*/
|
|
5051
5051
|
2097152) && It(
|
|
5052
5052
|
he,
|
|
5053
|
-
|
|
5053
|
+
te,
|
|
5054
5054
|
e,
|
|
5055
5055
|
/*$$scope*/
|
|
5056
5056
|
e[21],
|
|
5057
|
-
|
|
5058
|
-
|
|
5057
|
+
w ? Ht(
|
|
5058
|
+
te,
|
|
5059
5059
|
/*$$scope*/
|
|
5060
5060
|
e[21],
|
|
5061
5061
|
x,
|
|
5062
|
-
|
|
5062
|
+
Ua
|
|
5063
5063
|
) : Pt(
|
|
5064
5064
|
/*$$scope*/
|
|
5065
5065
|
e[21]
|
|
5066
5066
|
),
|
|
5067
5067
|
Ur
|
|
5068
|
-
) : T && T.p && (!
|
|
5069
|
-
384) && T.p(e,
|
|
5068
|
+
) : T && T.p && (!w || x[0] & /*$_, timeLeft*/
|
|
5069
|
+
384) && T.p(e, w ? x : [-1, -1]);
|
|
5070
5070
|
let L = d;
|
|
5071
|
-
d = v(e), d === L ? g[d].p(e, x) : (
|
|
5071
|
+
d = v(e), d === L ? g[d].p(e, x) : (ei(), Ne(g[L], 1, 1, () => {
|
|
5072
5072
|
g[L] = null;
|
|
5073
|
-
}),
|
|
5073
|
+
}), ti(), C = g[d], C ? C.p(e, x) : (C = g[d] = E[d](e), C.c()), Se(C, 1), C.m(b, null)), (!w || x[0] & /*showLoaderButton*/
|
|
5074
5074
|
64) && (b.disabled = /*showLoaderButton*/
|
|
5075
5075
|
e[6]);
|
|
5076
5076
|
},
|
|
5077
5077
|
i(h) {
|
|
5078
|
-
|
|
5079
|
-
|
|
5078
|
+
w || (Se(V, h), Se(O, h), Se(T, h), Se(C), h && Ye(() => {
|
|
5079
|
+
w && ($ || ($ = lr(n, cr, { duration: (
|
|
5080
5080
|
/*duration*/
|
|
5081
5081
|
e[2]
|
|
5082
5082
|
) }, !0)), $.run(1));
|
|
5083
|
-
}),
|
|
5083
|
+
}), w = !0);
|
|
5084
5084
|
},
|
|
5085
5085
|
o(h) {
|
|
5086
5086
|
Ne(V, h), Ne(O, h), Ne(T, h), Ne(C), h && ($ || ($ = lr(n, cr, { duration: (
|
|
5087
5087
|
/*duration*/
|
|
5088
5088
|
e[2]
|
|
5089
|
-
) }, !1)), $.run(0)),
|
|
5089
|
+
) }, !1)), $.run(0)), w = !1;
|
|
5090
5090
|
},
|
|
5091
5091
|
d(h) {
|
|
5092
|
-
h &&
|
|
5093
|
-
}
|
|
5094
|
-
};
|
|
5095
|
-
}
|
|
5096
|
-
function Fa(e) {
|
|
5097
|
-
let t;
|
|
5098
|
-
return {
|
|
5099
|
-
c() {
|
|
5100
|
-
t = te("div"), j(t, "class", "ImagePlaceholder");
|
|
5101
|
-
},
|
|
5102
|
-
m(n, r) {
|
|
5103
|
-
we(n, t, r);
|
|
5104
|
-
},
|
|
5105
|
-
p: de,
|
|
5106
|
-
d(n) {
|
|
5107
|
-
n && ge(t);
|
|
5092
|
+
h && be(t), V && V.d(h), O && O.d(h), T && T.d(h), g[d].d(), e[23](null), F(), h && $ && $.end(), e[25](null), H = !1, Ie(R);
|
|
5108
5093
|
}
|
|
5109
5094
|
};
|
|
5110
5095
|
}
|
|
5111
|
-
function
|
|
5096
|
+
function jr(e) {
|
|
5112
5097
|
let t, n;
|
|
5113
5098
|
return {
|
|
5114
5099
|
c() {
|
|
5115
|
-
t =
|
|
5116
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5100
|
+
t = re("img"), ir(t.src, n = `${/*assetsurl*/
|
|
5101
|
+
e[3]}/set-timeout-icon.png`) || W(t, "src", n), W(t, "width", "300px"), W(t, "alt", "error");
|
|
5117
5102
|
},
|
|
5118
5103
|
m(r, i) {
|
|
5119
|
-
|
|
5104
|
+
Ce(r, t, i);
|
|
5120
5105
|
},
|
|
5121
5106
|
p(r, i) {
|
|
5122
5107
|
i[0] & /*assetsurl*/
|
|
5123
5108
|
8 && !ir(t.src, n = `${/*assetsurl*/
|
|
5124
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5109
|
+
r[3]}/set-timeout-icon.png`) && W(t, "src", n);
|
|
5125
5110
|
},
|
|
5126
5111
|
d(r) {
|
|
5127
|
-
r &&
|
|
5112
|
+
r && be(t);
|
|
5128
5113
|
}
|
|
5129
5114
|
};
|
|
5130
5115
|
}
|
|
5131
|
-
function
|
|
5132
|
-
let t
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
s[3] ? Ga : Fa
|
|
5137
|
-
);
|
|
5138
|
-
}
|
|
5139
|
-
let r = n(e), i = r(e);
|
|
5116
|
+
function Ga(e) {
|
|
5117
|
+
let t, n = (
|
|
5118
|
+
/*assetsurl*/
|
|
5119
|
+
e[3] && jr(e)
|
|
5120
|
+
);
|
|
5140
5121
|
return {
|
|
5141
5122
|
c() {
|
|
5142
|
-
|
|
5123
|
+
n && n.c(), t = Qr();
|
|
5143
5124
|
},
|
|
5144
|
-
m(
|
|
5145
|
-
|
|
5125
|
+
m(r, i) {
|
|
5126
|
+
n && n.m(r, i), Ce(r, t, i);
|
|
5146
5127
|
},
|
|
5147
|
-
p(
|
|
5148
|
-
|
|
5128
|
+
p(r, i) {
|
|
5129
|
+
/*assetsurl*/
|
|
5130
|
+
r[3] ? n ? n.p(r, i) : (n = jr(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
5149
5131
|
},
|
|
5150
|
-
d(
|
|
5151
|
-
|
|
5132
|
+
d(r) {
|
|
5133
|
+
r && be(t), n && n.d(r);
|
|
5152
5134
|
}
|
|
5153
5135
|
};
|
|
5154
5136
|
}
|
|
5155
|
-
function
|
|
5137
|
+
function ja(e) {
|
|
5156
5138
|
let t, n = (
|
|
5157
5139
|
/*$_*/
|
|
5158
5140
|
e[8]("sessionExpirationTitle") + ""
|
|
5159
5141
|
), r;
|
|
5160
5142
|
return {
|
|
5161
5143
|
c() {
|
|
5162
|
-
t =
|
|
5144
|
+
t = re("span"), r = Ke(n), W(t, "class", "CashierSessionExpirationTitle");
|
|
5163
5145
|
},
|
|
5164
|
-
m(i,
|
|
5165
|
-
|
|
5146
|
+
m(i, o) {
|
|
5147
|
+
Ce(i, t, o), J(t, r);
|
|
5166
5148
|
},
|
|
5167
|
-
p(i,
|
|
5168
|
-
|
|
5149
|
+
p(i, o) {
|
|
5150
|
+
o[0] & /*$_*/
|
|
5169
5151
|
256 && n !== (n = /*$_*/
|
|
5170
5152
|
i[8]("sessionExpirationTitle") + "") && Zt(r, n);
|
|
5171
5153
|
},
|
|
5172
5154
|
d(i) {
|
|
5173
|
-
i &&
|
|
5155
|
+
i && be(t);
|
|
5174
5156
|
}
|
|
5175
5157
|
};
|
|
5176
5158
|
}
|
|
5177
|
-
function
|
|
5159
|
+
function za(e) {
|
|
5178
5160
|
let t, n = Rr.sanitize(
|
|
5179
5161
|
/*$_*/
|
|
5180
5162
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -5184,10 +5166,10 @@ function Wa(e) {
|
|
|
5184
5166
|
) + "";
|
|
5185
5167
|
return {
|
|
5186
5168
|
c() {
|
|
5187
|
-
t =
|
|
5169
|
+
t = re("span"), W(t, "class", "CashierSessionExpirationText");
|
|
5188
5170
|
},
|
|
5189
5171
|
m(r, i) {
|
|
5190
|
-
|
|
5172
|
+
Ce(r, t, i), t.innerHTML = n;
|
|
5191
5173
|
},
|
|
5192
5174
|
p(r, i) {
|
|
5193
5175
|
i[0] & /*$_, timeLeft*/
|
|
@@ -5200,11 +5182,11 @@ function Wa(e) {
|
|
|
5200
5182
|
) + "") && (t.innerHTML = n);
|
|
5201
5183
|
},
|
|
5202
5184
|
d(r) {
|
|
5203
|
-
r &&
|
|
5185
|
+
r && be(t);
|
|
5204
5186
|
}
|
|
5205
5187
|
};
|
|
5206
5188
|
}
|
|
5207
|
-
function
|
|
5189
|
+
function Wa(e) {
|
|
5208
5190
|
let t;
|
|
5209
5191
|
const n = (
|
|
5210
5192
|
/*#slots*/
|
|
@@ -5215,58 +5197,58 @@ function Va(e) {
|
|
|
5215
5197
|
/*$$scope*/
|
|
5216
5198
|
e[21],
|
|
5217
5199
|
$r
|
|
5218
|
-
), i = r ||
|
|
5200
|
+
), i = r || Xa(e);
|
|
5219
5201
|
return {
|
|
5220
5202
|
c() {
|
|
5221
5203
|
i && i.c();
|
|
5222
5204
|
},
|
|
5223
|
-
m(
|
|
5224
|
-
i && i.m(
|
|
5205
|
+
m(o, u) {
|
|
5206
|
+
i && i.m(o, u), t = !0;
|
|
5225
5207
|
},
|
|
5226
|
-
p(
|
|
5208
|
+
p(o, u) {
|
|
5227
5209
|
r ? r.p && (!t || u[0] & /*$$scope*/
|
|
5228
5210
|
2097152) && It(
|
|
5229
5211
|
r,
|
|
5230
5212
|
n,
|
|
5231
|
-
|
|
5213
|
+
o,
|
|
5232
5214
|
/*$$scope*/
|
|
5233
|
-
|
|
5215
|
+
o[21],
|
|
5234
5216
|
t ? Ht(
|
|
5235
5217
|
n,
|
|
5236
5218
|
/*$$scope*/
|
|
5237
|
-
|
|
5219
|
+
o[21],
|
|
5238
5220
|
u,
|
|
5239
|
-
|
|
5221
|
+
$a
|
|
5240
5222
|
) : Pt(
|
|
5241
5223
|
/*$$scope*/
|
|
5242
|
-
|
|
5224
|
+
o[21]
|
|
5243
5225
|
),
|
|
5244
5226
|
$r
|
|
5245
5227
|
) : i && i.p && (!t || u[0] & /*$_*/
|
|
5246
|
-
256) && i.p(
|
|
5228
|
+
256) && i.p(o, t ? u : [-1, -1]);
|
|
5247
5229
|
},
|
|
5248
|
-
i(
|
|
5249
|
-
t || (Se(i,
|
|
5230
|
+
i(o) {
|
|
5231
|
+
t || (Se(i, o), t = !0);
|
|
5250
5232
|
},
|
|
5251
|
-
o(
|
|
5252
|
-
Ne(i,
|
|
5233
|
+
o(o) {
|
|
5234
|
+
Ne(i, o), t = !1;
|
|
5253
5235
|
},
|
|
5254
|
-
d(
|
|
5255
|
-
i && i.d(
|
|
5236
|
+
d(o) {
|
|
5237
|
+
i && i.d(o);
|
|
5256
5238
|
}
|
|
5257
5239
|
};
|
|
5258
5240
|
}
|
|
5259
|
-
function
|
|
5260
|
-
let t, n, r, i,
|
|
5241
|
+
function Va(e) {
|
|
5242
|
+
let t, n, r, i, o, u = (
|
|
5261
5243
|
/*$_*/
|
|
5262
5244
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5263
5245
|
), a;
|
|
5264
5246
|
return {
|
|
5265
5247
|
c() {
|
|
5266
|
-
t =
|
|
5248
|
+
t = re("div"), n = sr("svg"), r = sr("path"), i = ht(), o = re("span"), a = Ke(u), W(r, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), W(r, "fill", "white"), W(n, "class", "CashierSessionExpirationButtonSpinner"), W(n, "xmlns", "http://www.w3.org/2000/svg"), W(n, "width", "15"), W(n, "height", "14"), W(n, "viewBox", "0 0 15 14"), W(n, "fill", "none"), W(o, "class", "CashierSessionExpirationButtonText");
|
|
5267
5249
|
},
|
|
5268
5250
|
m(c, l) {
|
|
5269
|
-
|
|
5251
|
+
Ce(c, t, l), J(t, n), J(n, r), J(t, i), J(t, o), J(o, a);
|
|
5270
5252
|
},
|
|
5271
5253
|
p(c, l) {
|
|
5272
5254
|
l[0] & /*$_*/
|
|
@@ -5276,50 +5258,50 @@ function Xa(e) {
|
|
|
5276
5258
|
i: de,
|
|
5277
5259
|
o: de,
|
|
5278
5260
|
d(c) {
|
|
5279
|
-
c &&
|
|
5261
|
+
c && be(t);
|
|
5280
5262
|
}
|
|
5281
5263
|
};
|
|
5282
5264
|
}
|
|
5283
|
-
function
|
|
5265
|
+
function Xa(e) {
|
|
5284
5266
|
let t, n = (
|
|
5285
5267
|
/*$_*/
|
|
5286
5268
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5287
5269
|
), r;
|
|
5288
5270
|
return {
|
|
5289
5271
|
c() {
|
|
5290
|
-
t =
|
|
5272
|
+
t = re("span"), r = Ke(n), W(t, "class", "CashierSessionExpirationButtonText");
|
|
5291
5273
|
},
|
|
5292
|
-
m(i,
|
|
5293
|
-
|
|
5274
|
+
m(i, o) {
|
|
5275
|
+
Ce(i, t, o), J(t, r);
|
|
5294
5276
|
},
|
|
5295
|
-
p(i,
|
|
5296
|
-
|
|
5277
|
+
p(i, o) {
|
|
5278
|
+
o[0] & /*$_*/
|
|
5297
5279
|
256 && n !== (n = /*$_*/
|
|
5298
5280
|
i[8]("sessionExpirationGeneralButton") + "") && Zt(r, n);
|
|
5299
5281
|
},
|
|
5300
5282
|
d(i) {
|
|
5301
|
-
i &&
|
|
5283
|
+
i && be(t);
|
|
5302
5284
|
}
|
|
5303
5285
|
};
|
|
5304
5286
|
}
|
|
5305
|
-
function
|
|
5287
|
+
function Ya(e) {
|
|
5306
5288
|
let t, n, r = (
|
|
5307
5289
|
/*show*/
|
|
5308
5290
|
e[5] && Gr(e)
|
|
5309
5291
|
);
|
|
5310
5292
|
return {
|
|
5311
5293
|
c() {
|
|
5312
|
-
r && r.c(), t =
|
|
5294
|
+
r && r.c(), t = Qr();
|
|
5313
5295
|
},
|
|
5314
|
-
m(i,
|
|
5315
|
-
r && r.m(i,
|
|
5296
|
+
m(i, o) {
|
|
5297
|
+
r && r.m(i, o), Ce(i, t, o), n = !0;
|
|
5316
5298
|
},
|
|
5317
|
-
p(i,
|
|
5299
|
+
p(i, o) {
|
|
5318
5300
|
/*show*/
|
|
5319
|
-
i[5] ? r ? (r.p(i,
|
|
5320
|
-
32 && Se(r, 1)) : (r = Gr(i), r.c(), Se(r, 1), r.m(t.parentNode, t)) : r && (
|
|
5301
|
+
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5302
|
+
32 && Se(r, 1)) : (r = Gr(i), r.c(), Se(r, 1), r.m(t.parentNode, t)) : r && (ei(), Ne(r, 1, 1, () => {
|
|
5321
5303
|
r = null;
|
|
5322
|
-
}),
|
|
5304
|
+
}), ti());
|
|
5323
5305
|
},
|
|
5324
5306
|
i(i) {
|
|
5325
5307
|
n || (Se(r), n = !0);
|
|
@@ -5328,21 +5310,21 @@ function Za(e) {
|
|
|
5328
5310
|
Ne(r), n = !1;
|
|
5329
5311
|
},
|
|
5330
5312
|
d(i) {
|
|
5331
|
-
i &&
|
|
5313
|
+
i && be(t), r && r.d(i);
|
|
5332
5314
|
}
|
|
5333
5315
|
};
|
|
5334
5316
|
}
|
|
5335
|
-
const
|
|
5336
|
-
function
|
|
5317
|
+
const Za = 90;
|
|
5318
|
+
function qa(e, t, n) {
|
|
5337
5319
|
let r, i;
|
|
5338
|
-
|
|
5339
|
-
let { $$slots:
|
|
5340
|
-
Dr.extend(
|
|
5341
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: F } = t, { selectedpaymentmethodname: $ } = t, { mbsource:
|
|
5342
|
-
var
|
|
5320
|
+
or(e, Br, (m) => n(20, r = m)), or(e, ca, (m) => n(8, i = m));
|
|
5321
|
+
let { $$slots: o = {}, $$scope: u } = t;
|
|
5322
|
+
Dr.extend(Ia);
|
|
5323
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: F } = t, { selectedpaymentmethodname: $ } = t, { mbsource: w = "" } = t, H, R = !1, U = !1, Y, V, Q, G, O;
|
|
5324
|
+
var te;
|
|
5343
5325
|
(function(m) {
|
|
5344
5326
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
5345
|
-
})(
|
|
5327
|
+
})(te || (te = {}));
|
|
5346
5328
|
const he = (m) => {
|
|
5347
5329
|
m.data.type === "StartSessionCountdown" && (G = m.data.paymentMethodName);
|
|
5348
5330
|
}, T = (m) => {
|
|
@@ -5365,7 +5347,7 @@ function Ja(e, t, n) {
|
|
|
5365
5347
|
k && (V = k?.exp, n(7, Y = V), Q && clearInterval(Q), Q = setInterval(
|
|
5366
5348
|
() => {
|
|
5367
5349
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5368
|
-
n(7, Y = V - ee), Y <=
|
|
5350
|
+
n(7, Y = V - ee), Y <= Za && n(5, R = !0), ee >= V && (v(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5369
5351
|
},
|
|
5370
5352
|
1e3
|
|
5371
5353
|
));
|
|
@@ -5397,11 +5379,11 @@ function Ja(e, t, n) {
|
|
|
5397
5379
|
), v();
|
|
5398
5380
|
return;
|
|
5399
5381
|
}
|
|
5400
|
-
if (K.ResponseCode ===
|
|
5382
|
+
if (K.ResponseCode === te.PlayerSessionIsNotValid || K.ResponseCode === te.JwtTokenError) {
|
|
5401
5383
|
O = K.ResponseCode, v(), E();
|
|
5402
5384
|
return;
|
|
5403
5385
|
}
|
|
5404
|
-
if (K.ResponseCode !==
|
|
5386
|
+
if (K.ResponseCode !== te.Success) {
|
|
5405
5387
|
O = K.ResponseCode, v();
|
|
5406
5388
|
return;
|
|
5407
5389
|
}
|
|
@@ -5413,24 +5395,24 @@ function Ja(e, t, n) {
|
|
|
5413
5395
|
}, L = () => {
|
|
5414
5396
|
fetch(b).then((k) => k.json()).then((k) => {
|
|
5415
5397
|
Object.keys(k).forEach((ee) => {
|
|
5416
|
-
|
|
5398
|
+
wr(ee, k[ee]);
|
|
5417
5399
|
});
|
|
5418
5400
|
}).catch((k) => {
|
|
5419
5401
|
console.log(k);
|
|
5420
5402
|
});
|
|
5421
5403
|
};
|
|
5422
|
-
Object.keys(
|
|
5423
|
-
|
|
5404
|
+
Object.keys(Ar).forEach((m) => {
|
|
5405
|
+
wr(m, Ar[m]);
|
|
5424
5406
|
});
|
|
5425
5407
|
const N = () => {
|
|
5426
|
-
|
|
5408
|
+
fa(M);
|
|
5427
5409
|
};
|
|
5428
|
-
|
|
5410
|
+
oo(() => (window.addEventListener("message", he, !1), () => {
|
|
5429
5411
|
window.removeEventListener("message", he);
|
|
5430
|
-
})),
|
|
5412
|
+
})), so(() => {
|
|
5431
5413
|
clearInterval(Q);
|
|
5432
5414
|
});
|
|
5433
|
-
function
|
|
5415
|
+
function j(m) {
|
|
5434
5416
|
jt[m ? "unshift" : "push"](() => {
|
|
5435
5417
|
H = m, n(4, H);
|
|
5436
5418
|
});
|
|
@@ -5444,14 +5426,14 @@ function Ja(e, t, n) {
|
|
|
5444
5426
|
});
|
|
5445
5427
|
}
|
|
5446
5428
|
return e.$$set = (m) => {
|
|
5447
|
-
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17, F = m.customerid), "selectedpaymentmethodname" in m && n(18, $ = m.selectedpaymentmethodname), "mbsource" in m && n(19,
|
|
5429
|
+
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17, F = m.customerid), "selectedpaymentmethodname" in m && n(18, $ = m.selectedpaymentmethodname), "mbsource" in m && n(19, w = m.mbsource), "$$scope" in m && n(21, u = m.$$scope);
|
|
5448
5430
|
}, e.$$.update = () => {
|
|
5449
5431
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5450
5432
|
1048576 && g(r), e.$$.dirty[0] & /*lang*/
|
|
5451
5433
|
8192 && M && N(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5452
|
-
2064 && a && H &&
|
|
5453
|
-
4112 && c && H &&
|
|
5454
|
-
524304 &&
|
|
5434
|
+
2064 && a && H && Pa(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5435
|
+
4112 && c && H && Ra(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5436
|
+
524304 && w && H && Da(H, `${w}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5455
5437
|
16384 && b && L();
|
|
5456
5438
|
}, [
|
|
5457
5439
|
l,
|
|
@@ -5473,23 +5455,23 @@ function Ja(e, t, n) {
|
|
|
5473
5455
|
C,
|
|
5474
5456
|
F,
|
|
5475
5457
|
$,
|
|
5476
|
-
|
|
5458
|
+
w,
|
|
5477
5459
|
r,
|
|
5478
5460
|
u,
|
|
5479
|
-
|
|
5480
|
-
|
|
5461
|
+
o,
|
|
5462
|
+
j,
|
|
5481
5463
|
I,
|
|
5482
5464
|
q
|
|
5483
5465
|
];
|
|
5484
5466
|
}
|
|
5485
|
-
class
|
|
5467
|
+
class Ja extends Eo {
|
|
5486
5468
|
constructor(t) {
|
|
5487
|
-
super(),
|
|
5469
|
+
super(), _o(
|
|
5488
5470
|
this,
|
|
5489
5471
|
t,
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5472
|
+
qa,
|
|
5473
|
+
Ya,
|
|
5474
|
+
Vr,
|
|
5493
5475
|
{
|
|
5494
5476
|
clientstyling: 11,
|
|
5495
5477
|
clientstylingurl: 12,
|
|
@@ -5505,7 +5487,7 @@ class Qa extends _s {
|
|
|
5505
5487
|
selectedpaymentmethodname: 18,
|
|
5506
5488
|
mbsource: 19
|
|
5507
5489
|
},
|
|
5508
|
-
|
|
5490
|
+
Ba,
|
|
5509
5491
|
[-1, -1]
|
|
5510
5492
|
);
|
|
5511
5493
|
}
|
|
@@ -5588,7 +5570,7 @@ class Qa extends _s {
|
|
|
5588
5570
|
this.$$set({ mbsource: t }), le();
|
|
5589
5571
|
}
|
|
5590
5572
|
}
|
|
5591
|
-
|
|
5573
|
+
bo(Ja, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5592
5574
|
export {
|
|
5593
|
-
|
|
5575
|
+
Ja as C
|
|
5594
5576
|
};
|