@everymatrix/cashier-session-expiration-modal 1.75.1 → 1.76.1
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-BKbmVRMA.js → CashierSessionExpirationModal-B-RLdzjl.js} +1070 -1065
- package/components/{CashierSessionExpirationModal-CPPvk6qY.js → CashierSessionExpirationModal-BOOcD7nt.js} +1059 -1054
- package/components/CashierSessionExpirationModal-Cg6Sj72O.cjs +22 -0
- 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
- package/components/CashierSessionExpirationModal-DnmnVK94.cjs +0 -9
|
@@ -15,18 +15,18 @@ function zr(e) {
|
|
|
15
15
|
function ir() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function He(e) {
|
|
19
19
|
e.forEach(zr);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Vt(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function Wr(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let St;
|
|
28
|
+
function En(e, t) {
|
|
29
|
+
return e === t ? !0 : (St || (St = document.createElement("a")), St.href = t, e === St.href);
|
|
30
30
|
}
|
|
31
31
|
function zi(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
@@ -43,7 +43,7 @@ function Vr(e, ...t) {
|
|
|
43
43
|
function sr(e, t, n) {
|
|
44
44
|
e.$$.on_destroy.push(Vr(t, n));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Nt(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
48
|
const i = Xr(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
@@ -52,14 +52,14 @@ function Lt(e, t, n, r) {
|
|
|
52
52
|
function Xr(e, t, n, r) {
|
|
53
53
|
return e[1] && r ? ji(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Lt(e, t, n, r) {
|
|
56
56
|
if (e[2] && r) {
|
|
57
57
|
const i = e[2](r(n));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const s = [],
|
|
62
|
-
for (let a = 0; a <
|
|
61
|
+
const s = [], l = Math.max(t.dirty.length, i.length);
|
|
62
|
+
for (let a = 0; a < l; a += 1)
|
|
63
63
|
s[a] = t.dirty[a] | i[a];
|
|
64
64
|
return s;
|
|
65
65
|
}
|
|
@@ -67,13 +67,13 @@ function Ht(e, t, n, r) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Ht(e, t, n, r, i, s) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const
|
|
73
|
-
e.p(
|
|
72
|
+
const l = Xr(t, n, r, s);
|
|
73
|
+
e.p(l, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Rt(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], n = e.ctx.length / 32;
|
|
79
79
|
for (let r = 0; r < n; r++)
|
|
@@ -83,21 +83,21 @@ function Pt(e) {
|
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
85
|
const Yr = typeof window < "u";
|
|
86
|
-
let Wi = Yr ? () => window.performance.now() : () => Date.now(),
|
|
87
|
-
const
|
|
86
|
+
let Wi = Yr ? () => window.performance.now() : () => Date.now(), Nn = Yr ? (e) => requestAnimationFrame(e) : de;
|
|
87
|
+
const We = /* @__PURE__ */ new Set();
|
|
88
88
|
function Zr(e) {
|
|
89
|
-
|
|
90
|
-
t.c(e) || (
|
|
91
|
-
}),
|
|
89
|
+
We.forEach((t) => {
|
|
90
|
+
t.c(e) || (We.delete(t), t.f());
|
|
91
|
+
}), We.size !== 0 && Nn(Zr);
|
|
92
92
|
}
|
|
93
93
|
function Vi(e) {
|
|
94
94
|
let t;
|
|
95
|
-
return
|
|
95
|
+
return We.size === 0 && Nn(Zr), {
|
|
96
96
|
promise: new Promise((n) => {
|
|
97
|
-
|
|
97
|
+
We.add(t = { c: e, f: n });
|
|
98
98
|
}),
|
|
99
99
|
abort() {
|
|
100
|
-
|
|
100
|
+
We.delete(t);
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -105,13 +105,13 @@ function J(e, t) {
|
|
|
105
105
|
e.appendChild(t);
|
|
106
106
|
}
|
|
107
107
|
function Xi(e, t, n) {
|
|
108
|
-
const r =
|
|
108
|
+
const r = Ln(e);
|
|
109
109
|
if (!r.getElementById(t)) {
|
|
110
110
|
const i = te("style");
|
|
111
111
|
i.id = t, i.textContent = n, qr(r, i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ln(e) {
|
|
115
115
|
if (!e)
|
|
116
116
|
return document;
|
|
117
117
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -123,7 +123,7 @@ function Rn(e) {
|
|
|
123
123
|
}
|
|
124
124
|
function Yi(e) {
|
|
125
125
|
const t = te("style");
|
|
126
|
-
return t.textContent = "/* empty */", qr(
|
|
126
|
+
return t.textContent = "/* empty */", qr(Ln(e), t), t.sheet;
|
|
127
127
|
}
|
|
128
128
|
function qr(e, t) {
|
|
129
129
|
return J(
|
|
@@ -132,7 +132,7 @@ function qr(e, t) {
|
|
|
132
132
|
t
|
|
133
133
|
), t.sheet;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Se(e, t, n) {
|
|
136
136
|
e.insertBefore(t, n || null);
|
|
137
137
|
}
|
|
138
138
|
function ge(e) {
|
|
@@ -144,39 +144,39 @@ function te(e) {
|
|
|
144
144
|
function or(e) {
|
|
145
145
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Qe(e) {
|
|
148
148
|
return document.createTextNode(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
150
|
+
function ft() {
|
|
151
|
+
return Qe(" ");
|
|
152
152
|
}
|
|
153
153
|
function Jr() {
|
|
154
|
-
return
|
|
154
|
+
return Qe("");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
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 j(e, t, n) {
|
|
160
160
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
161
161
|
}
|
|
162
162
|
function Zi(e) {
|
|
163
163
|
return Array.from(e.childNodes);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Xt(e, t) {
|
|
166
166
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
167
167
|
t);
|
|
168
168
|
}
|
|
169
|
-
let
|
|
169
|
+
let wt;
|
|
170
170
|
function qi() {
|
|
171
|
-
if (
|
|
172
|
-
|
|
171
|
+
if (wt === void 0) {
|
|
172
|
+
wt = !1;
|
|
173
173
|
try {
|
|
174
174
|
typeof window < "u" && window.parent && window.parent.document;
|
|
175
175
|
} catch {
|
|
176
|
-
|
|
176
|
+
wt = !0;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return wt;
|
|
180
180
|
}
|
|
181
181
|
function Ji(e, t) {
|
|
182
182
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
@@ -187,15 +187,15 @@ function Ji(e, t) {
|
|
|
187
187
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
188
188
|
const i = qi();
|
|
189
189
|
let s;
|
|
190
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
190
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = kt(
|
|
191
191
|
window,
|
|
192
192
|
"message",
|
|
193
193
|
/** @param {MessageEvent} event */
|
|
194
|
-
(
|
|
195
|
-
|
|
194
|
+
(l) => {
|
|
195
|
+
l.source === r.contentWindow && t();
|
|
196
196
|
}
|
|
197
197
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
198
|
-
s =
|
|
198
|
+
s = kt(r.contentWindow, "resize", t), t();
|
|
199
199
|
}), J(e, r), () => {
|
|
200
200
|
(i || s && r.contentWindow) && s(), ge(r);
|
|
201
201
|
};
|
|
@@ -212,8 +212,8 @@ function Ki(e) {
|
|
|
212
212
|
}
|
|
213
213
|
), t;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
215
|
+
const Ft = /* @__PURE__ */ new Map();
|
|
216
|
+
let Gt = 0;
|
|
217
217
|
function es(e) {
|
|
218
218
|
let t = 5381, n = e.length;
|
|
219
219
|
for (; n--; )
|
|
@@ -222,46 +222,46 @@ function es(e) {
|
|
|
222
222
|
}
|
|
223
223
|
function ts(e, t) {
|
|
224
224
|
const n = { stylesheet: Yi(t), rules: {} };
|
|
225
|
-
return
|
|
225
|
+
return Ft.set(e, n), n;
|
|
226
226
|
}
|
|
227
|
-
function ar(e, t, n, r, i, s,
|
|
227
|
+
function ar(e, t, n, r, i, s, l, a = 0) {
|
|
228
228
|
const c = 16.666 / r;
|
|
229
|
-
let
|
|
229
|
+
let u = `{
|
|
230
230
|
`;
|
|
231
231
|
for (let C = 0; C <= 1; C += c) {
|
|
232
|
-
const
|
|
233
|
-
|
|
232
|
+
const $ = t + (n - t) * s(C);
|
|
233
|
+
u += C * 100 + `%{${l($, 1 - $)}}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
|
-
const f =
|
|
237
|
-
}`, b = `__svelte_${es(f)}_${a}`, y =
|
|
236
|
+
const f = u + `100% {${l(n, 1 - n)}}
|
|
237
|
+
}`, b = `__svelte_${es(f)}_${a}`, y = Ln(e), { stylesheet: M, rules: E } = Ft.get(y) || ts(y, e);
|
|
238
238
|
E[b] || (E[b] = !0, M.insertRule(`@keyframes ${b} ${f}`, M.cssRules.length));
|
|
239
239
|
const d = e.style.animation || "";
|
|
240
|
-
return e.style.animation = `${d ? `${d}, ` : ""}${b} ${r}ms linear ${i}ms 1 both`,
|
|
240
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${b} ${r}ms linear ${i}ms 1 both`, Gt += 1, b;
|
|
241
241
|
}
|
|
242
242
|
function ns(e, t) {
|
|
243
243
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
244
244
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
245
245
|
// remove all Svelte animations
|
|
246
246
|
), i = n.length - r.length;
|
|
247
|
-
i && (e.style.animation = r.join(", "),
|
|
247
|
+
i && (e.style.animation = r.join(", "), Gt -= i, Gt || rs());
|
|
248
248
|
}
|
|
249
249
|
function rs() {
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
Nn(() => {
|
|
251
|
+
Gt || (Ft.forEach((e) => {
|
|
252
252
|
const { ownerNode: t } = e.stylesheet;
|
|
253
253
|
t && ge(t);
|
|
254
|
-
}),
|
|
254
|
+
}), Ft.clear());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
let
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
let dt;
|
|
258
|
+
function mt(e) {
|
|
259
|
+
dt = e;
|
|
260
260
|
}
|
|
261
261
|
function Qr() {
|
|
262
|
-
if (!
|
|
262
|
+
if (!dt)
|
|
263
263
|
throw new Error("Function called outside component initialization");
|
|
264
|
-
return
|
|
264
|
+
return dt;
|
|
265
265
|
}
|
|
266
266
|
function is(e) {
|
|
267
267
|
Qr().$$.on_mount.push(e);
|
|
@@ -269,102 +269,102 @@ function is(e) {
|
|
|
269
269
|
function ss(e) {
|
|
270
270
|
Qr().$$.on_destroy.push(e);
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const
|
|
275
|
-
let
|
|
272
|
+
const ze = [], $t = [];
|
|
273
|
+
let Ve = [];
|
|
274
|
+
const lr = [], os = /* @__PURE__ */ Promise.resolve();
|
|
275
|
+
let _n = !1;
|
|
276
276
|
function as() {
|
|
277
|
-
|
|
277
|
+
_n || (_n = !0, os.then(ue));
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
function Xe(e) {
|
|
280
|
+
Ve.push(e);
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
let
|
|
284
|
-
function
|
|
285
|
-
if (
|
|
282
|
+
const sn = /* @__PURE__ */ new Set();
|
|
283
|
+
let $e = 0;
|
|
284
|
+
function ue() {
|
|
285
|
+
if ($e !== 0)
|
|
286
286
|
return;
|
|
287
|
-
const e =
|
|
287
|
+
const e = dt;
|
|
288
288
|
do {
|
|
289
289
|
try {
|
|
290
|
-
for (;
|
|
291
|
-
const t =
|
|
292
|
-
|
|
290
|
+
for (; $e < ze.length; ) {
|
|
291
|
+
const t = ze[$e];
|
|
292
|
+
$e++, mt(t), ls(t.$$);
|
|
293
293
|
}
|
|
294
294
|
} catch (t) {
|
|
295
|
-
throw
|
|
295
|
+
throw ze.length = 0, $e = 0, t;
|
|
296
296
|
}
|
|
297
|
-
for (
|
|
298
|
-
|
|
299
|
-
for (let t = 0; t <
|
|
300
|
-
const n =
|
|
301
|
-
|
|
297
|
+
for (mt(null), ze.length = 0, $e = 0; $t.length; )
|
|
298
|
+
$t.pop()();
|
|
299
|
+
for (let t = 0; t < Ve.length; t += 1) {
|
|
300
|
+
const n = Ve[t];
|
|
301
|
+
sn.has(n) || (sn.add(n), n());
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
} while (
|
|
305
|
-
for (;
|
|
306
|
-
|
|
307
|
-
|
|
303
|
+
Ve.length = 0;
|
|
304
|
+
} while (ze.length);
|
|
305
|
+
for (; lr.length; )
|
|
306
|
+
lr.pop()();
|
|
307
|
+
_n = !1, sn.clear(), mt(e);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function ls(e) {
|
|
310
310
|
if (e.fragment !== null) {
|
|
311
|
-
e.update(),
|
|
311
|
+
e.update(), He(e.before_update);
|
|
312
312
|
const t = e.dirty;
|
|
313
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
313
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function us(e) {
|
|
317
317
|
const t = [], n = [];
|
|
318
|
-
|
|
318
|
+
Ve.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ve = t;
|
|
319
319
|
}
|
|
320
|
-
let
|
|
320
|
+
let it;
|
|
321
321
|
function cs() {
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
})),
|
|
322
|
+
return it || (it = Promise.resolve(), it.then(() => {
|
|
323
|
+
it = null;
|
|
324
|
+
})), it;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function on(e, t, n) {
|
|
327
327
|
e.dispatchEvent(Qi(`${t ? "intro" : "outro"}${n}`));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
let
|
|
329
|
+
const Pt = /* @__PURE__ */ new Set();
|
|
330
|
+
let Me;
|
|
331
331
|
function Kr() {
|
|
332
|
-
|
|
332
|
+
Me = {
|
|
333
333
|
r: 0,
|
|
334
334
|
c: [],
|
|
335
|
-
p:
|
|
335
|
+
p: Me
|
|
336
336
|
// parent group
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
function ei() {
|
|
340
|
-
|
|
340
|
+
Me.r || He(Me.c), Me = Me.p;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
e && e.i && (
|
|
342
|
+
function Ae(e, t) {
|
|
343
|
+
e && e.i && (Pt.delete(e), e.i(t));
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Ne(e, t, n, r) {
|
|
346
346
|
if (e && e.o) {
|
|
347
|
-
if (
|
|
347
|
+
if (Pt.has(e))
|
|
348
348
|
return;
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
Pt.add(e), Me.c.push(() => {
|
|
350
|
+
Pt.delete(e), r && (n && e.d(1), r());
|
|
351
351
|
}), e.o(t);
|
|
352
352
|
} else
|
|
353
353
|
r && r();
|
|
354
354
|
}
|
|
355
355
|
const fs = { duration: 0 };
|
|
356
|
-
function
|
|
357
|
-
let s = t(e, n, { direction: "both" }),
|
|
356
|
+
function ur(e, t, n, r) {
|
|
357
|
+
let s = t(e, n, { direction: "both" }), l = r ? 0 : 1, a = null, c = null, u = null, f;
|
|
358
358
|
function b() {
|
|
359
|
-
|
|
359
|
+
u && ns(e, u);
|
|
360
360
|
}
|
|
361
361
|
function y(E, d) {
|
|
362
362
|
const C = (
|
|
363
363
|
/** @type {Program['d']} */
|
|
364
|
-
E.b -
|
|
364
|
+
E.b - l
|
|
365
365
|
);
|
|
366
366
|
return d *= Math.abs(C), {
|
|
367
|
-
a:
|
|
367
|
+
a: l,
|
|
368
368
|
b: E.b,
|
|
369
369
|
d: C,
|
|
370
370
|
duration: d,
|
|
@@ -377,29 +377,29 @@ function lr(e, t, n, r) {
|
|
|
377
377
|
const {
|
|
378
378
|
delay: d = 0,
|
|
379
379
|
duration: C = 300,
|
|
380
|
-
easing:
|
|
380
|
+
easing: $ = jr,
|
|
381
381
|
tick: U = de,
|
|
382
|
-
css:
|
|
382
|
+
css: S
|
|
383
383
|
} = s || fs, H = {
|
|
384
384
|
start: Wi() + d,
|
|
385
385
|
b: E
|
|
386
386
|
};
|
|
387
|
-
E || (H.group =
|
|
388
|
-
e.inert, e.inert = !0)), a || c ? c = H : (
|
|
389
|
-
if (c && I > c.start && (a = y(c, C), c = null,
|
|
387
|
+
E || (H.group = Me, Me.r += 1), "inert" in e && (E ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
388
|
+
e.inert, e.inert = !0)), a || c ? c = H : (S && (b(), u = ar(e, l, E, C, d, $, S)), E && U(0, 1), a = y(H, C), Xe(() => on(e, E, "start")), Vi((I) => {
|
|
389
|
+
if (c && I > c.start && (a = y(c, C), c = null, on(e, a.b, "start"), S && (b(), u = ar(
|
|
390
390
|
e,
|
|
391
|
-
|
|
391
|
+
l,
|
|
392
392
|
a.b,
|
|
393
393
|
a.duration,
|
|
394
394
|
0,
|
|
395
|
-
|
|
395
|
+
$,
|
|
396
396
|
s.css
|
|
397
397
|
))), a) {
|
|
398
398
|
if (I >= a.end)
|
|
399
|
-
U(
|
|
399
|
+
U(l = a.b, 1 - l), on(e, a.b, "end"), c || (a.b ? b() : --a.group.r || He(a.group.c)), a = null;
|
|
400
400
|
else if (I >= a.start) {
|
|
401
|
-
const
|
|
402
|
-
|
|
401
|
+
const F = I - a.start;
|
|
402
|
+
l = a.a + a.d * $(F / a.duration), U(l, 1 - l);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return !!(a || c);
|
|
@@ -407,7 +407,7 @@ function lr(e, t, n, r) {
|
|
|
407
407
|
}
|
|
408
408
|
return {
|
|
409
409
|
run(E) {
|
|
410
|
-
|
|
410
|
+
Vt(s) ? cs().then(() => {
|
|
411
411
|
s = s({ direction: E ? "in" : "out" }), M(E);
|
|
412
412
|
}) : M(E);
|
|
413
413
|
},
|
|
@@ -418,22 +418,22 @@ function lr(e, t, n, r) {
|
|
|
418
418
|
}
|
|
419
419
|
function hs(e, t, n) {
|
|
420
420
|
const { fragment: r, after_update: i } = e.$$;
|
|
421
|
-
r && r.m(t, n),
|
|
422
|
-
const s = e.$$.on_mount.map(zr).filter(
|
|
423
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
424
|
-
}), i.forEach(
|
|
421
|
+
r && r.m(t, n), Xe(() => {
|
|
422
|
+
const s = e.$$.on_mount.map(zr).filter(Vt);
|
|
423
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : He(s), e.$$.on_mount = [];
|
|
424
|
+
}), i.forEach(Xe);
|
|
425
425
|
}
|
|
426
426
|
function ms(e, t) {
|
|
427
427
|
const n = e.$$;
|
|
428
|
-
n.fragment !== null && (
|
|
428
|
+
n.fragment !== null && (us(n.after_update), He(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
429
429
|
}
|
|
430
430
|
function ds(e, t) {
|
|
431
|
-
e.$$.dirty[0] === -1 && (
|
|
431
|
+
e.$$.dirty[0] === -1 && (ze.push(e), as(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
432
432
|
}
|
|
433
|
-
function ps(e, t, n, r, i, s,
|
|
434
|
-
const c =
|
|
435
|
-
|
|
436
|
-
const
|
|
433
|
+
function ps(e, t, n, r, i, s, l = null, a = [-1]) {
|
|
434
|
+
const c = dt;
|
|
435
|
+
mt(e);
|
|
436
|
+
const u = e.$$ = {
|
|
437
437
|
fragment: null,
|
|
438
438
|
ctx: [],
|
|
439
439
|
// state
|
|
@@ -454,20 +454,20 @@ function ps(e, t, n, r, i, s, u = null, a = [-1]) {
|
|
|
454
454
|
skip_bound: !1,
|
|
455
455
|
root: t.target || c.$$.root
|
|
456
456
|
};
|
|
457
|
-
|
|
457
|
+
l && l(u.root);
|
|
458
458
|
let f = !1;
|
|
459
|
-
if (
|
|
459
|
+
if (u.ctx = n ? n(e, t.props || {}, (b, y, ...M) => {
|
|
460
460
|
const E = M.length ? M[0] : y;
|
|
461
|
-
return
|
|
462
|
-
}) : [],
|
|
461
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = E) && (!u.skip_bound && u.bound[b] && u.bound[b](E), f && ds(e, b)), y;
|
|
462
|
+
}) : [], u.update(), f = !0, He(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
464
|
const b = Zi(t.target);
|
|
465
|
-
|
|
465
|
+
u.fragment && u.fragment.l(b), b.forEach(ge);
|
|
466
466
|
} else
|
|
467
|
-
|
|
468
|
-
t.intro &&
|
|
467
|
+
u.fragment && u.fragment.c();
|
|
468
|
+
t.intro && Ae(e.$$.fragment), hs(e, t.target, t.anchor), ue();
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
mt(c);
|
|
471
471
|
}
|
|
472
472
|
let ti;
|
|
473
473
|
typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
@@ -512,14 +512,14 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
512
512
|
let s;
|
|
513
513
|
return {
|
|
514
514
|
c: function() {
|
|
515
|
-
s = te("slot"), i !== "default" &&
|
|
515
|
+
s = te("slot"), i !== "default" && j(s, "name", i);
|
|
516
516
|
},
|
|
517
517
|
/**
|
|
518
518
|
* @param {HTMLElement} target
|
|
519
519
|
* @param {HTMLElement} [anchor]
|
|
520
520
|
*/
|
|
521
|
-
m: function(c,
|
|
522
|
-
|
|
521
|
+
m: function(c, u) {
|
|
522
|
+
Se(c, s, u);
|
|
523
523
|
},
|
|
524
524
|
d: function(c) {
|
|
525
525
|
c && ge(s);
|
|
@@ -534,7 +534,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
534
534
|
i in n && (t[i] = [e(i)]);
|
|
535
535
|
for (const i of this.attributes) {
|
|
536
536
|
const s = this.$$g_p(i.name);
|
|
537
|
-
s in this.$$d || (this.$$d[s] =
|
|
537
|
+
s in this.$$d || (this.$$d[s] = It(s, 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,7 +552,7 @@ 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 s =
|
|
555
|
+
const s = It(
|
|
556
556
|
i,
|
|
557
557
|
this.$$d[i],
|
|
558
558
|
this.$$p_d,
|
|
@@ -565,8 +565,8 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
565
565
|
this.$$c.$$.after_update.push(r), r();
|
|
566
566
|
for (const i in this.$$l)
|
|
567
567
|
for (const s of this.$$l[i]) {
|
|
568
|
-
const
|
|
569
|
-
this.$$l_u.set(s,
|
|
568
|
+
const l = this.$$c.$on(i, s);
|
|
569
|
+
this.$$l_u.set(s, l);
|
|
570
570
|
}
|
|
571
571
|
this.$$l = {};
|
|
572
572
|
}
|
|
@@ -574,7 +574,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
574
574
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
575
575
|
// and setting attributes through setAttribute etc, this is helpful
|
|
576
576
|
attributeChangedCallback(e, t, n) {
|
|
577
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
577
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = It(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
578
578
|
}
|
|
579
579
|
disconnectedCallback() {
|
|
580
580
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -587,7 +587,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
587
587
|
) || e;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function It(e, t, n, r) {
|
|
591
591
|
const i = n[e]?.type;
|
|
592
592
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
593
593
|
return t;
|
|
@@ -617,7 +617,7 @@ function Dt(e, t, n, r) {
|
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
function gs(e, t, n, r, i, s) {
|
|
620
|
-
let
|
|
620
|
+
let l = class extends ti {
|
|
621
621
|
constructor() {
|
|
622
622
|
super(e, n, i), this.$$p_d = t;
|
|
623
623
|
}
|
|
@@ -628,22 +628,22 @@ function gs(e, t, n, r, i, s) {
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
return Object.keys(t).forEach((a) => {
|
|
631
|
-
Object.defineProperty(
|
|
631
|
+
Object.defineProperty(l.prototype, a, {
|
|
632
632
|
get() {
|
|
633
633
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
634
634
|
},
|
|
635
635
|
set(c) {
|
|
636
|
-
c =
|
|
636
|
+
c = It(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
|
|
637
637
|
}
|
|
638
638
|
});
|
|
639
639
|
}), r.forEach((a) => {
|
|
640
|
-
Object.defineProperty(
|
|
640
|
+
Object.defineProperty(l.prototype, a, {
|
|
641
641
|
get() {
|
|
642
642
|
return this.$$c?.[a];
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
645
|
}), e.element = /** @type {any} */
|
|
646
|
-
|
|
646
|
+
l, l;
|
|
647
647
|
}
|
|
648
648
|
class bs {
|
|
649
649
|
/**
|
|
@@ -673,7 +673,7 @@ class bs {
|
|
|
673
673
|
* @returns {() => void}
|
|
674
674
|
*/
|
|
675
675
|
$on(t, n) {
|
|
676
|
-
if (!
|
|
676
|
+
if (!Vt(n))
|
|
677
677
|
return de;
|
|
678
678
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
679
679
|
return r.push(n), () => {
|
|
@@ -700,58 +700,58 @@ function cr(e, { delay: t = 0, duration: n = 400, easing: r = jr } = {}) {
|
|
|
700
700
|
css: (s) => `opacity: ${s * i}`
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const je = [];
|
|
704
704
|
function _s(e, t) {
|
|
705
705
|
return {
|
|
706
|
-
subscribe:
|
|
706
|
+
subscribe: bt(e, t).subscribe
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function bt(e, t = de) {
|
|
710
710
|
let n;
|
|
711
711
|
const r = /* @__PURE__ */ new Set();
|
|
712
712
|
function i(a) {
|
|
713
713
|
if (Wr(e, a) && (e = a, n)) {
|
|
714
|
-
const c = !
|
|
715
|
-
for (const
|
|
716
|
-
|
|
714
|
+
const c = !je.length;
|
|
715
|
+
for (const u of r)
|
|
716
|
+
u[1](), je.push(u, e);
|
|
717
717
|
if (c) {
|
|
718
|
-
for (let
|
|
719
|
-
|
|
720
|
-
|
|
718
|
+
for (let u = 0; u < je.length; u += 2)
|
|
719
|
+
je[u][0](je[u + 1]);
|
|
720
|
+
je.length = 0;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
function s(a) {
|
|
725
725
|
i(a(e));
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
const
|
|
729
|
-
return r.add(
|
|
730
|
-
r.delete(
|
|
727
|
+
function l(a, c = de) {
|
|
728
|
+
const u = [a, c];
|
|
729
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || de), a(e), () => {
|
|
730
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
return { set: i, update: s, subscribe:
|
|
733
|
+
return { set: i, update: s, subscribe: l };
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Ke(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
739
|
const s = t.length < 2;
|
|
740
|
-
return _s(n, (
|
|
740
|
+
return _s(n, (l, a) => {
|
|
741
741
|
let c = !1;
|
|
742
|
-
const
|
|
742
|
+
const u = [];
|
|
743
743
|
let f = 0, b = de;
|
|
744
744
|
const y = () => {
|
|
745
745
|
if (f)
|
|
746
746
|
return;
|
|
747
747
|
b();
|
|
748
|
-
const E = t(r ?
|
|
749
|
-
s ?
|
|
748
|
+
const E = t(r ? u[0] : u, l, a);
|
|
749
|
+
s ? l(E) : b = Vt(E) ? E : de;
|
|
750
750
|
}, M = i.map(
|
|
751
751
|
(E, d) => Vr(
|
|
752
752
|
E,
|
|
753
753
|
(C) => {
|
|
754
|
-
|
|
754
|
+
u[d] = C, f &= ~(1 << d), c && y();
|
|
755
755
|
},
|
|
756
756
|
() => {
|
|
757
757
|
f |= 1 << d;
|
|
@@ -759,12 +759,12 @@ function et(e, t, n) {
|
|
|
759
759
|
)
|
|
760
760
|
);
|
|
761
761
|
return c = !0, y(), function() {
|
|
762
|
-
|
|
762
|
+
He(M), b(), c = !1;
|
|
763
763
|
};
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
var ni = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
767
|
-
function
|
|
767
|
+
function Hn(e) {
|
|
768
768
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
769
769
|
}
|
|
770
770
|
var ys = function(t) {
|
|
@@ -775,28 +775,28 @@ function Ts(e) {
|
|
|
775
775
|
}
|
|
776
776
|
function xs(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]" || Ss(e);
|
|
779
779
|
}
|
|
780
|
-
var vs = typeof Symbol == "function" && Symbol.for,
|
|
781
|
-
function
|
|
782
|
-
return e.$$typeof ===
|
|
780
|
+
var vs = typeof Symbol == "function" && Symbol.for, As = vs ? Symbol.for("react.element") : 60103;
|
|
781
|
+
function Ss(e) {
|
|
782
|
+
return e.$$typeof === As;
|
|
783
783
|
}
|
|
784
784
|
function ws(e) {
|
|
785
785
|
return Array.isArray(e) ? [] : {};
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
787
|
+
function pt(e, t) {
|
|
788
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ye(ws(e), e, t) : e;
|
|
789
789
|
}
|
|
790
790
|
function Os(e, t, n) {
|
|
791
791
|
return e.concat(t).map(function(r) {
|
|
792
|
-
return
|
|
792
|
+
return pt(r, n);
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
795
|
function Ms(e, t) {
|
|
796
796
|
if (!t.customMerge)
|
|
797
|
-
return
|
|
797
|
+
return Ye;
|
|
798
798
|
var n = t.customMerge(e);
|
|
799
|
-
return typeof n == "function" ? n :
|
|
799
|
+
return typeof n == "function" ? n : Ye;
|
|
800
800
|
}
|
|
801
801
|
function Cs(e) {
|
|
802
802
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -819,51 +819,65 @@ function Ns(e, t) {
|
|
|
819
819
|
function Ls(e, t, n) {
|
|
820
820
|
var r = {};
|
|
821
821
|
return n.isMergeableObject(e) && fr(e).forEach(function(i) {
|
|
822
|
-
r[i] =
|
|
822
|
+
r[i] = pt(e[i], n);
|
|
823
823
|
}), fr(t).forEach(function(i) {
|
|
824
|
-
Ns(e, i) || (ri(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ms(i, n)(e[i], t[i], n) : r[i] =
|
|
824
|
+
Ns(e, i) || (ri(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ms(i, n)(e[i], t[i], n) : r[i] = pt(t[i], n));
|
|
825
825
|
}), r;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || Os, n.isMergeableObject = n.isMergeableObject || ys, n.cloneUnlessOtherwiseSpecified =
|
|
827
|
+
function Ye(e, t, n) {
|
|
828
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Os, n.isMergeableObject = n.isMergeableObject || ys, n.cloneUnlessOtherwiseSpecified = pt;
|
|
829
829
|
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
830
|
-
return s ? r ? n.arrayMerge(e, t, n) : Ls(e, t, n) :
|
|
830
|
+
return s ? r ? n.arrayMerge(e, t, n) : Ls(e, t, n) : pt(t, n);
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
Ye.all = function(t, n) {
|
|
833
833
|
if (!Array.isArray(t))
|
|
834
834
|
throw new Error("first argument should be an array");
|
|
835
835
|
return t.reduce(function(r, i) {
|
|
836
|
-
return
|
|
836
|
+
return Ye(r, i, n);
|
|
837
837
|
}, {});
|
|
838
838
|
};
|
|
839
|
-
var Hs =
|
|
840
|
-
const Ps = /* @__PURE__ */
|
|
841
|
-
|
|
842
|
-
|
|
839
|
+
var Hs = Ye, Rs = Hs;
|
|
840
|
+
const Ps = /* @__PURE__ */ Hn(Rs);
|
|
841
|
+
/*! *****************************************************************************
|
|
842
|
+
Copyright (c) Microsoft Corporation.
|
|
843
|
+
|
|
844
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
845
|
+
purpose with or without fee is hereby granted.
|
|
846
|
+
|
|
847
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
848
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
849
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
850
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
851
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
852
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
853
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
854
|
+
***************************************************************************** */
|
|
855
|
+
var yn = function(e, t) {
|
|
856
|
+
return yn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
843
857
|
n.__proto__ = r;
|
|
844
858
|
} || function(n, r) {
|
|
845
859
|
for (var i in r)
|
|
846
860
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
847
|
-
},
|
|
861
|
+
}, yn(e, t);
|
|
848
862
|
};
|
|
849
|
-
function
|
|
863
|
+
function Yt(e, t) {
|
|
850
864
|
if (typeof t != "function" && t !== null)
|
|
851
865
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
852
|
-
|
|
866
|
+
yn(e, t);
|
|
853
867
|
function n() {
|
|
854
868
|
this.constructor = e;
|
|
855
869
|
}
|
|
856
870
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
857
871
|
}
|
|
858
|
-
var
|
|
859
|
-
return
|
|
872
|
+
var k = function() {
|
|
873
|
+
return k = Object.assign || function(t) {
|
|
860
874
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
861
875
|
n = arguments[r];
|
|
862
876
|
for (var s in n)
|
|
863
877
|
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
864
878
|
}
|
|
865
879
|
return t;
|
|
866
|
-
},
|
|
880
|
+
}, k.apply(this, arguments);
|
|
867
881
|
};
|
|
868
882
|
function Is(e, t) {
|
|
869
883
|
var n = {};
|
|
@@ -874,14 +888,14 @@ function Is(e, t) {
|
|
|
874
888
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
875
889
|
return n;
|
|
876
890
|
}
|
|
877
|
-
function
|
|
878
|
-
if (
|
|
891
|
+
function an(e, t, n) {
|
|
892
|
+
if (arguments.length === 2)
|
|
879
893
|
for (var r = 0, i = t.length, s; r < i; r++)
|
|
880
894
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
881
|
-
return e.concat(s ||
|
|
895
|
+
return e.concat(s || t);
|
|
882
896
|
}
|
|
883
|
-
function
|
|
884
|
-
var n = t && t.cache ? t.cache :
|
|
897
|
+
function ln(e, t) {
|
|
898
|
+
var n = t && t.cache ? t.cache : Gs, r = t && t.serializer ? t.serializer : Fs, i = t && t.strategy ? t.strategy : Bs;
|
|
885
899
|
return i(e, {
|
|
886
900
|
cache: n,
|
|
887
901
|
serializer: r
|
|
@@ -890,103 +904,95 @@ function cn(e, t) {
|
|
|
890
904
|
function Ds(e) {
|
|
891
905
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
892
906
|
}
|
|
893
|
-
function
|
|
907
|
+
function ii(e, t, n, r) {
|
|
894
908
|
var i = Ds(r) ? r : n(r), s = t.get(i);
|
|
895
909
|
return typeof s > "u" && (s = e.call(this, r), t.set(i, s)), s;
|
|
896
910
|
}
|
|
897
|
-
function
|
|
911
|
+
function si(e, t, n) {
|
|
898
912
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
899
913
|
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
900
914
|
}
|
|
901
|
-
function
|
|
915
|
+
function Rn(e, t, n, r, i) {
|
|
902
916
|
return n.bind(t, e, r, i);
|
|
903
917
|
}
|
|
918
|
+
function Bs(e, t) {
|
|
919
|
+
var n = e.length === 1 ? ii : si;
|
|
920
|
+
return Rn(e, this, n, t.cache.create(), t.serializer);
|
|
921
|
+
}
|
|
904
922
|
function Us(e, t) {
|
|
905
|
-
|
|
906
|
-
return si(e, this, n, t.cache.create(), t.serializer);
|
|
923
|
+
return Rn(e, this, si, t.cache.create(), t.serializer);
|
|
907
924
|
}
|
|
908
925
|
function ks(e, t) {
|
|
909
|
-
return
|
|
926
|
+
return Rn(e, this, ii, t.cache.create(), t.serializer);
|
|
910
927
|
}
|
|
911
928
|
var Fs = function() {
|
|
912
929
|
return JSON.stringify(arguments);
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
}()
|
|
925
|
-
), $s = {
|
|
930
|
+
};
|
|
931
|
+
function Pn() {
|
|
932
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
933
|
+
}
|
|
934
|
+
Pn.prototype.get = function(e) {
|
|
935
|
+
return this.cache[e];
|
|
936
|
+
};
|
|
937
|
+
Pn.prototype.set = function(e, t) {
|
|
938
|
+
this.cache[e] = t;
|
|
939
|
+
};
|
|
940
|
+
var Gs = {
|
|
926
941
|
create: function() {
|
|
927
|
-
return new
|
|
942
|
+
return new Pn();
|
|
928
943
|
}
|
|
929
|
-
},
|
|
930
|
-
variadic:
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
934
|
-
n = arguments[r];
|
|
935
|
-
for (var s in n)
|
|
936
|
-
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
937
|
-
}
|
|
938
|
-
return t;
|
|
939
|
-
}, zt.apply(this, arguments);
|
|
940
|
-
};
|
|
941
|
-
var D;
|
|
944
|
+
}, un = {
|
|
945
|
+
variadic: Us,
|
|
946
|
+
monadic: ks
|
|
947
|
+
}, D;
|
|
942
948
|
(function(e) {
|
|
943
949
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
944
950
|
})(D || (D = {}));
|
|
945
|
-
var
|
|
951
|
+
var Y;
|
|
946
952
|
(function(e) {
|
|
947
953
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
948
|
-
})(
|
|
949
|
-
var
|
|
954
|
+
})(Y || (Y = {}));
|
|
955
|
+
var Ze;
|
|
950
956
|
(function(e) {
|
|
951
957
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
952
|
-
})(
|
|
958
|
+
})(Ze || (Ze = {}));
|
|
953
959
|
function hr(e) {
|
|
954
|
-
return e.type ===
|
|
960
|
+
return e.type === Y.literal;
|
|
955
961
|
}
|
|
956
|
-
function
|
|
957
|
-
return e.type ===
|
|
962
|
+
function $s(e) {
|
|
963
|
+
return e.type === Y.argument;
|
|
958
964
|
}
|
|
959
965
|
function oi(e) {
|
|
960
|
-
return e.type ===
|
|
966
|
+
return e.type === Y.number;
|
|
961
967
|
}
|
|
962
968
|
function ai(e) {
|
|
963
|
-
return e.type ===
|
|
964
|
-
}
|
|
965
|
-
function ui(e) {
|
|
966
|
-
return e.type === X.time;
|
|
969
|
+
return e.type === Y.date;
|
|
967
970
|
}
|
|
968
971
|
function li(e) {
|
|
969
|
-
return e.type ===
|
|
972
|
+
return e.type === Y.time;
|
|
973
|
+
}
|
|
974
|
+
function ui(e) {
|
|
975
|
+
return e.type === Y.select;
|
|
970
976
|
}
|
|
971
977
|
function ci(e) {
|
|
972
|
-
return e.type ===
|
|
978
|
+
return e.type === Y.plural;
|
|
973
979
|
}
|
|
974
|
-
function
|
|
975
|
-
return e.type ===
|
|
980
|
+
function js(e) {
|
|
981
|
+
return e.type === Y.pound;
|
|
976
982
|
}
|
|
977
983
|
function fi(e) {
|
|
978
|
-
return e.type ===
|
|
984
|
+
return e.type === Y.tag;
|
|
979
985
|
}
|
|
980
986
|
function hi(e) {
|
|
981
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
987
|
+
return !!(e && typeof e == "object" && e.type === Ze.number);
|
|
982
988
|
}
|
|
983
|
-
function
|
|
984
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
989
|
+
function Tn(e) {
|
|
990
|
+
return !!(e && typeof e == "object" && e.type === Ze.dateTime);
|
|
985
991
|
}
|
|
986
|
-
var mi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
987
|
-
function
|
|
992
|
+
var mi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zs = /(?:[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;
|
|
993
|
+
function Ws(e) {
|
|
988
994
|
var t = {};
|
|
989
|
-
return e.replace(
|
|
995
|
+
return e.replace(zs, function(n) {
|
|
990
996
|
var r = n.length;
|
|
991
997
|
switch (n[0]) {
|
|
992
998
|
case "G":
|
|
@@ -1075,28 +1081,18 @@ function Vs(e) {
|
|
|
1075
1081
|
return "";
|
|
1076
1082
|
}), t;
|
|
1077
1083
|
}
|
|
1078
|
-
var
|
|
1079
|
-
|
|
1080
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1081
|
-
n = arguments[r];
|
|
1082
|
-
for (var s in n)
|
|
1083
|
-
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
1084
|
-
}
|
|
1085
|
-
return t;
|
|
1086
|
-
}, Z.apply(this, arguments);
|
|
1087
|
-
};
|
|
1088
|
-
var Xs = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1089
|
-
function Ys(e) {
|
|
1084
|
+
var Vs = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1085
|
+
function Xs(e) {
|
|
1090
1086
|
if (e.length === 0)
|
|
1091
1087
|
throw new Error("Number skeleton cannot be empty");
|
|
1092
|
-
for (var t = e.split(
|
|
1088
|
+
for (var t = e.split(Vs).filter(function(y) {
|
|
1093
1089
|
return y.length > 0;
|
|
1094
1090
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1095
|
-
var s = i[r],
|
|
1096
|
-
if (
|
|
1091
|
+
var s = i[r], l = s.split("/");
|
|
1092
|
+
if (l.length === 0)
|
|
1097
1093
|
throw new Error("Invalid number skeleton");
|
|
1098
|
-
for (var a =
|
|
1099
|
-
var b = f[
|
|
1094
|
+
for (var a = l[0], c = l.slice(1), u = 0, f = c; u < f.length; u++) {
|
|
1095
|
+
var b = f[u];
|
|
1100
1096
|
if (b.length === 0)
|
|
1101
1097
|
throw new Error("Invalid number skeleton");
|
|
1102
1098
|
}
|
|
@@ -1104,10 +1100,10 @@ function Ys(e) {
|
|
|
1104
1100
|
}
|
|
1105
1101
|
return n;
|
|
1106
1102
|
}
|
|
1107
|
-
function
|
|
1103
|
+
function Ys(e) {
|
|
1108
1104
|
return e.replace(/^(.*?)-/, "");
|
|
1109
1105
|
}
|
|
1110
|
-
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, di = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1106
|
+
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, di = /^(@+)?(\+|#+)?[rs]?$/g, Zs = /(\*)(0+)|(#+)(0+)|(0+)/g, pi = /^(0+)$/;
|
|
1111
1107
|
function dr(e) {
|
|
1112
1108
|
var t = {};
|
|
1113
1109
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(di, function(n, r, i) {
|
|
@@ -1154,7 +1150,7 @@ function gi(e) {
|
|
|
1154
1150
|
};
|
|
1155
1151
|
}
|
|
1156
1152
|
}
|
|
1157
|
-
function
|
|
1153
|
+
function qs(e) {
|
|
1158
1154
|
var t;
|
|
1159
1155
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1160
1156
|
notation: "engineering"
|
|
@@ -1172,7 +1168,7 @@ function pr(e) {
|
|
|
1172
1168
|
var t = {}, n = gi(e);
|
|
1173
1169
|
return n || t;
|
|
1174
1170
|
}
|
|
1175
|
-
function
|
|
1171
|
+
function Js(e) {
|
|
1176
1172
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1177
1173
|
var i = r[n];
|
|
1178
1174
|
switch (i.stem) {
|
|
@@ -1196,7 +1192,7 @@ function Qs(e) {
|
|
|
1196
1192
|
continue;
|
|
1197
1193
|
case "measure-unit":
|
|
1198
1194
|
case "unit":
|
|
1199
|
-
t.style = "unit", t.unit =
|
|
1195
|
+
t.style = "unit", t.unit = Ys(i.options[0]);
|
|
1200
1196
|
continue;
|
|
1201
1197
|
case "compact-short":
|
|
1202
1198
|
case "K":
|
|
@@ -1207,13 +1203,13 @@ function Qs(e) {
|
|
|
1207
1203
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1208
1204
|
continue;
|
|
1209
1205
|
case "scientific":
|
|
1210
|
-
t =
|
|
1211
|
-
return
|
|
1206
|
+
t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1207
|
+
return k(k({}, c), pr(u));
|
|
1212
1208
|
}, {}));
|
|
1213
1209
|
continue;
|
|
1214
1210
|
case "engineering":
|
|
1215
|
-
t =
|
|
1216
|
-
return
|
|
1211
|
+
t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1212
|
+
return k(k({}, c), pr(u));
|
|
1217
1213
|
}, {}));
|
|
1218
1214
|
continue;
|
|
1219
1215
|
case "notation-simple":
|
|
@@ -1258,8 +1254,8 @@ function Qs(e) {
|
|
|
1258
1254
|
case "integer-width":
|
|
1259
1255
|
if (i.options.length > 1)
|
|
1260
1256
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1261
|
-
i.options[0].replace(
|
|
1262
|
-
if (
|
|
1257
|
+
i.options[0].replace(Zs, function(c, u, f, b, y, M) {
|
|
1258
|
+
if (u)
|
|
1263
1259
|
t.minimumIntegerDigits = f.length;
|
|
1264
1260
|
else {
|
|
1265
1261
|
if (b && y)
|
|
@@ -1278,25 +1274,25 @@ function Qs(e) {
|
|
|
1278
1274
|
if (mr.test(i.stem)) {
|
|
1279
1275
|
if (i.options.length > 1)
|
|
1280
1276
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1281
|
-
i.stem.replace(mr, function(c,
|
|
1282
|
-
return f === "*" ? t.minimumFractionDigits =
|
|
1277
|
+
i.stem.replace(mr, function(c, u, f, b, y, M) {
|
|
1278
|
+
return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && M ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + M.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1283
1279
|
});
|
|
1284
1280
|
var s = i.options[0];
|
|
1285
|
-
s === "w" ? t =
|
|
1281
|
+
s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t), dr(s)));
|
|
1286
1282
|
continue;
|
|
1287
1283
|
}
|
|
1288
1284
|
if (di.test(i.stem)) {
|
|
1289
|
-
t =
|
|
1285
|
+
t = k(k({}, t), dr(i.stem));
|
|
1290
1286
|
continue;
|
|
1291
1287
|
}
|
|
1292
|
-
var
|
|
1293
|
-
|
|
1294
|
-
var a =
|
|
1295
|
-
a && (t =
|
|
1288
|
+
var l = gi(i.stem);
|
|
1289
|
+
l && (t = k(k({}, t), l));
|
|
1290
|
+
var a = qs(i.stem);
|
|
1291
|
+
a && (t = k(k({}, t), a));
|
|
1296
1292
|
}
|
|
1297
1293
|
return t;
|
|
1298
1294
|
}
|
|
1299
|
-
var
|
|
1295
|
+
var Ot = {
|
|
1300
1296
|
"001": [
|
|
1301
1297
|
"H",
|
|
1302
1298
|
"h"
|
|
@@ -2711,23 +2707,23 @@ var Mt = {
|
|
|
2711
2707
|
"h"
|
|
2712
2708
|
]
|
|
2713
2709
|
};
|
|
2714
|
-
function
|
|
2710
|
+
function Qs(e, t) {
|
|
2715
2711
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2716
2712
|
var i = e.charAt(r);
|
|
2717
2713
|
if (i === "j") {
|
|
2718
2714
|
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2719
2715
|
s++, r++;
|
|
2720
|
-
var
|
|
2721
|
-
for ((
|
|
2716
|
+
var l = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), c = "a", u = Ks(t);
|
|
2717
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2722
2718
|
n += c;
|
|
2723
|
-
for (;
|
|
2724
|
-
n =
|
|
2719
|
+
for (; l-- > 0; )
|
|
2720
|
+
n = u + n;
|
|
2725
2721
|
} else
|
|
2726
2722
|
i === "J" ? n += "H" : n += i;
|
|
2727
2723
|
}
|
|
2728
2724
|
return n;
|
|
2729
2725
|
}
|
|
2730
|
-
function
|
|
2726
|
+
function Ks(e) {
|
|
2731
2727
|
var t = e.hourCycle;
|
|
2732
2728
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2733
2729
|
e.hourCycles && // @ts-ignore
|
|
@@ -2746,23 +2742,23 @@ function eo(e) {
|
|
|
2746
2742
|
}
|
|
2747
2743
|
var n = e.language, r;
|
|
2748
2744
|
n !== "root" && (r = e.maximize().region);
|
|
2749
|
-
var i =
|
|
2745
|
+
var i = Ot[r || ""] || Ot[n || ""] || Ot["".concat(n, "-001")] || Ot["001"];
|
|
2750
2746
|
return i[0];
|
|
2751
2747
|
}
|
|
2752
|
-
var
|
|
2748
|
+
var cn, eo = new RegExp("^".concat(mi.source, "*")), to = new RegExp("".concat(mi.source, "*$"));
|
|
2753
2749
|
function B(e, t) {
|
|
2754
2750
|
return { start: e, end: t };
|
|
2755
2751
|
}
|
|
2756
|
-
var
|
|
2752
|
+
var no = !!String.prototype.startsWith && "_a".startsWith("a", 1), ro = !!String.fromCodePoint, io = !!Object.fromEntries, so = !!String.prototype.codePointAt, oo = !!String.prototype.trimStart, ao = !!String.prototype.trimEnd, lo = !!Number.isSafeInteger, uo = lo ? Number.isSafeInteger : function(e) {
|
|
2757
2753
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2758
|
-
},
|
|
2754
|
+
}, xn = !0;
|
|
2759
2755
|
try {
|
|
2760
|
-
var
|
|
2761
|
-
|
|
2756
|
+
var co = Ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2757
|
+
xn = ((cn = co.exec("a")) === null || cn === void 0 ? void 0 : cn[0]) === "a";
|
|
2762
2758
|
} catch {
|
|
2763
|
-
|
|
2759
|
+
xn = !1;
|
|
2764
2760
|
}
|
|
2765
|
-
var gr =
|
|
2761
|
+
var gr = no ? (
|
|
2766
2762
|
// Native
|
|
2767
2763
|
function(t, n, r) {
|
|
2768
2764
|
return t.startsWith(n, r);
|
|
@@ -2772,31 +2768,31 @@ var gr = ro ? (
|
|
|
2772
2768
|
function(t, n, r) {
|
|
2773
2769
|
return t.slice(r, r + n.length) === n;
|
|
2774
2770
|
}
|
|
2775
|
-
),
|
|
2771
|
+
), vn = ro ? String.fromCodePoint : (
|
|
2776
2772
|
// IE11
|
|
2777
2773
|
function() {
|
|
2778
2774
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2779
2775
|
t[n] = arguments[n];
|
|
2780
|
-
for (var r = "", i = t.length, s = 0,
|
|
2781
|
-
if (
|
|
2782
|
-
throw RangeError(
|
|
2783
|
-
r +=
|
|
2776
|
+
for (var r = "", i = t.length, s = 0, l; i > s; ) {
|
|
2777
|
+
if (l = t[s++], l > 1114111)
|
|
2778
|
+
throw RangeError(l + " is not a valid code point");
|
|
2779
|
+
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2784
2780
|
}
|
|
2785
2781
|
return r;
|
|
2786
2782
|
}
|
|
2787
2783
|
), br = (
|
|
2788
2784
|
// native
|
|
2789
|
-
|
|
2785
|
+
io ? Object.fromEntries : (
|
|
2790
2786
|
// Ponyfill
|
|
2791
2787
|
function(t) {
|
|
2792
2788
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2793
|
-
var s = i[r],
|
|
2794
|
-
n[
|
|
2789
|
+
var s = i[r], l = s[0], a = s[1];
|
|
2790
|
+
n[l] = a;
|
|
2795
2791
|
}
|
|
2796
2792
|
return n;
|
|
2797
2793
|
}
|
|
2798
2794
|
)
|
|
2799
|
-
), bi =
|
|
2795
|
+
), bi = so ? (
|
|
2800
2796
|
// Native
|
|
2801
2797
|
function(t, n) {
|
|
2802
2798
|
return t.codePointAt(n);
|
|
@@ -2810,7 +2806,7 @@ var gr = ro ? (
|
|
|
2810
2806
|
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2811
2807
|
}
|
|
2812
2808
|
}
|
|
2813
|
-
),
|
|
2809
|
+
), fo = oo ? (
|
|
2814
2810
|
// Native
|
|
2815
2811
|
function(t) {
|
|
2816
2812
|
return t.trimStart();
|
|
@@ -2818,9 +2814,9 @@ var gr = ro ? (
|
|
|
2818
2814
|
) : (
|
|
2819
2815
|
// Ponyfill
|
|
2820
2816
|
function(t) {
|
|
2821
|
-
return t.replace(
|
|
2817
|
+
return t.replace(eo, "");
|
|
2822
2818
|
}
|
|
2823
|
-
),
|
|
2819
|
+
), ho = ao ? (
|
|
2824
2820
|
// Native
|
|
2825
2821
|
function(t) {
|
|
2826
2822
|
return t.trimEnd();
|
|
@@ -2828,32 +2824,32 @@ var gr = ro ? (
|
|
|
2828
2824
|
) : (
|
|
2829
2825
|
// Ponyfill
|
|
2830
2826
|
function(t) {
|
|
2831
|
-
return t.replace(
|
|
2827
|
+
return t.replace(to, "");
|
|
2832
2828
|
}
|
|
2833
2829
|
);
|
|
2834
2830
|
function Ei(e, t) {
|
|
2835
2831
|
return new RegExp(e, t);
|
|
2836
2832
|
}
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2833
|
+
var An;
|
|
2834
|
+
if (xn) {
|
|
2839
2835
|
var Er = Ei("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2840
|
-
|
|
2836
|
+
An = function(t, n) {
|
|
2841
2837
|
var r;
|
|
2842
2838
|
Er.lastIndex = n;
|
|
2843
2839
|
var i = Er.exec(t);
|
|
2844
2840
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2845
2841
|
};
|
|
2846
2842
|
} else
|
|
2847
|
-
|
|
2843
|
+
An = function(t, n) {
|
|
2848
2844
|
for (var r = []; ; ) {
|
|
2849
2845
|
var i = bi(t, n);
|
|
2850
|
-
if (i === void 0 || _i(i) ||
|
|
2846
|
+
if (i === void 0 || _i(i) || bo(i))
|
|
2851
2847
|
break;
|
|
2852
2848
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2853
2849
|
}
|
|
2854
|
-
return
|
|
2850
|
+
return vn.apply(void 0, r);
|
|
2855
2851
|
};
|
|
2856
|
-
var
|
|
2852
|
+
var mo = (
|
|
2857
2853
|
/** @class */
|
|
2858
2854
|
function() {
|
|
2859
2855
|
function e(t, n) {
|
|
@@ -2867,33 +2863,33 @@ var po = (
|
|
|
2867
2863
|
for (var i = []; !this.isEOF(); ) {
|
|
2868
2864
|
var s = this.char();
|
|
2869
2865
|
if (s === 123) {
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2872
|
-
return
|
|
2873
|
-
i.push(
|
|
2866
|
+
var l = this.parseArgument(t, r);
|
|
2867
|
+
if (l.err)
|
|
2868
|
+
return l;
|
|
2869
|
+
i.push(l.val);
|
|
2874
2870
|
} else {
|
|
2875
2871
|
if (s === 125 && t > 0)
|
|
2876
2872
|
break;
|
|
2877
2873
|
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2878
2874
|
var a = this.clonePosition();
|
|
2879
2875
|
this.bump(), i.push({
|
|
2880
|
-
type:
|
|
2876
|
+
type: Y.pound,
|
|
2881
2877
|
location: B(a, this.clonePosition())
|
|
2882
2878
|
});
|
|
2883
2879
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2884
2880
|
if (r)
|
|
2885
2881
|
break;
|
|
2886
2882
|
return this.error(D.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
|
|
2887
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2888
|
-
var
|
|
2889
|
-
if (
|
|
2890
|
-
return
|
|
2891
|
-
i.push(
|
|
2883
|
+
} else if (s === 60 && !this.ignoreTag && Sn(this.peek() || 0)) {
|
|
2884
|
+
var l = this.parseTag(t, n);
|
|
2885
|
+
if (l.err)
|
|
2886
|
+
return l;
|
|
2887
|
+
i.push(l.val);
|
|
2892
2888
|
} else {
|
|
2893
|
-
var
|
|
2894
|
-
if (
|
|
2895
|
-
return
|
|
2896
|
-
i.push(
|
|
2889
|
+
var l = this.parseLiteral(t, n);
|
|
2890
|
+
if (l.err)
|
|
2891
|
+
return l;
|
|
2892
|
+
i.push(l.val);
|
|
2897
2893
|
}
|
|
2898
2894
|
}
|
|
2899
2895
|
}
|
|
@@ -2905,7 +2901,7 @@ var po = (
|
|
|
2905
2901
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2906
2902
|
return {
|
|
2907
2903
|
val: {
|
|
2908
|
-
type:
|
|
2904
|
+
type: Y.literal,
|
|
2909
2905
|
value: "<".concat(i, "/>"),
|
|
2910
2906
|
location: B(r, this.clonePosition())
|
|
2911
2907
|
},
|
|
@@ -2915,16 +2911,16 @@ var po = (
|
|
|
2915
2911
|
var s = this.parseMessage(t + 1, n, !0);
|
|
2916
2912
|
if (s.err)
|
|
2917
2913
|
return s;
|
|
2918
|
-
var
|
|
2914
|
+
var l = s.val, a = this.clonePosition();
|
|
2919
2915
|
if (this.bumpIf("</")) {
|
|
2920
|
-
if (this.isEOF() || !
|
|
2916
|
+
if (this.isEOF() || !Sn(this.char()))
|
|
2921
2917
|
return this.error(D.INVALID_TAG, B(a, this.clonePosition()));
|
|
2922
|
-
var c = this.clonePosition(),
|
|
2923
|
-
return i !==
|
|
2918
|
+
var c = this.clonePosition(), u = this.parseTagName();
|
|
2919
|
+
return i !== u ? this.error(D.UNMATCHED_CLOSING_TAG, B(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2924
2920
|
val: {
|
|
2925
|
-
type:
|
|
2921
|
+
type: Y.tag,
|
|
2926
2922
|
value: i,
|
|
2927
|
-
children:
|
|
2923
|
+
children: l,
|
|
2928
2924
|
location: B(r, this.clonePosition())
|
|
2929
2925
|
},
|
|
2930
2926
|
err: null
|
|
@@ -2935,7 +2931,7 @@ var po = (
|
|
|
2935
2931
|
return this.error(D.INVALID_TAG, B(r, this.clonePosition()));
|
|
2936
2932
|
}, e.prototype.parseTagName = function() {
|
|
2937
2933
|
var t = this.offset();
|
|
2938
|
-
for (this.bump(); !this.isEOF() &&
|
|
2934
|
+
for (this.bump(); !this.isEOF() && go(this.char()); )
|
|
2939
2935
|
this.bump();
|
|
2940
2936
|
return this.message.slice(t, this.offset());
|
|
2941
2937
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2945,9 +2941,9 @@ var po = (
|
|
|
2945
2941
|
i += s;
|
|
2946
2942
|
continue;
|
|
2947
2943
|
}
|
|
2948
|
-
var
|
|
2949
|
-
if (
|
|
2950
|
-
i +=
|
|
2944
|
+
var l = this.tryParseUnquoted(t, n);
|
|
2945
|
+
if (l) {
|
|
2946
|
+
i += l;
|
|
2951
2947
|
continue;
|
|
2952
2948
|
}
|
|
2953
2949
|
var a = this.tryParseLeftAngleBracket();
|
|
@@ -2959,12 +2955,12 @@ var po = (
|
|
|
2959
2955
|
}
|
|
2960
2956
|
var c = B(r, this.clonePosition());
|
|
2961
2957
|
return {
|
|
2962
|
-
val: { type:
|
|
2958
|
+
val: { type: Y.literal, value: i, location: c },
|
|
2963
2959
|
err: null
|
|
2964
2960
|
};
|
|
2965
2961
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2966
2962
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2967
|
-
!
|
|
2963
|
+
!po(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2968
2964
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2969
2965
|
if (this.isEOF() || this.char() !== 39)
|
|
2970
2966
|
return null;
|
|
@@ -2998,12 +2994,12 @@ var po = (
|
|
|
2998
2994
|
n.push(r);
|
|
2999
2995
|
this.bump();
|
|
3000
2996
|
}
|
|
3001
|
-
return
|
|
2997
|
+
return vn.apply(void 0, n);
|
|
3002
2998
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3003
2999
|
if (this.isEOF())
|
|
3004
3000
|
return null;
|
|
3005
3001
|
var r = this.char();
|
|
3006
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3002
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), vn(r));
|
|
3007
3003
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3008
3004
|
var r = this.clonePosition();
|
|
3009
3005
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3019,7 +3015,7 @@ var po = (
|
|
|
3019
3015
|
case 125:
|
|
3020
3016
|
return this.bump(), {
|
|
3021
3017
|
val: {
|
|
3022
|
-
type:
|
|
3018
|
+
type: Y.argument,
|
|
3023
3019
|
// value does not include the opening and closing braces.
|
|
3024
3020
|
value: i,
|
|
3025
3021
|
location: B(r, this.clonePosition())
|
|
@@ -3032,54 +3028,54 @@ var po = (
|
|
|
3032
3028
|
return this.error(D.MALFORMED_ARGUMENT, B(r, this.clonePosition()));
|
|
3033
3029
|
}
|
|
3034
3030
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3035
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3031
|
+
var t = this.clonePosition(), n = this.offset(), r = An(this.message, n), i = n + r.length;
|
|
3036
3032
|
this.bumpTo(i);
|
|
3037
|
-
var s = this.clonePosition(),
|
|
3038
|
-
return { value: r, location:
|
|
3033
|
+
var s = this.clonePosition(), l = B(t, s);
|
|
3034
|
+
return { value: r, location: l };
|
|
3039
3035
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3040
|
-
var s,
|
|
3036
|
+
var s, l = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
3041
3037
|
switch (a) {
|
|
3042
3038
|
case "":
|
|
3043
|
-
return this.error(D.EXPECT_ARGUMENT_TYPE, B(
|
|
3039
|
+
return this.error(D.EXPECT_ARGUMENT_TYPE, B(l, c));
|
|
3044
3040
|
case "number":
|
|
3045
3041
|
case "date":
|
|
3046
3042
|
case "time": {
|
|
3047
3043
|
this.bumpSpace();
|
|
3048
|
-
var
|
|
3044
|
+
var u = null;
|
|
3049
3045
|
if (this.bumpIf(",")) {
|
|
3050
3046
|
this.bumpSpace();
|
|
3051
3047
|
var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
3052
3048
|
if (b.err)
|
|
3053
3049
|
return b;
|
|
3054
|
-
var y =
|
|
3050
|
+
var y = ho(b.val);
|
|
3055
3051
|
if (y.length === 0)
|
|
3056
3052
|
return this.error(D.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
|
|
3057
3053
|
var M = B(f, this.clonePosition());
|
|
3058
|
-
|
|
3054
|
+
u = { style: y, styleLocation: M };
|
|
3059
3055
|
}
|
|
3060
3056
|
var E = this.tryParseArgumentClose(i);
|
|
3061
3057
|
if (E.err)
|
|
3062
3058
|
return E;
|
|
3063
3059
|
var d = B(i, this.clonePosition());
|
|
3064
|
-
if (
|
|
3065
|
-
var C =
|
|
3060
|
+
if (u && gr(u?.style, "::", 0)) {
|
|
3061
|
+
var C = fo(u.style.slice(2));
|
|
3066
3062
|
if (a === "number") {
|
|
3067
|
-
var b = this.parseNumberSkeletonFromString(C,
|
|
3063
|
+
var b = this.parseNumberSkeletonFromString(C, u.styleLocation);
|
|
3068
3064
|
return b.err ? b : {
|
|
3069
|
-
val: { type:
|
|
3065
|
+
val: { type: Y.number, value: r, location: d, style: b.val },
|
|
3070
3066
|
err: null
|
|
3071
3067
|
};
|
|
3072
3068
|
} else {
|
|
3073
3069
|
if (C.length === 0)
|
|
3074
3070
|
return this.error(D.EXPECT_DATE_TIME_SKELETON, d);
|
|
3075
|
-
var
|
|
3076
|
-
this.locale && (
|
|
3071
|
+
var $ = C;
|
|
3072
|
+
this.locale && ($ = Qs(C, this.locale));
|
|
3077
3073
|
var y = {
|
|
3078
|
-
type:
|
|
3079
|
-
pattern:
|
|
3080
|
-
location:
|
|
3081
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3082
|
-
}, U = a === "date" ?
|
|
3074
|
+
type: Ze.dateTime,
|
|
3075
|
+
pattern: $,
|
|
3076
|
+
location: u.styleLocation,
|
|
3077
|
+
parsedOptions: this.shouldParseSkeletons ? Ws($) : {}
|
|
3078
|
+
}, U = a === "date" ? Y.date : Y.time;
|
|
3083
3079
|
return {
|
|
3084
3080
|
val: { type: U, value: r, location: d, style: y },
|
|
3085
3081
|
err: null
|
|
@@ -3088,10 +3084,10 @@ var po = (
|
|
|
3088
3084
|
}
|
|
3089
3085
|
return {
|
|
3090
3086
|
val: {
|
|
3091
|
-
type: a === "number" ?
|
|
3087
|
+
type: a === "number" ? Y.number : a === "date" ? Y.date : Y.time,
|
|
3092
3088
|
value: r,
|
|
3093
3089
|
location: d,
|
|
3094
|
-
style: (s =
|
|
3090
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
3095
3091
|
},
|
|
3096
3092
|
err: null
|
|
3097
3093
|
};
|
|
@@ -3099,9 +3095,9 @@ var po = (
|
|
|
3099
3095
|
case "plural":
|
|
3100
3096
|
case "selectordinal":
|
|
3101
3097
|
case "select": {
|
|
3102
|
-
var
|
|
3098
|
+
var S = this.clonePosition();
|
|
3103
3099
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3104
|
-
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(
|
|
3100
|
+
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(S, k({}, S)));
|
|
3105
3101
|
this.bumpSpace();
|
|
3106
3102
|
var H = this.parseIdentifierIfPossible(), I = 0;
|
|
3107
3103
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3113,35 +3109,35 @@ var po = (
|
|
|
3113
3109
|
return b;
|
|
3114
3110
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = b.val;
|
|
3115
3111
|
}
|
|
3116
|
-
var
|
|
3117
|
-
if (
|
|
3118
|
-
return
|
|
3112
|
+
var F = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3113
|
+
if (F.err)
|
|
3114
|
+
return F;
|
|
3119
3115
|
var E = this.tryParseArgumentClose(i);
|
|
3120
3116
|
if (E.err)
|
|
3121
3117
|
return E;
|
|
3122
|
-
var
|
|
3118
|
+
var Z = B(i, this.clonePosition());
|
|
3123
3119
|
return a === "select" ? {
|
|
3124
3120
|
val: {
|
|
3125
|
-
type:
|
|
3121
|
+
type: Y.select,
|
|
3126
3122
|
value: r,
|
|
3127
|
-
options: br(
|
|
3128
|
-
location:
|
|
3123
|
+
options: br(F.val),
|
|
3124
|
+
location: Z
|
|
3129
3125
|
},
|
|
3130
3126
|
err: null
|
|
3131
3127
|
} : {
|
|
3132
3128
|
val: {
|
|
3133
|
-
type:
|
|
3129
|
+
type: Y.plural,
|
|
3134
3130
|
value: r,
|
|
3135
|
-
options: br(
|
|
3131
|
+
options: br(F.val),
|
|
3136
3132
|
offset: I,
|
|
3137
3133
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3138
|
-
location:
|
|
3134
|
+
location: Z
|
|
3139
3135
|
},
|
|
3140
3136
|
err: null
|
|
3141
3137
|
};
|
|
3142
3138
|
}
|
|
3143
3139
|
default:
|
|
3144
|
-
return this.error(D.INVALID_ARGUMENT_TYPE, B(
|
|
3140
|
+
return this.error(D.INVALID_ARGUMENT_TYPE, B(l, c));
|
|
3145
3141
|
}
|
|
3146
3142
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3147
3143
|
return this.isEOF() || this.char() !== 125 ? this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE, B(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3183,34 +3179,34 @@ var po = (
|
|
|
3183
3179
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3184
3180
|
var r = [];
|
|
3185
3181
|
try {
|
|
3186
|
-
r =
|
|
3182
|
+
r = Xs(t);
|
|
3187
3183
|
} catch {
|
|
3188
3184
|
return this.error(D.INVALID_NUMBER_SKELETON, n);
|
|
3189
3185
|
}
|
|
3190
3186
|
return {
|
|
3191
3187
|
val: {
|
|
3192
|
-
type:
|
|
3188
|
+
type: Ze.number,
|
|
3193
3189
|
tokens: r,
|
|
3194
3190
|
location: n,
|
|
3195
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3191
|
+
parsedOptions: this.shouldParseSkeletons ? Js(r) : {}
|
|
3196
3192
|
},
|
|
3197
3193
|
err: null
|
|
3198
3194
|
};
|
|
3199
3195
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3200
|
-
for (var s,
|
|
3201
|
-
if (
|
|
3196
|
+
for (var s, l = !1, a = [], c = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
3197
|
+
if (u.length === 0) {
|
|
3202
3198
|
var b = this.clonePosition();
|
|
3203
3199
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3204
3200
|
var y = this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR, D.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3205
3201
|
if (y.err)
|
|
3206
3202
|
return y;
|
|
3207
|
-
f = B(b, this.clonePosition()),
|
|
3203
|
+
f = B(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
|
|
3208
3204
|
} else
|
|
3209
3205
|
break;
|
|
3210
3206
|
}
|
|
3211
|
-
if (c.has(
|
|
3207
|
+
if (c.has(u))
|
|
3212
3208
|
return this.error(n === "select" ? D.DUPLICATE_SELECT_ARGUMENT_SELECTOR : D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3213
|
-
|
|
3209
|
+
u === "other" && (l = !0), this.bumpSpace();
|
|
3214
3210
|
var M = this.clonePosition();
|
|
3215
3211
|
if (!this.bumpIf("{"))
|
|
3216
3212
|
return this.error(n === "select" ? D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, B(this.clonePosition(), this.clonePosition()));
|
|
@@ -3221,26 +3217,26 @@ var po = (
|
|
|
3221
3217
|
if (d.err)
|
|
3222
3218
|
return d;
|
|
3223
3219
|
a.push([
|
|
3224
|
-
|
|
3220
|
+
u,
|
|
3225
3221
|
{
|
|
3226
3222
|
value: E.val,
|
|
3227
3223
|
location: B(M, this.clonePosition())
|
|
3228
3224
|
}
|
|
3229
|
-
]), c.add(
|
|
3225
|
+
]), c.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, f = s.location;
|
|
3230
3226
|
}
|
|
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 && !
|
|
3227
|
+
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 && !l ? this.error(D.MISSING_OTHER_CLAUSE, B(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3232
3228
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3233
3229
|
var r = 1, i = this.clonePosition();
|
|
3234
3230
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3235
|
-
for (var s = !1,
|
|
3231
|
+
for (var s = !1, l = 0; !this.isEOF(); ) {
|
|
3236
3232
|
var a = this.char();
|
|
3237
3233
|
if (a >= 48 && a <= 57)
|
|
3238
|
-
s = !0,
|
|
3234
|
+
s = !0, l = l * 10 + (a - 48), this.bump();
|
|
3239
3235
|
else
|
|
3240
3236
|
break;
|
|
3241
3237
|
}
|
|
3242
3238
|
var c = B(i, this.clonePosition());
|
|
3243
|
-
return s ? (
|
|
3239
|
+
return s ? (l *= r, uo(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3244
3240
|
}, e.prototype.offset = function() {
|
|
3245
3241
|
return this.position.offset;
|
|
3246
3242
|
}, e.prototype.isEOF = function() {
|
|
@@ -3306,47 +3302,47 @@ var po = (
|
|
|
3306
3302
|
}, e;
|
|
3307
3303
|
}()
|
|
3308
3304
|
);
|
|
3309
|
-
function
|
|
3305
|
+
function Sn(e) {
|
|
3310
3306
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3311
3307
|
}
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3308
|
+
function po(e) {
|
|
3309
|
+
return Sn(e) || e === 47;
|
|
3314
3310
|
}
|
|
3315
|
-
function
|
|
3311
|
+
function go(e) {
|
|
3316
3312
|
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
3313
|
}
|
|
3318
3314
|
function _i(e) {
|
|
3319
3315
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3320
3316
|
}
|
|
3321
|
-
function
|
|
3317
|
+
function bo(e) {
|
|
3322
3318
|
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
3319
|
}
|
|
3324
|
-
function
|
|
3320
|
+
function wn(e) {
|
|
3325
3321
|
e.forEach(function(t) {
|
|
3326
|
-
if (delete t.location,
|
|
3322
|
+
if (delete t.location, ui(t) || ci(t))
|
|
3327
3323
|
for (var n in t.options)
|
|
3328
|
-
delete t.options[n].location,
|
|
3324
|
+
delete t.options[n].location, wn(t.options[n].value);
|
|
3329
3325
|
else
|
|
3330
|
-
oi(t) && hi(t.style) || (ai(t) ||
|
|
3326
|
+
oi(t) && hi(t.style) || (ai(t) || li(t)) && Tn(t.style) ? delete t.style.location : fi(t) && wn(t.children);
|
|
3331
3327
|
});
|
|
3332
3328
|
}
|
|
3333
|
-
function
|
|
3334
|
-
t === void 0 && (t = {}), t =
|
|
3335
|
-
var n = new
|
|
3329
|
+
function Eo(e, t) {
|
|
3330
|
+
t === void 0 && (t = {}), t = k({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3331
|
+
var n = new mo(e, t).parse();
|
|
3336
3332
|
if (n.err) {
|
|
3337
3333
|
var r = SyntaxError(D[n.err.kind]);
|
|
3338
3334
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3339
3335
|
}
|
|
3340
|
-
return t?.captureLocation ||
|
|
3336
|
+
return t?.captureLocation || wn(n.val), n.val;
|
|
3341
3337
|
}
|
|
3342
|
-
var
|
|
3338
|
+
var qe;
|
|
3343
3339
|
(function(e) {
|
|
3344
3340
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3345
|
-
})(
|
|
3346
|
-
var
|
|
3341
|
+
})(qe || (qe = {}));
|
|
3342
|
+
var Zt = (
|
|
3347
3343
|
/** @class */
|
|
3348
3344
|
function(e) {
|
|
3349
|
-
|
|
3345
|
+
Yt(t, e);
|
|
3350
3346
|
function t(n, r, i) {
|
|
3351
3347
|
var s = e.call(this, n) || this;
|
|
3352
3348
|
return s.code = r, s.originalMessage = i, s;
|
|
@@ -3358,44 +3354,44 @@ var Jt = (
|
|
|
3358
3354
|
), _r = (
|
|
3359
3355
|
/** @class */
|
|
3360
3356
|
function(e) {
|
|
3361
|
-
|
|
3357
|
+
Yt(t, e);
|
|
3362
3358
|
function t(n, r, i, s) {
|
|
3363
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3359
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), qe.INVALID_VALUE, s) || this;
|
|
3364
3360
|
}
|
|
3365
3361
|
return t;
|
|
3366
|
-
}(
|
|
3367
|
-
),
|
|
3362
|
+
}(Zt)
|
|
3363
|
+
), _o = (
|
|
3368
3364
|
/** @class */
|
|
3369
3365
|
function(e) {
|
|
3370
|
-
|
|
3366
|
+
Yt(t, e);
|
|
3371
3367
|
function t(n, r, i) {
|
|
3372
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3368
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), qe.INVALID_VALUE, i) || this;
|
|
3373
3369
|
}
|
|
3374
3370
|
return t;
|
|
3375
|
-
}(
|
|
3376
|
-
),
|
|
3371
|
+
}(Zt)
|
|
3372
|
+
), yo = (
|
|
3377
3373
|
/** @class */
|
|
3378
3374
|
function(e) {
|
|
3379
|
-
|
|
3375
|
+
Yt(t, e);
|
|
3380
3376
|
function t(n, r) {
|
|
3381
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3377
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), qe.MISSING_VALUE, r) || this;
|
|
3382
3378
|
}
|
|
3383
3379
|
return t;
|
|
3384
|
-
}(
|
|
3380
|
+
}(Zt)
|
|
3385
3381
|
), ce;
|
|
3386
3382
|
(function(e) {
|
|
3387
3383
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3388
3384
|
})(ce || (ce = {}));
|
|
3389
|
-
function
|
|
3385
|
+
function To(e) {
|
|
3390
3386
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3391
3387
|
var r = t[t.length - 1];
|
|
3392
3388
|
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
3393
3389
|
}, []);
|
|
3394
3390
|
}
|
|
3395
|
-
function
|
|
3391
|
+
function xo(e) {
|
|
3396
3392
|
return typeof e == "function";
|
|
3397
3393
|
}
|
|
3398
|
-
function
|
|
3394
|
+
function Dt(e, t, n, r, i, s, l) {
|
|
3399
3395
|
if (e.length === 1 && hr(e[0]))
|
|
3400
3396
|
return [
|
|
3401
3397
|
{
|
|
@@ -3403,8 +3399,8 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3403
3399
|
value: e[0].value
|
|
3404
3400
|
}
|
|
3405
3401
|
];
|
|
3406
|
-
for (var a = [], c = 0,
|
|
3407
|
-
var f =
|
|
3402
|
+
for (var a = [], c = 0, u = e; c < u.length; c++) {
|
|
3403
|
+
var f = u[c];
|
|
3408
3404
|
if (hr(f)) {
|
|
3409
3405
|
a.push({
|
|
3410
3406
|
type: ce.literal,
|
|
@@ -3412,7 +3408,7 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3412
3408
|
});
|
|
3413
3409
|
continue;
|
|
3414
3410
|
}
|
|
3415
|
-
if (
|
|
3411
|
+
if (js(f)) {
|
|
3416
3412
|
typeof s == "number" && a.push({
|
|
3417
3413
|
type: ce.literal,
|
|
3418
3414
|
value: n.getNumberFormat(t).format(s)
|
|
@@ -3421,9 +3417,9 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3421
3417
|
}
|
|
3422
3418
|
var b = f.value;
|
|
3423
3419
|
if (!(i && b in i))
|
|
3424
|
-
throw new
|
|
3420
|
+
throw new yo(b, l);
|
|
3425
3421
|
var y = i[b];
|
|
3426
|
-
if (
|
|
3422
|
+
if ($s(f)) {
|
|
3427
3423
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3428
3424
|
type: typeof y == "string" ? ce.literal : ce.object,
|
|
3429
3425
|
value: y
|
|
@@ -3431,15 +3427,15 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3431
3427
|
continue;
|
|
3432
3428
|
}
|
|
3433
3429
|
if (ai(f)) {
|
|
3434
|
-
var M = typeof f.style == "string" ? r.date[f.style] :
|
|
3430
|
+
var M = typeof f.style == "string" ? r.date[f.style] : Tn(f.style) ? f.style.parsedOptions : void 0;
|
|
3435
3431
|
a.push({
|
|
3436
3432
|
type: ce.literal,
|
|
3437
3433
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
3438
3434
|
});
|
|
3439
3435
|
continue;
|
|
3440
3436
|
}
|
|
3441
|
-
if (
|
|
3442
|
-
var M = typeof f.style == "string" ? r.time[f.style] :
|
|
3437
|
+
if (li(f)) {
|
|
3438
|
+
var M = typeof f.style == "string" ? r.time[f.style] : Tn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3443
3439
|
a.push({
|
|
3444
3440
|
type: ce.literal,
|
|
3445
3441
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
@@ -3456,9 +3452,9 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3456
3452
|
}
|
|
3457
3453
|
if (fi(f)) {
|
|
3458
3454
|
var E = f.children, d = f.value, C = i[d];
|
|
3459
|
-
if (!
|
|
3460
|
-
throw new
|
|
3461
|
-
var
|
|
3455
|
+
if (!xo(C))
|
|
3456
|
+
throw new _o(d, "function", l);
|
|
3457
|
+
var $ = Dt(E, t, n, r, i, s), U = C($.map(function(I) {
|
|
3462
3458
|
return I.value;
|
|
3463
3459
|
}));
|
|
3464
3460
|
Array.isArray(U) || (U = [U]), a.push.apply(a, U.map(function(I) {
|
|
@@ -3468,42 +3464,42 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3468
3464
|
};
|
|
3469
3465
|
}));
|
|
3470
3466
|
}
|
|
3471
|
-
if (
|
|
3472
|
-
var
|
|
3473
|
-
if (!
|
|
3474
|
-
throw new _r(f.value, y, Object.keys(f.options),
|
|
3475
|
-
a.push.apply(a,
|
|
3467
|
+
if (ui(f)) {
|
|
3468
|
+
var S = f.options[y] || f.options.other;
|
|
3469
|
+
if (!S)
|
|
3470
|
+
throw new _r(f.value, y, Object.keys(f.options), l);
|
|
3471
|
+
a.push.apply(a, Dt(S.value, t, n, r, i));
|
|
3476
3472
|
continue;
|
|
3477
3473
|
}
|
|
3478
3474
|
if (ci(f)) {
|
|
3479
|
-
var
|
|
3480
|
-
if (!
|
|
3475
|
+
var S = f.options["=".concat(y)];
|
|
3476
|
+
if (!S) {
|
|
3481
3477
|
if (!Intl.PluralRules)
|
|
3482
|
-
throw new
|
|
3478
|
+
throw new Zt(`Intl.PluralRules is not available in this environment.
|
|
3483
3479
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3484
|
-
`,
|
|
3480
|
+
`, qe.MISSING_INTL_API, l);
|
|
3485
3481
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3486
|
-
|
|
3482
|
+
S = f.options[H] || f.options.other;
|
|
3487
3483
|
}
|
|
3488
|
-
if (!
|
|
3489
|
-
throw new _r(f.value, y, Object.keys(f.options),
|
|
3490
|
-
a.push.apply(a,
|
|
3484
|
+
if (!S)
|
|
3485
|
+
throw new _r(f.value, y, Object.keys(f.options), l);
|
|
3486
|
+
a.push.apply(a, Dt(S.value, t, n, r, i, y - (f.offset || 0)));
|
|
3491
3487
|
continue;
|
|
3492
3488
|
}
|
|
3493
3489
|
}
|
|
3494
|
-
return
|
|
3490
|
+
return To(a);
|
|
3495
3491
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return t ?
|
|
3498
|
-
return n[r] =
|
|
3492
|
+
function vo(e, t) {
|
|
3493
|
+
return t ? k(k(k({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3494
|
+
return n[r] = k(k({}, e[r]), t[r] || {}), n;
|
|
3499
3495
|
}, {})) : e;
|
|
3500
3496
|
}
|
|
3501
3497
|
function Ao(e, t) {
|
|
3502
3498
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3503
|
-
return n[r] =
|
|
3504
|
-
},
|
|
3499
|
+
return n[r] = vo(e[r], t[r]), n;
|
|
3500
|
+
}, k({}, e)) : e;
|
|
3505
3501
|
}
|
|
3506
|
-
function
|
|
3502
|
+
function fn(e) {
|
|
3507
3503
|
return {
|
|
3508
3504
|
create: function() {
|
|
3509
3505
|
return {
|
|
@@ -3517,35 +3513,35 @@ function mn(e) {
|
|
|
3517
3513
|
}
|
|
3518
3514
|
};
|
|
3519
3515
|
}
|
|
3520
|
-
function
|
|
3516
|
+
function So(e) {
|
|
3521
3517
|
return e === void 0 && (e = {
|
|
3522
3518
|
number: {},
|
|
3523
3519
|
dateTime: {},
|
|
3524
3520
|
pluralRules: {}
|
|
3525
3521
|
}), {
|
|
3526
|
-
getNumberFormat:
|
|
3522
|
+
getNumberFormat: ln(function() {
|
|
3527
3523
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3528
3524
|
n[r] = arguments[r];
|
|
3529
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3525
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, an([void 0], n, !1)))();
|
|
3530
3526
|
}, {
|
|
3531
|
-
cache:
|
|
3532
|
-
strategy:
|
|
3527
|
+
cache: fn(e.number),
|
|
3528
|
+
strategy: un.variadic
|
|
3533
3529
|
}),
|
|
3534
|
-
getDateTimeFormat:
|
|
3530
|
+
getDateTimeFormat: ln(function() {
|
|
3535
3531
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3536
3532
|
n[r] = arguments[r];
|
|
3537
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3533
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, an([void 0], n, !1)))();
|
|
3538
3534
|
}, {
|
|
3539
|
-
cache:
|
|
3540
|
-
strategy:
|
|
3535
|
+
cache: fn(e.dateTime),
|
|
3536
|
+
strategy: un.variadic
|
|
3541
3537
|
}),
|
|
3542
|
-
getPluralRules:
|
|
3538
|
+
getPluralRules: ln(function() {
|
|
3543
3539
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3544
3540
|
n[r] = arguments[r];
|
|
3545
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3541
|
+
return new ((t = Intl.PluralRules).bind.apply(t, an([void 0], n, !1)))();
|
|
3546
3542
|
}, {
|
|
3547
|
-
cache:
|
|
3548
|
-
strategy:
|
|
3543
|
+
cache: fn(e.pluralRules),
|
|
3544
|
+
strategy: un.variadic
|
|
3549
3545
|
})
|
|
3550
3546
|
};
|
|
3551
3547
|
}
|
|
@@ -3560,15 +3556,15 @@ var yi = (
|
|
|
3560
3556
|
dateTime: {},
|
|
3561
3557
|
pluralRules: {}
|
|
3562
3558
|
}, this.format = function(c) {
|
|
3563
|
-
var
|
|
3564
|
-
if (
|
|
3565
|
-
return
|
|
3566
|
-
var f =
|
|
3559
|
+
var u = s.formatToParts(c);
|
|
3560
|
+
if (u.length === 1)
|
|
3561
|
+
return u[0].value;
|
|
3562
|
+
var f = u.reduce(function(b, y) {
|
|
3567
3563
|
return !b.length || y.type !== ce.literal || typeof b[b.length - 1] != "string" ? b.push(y.value) : b[b.length - 1] += y.value, b;
|
|
3568
3564
|
}, []);
|
|
3569
3565
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3570
3566
|
}, this.formatToParts = function(c) {
|
|
3571
|
-
return
|
|
3567
|
+
return Dt(s.ast, s.locales, s.formatters, s.formats, c, void 0, s.message);
|
|
3572
3568
|
}, this.resolvedOptions = function() {
|
|
3573
3569
|
var c;
|
|
3574
3570
|
return {
|
|
@@ -3579,15 +3575,15 @@ var yi = (
|
|
|
3579
3575
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3580
3576
|
if (this.message = t, !e.__parse)
|
|
3581
3577
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3582
|
-
var
|
|
3583
|
-
|
|
3584
|
-
var a = Is(
|
|
3585
|
-
this.ast = e.__parse(t,
|
|
3578
|
+
var l = i || {};
|
|
3579
|
+
l.formatters;
|
|
3580
|
+
var a = Is(l, ["formatters"]);
|
|
3581
|
+
this.ast = e.__parse(t, k(k({}, a), { locale: this.resolvedLocale }));
|
|
3586
3582
|
} else
|
|
3587
3583
|
this.ast = t;
|
|
3588
3584
|
if (!Array.isArray(this.ast))
|
|
3589
3585
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3590
|
-
this.formats = Ao(e.formats, r), this.formatters = i && i.formatters ||
|
|
3586
|
+
this.formats = Ao(e.formats, r), this.formatters = i && i.formatters || So(this.formatterCache);
|
|
3591
3587
|
}
|
|
3592
3588
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3593
3589
|
get: function() {
|
|
@@ -3600,7 +3596,7 @@ var yi = (
|
|
|
3600
3596
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3601
3597
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3602
3598
|
}
|
|
3603
|
-
}, e.__parse =
|
|
3599
|
+
}, e.__parse = Eo, e.formats = {
|
|
3604
3600
|
number: {
|
|
3605
3601
|
integer: {
|
|
3606
3602
|
maximumFractionDigits: 0
|
|
@@ -3661,7 +3657,7 @@ var yi = (
|
|
|
3661
3657
|
}, e;
|
|
3662
3658
|
}()
|
|
3663
3659
|
);
|
|
3664
|
-
function
|
|
3660
|
+
function wo(e, t) {
|
|
3665
3661
|
if (t == null)
|
|
3666
3662
|
return;
|
|
3667
3663
|
if (t in e)
|
|
@@ -3682,36 +3678,36 @@ function Oo(e, t) {
|
|
|
3682
3678
|
r = void 0;
|
|
3683
3679
|
return r;
|
|
3684
3680
|
}
|
|
3685
|
-
const
|
|
3681
|
+
const Le = {}, Oo = (e, t, n) => n && (t in Le || (Le[t] = {}), e in Le[t] || (Le[t][e] = n), n), Ti = (e, t) => {
|
|
3686
3682
|
if (t == null)
|
|
3687
3683
|
return;
|
|
3688
|
-
if (t in
|
|
3689
|
-
return
|
|
3690
|
-
const n =
|
|
3684
|
+
if (t in Le && e in Le[t])
|
|
3685
|
+
return Le[t][e];
|
|
3686
|
+
const n = _t(t);
|
|
3691
3687
|
for (let r = 0; r < n.length; r++) {
|
|
3692
|
-
const i = n[r], s =
|
|
3688
|
+
const i = n[r], s = Co(i, e);
|
|
3693
3689
|
if (s)
|
|
3694
|
-
return
|
|
3690
|
+
return Oo(e, t, s);
|
|
3695
3691
|
}
|
|
3696
3692
|
};
|
|
3697
3693
|
let In;
|
|
3698
|
-
const
|
|
3699
|
-
function
|
|
3694
|
+
const Et = bt({});
|
|
3695
|
+
function Mo(e) {
|
|
3700
3696
|
return In[e] || null;
|
|
3701
3697
|
}
|
|
3702
3698
|
function xi(e) {
|
|
3703
3699
|
return e in In;
|
|
3704
3700
|
}
|
|
3705
|
-
function
|
|
3701
|
+
function Co(e, t) {
|
|
3706
3702
|
if (!xi(e))
|
|
3707
3703
|
return null;
|
|
3708
|
-
const n =
|
|
3709
|
-
return
|
|
3704
|
+
const n = Mo(e);
|
|
3705
|
+
return wo(n, t);
|
|
3710
3706
|
}
|
|
3711
|
-
function
|
|
3707
|
+
function No(e) {
|
|
3712
3708
|
if (e == null)
|
|
3713
3709
|
return;
|
|
3714
|
-
const t =
|
|
3710
|
+
const t = _t(e);
|
|
3715
3711
|
for (let n = 0; n < t.length; n++) {
|
|
3716
3712
|
const r = t[n];
|
|
3717
3713
|
if (xi(r))
|
|
@@ -3719,64 +3715,64 @@ function Lo(e) {
|
|
|
3719
3715
|
}
|
|
3720
3716
|
}
|
|
3721
3717
|
function vi(e, ...t) {
|
|
3722
|
-
delete
|
|
3718
|
+
delete Le[e], Et.update((n) => (n[e] = Ps.all([n[e] || {}, ...t]), n));
|
|
3723
3719
|
}
|
|
3724
|
-
|
|
3725
|
-
[
|
|
3720
|
+
Ke(
|
|
3721
|
+
[Et],
|
|
3726
3722
|
([e]) => Object.keys(e)
|
|
3727
3723
|
);
|
|
3728
|
-
|
|
3729
|
-
const
|
|
3730
|
-
function
|
|
3731
|
-
|
|
3724
|
+
Et.subscribe((e) => In = e);
|
|
3725
|
+
const Bt = {};
|
|
3726
|
+
function Lo(e, t) {
|
|
3727
|
+
Bt[e].delete(t), Bt[e].size === 0 && delete Bt[e];
|
|
3732
3728
|
}
|
|
3733
|
-
function
|
|
3734
|
-
return
|
|
3729
|
+
function Ai(e) {
|
|
3730
|
+
return Bt[e];
|
|
3735
3731
|
}
|
|
3736
|
-
function
|
|
3737
|
-
return
|
|
3738
|
-
const n =
|
|
3732
|
+
function Ho(e) {
|
|
3733
|
+
return _t(e).map((t) => {
|
|
3734
|
+
const n = Ai(t);
|
|
3739
3735
|
return [t, n ? [...n] : []];
|
|
3740
3736
|
}).filter(([, t]) => t.length > 0);
|
|
3741
3737
|
}
|
|
3742
|
-
function
|
|
3743
|
-
return e == null ? !1 :
|
|
3738
|
+
function jt(e) {
|
|
3739
|
+
return e == null ? !1 : _t(e).some(
|
|
3744
3740
|
(t) => {
|
|
3745
3741
|
var n;
|
|
3746
|
-
return (n =
|
|
3742
|
+
return (n = Ai(t)) == null ? void 0 : n.size;
|
|
3747
3743
|
}
|
|
3748
3744
|
);
|
|
3749
3745
|
}
|
|
3750
|
-
function
|
|
3746
|
+
function Ro(e, t) {
|
|
3751
3747
|
return Promise.all(
|
|
3752
|
-
t.map((r) => (
|
|
3748
|
+
t.map((r) => (Lo(e, r), r().then((i) => i.default || i)))
|
|
3753
3749
|
).then((r) => vi(e, ...r));
|
|
3754
3750
|
}
|
|
3755
|
-
const
|
|
3756
|
-
function
|
|
3757
|
-
if (!
|
|
3758
|
-
return e in
|
|
3759
|
-
const t =
|
|
3760
|
-
return
|
|
3751
|
+
const st = {};
|
|
3752
|
+
function Si(e) {
|
|
3753
|
+
if (!jt(e))
|
|
3754
|
+
return e in st ? st[e] : Promise.resolve();
|
|
3755
|
+
const t = Ho(e);
|
|
3756
|
+
return st[e] = Promise.all(
|
|
3761
3757
|
t.map(
|
|
3762
|
-
([n, r]) =>
|
|
3758
|
+
([n, r]) => Ro(n, r)
|
|
3763
3759
|
)
|
|
3764
3760
|
).then(() => {
|
|
3765
|
-
if (
|
|
3766
|
-
return
|
|
3767
|
-
delete
|
|
3768
|
-
}),
|
|
3761
|
+
if (jt(e))
|
|
3762
|
+
return Si(e);
|
|
3763
|
+
delete st[e];
|
|
3764
|
+
}), st[e];
|
|
3769
3765
|
}
|
|
3770
|
-
var yr = Object.getOwnPropertySymbols,
|
|
3766
|
+
var yr = Object.getOwnPropertySymbols, Po = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, Do = (e, t) => {
|
|
3771
3767
|
var n = {};
|
|
3772
3768
|
for (var r in e)
|
|
3773
|
-
|
|
3769
|
+
Po.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3774
3770
|
if (e != null && yr)
|
|
3775
3771
|
for (var r of yr(e))
|
|
3776
|
-
t.indexOf(r) < 0 &&
|
|
3772
|
+
t.indexOf(r) < 0 && Io.call(e, r) && (n[r] = e[r]);
|
|
3777
3773
|
return n;
|
|
3778
3774
|
};
|
|
3779
|
-
const
|
|
3775
|
+
const Bo = {
|
|
3780
3776
|
number: {
|
|
3781
3777
|
scientific: { notation: "scientific" },
|
|
3782
3778
|
engineering: { notation: "engineering" },
|
|
@@ -3806,28 +3802,28 @@ const Uo = {
|
|
|
3806
3802
|
}
|
|
3807
3803
|
}
|
|
3808
3804
|
};
|
|
3809
|
-
function
|
|
3805
|
+
function Uo({ locale: e, id: t }) {
|
|
3810
3806
|
console.warn(
|
|
3811
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3807
|
+
`[svelte-i18n] The message "${t}" was not found in "${_t(
|
|
3812
3808
|
e
|
|
3813
|
-
).join('", "')}".${
|
|
3809
|
+
).join('", "')}".${jt(Re()) ? `
|
|
3814
3810
|
|
|
3815
3811
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3816
3812
|
);
|
|
3817
3813
|
}
|
|
3818
|
-
const
|
|
3814
|
+
const ko = {
|
|
3819
3815
|
fallbackLocale: null,
|
|
3820
3816
|
loadingDelay: 200,
|
|
3821
|
-
formats:
|
|
3817
|
+
formats: Bo,
|
|
3822
3818
|
warnOnMissingMessages: !0,
|
|
3823
3819
|
handleMissingMessage: void 0,
|
|
3824
3820
|
ignoreTag: !0
|
|
3825
|
-
},
|
|
3826
|
-
function
|
|
3827
|
-
return
|
|
3821
|
+
}, ht = ko;
|
|
3822
|
+
function Je() {
|
|
3823
|
+
return ht;
|
|
3828
3824
|
}
|
|
3829
|
-
function
|
|
3830
|
-
const t = e, { formats: n } = t, r =
|
|
3825
|
+
function Fo(e) {
|
|
3826
|
+
const t = e, { formats: n } = t, r = Do(t, ["formats"]);
|
|
3831
3827
|
let i = e.fallbackLocale;
|
|
3832
3828
|
if (e.initialLocale)
|
|
3833
3829
|
try {
|
|
@@ -3837,143 +3833,143 @@ function Go(e) {
|
|
|
3837
3833
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3838
3834
|
);
|
|
3839
3835
|
}
|
|
3840
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3836
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Uo : console.warn(
|
|
3841
3837
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3842
|
-
)), Object.assign(
|
|
3838
|
+
)), Object.assign(ht, r, { initialLocale: i }), n && ("number" in n && Object.assign(ht.formats.number, n.number), "date" in n && Object.assign(ht.formats.date, n.date), "time" in n && Object.assign(ht.formats.time, n.time)), De.set(i);
|
|
3843
3839
|
}
|
|
3844
|
-
const
|
|
3845
|
-
var
|
|
3840
|
+
const hn = bt(!1);
|
|
3841
|
+
var Go = Object.defineProperty, $o = Object.defineProperties, jo = Object.getOwnPropertyDescriptors, Tr = Object.getOwnPropertySymbols, zo = Object.prototype.hasOwnProperty, Wo = Object.prototype.propertyIsEnumerable, xr = (e, t, n) => t in e ? Go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vo = (e, t) => {
|
|
3846
3842
|
for (var n in t || (t = {}))
|
|
3847
|
-
|
|
3843
|
+
zo.call(t, n) && xr(e, n, t[n]);
|
|
3848
3844
|
if (Tr)
|
|
3849
3845
|
for (var n of Tr(t))
|
|
3850
|
-
|
|
3846
|
+
Wo.call(t, n) && xr(e, n, t[n]);
|
|
3851
3847
|
return e;
|
|
3852
|
-
},
|
|
3853
|
-
let
|
|
3854
|
-
const
|
|
3848
|
+
}, Xo = (e, t) => $o(e, jo(t));
|
|
3849
|
+
let On;
|
|
3850
|
+
const zt = bt(null);
|
|
3855
3851
|
function vr(e) {
|
|
3856
3852
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3857
3853
|
}
|
|
3858
|
-
function
|
|
3854
|
+
function _t(e, t = Je().fallbackLocale) {
|
|
3859
3855
|
const n = vr(e);
|
|
3860
3856
|
return t ? [.../* @__PURE__ */ new Set([...n, ...vr(t)])] : n;
|
|
3861
3857
|
}
|
|
3862
|
-
function
|
|
3863
|
-
return
|
|
3858
|
+
function Re() {
|
|
3859
|
+
return On ?? void 0;
|
|
3864
3860
|
}
|
|
3865
|
-
|
|
3866
|
-
|
|
3861
|
+
zt.subscribe((e) => {
|
|
3862
|
+
On = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3867
3863
|
});
|
|
3868
|
-
const
|
|
3869
|
-
if (e &&
|
|
3870
|
-
const { loadingDelay: t } =
|
|
3864
|
+
const Yo = (e) => {
|
|
3865
|
+
if (e && No(e) && jt(e)) {
|
|
3866
|
+
const { loadingDelay: t } = Je();
|
|
3871
3867
|
let n;
|
|
3872
|
-
return typeof window < "u" &&
|
|
3873
|
-
() =>
|
|
3868
|
+
return typeof window < "u" && Re() != null && t ? n = window.setTimeout(
|
|
3869
|
+
() => hn.set(!0),
|
|
3874
3870
|
t
|
|
3875
|
-
) :
|
|
3876
|
-
|
|
3871
|
+
) : hn.set(!0), Si(e).then(() => {
|
|
3872
|
+
zt.set(e);
|
|
3877
3873
|
}).finally(() => {
|
|
3878
|
-
clearTimeout(n),
|
|
3874
|
+
clearTimeout(n), hn.set(!1);
|
|
3879
3875
|
});
|
|
3880
3876
|
}
|
|
3881
|
-
return
|
|
3882
|
-
},
|
|
3883
|
-
set:
|
|
3884
|
-
}),
|
|
3877
|
+
return zt.set(e);
|
|
3878
|
+
}, De = Xo(Vo({}, zt), {
|
|
3879
|
+
set: Yo
|
|
3880
|
+
}), qt = (e) => {
|
|
3885
3881
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3886
3882
|
return (r) => {
|
|
3887
3883
|
const i = JSON.stringify(r);
|
|
3888
3884
|
return i in t ? t[i] : t[i] = e(r);
|
|
3889
3885
|
};
|
|
3890
3886
|
};
|
|
3891
|
-
var
|
|
3887
|
+
var Zo = Object.defineProperty, Wt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, Ar = (e, t, n) => t in e ? Zo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Dn = (e, t) => {
|
|
3892
3888
|
for (var n in t || (t = {}))
|
|
3893
|
-
wi.call(t, n) &&
|
|
3894
|
-
if (
|
|
3895
|
-
for (var n of
|
|
3896
|
-
Oi.call(t, n) &&
|
|
3889
|
+
wi.call(t, n) && Ar(e, n, t[n]);
|
|
3890
|
+
if (Wt)
|
|
3891
|
+
for (var n of Wt(t))
|
|
3892
|
+
Oi.call(t, n) && Ar(e, n, t[n]);
|
|
3897
3893
|
return e;
|
|
3898
|
-
},
|
|
3894
|
+
}, et = (e, t) => {
|
|
3899
3895
|
var n = {};
|
|
3900
3896
|
for (var r in e)
|
|
3901
3897
|
wi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3902
|
-
if (e != null &&
|
|
3903
|
-
for (var r of
|
|
3898
|
+
if (e != null && Wt)
|
|
3899
|
+
for (var r of Wt(e))
|
|
3904
3900
|
t.indexOf(r) < 0 && Oi.call(e, r) && (n[r] = e[r]);
|
|
3905
3901
|
return n;
|
|
3906
3902
|
};
|
|
3907
|
-
const
|
|
3908
|
-
const { formats: n } =
|
|
3903
|
+
const gt = (e, t) => {
|
|
3904
|
+
const { formats: n } = Je();
|
|
3909
3905
|
if (e in n && t in n[e])
|
|
3910
3906
|
return n[e][t];
|
|
3911
3907
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3912
|
-
},
|
|
3908
|
+
}, qo = qt(
|
|
3913
3909
|
(e) => {
|
|
3914
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3910
|
+
var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
|
|
3915
3911
|
if (n == null)
|
|
3916
3912
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3917
|
-
return r && (i =
|
|
3913
|
+
return r && (i = gt("number", r)), new Intl.NumberFormat(n, i);
|
|
3918
3914
|
}
|
|
3919
|
-
),
|
|
3915
|
+
), Jo = qt(
|
|
3920
3916
|
(e) => {
|
|
3921
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3917
|
+
var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
|
|
3922
3918
|
if (n == null)
|
|
3923
3919
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3924
|
-
return r ? i =
|
|
3920
|
+
return r ? i = gt("date", r) : Object.keys(i).length === 0 && (i = gt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3925
3921
|
}
|
|
3926
|
-
),
|
|
3922
|
+
), Qo = qt(
|
|
3927
3923
|
(e) => {
|
|
3928
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3924
|
+
var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
|
|
3929
3925
|
if (n == null)
|
|
3930
3926
|
throw new Error(
|
|
3931
3927
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3932
3928
|
);
|
|
3933
|
-
return r ? i =
|
|
3929
|
+
return r ? i = gt("time", r) : Object.keys(i).length === 0 && (i = gt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3934
3930
|
}
|
|
3935
|
-
),
|
|
3931
|
+
), Ko = (e = {}) => {
|
|
3936
3932
|
var t = e, {
|
|
3937
|
-
locale: n =
|
|
3938
|
-
} = t, r =
|
|
3933
|
+
locale: n = Re()
|
|
3934
|
+
} = t, r = et(t, [
|
|
3939
3935
|
"locale"
|
|
3940
3936
|
]);
|
|
3941
|
-
return
|
|
3942
|
-
},
|
|
3937
|
+
return qo(Dn({ locale: n }, r));
|
|
3938
|
+
}, ea = (e = {}) => {
|
|
3943
3939
|
var t = e, {
|
|
3944
|
-
locale: n =
|
|
3945
|
-
} = t, r =
|
|
3940
|
+
locale: n = Re()
|
|
3941
|
+
} = t, r = et(t, [
|
|
3946
3942
|
"locale"
|
|
3947
3943
|
]);
|
|
3948
|
-
return
|
|
3949
|
-
},
|
|
3944
|
+
return Jo(Dn({ locale: n }, r));
|
|
3945
|
+
}, ta = (e = {}) => {
|
|
3950
3946
|
var t = e, {
|
|
3951
|
-
locale: n =
|
|
3952
|
-
} = t, r =
|
|
3947
|
+
locale: n = Re()
|
|
3948
|
+
} = t, r = et(t, [
|
|
3953
3949
|
"locale"
|
|
3954
3950
|
]);
|
|
3955
|
-
return
|
|
3956
|
-
},
|
|
3951
|
+
return Qo(Dn({ locale: n }, r));
|
|
3952
|
+
}, na = qt(
|
|
3957
3953
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3958
|
-
(e, t =
|
|
3959
|
-
ignoreTag:
|
|
3954
|
+
(e, t = Re()) => new yi(e, t, Je().formats, {
|
|
3955
|
+
ignoreTag: Je().ignoreTag
|
|
3960
3956
|
})
|
|
3961
|
-
),
|
|
3957
|
+
), ra = (e, t = {}) => {
|
|
3962
3958
|
var n, r, i, s;
|
|
3963
|
-
let
|
|
3964
|
-
typeof e == "object" && (
|
|
3959
|
+
let l = t;
|
|
3960
|
+
typeof e == "object" && (l = e, e = l.id);
|
|
3965
3961
|
const {
|
|
3966
3962
|
values: a,
|
|
3967
|
-
locale: c =
|
|
3968
|
-
default:
|
|
3969
|
-
} =
|
|
3963
|
+
locale: c = Re(),
|
|
3964
|
+
default: u
|
|
3965
|
+
} = l;
|
|
3970
3966
|
if (c == null)
|
|
3971
3967
|
throw new Error(
|
|
3972
3968
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3973
3969
|
);
|
|
3974
3970
|
let f = Ti(e, c);
|
|
3975
3971
|
if (!f)
|
|
3976
|
-
f = (s = (i = (r = (n =
|
|
3972
|
+
f = (s = (i = (r = (n = Je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3977
3973
|
else if (typeof f != "string")
|
|
3978
3974
|
return console.warn(
|
|
3979
3975
|
`[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 +3978,7 @@ const bt = (e, t) => {
|
|
|
3982
3978
|
return f;
|
|
3983
3979
|
let b = f;
|
|
3984
3980
|
try {
|
|
3985
|
-
b =
|
|
3981
|
+
b = na(f, c).format(a);
|
|
3986
3982
|
} catch (y) {
|
|
3987
3983
|
y instanceof Error && console.warn(
|
|
3988
3984
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3990,18 +3986,18 @@ const bt = (e, t) => {
|
|
|
3990
3986
|
);
|
|
3991
3987
|
}
|
|
3992
3988
|
return b;
|
|
3993
|
-
},
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
function
|
|
3989
|
+
}, ia = (e, t) => ta(t).format(e), sa = (e, t) => ea(t).format(e), oa = (e, t) => Ko(t).format(e), aa = (e, t = Re()) => Ti(e, t), la = Ke([De, Et], () => ra);
|
|
3990
|
+
Ke([De], () => ia);
|
|
3991
|
+
Ke([De], () => sa);
|
|
3992
|
+
Ke([De], () => oa);
|
|
3993
|
+
Ke([De, Et], () => aa);
|
|
3994
|
+
function Sr(e, t) {
|
|
3999
3995
|
vi(e, t);
|
|
4000
3996
|
}
|
|
4001
|
-
function
|
|
4002
|
-
|
|
3997
|
+
function ua(e) {
|
|
3998
|
+
Fo({
|
|
4003
3999
|
fallbackLocale: "en"
|
|
4004
|
-
}),
|
|
4000
|
+
}), De.set(e);
|
|
4005
4001
|
}
|
|
4006
4002
|
const wr = {
|
|
4007
4003
|
en: {
|
|
@@ -4030,17 +4026,17 @@ const wr = {
|
|
|
4030
4026
|
const {
|
|
4031
4027
|
entries: Mi,
|
|
4032
4028
|
setPrototypeOf: Or,
|
|
4033
|
-
isFrozen:
|
|
4034
|
-
getPrototypeOf:
|
|
4035
|
-
getOwnPropertyDescriptor:
|
|
4029
|
+
isFrozen: ca,
|
|
4030
|
+
getPrototypeOf: fa,
|
|
4031
|
+
getOwnPropertyDescriptor: ha
|
|
4036
4032
|
} = Object;
|
|
4037
4033
|
let {
|
|
4038
4034
|
freeze: fe,
|
|
4039
4035
|
seal: Ee,
|
|
4040
4036
|
create: Ci
|
|
4041
4037
|
} = Object, {
|
|
4042
|
-
apply:
|
|
4043
|
-
construct:
|
|
4038
|
+
apply: Mn,
|
|
4039
|
+
construct: Cn
|
|
4044
4040
|
} = typeof Reflect < "u" && Reflect;
|
|
4045
4041
|
fe || (fe = function(t) {
|
|
4046
4042
|
return t;
|
|
@@ -4048,98 +4044,107 @@ fe || (fe = function(t) {
|
|
|
4048
4044
|
Ee || (Ee = function(t) {
|
|
4049
4045
|
return t;
|
|
4050
4046
|
});
|
|
4051
|
-
|
|
4047
|
+
Mn || (Mn = function(t, n, r) {
|
|
4052
4048
|
return t.apply(n, r);
|
|
4053
4049
|
});
|
|
4054
|
-
|
|
4050
|
+
Cn || (Cn = function(t, n) {
|
|
4055
4051
|
return new t(...n);
|
|
4056
4052
|
});
|
|
4057
|
-
const
|
|
4053
|
+
const Mt = pe(Array.prototype.forEach), Mr = pe(Array.prototype.pop), ot = pe(Array.prototype.push), Ut = pe(String.prototype.toLowerCase), mn = pe(String.prototype.toString), Cr = pe(String.prototype.match), at = pe(String.prototype.replace), ma = pe(String.prototype.indexOf), da = pe(String.prototype.trim), Te = pe(Object.prototype.hasOwnProperty), le = pe(RegExp.prototype.test), lt = pa(TypeError);
|
|
4058
4054
|
function pe(e) {
|
|
4059
4055
|
return function(t) {
|
|
4060
4056
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4061
4057
|
r[i - 1] = arguments[i];
|
|
4062
|
-
return
|
|
4058
|
+
return Mn(e, t, r);
|
|
4063
4059
|
};
|
|
4064
4060
|
}
|
|
4065
|
-
function
|
|
4061
|
+
function pa(e) {
|
|
4066
4062
|
return function() {
|
|
4067
4063
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4068
4064
|
n[r] = arguments[r];
|
|
4069
|
-
return
|
|
4065
|
+
return Cn(e, n);
|
|
4070
4066
|
};
|
|
4071
4067
|
}
|
|
4072
4068
|
function P(e, t) {
|
|
4073
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4069
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ut;
|
|
4074
4070
|
Or && Or(e, null);
|
|
4075
4071
|
let r = t.length;
|
|
4076
4072
|
for (; r--; ) {
|
|
4077
4073
|
let i = t[r];
|
|
4078
4074
|
if (typeof i == "string") {
|
|
4079
4075
|
const s = n(i);
|
|
4080
|
-
s !== i && (
|
|
4076
|
+
s !== i && (ca(t) || (t[r] = s), i = s);
|
|
4081
4077
|
}
|
|
4082
4078
|
e[i] = !0;
|
|
4083
4079
|
}
|
|
4084
4080
|
return e;
|
|
4085
4081
|
}
|
|
4086
|
-
function
|
|
4082
|
+
function ga(e) {
|
|
4087
4083
|
for (let t = 0; t < e.length; t++)
|
|
4088
4084
|
Te(e, t) || (e[t] = null);
|
|
4089
4085
|
return e;
|
|
4090
4086
|
}
|
|
4091
|
-
function
|
|
4087
|
+
function Ie(e) {
|
|
4092
4088
|
const t = Ci(null);
|
|
4093
4089
|
for (const [n, r] of Mi(e))
|
|
4094
|
-
Te(e, n) && (Array.isArray(r) ? t[n] =
|
|
4090
|
+
Te(e, n) && (Array.isArray(r) ? t[n] = ga(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Ie(r) : t[n] = r);
|
|
4095
4091
|
return t;
|
|
4096
4092
|
}
|
|
4097
|
-
function
|
|
4093
|
+
function ut(e, t) {
|
|
4098
4094
|
for (; e !== null; ) {
|
|
4099
|
-
const r =
|
|
4095
|
+
const r = ha(e, t);
|
|
4100
4096
|
if (r) {
|
|
4101
4097
|
if (r.get)
|
|
4102
4098
|
return pe(r.get);
|
|
4103
4099
|
if (typeof r.value == "function")
|
|
4104
4100
|
return pe(r.value);
|
|
4105
4101
|
}
|
|
4106
|
-
e =
|
|
4102
|
+
e = fa(e);
|
|
4107
4103
|
}
|
|
4108
4104
|
function n() {
|
|
4109
4105
|
return null;
|
|
4110
4106
|
}
|
|
4111
4107
|
return n;
|
|
4112
4108
|
}
|
|
4113
|
-
const Nr = 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"]),
|
|
4109
|
+
const Nr = 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"]), dn = 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"]), pn = 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"]), ba = 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"]), gn = 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"]), Ea = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Lr = 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"]), bn = 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"]), Rr = 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"]), Ct = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), _a = Ee(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ya = Ee(/<%[\w\W]*|[\w\W]*%>/gm), Ta = Ee(/\${[\w\W]*}/gm), xa = Ee(/^data-[\-\w.\u00B7-\uFFFF]/), va = Ee(/^aria-[\-\w]+$/), Ni = Ee(
|
|
4114
4110
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4115
4111
|
// eslint-disable-line no-useless-escape
|
|
4116
|
-
), Aa = Ee(/^(?:\w+script|data):/i),
|
|
4112
|
+
), Aa = Ee(/^(?:\w+script|data):/i), Sa = Ee(
|
|
4117
4113
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4118
4114
|
// eslint-disable-line no-control-regex
|
|
4119
|
-
), Li = Ee(/^html$/i),
|
|
4115
|
+
), Li = Ee(/^html$/i), wa = Ee(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4120
4116
|
var Pr = /* @__PURE__ */ Object.freeze({
|
|
4121
4117
|
__proto__: null,
|
|
4122
|
-
MUSTACHE_EXPR:
|
|
4123
|
-
ERB_EXPR:
|
|
4124
|
-
TMPLIT_EXPR:
|
|
4125
|
-
DATA_ATTR:
|
|
4126
|
-
ARIA_ATTR:
|
|
4118
|
+
MUSTACHE_EXPR: _a,
|
|
4119
|
+
ERB_EXPR: ya,
|
|
4120
|
+
TMPLIT_EXPR: Ta,
|
|
4121
|
+
DATA_ATTR: xa,
|
|
4122
|
+
ARIA_ATTR: va,
|
|
4127
4123
|
IS_ALLOWED_URI: Ni,
|
|
4128
4124
|
IS_SCRIPT_OR_DATA: Aa,
|
|
4129
|
-
ATTR_WHITESPACE:
|
|
4125
|
+
ATTR_WHITESPACE: Sa,
|
|
4130
4126
|
DOCTYPE_NAME: Li,
|
|
4131
|
-
CUSTOM_ELEMENT:
|
|
4127
|
+
CUSTOM_ELEMENT: wa
|
|
4132
4128
|
});
|
|
4133
|
-
const
|
|
4129
|
+
const ct = {
|
|
4134
4130
|
element: 1,
|
|
4131
|
+
attribute: 2,
|
|
4135
4132
|
text: 3,
|
|
4133
|
+
cdataSection: 4,
|
|
4134
|
+
entityReference: 5,
|
|
4135
|
+
// Deprecated
|
|
4136
|
+
entityNode: 6,
|
|
4136
4137
|
// Deprecated
|
|
4137
4138
|
progressingInstruction: 7,
|
|
4138
4139
|
comment: 8,
|
|
4139
|
-
document: 9
|
|
4140
|
-
|
|
4140
|
+
document: 9,
|
|
4141
|
+
documentType: 10,
|
|
4142
|
+
documentFragment: 11,
|
|
4143
|
+
notation: 12
|
|
4144
|
+
// Deprecated
|
|
4145
|
+
}, Oa = function() {
|
|
4141
4146
|
return typeof window > "u" ? null : window;
|
|
4142
|
-
},
|
|
4147
|
+
}, Ma = function(t, n) {
|
|
4143
4148
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4144
4149
|
return null;
|
|
4145
4150
|
let r = null;
|
|
@@ -4148,11 +4153,11 @@ const ft = {
|
|
|
4148
4153
|
const s = "dompurify" + (r ? "#" + r : "");
|
|
4149
4154
|
try {
|
|
4150
4155
|
return t.createPolicy(s, {
|
|
4151
|
-
createHTML(
|
|
4152
|
-
return
|
|
4156
|
+
createHTML(l) {
|
|
4157
|
+
return l;
|
|
4153
4158
|
},
|
|
4154
|
-
createScriptURL(
|
|
4155
|
-
return
|
|
4159
|
+
createScriptURL(l) {
|
|
4160
|
+
return l;
|
|
4156
4161
|
}
|
|
4157
4162
|
});
|
|
4158
4163
|
} catch {
|
|
@@ -4160,39 +4165,39 @@ const ft = {
|
|
|
4160
4165
|
}
|
|
4161
4166
|
};
|
|
4162
4167
|
function Hi() {
|
|
4163
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4168
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Oa();
|
|
4164
4169
|
const t = (w) => Hi(w);
|
|
4165
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4170
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== ct.document)
|
|
4166
4171
|
return t.isSupported = !1, t;
|
|
4167
4172
|
let {
|
|
4168
4173
|
document: n
|
|
4169
4174
|
} = e;
|
|
4170
4175
|
const r = n, i = r.currentScript, {
|
|
4171
4176
|
DocumentFragment: s,
|
|
4172
|
-
HTMLTemplateElement:
|
|
4177
|
+
HTMLTemplateElement: l,
|
|
4173
4178
|
Node: a,
|
|
4174
4179
|
Element: c,
|
|
4175
|
-
NodeFilter:
|
|
4180
|
+
NodeFilter: u,
|
|
4176
4181
|
NamedNodeMap: f = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
4177
4182
|
HTMLFormElement: b,
|
|
4178
4183
|
DOMParser: y,
|
|
4179
4184
|
trustedTypes: M
|
|
4180
|
-
} = e, E = c.prototype, d =
|
|
4181
|
-
if (typeof
|
|
4185
|
+
} = e, E = c.prototype, d = ut(E, "cloneNode"), C = ut(E, "remove"), $ = ut(E, "nextSibling"), U = ut(E, "childNodes"), S = ut(E, "parentNode");
|
|
4186
|
+
if (typeof l == "function") {
|
|
4182
4187
|
const w = n.createElement("template");
|
|
4183
4188
|
w.content && w.content.ownerDocument && (n = w.content.ownerDocument);
|
|
4184
4189
|
}
|
|
4185
4190
|
let H, I = "";
|
|
4186
4191
|
const {
|
|
4187
|
-
implementation:
|
|
4188
|
-
createNodeIterator:
|
|
4189
|
-
createDocumentFragment:
|
|
4192
|
+
implementation: F,
|
|
4193
|
+
createNodeIterator: Z,
|
|
4194
|
+
createDocumentFragment: X,
|
|
4190
4195
|
getElementsByTagName: Q
|
|
4191
4196
|
} = n, {
|
|
4192
|
-
importNode:
|
|
4197
|
+
importNode: z
|
|
4193
4198
|
} = r;
|
|
4194
4199
|
let O = {};
|
|
4195
|
-
t.isSupported = typeof Mi == "function" && typeof
|
|
4200
|
+
t.isSupported = typeof Mi == "function" && typeof S == "function" && F && F.createHTMLDocument !== void 0;
|
|
4196
4201
|
const {
|
|
4197
4202
|
MUSTACHE_EXPR: ne,
|
|
4198
4203
|
ERB_EXPR: he,
|
|
@@ -4206,9 +4211,9 @@ function Hi() {
|
|
|
4206
4211
|
let {
|
|
4207
4212
|
IS_ALLOWED_URI: N
|
|
4208
4213
|
} = Pr, L = null;
|
|
4209
|
-
const
|
|
4214
|
+
const W = P({}, [...Nr, ...dn, ...pn, ...gn, ...Lr]);
|
|
4210
4215
|
let R = null;
|
|
4211
|
-
const q = P({}, [...Hr, ...
|
|
4216
|
+
const q = P({}, [...Hr, ...bn, ...Rr, ...Ct]);
|
|
4212
4217
|
let m = Object.seal(Ci(null, {
|
|
4213
4218
|
tagNameCheck: {
|
|
4214
4219
|
writable: !0,
|
|
@@ -4228,80 +4233,80 @@ function Hi() {
|
|
|
4228
4233
|
enumerable: !0,
|
|
4229
4234
|
value: !1
|
|
4230
4235
|
}
|
|
4231
|
-
})),
|
|
4236
|
+
})), G = null, ee = null, K = !0, _e = !0, ie = !1, ye = !0, be = !1, Ce = !0, Pe = !1, Jt = !1, Qt = !1, Be = !1, yt = !1, Tt = !1, Bn = !0, Un = !1;
|
|
4232
4237
|
const Ii = "user-content-";
|
|
4233
|
-
let
|
|
4238
|
+
let Kt = !0, tt = !1, Ue = {}, ke = null;
|
|
4234
4239
|
const kn = 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
4240
|
let Fn = null;
|
|
4236
4241
|
const Gn = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4237
|
-
let
|
|
4238
|
-
const $n = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
4239
|
-
let
|
|
4240
|
-
const Di = P({}, [
|
|
4241
|
-
let
|
|
4242
|
+
let en = null;
|
|
4243
|
+
const $n = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xt = "http://www.w3.org/1998/Math/MathML", vt = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
|
|
4244
|
+
let Fe = we, tn = !1, nn = null;
|
|
4245
|
+
const Di = P({}, [xt, vt, we], mn);
|
|
4246
|
+
let nt = null;
|
|
4242
4247
|
const Bi = ["application/xhtml+xml", "text/html"], Ui = "text/html";
|
|
4243
|
-
let re = null,
|
|
4248
|
+
let re = null, Ge = null;
|
|
4244
4249
|
const ki = n.createElement("form"), jn = function(o) {
|
|
4245
4250
|
return o instanceof RegExp || o instanceof Function;
|
|
4246
|
-
},
|
|
4251
|
+
}, rn = function() {
|
|
4247
4252
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4248
|
-
if (!(
|
|
4249
|
-
if ((!o || typeof o != "object") && (o = {}), o =
|
|
4250
|
-
Bi.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? Ui : o.PARSER_MEDIA_TYPE, re =
|
|
4251
|
-
|
|
4253
|
+
if (!(Ge && Ge === o)) {
|
|
4254
|
+
if ((!o || typeof o != "object") && (o = {}), o = Ie(o), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4255
|
+
Bi.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? Ui : o.PARSER_MEDIA_TYPE, re = nt === "application/xhtml+xml" ? mn : Ut, L = Te(o, "ALLOWED_TAGS") ? P({}, o.ALLOWED_TAGS, re) : W, R = Te(o, "ALLOWED_ATTR") ? P({}, o.ALLOWED_ATTR, re) : q, nn = Te(o, "ALLOWED_NAMESPACES") ? P({}, o.ALLOWED_NAMESPACES, mn) : Di, en = Te(o, "ADD_URI_SAFE_ATTR") ? P(
|
|
4256
|
+
Ie($n),
|
|
4252
4257
|
// eslint-disable-line indent
|
|
4253
4258
|
o.ADD_URI_SAFE_ATTR,
|
|
4254
4259
|
// eslint-disable-line indent
|
|
4255
4260
|
re
|
|
4256
4261
|
// eslint-disable-line indent
|
|
4257
4262
|
) : $n, Fn = Te(o, "ADD_DATA_URI_TAGS") ? P(
|
|
4258
|
-
|
|
4263
|
+
Ie(Gn),
|
|
4259
4264
|
// eslint-disable-line indent
|
|
4260
4265
|
o.ADD_DATA_URI_TAGS,
|
|
4261
4266
|
// eslint-disable-line indent
|
|
4262
4267
|
re
|
|
4263
4268
|
// eslint-disable-line indent
|
|
4264
|
-
) : Gn,
|
|
4269
|
+
) : Gn, ke = Te(o, "FORBID_CONTENTS") ? P({}, o.FORBID_CONTENTS, re) : kn, G = Te(o, "FORBID_TAGS") ? P({}, o.FORBID_TAGS, re) : {}, ee = Te(o, "FORBID_ATTR") ? P({}, o.FORBID_ATTR, re) : {}, Ue = Te(o, "USE_PROFILES") ? o.USE_PROFILES : !1, K = o.ALLOW_ARIA_ATTR !== !1, _e = o.ALLOW_DATA_ATTR !== !1, ie = o.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, be = o.SAFE_FOR_TEMPLATES || !1, Ce = o.SAFE_FOR_XML !== !1, Pe = o.WHOLE_DOCUMENT || !1, Be = o.RETURN_DOM || !1, yt = o.RETURN_DOM_FRAGMENT || !1, Tt = o.RETURN_TRUSTED_TYPE || !1, Qt = o.FORCE_BODY || !1, Bn = o.SANITIZE_DOM !== !1, Un = o.SANITIZE_NAMED_PROPS || !1, Kt = o.KEEP_CONTENT !== !1, tt = o.IN_PLACE || !1, N = o.ALLOWED_URI_REGEXP || Ni, Fe = o.NAMESPACE || we, m = o.CUSTOM_ELEMENT_HANDLING || {}, o.CUSTOM_ELEMENT_HANDLING && jn(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = o.CUSTOM_ELEMENT_HANDLING.tagNameCheck), o.CUSTOM_ELEMENT_HANDLING && jn(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), be && (_e = !1), yt && (Be = !0), Ue && (L = P({}, Lr), R = [], Ue.html === !0 && (P(L, Nr), P(R, Hr)), Ue.svg === !0 && (P(L, dn), P(R, bn), P(R, Ct)), Ue.svgFilters === !0 && (P(L, pn), P(R, bn), P(R, Ct)), Ue.mathMl === !0 && (P(L, gn), P(R, Rr), P(R, Ct))), o.ADD_TAGS && (L === W && (L = Ie(L)), P(L, o.ADD_TAGS, re)), o.ADD_ATTR && (R === q && (R = Ie(R)), P(R, o.ADD_ATTR, re)), o.ADD_URI_SAFE_ATTR && P(en, o.ADD_URI_SAFE_ATTR, re), o.FORBID_CONTENTS && (ke === kn && (ke = Ie(ke)), P(ke, o.FORBID_CONTENTS, re)), Kt && (L["#text"] = !0), Pe && P(L, ["html", "head", "body"]), L.table && (P(L, ["tbody"]), delete G.tbody), o.TRUSTED_TYPES_POLICY) {
|
|
4265
4270
|
if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4266
4271
|
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4267
4272
|
if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4268
4273
|
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4269
4274
|
H = o.TRUSTED_TYPES_POLICY, I = H.createHTML("");
|
|
4270
4275
|
} else
|
|
4271
|
-
H === void 0 && (H =
|
|
4272
|
-
fe && fe(o),
|
|
4276
|
+
H === void 0 && (H = Ma(M, i)), H !== null && typeof I == "string" && (I = H.createHTML(""));
|
|
4277
|
+
fe && fe(o), Ge = o;
|
|
4273
4278
|
}
|
|
4274
|
-
}, zn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = P({}, ["foreignobject", "annotation-xml"]), Fi = P({}, ["title", "style", "font", "a", "script"]), Vn = P({}, [...
|
|
4275
|
-
let p =
|
|
4279
|
+
}, zn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = P({}, ["foreignobject", "annotation-xml"]), Fi = P({}, ["title", "style", "font", "a", "script"]), Vn = P({}, [...dn, ...pn, ...ba]), Xn = P({}, [...gn, ...Ea]), Gi = function(o) {
|
|
4280
|
+
let p = S(o);
|
|
4276
4281
|
(!p || !p.tagName) && (p = {
|
|
4277
|
-
namespaceURI:
|
|
4282
|
+
namespaceURI: Fe,
|
|
4278
4283
|
tagName: "template"
|
|
4279
4284
|
});
|
|
4280
|
-
const
|
|
4281
|
-
return
|
|
4285
|
+
const A = Ut(o.tagName), V = Ut(p.tagName);
|
|
4286
|
+
return nn[o.namespaceURI] ? o.namespaceURI === vt ? p.namespaceURI === we ? A === "svg" : p.namespaceURI === xt ? A === "svg" && (V === "annotation-xml" || zn[V]) : !!Vn[A] : o.namespaceURI === xt ? p.namespaceURI === we ? A === "math" : p.namespaceURI === vt ? A === "math" && Wn[V] : !!Xn[A] : o.namespaceURI === we ? p.namespaceURI === vt && !Wn[V] || p.namespaceURI === xt && !zn[V] ? !1 : !Xn[A] && (Fi[A] || !Vn[A]) : !!(nt === "application/xhtml+xml" && nn[o.namespaceURI]) : !1;
|
|
4282
4287
|
}, xe = function(o) {
|
|
4283
|
-
|
|
4288
|
+
ot(t.removed, {
|
|
4284
4289
|
element: o
|
|
4285
4290
|
});
|
|
4286
4291
|
try {
|
|
4287
|
-
|
|
4292
|
+
S(o).removeChild(o);
|
|
4288
4293
|
} catch {
|
|
4289
4294
|
C(o);
|
|
4290
4295
|
}
|
|
4291
4296
|
}, At = function(o, p) {
|
|
4292
4297
|
try {
|
|
4293
|
-
|
|
4298
|
+
ot(t.removed, {
|
|
4294
4299
|
attribute: p.getAttributeNode(o),
|
|
4295
4300
|
from: p
|
|
4296
4301
|
});
|
|
4297
4302
|
} catch {
|
|
4298
|
-
|
|
4303
|
+
ot(t.removed, {
|
|
4299
4304
|
attribute: null,
|
|
4300
4305
|
from: p
|
|
4301
4306
|
});
|
|
4302
4307
|
}
|
|
4303
4308
|
if (p.removeAttribute(o), o === "is" && !R[o])
|
|
4304
|
-
if (
|
|
4309
|
+
if (Be || yt)
|
|
4305
4310
|
try {
|
|
4306
4311
|
xe(p);
|
|
4307
4312
|
} catch {
|
|
@@ -4312,95 +4317,95 @@ function Hi() {
|
|
|
4312
4317
|
} catch {
|
|
4313
4318
|
}
|
|
4314
4319
|
}, Yn = function(o) {
|
|
4315
|
-
let p = null,
|
|
4316
|
-
if (
|
|
4320
|
+
let p = null, A = null;
|
|
4321
|
+
if (Qt)
|
|
4317
4322
|
o = "<remove></remove>" + o;
|
|
4318
4323
|
else {
|
|
4319
4324
|
const se = Cr(o, /^[\r\n\t ]+/);
|
|
4320
|
-
|
|
4325
|
+
A = se && se[0];
|
|
4321
4326
|
}
|
|
4322
|
-
|
|
4323
|
-
const
|
|
4324
|
-
if (
|
|
4327
|
+
nt === "application/xhtml+xml" && Fe === we && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
|
|
4328
|
+
const V = H ? H.createHTML(o) : o;
|
|
4329
|
+
if (Fe === we)
|
|
4325
4330
|
try {
|
|
4326
|
-
p = new y().parseFromString(
|
|
4331
|
+
p = new y().parseFromString(V, nt);
|
|
4327
4332
|
} catch {
|
|
4328
4333
|
}
|
|
4329
4334
|
if (!p || !p.documentElement) {
|
|
4330
|
-
p =
|
|
4335
|
+
p = F.createDocument(Fe, "template", null);
|
|
4331
4336
|
try {
|
|
4332
|
-
p.documentElement.innerHTML =
|
|
4337
|
+
p.documentElement.innerHTML = tn ? I : V;
|
|
4333
4338
|
} catch {
|
|
4334
4339
|
}
|
|
4335
4340
|
}
|
|
4336
4341
|
const oe = p.body || p.documentElement;
|
|
4337
|
-
return o &&
|
|
4342
|
+
return o && A && oe.insertBefore(n.createTextNode(A), oe.childNodes[0] || null), Fe === we ? Q.call(p, Pe ? "html" : "body")[0] : Pe ? p.documentElement : oe;
|
|
4338
4343
|
}, Zn = function(o) {
|
|
4339
|
-
return
|
|
4344
|
+
return Z.call(
|
|
4340
4345
|
o.ownerDocument || o,
|
|
4341
4346
|
o,
|
|
4342
4347
|
// eslint-disable-next-line no-bitwise
|
|
4343
|
-
|
|
4348
|
+
u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
|
|
4344
4349
|
null
|
|
4345
4350
|
);
|
|
4346
4351
|
}, qn = function(o) {
|
|
4347
4352
|
return o instanceof b && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof f) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
|
|
4348
4353
|
}, Jn = function(o) {
|
|
4349
4354
|
return typeof a == "function" && o instanceof a;
|
|
4350
|
-
},
|
|
4351
|
-
O[o] &&
|
|
4352
|
-
|
|
4355
|
+
}, Oe = function(o, p, A) {
|
|
4356
|
+
O[o] && Mt(O[o], (V) => {
|
|
4357
|
+
V.call(t, p, A, Ge);
|
|
4353
4358
|
});
|
|
4354
4359
|
}, Qn = function(o) {
|
|
4355
4360
|
let p = null;
|
|
4356
|
-
if (
|
|
4361
|
+
if (Oe("beforeSanitizeElements", o, null), qn(o))
|
|
4357
4362
|
return xe(o), !0;
|
|
4358
|
-
const
|
|
4359
|
-
if (
|
|
4360
|
-
tagName:
|
|
4363
|
+
const A = re(o.nodeName);
|
|
4364
|
+
if (Oe("uponSanitizeElement", o, {
|
|
4365
|
+
tagName: A,
|
|
4361
4366
|
allowedTags: L
|
|
4362
|
-
}), o.hasChildNodes() && !Jn(o.firstElementChild) &&
|
|
4367
|
+
}), o.hasChildNodes() && !Jn(o.firstElementChild) && le(/<[/\w]/g, o.innerHTML) && le(/<[/\w]/g, o.textContent) || o.nodeType === ct.progressingInstruction || Ce && o.nodeType === ct.comment && le(/<[/\w]/g, o.data))
|
|
4363
4368
|
return xe(o), !0;
|
|
4364
|
-
if (!L[
|
|
4365
|
-
if (!
|
|
4369
|
+
if (!L[A] || G[A]) {
|
|
4370
|
+
if (!G[A] && er(A) && (m.tagNameCheck instanceof RegExp && le(m.tagNameCheck, A) || m.tagNameCheck instanceof Function && m.tagNameCheck(A)))
|
|
4366
4371
|
return !1;
|
|
4367
|
-
if (
|
|
4368
|
-
const
|
|
4369
|
-
if (oe &&
|
|
4372
|
+
if (Kt && !ke[A]) {
|
|
4373
|
+
const V = S(o) || o.parentNode, oe = U(o) || o.childNodes;
|
|
4374
|
+
if (oe && V) {
|
|
4370
4375
|
const se = oe.length;
|
|
4371
4376
|
for (let me = se - 1; me >= 0; --me) {
|
|
4372
4377
|
const ve = d(oe[me], !0);
|
|
4373
|
-
ve.__removalCount = (o.__removalCount || 0) + 1,
|
|
4378
|
+
ve.__removalCount = (o.__removalCount || 0) + 1, V.insertBefore(ve, $(o));
|
|
4374
4379
|
}
|
|
4375
4380
|
}
|
|
4376
4381
|
}
|
|
4377
4382
|
return xe(o), !0;
|
|
4378
4383
|
}
|
|
4379
|
-
return o instanceof c && !Gi(o) || (
|
|
4380
|
-
p =
|
|
4381
|
-
}), o.textContent !== p && (
|
|
4384
|
+
return o instanceof c && !Gi(o) || (A === "noscript" || A === "noembed" || A === "noframes") && le(/<\/no(script|embed|frames)/i, o.innerHTML) ? (xe(o), !0) : (be && o.nodeType === ct.text && (p = o.textContent, Mt([ne, he, v], (V) => {
|
|
4385
|
+
p = at(p, V, " ");
|
|
4386
|
+
}), o.textContent !== p && (ot(t.removed, {
|
|
4382
4387
|
element: o.cloneNode()
|
|
4383
|
-
}), o.textContent = p)),
|
|
4384
|
-
}, Kn = function(o, p,
|
|
4385
|
-
if (Bn && (p === "id" || p === "name") && (
|
|
4388
|
+
}), o.textContent = p)), Oe("afterSanitizeElements", o, null), !1);
|
|
4389
|
+
}, Kn = function(o, p, A) {
|
|
4390
|
+
if (Bn && (p === "id" || p === "name") && (A in n || A in ki))
|
|
4386
4391
|
return !1;
|
|
4387
|
-
if (!(_e && !ee[p] &&
|
|
4388
|
-
if (!(K &&
|
|
4392
|
+
if (!(_e && !ee[p] && le(_, p))) {
|
|
4393
|
+
if (!(K && le(g, p))) {
|
|
4389
4394
|
if (!R[p] || ee[p]) {
|
|
4390
4395
|
if (
|
|
4391
4396
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4392
4397
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4393
4398
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4394
|
-
!(er(o) && (m.tagNameCheck instanceof RegExp &&
|
|
4399
|
+
!(er(o) && (m.tagNameCheck instanceof RegExp && le(m.tagNameCheck, o) || m.tagNameCheck instanceof Function && m.tagNameCheck(o)) && (m.attributeNameCheck instanceof RegExp && le(m.attributeNameCheck, p) || m.attributeNameCheck instanceof Function && m.attributeNameCheck(p)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4395
4400
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4396
|
-
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp &&
|
|
4401
|
+
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && le(m.tagNameCheck, A) || m.tagNameCheck instanceof Function && m.tagNameCheck(A)))
|
|
4397
4402
|
)
|
|
4398
4403
|
return !1;
|
|
4399
|
-
} else if (!
|
|
4400
|
-
if (!
|
|
4401
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") && o !== "script" &&
|
|
4402
|
-
if (!(ie && !
|
|
4403
|
-
if (
|
|
4404
|
+
} else if (!en[p]) {
|
|
4405
|
+
if (!le(N, at(A, h, ""))) {
|
|
4406
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && o !== "script" && ma(A, "data:") === 0 && Fn[o])) {
|
|
4407
|
+
if (!(ie && !le(x, at(A, h, "")))) {
|
|
4408
|
+
if (A)
|
|
4404
4409
|
return !1;
|
|
4405
4410
|
}
|
|
4406
4411
|
}
|
|
@@ -4412,43 +4417,43 @@ function Hi() {
|
|
|
4412
4417
|
}, er = function(o) {
|
|
4413
4418
|
return o !== "annotation-xml" && Cr(o, T);
|
|
4414
4419
|
}, tr = function(o) {
|
|
4415
|
-
|
|
4420
|
+
Oe("beforeSanitizeAttributes", o, null);
|
|
4416
4421
|
const {
|
|
4417
4422
|
attributes: p
|
|
4418
4423
|
} = o;
|
|
4419
4424
|
if (!p)
|
|
4420
4425
|
return;
|
|
4421
|
-
const
|
|
4426
|
+
const A = {
|
|
4422
4427
|
attrName: "",
|
|
4423
4428
|
attrValue: "",
|
|
4424
4429
|
keepAttr: !0,
|
|
4425
4430
|
allowedAttributes: R
|
|
4426
4431
|
};
|
|
4427
|
-
let
|
|
4428
|
-
for (;
|
|
4429
|
-
const oe = p[
|
|
4432
|
+
let V = p.length;
|
|
4433
|
+
for (; V--; ) {
|
|
4434
|
+
const oe = p[V], {
|
|
4430
4435
|
name: se,
|
|
4431
4436
|
namespaceURI: me,
|
|
4432
4437
|
value: ve
|
|
4433
|
-
} = oe,
|
|
4434
|
-
let ae = se === "value" ? ve :
|
|
4435
|
-
if (
|
|
4438
|
+
} = oe, rt = re(se);
|
|
4439
|
+
let ae = se === "value" ? ve : da(ve);
|
|
4440
|
+
if (A.attrName = rt, A.attrValue = ae, A.keepAttr = !0, A.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", o, A), ae = A.attrValue, Ce && le(/((--!?|])>)|<\/(style|title)/i, ae)) {
|
|
4436
4441
|
At(se, o);
|
|
4437
4442
|
continue;
|
|
4438
4443
|
}
|
|
4439
|
-
if (
|
|
4444
|
+
if (A.forceKeepAttr || (At(se, o), !A.keepAttr))
|
|
4440
4445
|
continue;
|
|
4441
|
-
if (!ye &&
|
|
4446
|
+
if (!ye && le(/\/>/i, ae)) {
|
|
4442
4447
|
At(se, o);
|
|
4443
4448
|
continue;
|
|
4444
4449
|
}
|
|
4445
|
-
be &&
|
|
4446
|
-
ae =
|
|
4450
|
+
be && Mt([ne, he, v], (rr) => {
|
|
4451
|
+
ae = at(ae, rr, " ");
|
|
4447
4452
|
});
|
|
4448
4453
|
const nr = re(o.nodeName);
|
|
4449
|
-
if (Kn(nr,
|
|
4450
|
-
if (Un && (
|
|
4451
|
-
switch (M.getAttributeType(nr,
|
|
4454
|
+
if (Kn(nr, rt, ae)) {
|
|
4455
|
+
if (Un && (rt === "id" || rt === "name") && (At(se, o), ae = Ii + ae), H && typeof M == "object" && typeof M.getAttributeType == "function" && !me)
|
|
4456
|
+
switch (M.getAttributeType(nr, rt)) {
|
|
4452
4457
|
case "TrustedHTML": {
|
|
4453
4458
|
ae = H.createHTML(ae);
|
|
4454
4459
|
break;
|
|
@@ -4464,17 +4469,17 @@ function Hi() {
|
|
|
4464
4469
|
}
|
|
4465
4470
|
}
|
|
4466
4471
|
}
|
|
4467
|
-
|
|
4472
|
+
Oe("afterSanitizeAttributes", o, null);
|
|
4468
4473
|
}, $i = function w(o) {
|
|
4469
4474
|
let p = null;
|
|
4470
|
-
const
|
|
4471
|
-
for (
|
|
4472
|
-
|
|
4473
|
-
|
|
4475
|
+
const A = Zn(o);
|
|
4476
|
+
for (Oe("beforeSanitizeShadowDOM", o, null); p = A.nextNode(); )
|
|
4477
|
+
Oe("uponSanitizeShadowNode", p, null), !Qn(p) && (p.content instanceof s && w(p.content), tr(p));
|
|
4478
|
+
Oe("afterSanitizeShadowDOM", o, null);
|
|
4474
4479
|
};
|
|
4475
4480
|
return t.sanitize = function(w) {
|
|
4476
|
-
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null,
|
|
4477
|
-
if (
|
|
4481
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, A = null, V = null, oe = null;
|
|
4482
|
+
if (tn = !w, tn && (w = "<!-->"), typeof w != "string" && !Jn(w))
|
|
4478
4483
|
if (typeof w.toString == "function") {
|
|
4479
4484
|
if (w = w.toString(), typeof w != "string")
|
|
4480
4485
|
throw lt("dirty is not a string, aborting");
|
|
@@ -4482,51 +4487,51 @@ function Hi() {
|
|
|
4482
4487
|
throw lt("toString is not a function");
|
|
4483
4488
|
if (!t.isSupported)
|
|
4484
4489
|
return w;
|
|
4485
|
-
if (
|
|
4490
|
+
if (Jt || rn(o), t.removed = [], typeof w == "string" && (tt = !1), tt) {
|
|
4486
4491
|
if (w.nodeName) {
|
|
4487
4492
|
const ve = re(w.nodeName);
|
|
4488
|
-
if (!L[ve] ||
|
|
4493
|
+
if (!L[ve] || G[ve])
|
|
4489
4494
|
throw lt("root node is forbidden and cannot be sanitized in-place");
|
|
4490
4495
|
}
|
|
4491
4496
|
} else if (w instanceof a)
|
|
4492
|
-
p = Yn("<!---->"),
|
|
4497
|
+
p = Yn("<!---->"), A = p.ownerDocument.importNode(w, !0), A.nodeType === ct.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? p = A : p.appendChild(A);
|
|
4493
4498
|
else {
|
|
4494
|
-
if (!
|
|
4499
|
+
if (!Be && !be && !Pe && // eslint-disable-next-line unicorn/prefer-includes
|
|
4495
4500
|
w.indexOf("<") === -1)
|
|
4496
|
-
return H &&
|
|
4501
|
+
return H && Tt ? H.createHTML(w) : w;
|
|
4497
4502
|
if (p = Yn(w), !p)
|
|
4498
|
-
return
|
|
4503
|
+
return Be ? null : Tt ? I : "";
|
|
4499
4504
|
}
|
|
4500
|
-
p &&
|
|
4501
|
-
const se = Zn(
|
|
4502
|
-
for (;
|
|
4503
|
-
Qn(
|
|
4504
|
-
if (
|
|
4505
|
+
p && Qt && xe(p.firstChild);
|
|
4506
|
+
const se = Zn(tt ? w : p);
|
|
4507
|
+
for (; V = se.nextNode(); )
|
|
4508
|
+
Qn(V) || (V.content instanceof s && $i(V.content), tr(V));
|
|
4509
|
+
if (tt)
|
|
4505
4510
|
return w;
|
|
4506
|
-
if (
|
|
4507
|
-
if (
|
|
4508
|
-
for (oe =
|
|
4511
|
+
if (Be) {
|
|
4512
|
+
if (yt)
|
|
4513
|
+
for (oe = X.call(p.ownerDocument); p.firstChild; )
|
|
4509
4514
|
oe.appendChild(p.firstChild);
|
|
4510
4515
|
else
|
|
4511
4516
|
oe = p;
|
|
4512
|
-
return (R.shadowroot || R.shadowrootmode) && (oe =
|
|
4517
|
+
return (R.shadowroot || R.shadowrootmode) && (oe = z.call(r, oe, !0)), oe;
|
|
4513
4518
|
}
|
|
4514
|
-
let me =
|
|
4515
|
-
return
|
|
4516
|
-
` + me), be &&
|
|
4517
|
-
me =
|
|
4518
|
-
}), H &&
|
|
4519
|
+
let me = Pe ? p.outerHTML : p.innerHTML;
|
|
4520
|
+
return Pe && L["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && le(Li, p.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4521
|
+
` + me), be && Mt([ne, he, v], (ve) => {
|
|
4522
|
+
me = at(me, ve, " ");
|
|
4523
|
+
}), H && Tt ? H.createHTML(me) : me;
|
|
4519
4524
|
}, t.setConfig = function() {
|
|
4520
4525
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4521
|
-
|
|
4526
|
+
rn(w), Jt = !0;
|
|
4522
4527
|
}, t.clearConfig = function() {
|
|
4523
|
-
|
|
4528
|
+
Ge = null, Jt = !1;
|
|
4524
4529
|
}, t.isValidAttribute = function(w, o, p) {
|
|
4525
|
-
|
|
4526
|
-
const
|
|
4527
|
-
return Kn(
|
|
4530
|
+
Ge || rn({});
|
|
4531
|
+
const A = re(w), V = re(o);
|
|
4532
|
+
return Kn(A, V, p);
|
|
4528
4533
|
}, t.addHook = function(w, o) {
|
|
4529
|
-
typeof o == "function" && (O[w] = O[w] || [],
|
|
4534
|
+
typeof o == "function" && (O[w] = O[w] || [], ot(O[w], o));
|
|
4530
4535
|
}, t.removeHook = function(w) {
|
|
4531
4536
|
if (O[w])
|
|
4532
4537
|
return Mr(O[w]);
|
|
@@ -4537,21 +4542,21 @@ function Hi() {
|
|
|
4537
4542
|
}, t;
|
|
4538
4543
|
}
|
|
4539
4544
|
var Ir = Hi();
|
|
4540
|
-
const
|
|
4545
|
+
const Ca = "data:image/webp;base64,UklGRgQWAABXRUJQVlA4WAoAAAAQAAAAGQEAvQAAQUxQSMsKAAABGQVtGzlKft3d80e8MET0fwI4IyJg7G3vHYYaB+q4bL4HIj3S/q+37ThmZmZmjJidQ8jMzEwDYGacgFNmZsdOKWZmWusc2VqqtRR1P9E2nSqnqk7dFOIn+yd3ArectvPGlb2GOwANQAM4CvYAfNOGXBM4hj0ADaApbCUREzABn6P39//7CfNzufO5+Wf4p95+8Hl8fvfP5/55Pd79C58TMj28+udevfrH/onjlnt647Uv4GmMrMVa1lpevfyYf+gfucXuX9CbbzzBMlksRkwjfNgX9eK22hfxhbwZQ6M1gjVksRaf+mV9BV/KGzfTG1/cm0yTkREWljWtZRn3N7+0f/eBjzfQvph33tdgmazldK1pTaYhzPbeL+d9771x3njHF4YxljMsa4jJCZZl5vTFl/TlvX7DvPapbxqMMcSyRmuCxVqWk52wd7779Rvl8VPfwRjGLNN2zIkWg3MIwzbYOz/29Rtk73x9TZaV5ZioSUyDWDMxwarZ5ul9X8mLW+ONT39EowmZBsHCWgyaTDPDlhRP//19j7fE46e/tpa1FotpDdZqtcYihmktFaHNeP3/vH47vOP1e8mSjKZjLSZZ1qQ1o0HOz8ZqzV58Ge97ug326a8tz8yQr+Lb0Gqet5WzLYR7fXff1Xfx36mIBK//n9dvgccPfFyTaa2Wb+un+ixvvb/Kr/bb/DG/wFc0c7pJeXzfB15/b75zEsvS5Kf5AG/de/pefo/PWjZqbJsP/HdPV96bb3ase6O11nwPH+Ct/9N/g69r2GgJXnv3a9fcXn+xlqQlrQ/8ry7x03+W16acjuDFu995vd1ff8ppQ6tpn/VVXYRv4evIlq3aQo/v+8Br7f6OO6u1LIehD3WZr38NqzaxnC5fwgdeZ/f3zmlhYdV8+oXsv7MVNDbRf/vAa+z+5ham1ea0ueCUnUzTxrrG7u+ds00mo2UXk80YWhbMrq77m8OsNWVa4uhSKIgGM7V1Ze0NzBIZWdaWi51JG1HkNP/MVfXiviCysnbcNccuJxE53Wom7OUV9fioYU7CsZZFXQzDwiwjrDw8XE2PTww1thZkGRe0trWhJskwHdfSC5jG6hBrSLaLmdEY5vwys3/guIr2Yjmd521ZlroYydlRJ8OIXl1Fj0PQ2kmsySIX24gkZhAy9fdcQffHicWizGmsueSVzTCryGDFhz1cPXscw4LRsdFaa61LKRNRjLEGWT7s6rnP6ZwOlnYsJJebNWGm5nSd2Tj+ritnd0OwkyKJTLqYSVBjsybWbJWXD9fNfczpnE5sMRwbXUg5XZsShEkw+y9XzebsYidYZbVMDhc6RdFsi81oRtYe/r6rxvPfWUPLaeZikyPJaaIVzKb4O7pe7maNYXKaxGKiC5EgwmCoiDaOv+2qKYa1dG41maa52FKIQmVmZlL2KV0ro8EwmCJiTZuLLajE2jY1DQnbw6dcMcyzhynEKKVL2XRk5ehwJJPzY9iuFZPTsTCkkioll3ocmSIykTVjmw2vfcyVEjtpFbKcLuW0LgeVBEfOtsHK4L4r5XRtczq0VR2kU3QpU0kS1clqJ0PGax92rayU83O60KEodTHnKypSCraFYbtannOGpZSzUbnYzq5TSrRydtvJePFwzewkp4soRc0FF2SRloNmMbTN7Old1wzL2XAIpUhdzJQUIanCqDaN7bhuMGsEFVG1upSjKJWOc5xIo2bTPubKWTBWojqKcskliIQjR2GwbezFe64c1pxPGCt1MUWnWqdKTUoQ0UPXDmusSklRLrlIjoZixXI+2eZjrh+GpVAqF5zDWA6rIpGzKWN6fNc1hAoKUXUpojpEjVJFm2dG9mFXkqRDOsRywUeIpMjZdZwp518+XElOVAa52KIickykIyJBnfiYq0kkVepiCDrFkRK0meRs3d91PREKR7qYzpGjKJWNkhGWveeaIuQwl5s6jkWbas4eiRHS1ocdV5VUqy4miZQOrKNThoyc5tWr60qUdCloFFJKhoVtoZNefdiVdTa52FKlDlHRUYUmQsxnX2GtupSS56zIaRs0oyY++gqTS45yREWpQkLK2V1n6FKiaMqEcO7sEMW7rrTLLZTUQaVQTkPmtA/rxlIlTc6msAgR4T0PN1WqVEpJTnM+Tmp82G01ltNqdSgVi4XY0PHZr26qQ4nCUSuJIGdzdq9uK4mioI2wqY2cHtGHfcytpahUqqTUppzf5OXL20rlueNwOpidzOndcZ11KSWO0LMpYQbD2OO1tkuhiaNIkYIhxnK640rrYlJpYVKTs8OcX/bUlXaxCUmnqGMdJ8/MnH08uqWSSiUlcmRYTMSyx4ebaqkUFeS5BzGnT7dVC52FUs/DGiz29NJtXcVQRynlYOcYLB5f3VRLqBhEybImGGH3hyutCylLUschioIWzNm1XWuXOiUqp5Wied6dcD+Om6opJZGzC8ZOlsW6P3RTKQoqR6pDkbPRFu4PbuxJpRGHVOZ0Zgi7v7yxOtJIZS2NYIRh2HFjnY+ko5bCYE6X07qxOj2UJCIVxk5i3B9c610KIpKmJFiePdbjq6vtgqOQlBMpwzAWjlurUyqUHKqMwSTZQ7cX50pCKPPMOb0/uNq7lE3KaaIEYRhm7bjeLrYaSkFUGmIZtIduLlQIqaIwp7Om9uBGr1SCqFkjiq3jVjs904FyfilODld8F5dFK3SOtREP19zbwnYkosMwhnG48bMqRxNDDPebj0apwZrzdfsJpVjOj8MN/uon+TXegrPDGmtz+urtBgwGYx56O4JlrHGvw9sTWMaYB29n4MSoa6+3RRhy7e9tVcvV39uoW/42+ksu5GN+rN/sBvoTjvtF/DXfzZ9yA/0Zf9VXdxG/y/f0aTeQH+F3eLqAv+IH+4Pcwr/Xz/RJT291//sH+J3cxr/U9/bzfSNPb1Uf9rv9bH+RW/m3++a+pe/oq7h/Xq8JjU4++tOwniMs/9zf9Bf85495+erljcSf9Yvh6cV7X7zYMQgTLNPylr589fLlq1c30NlX7/nrPL72xpv3ZXneljU0saaRPqaPeXm8un1OH/D42mtvPBLWiOUtXnQ/MMerlw8vX3XrPPvxxZtPjzQnC0bWxLJYnrOXrx5ever2OX16eu3FfTm/LM/ZENM6c75XDw+vXnXrnD49vfZ012R55uQtb2INrVcPL4+HbpvTxxdPL+aZrTnfmqydyZDlmQ+9enU83DSnjy+eHu8IaxlyupxdsGCd0Hg4Hh6Ohxvm9Onx6Ym1PO9kPU87aedoGh6Oh4fjuFlOnx6fHj1zeQub0yajicVydh3Hw3EcN8rp4+PT48kzG61pWYvJshZWO2NBRw9Hx02C3Z/u92WZdmInp2tZ/u22juM46vY43f1p9zWyFmeWt7w9R0Mj1nQcHXVrnO7+eB+WBTsMjXbSIGtZ1vK8C6oHdVuc7n6/r9Fonjs7EyxM/s1XR90Up9t994ym0ZnTybObZ7fWaOdaa5Ej3RCn2+4LpoXl/MI61zlnc76gyWRVuhlO577FYj3H+YU5v848b56/tZbqVjjdNjK0RqbRmrNpNHqWxXrG8644boTTuWtO2+LM2cizQ2tCixidGVoLe7gVTtfdsmDBMoZ1hjkdjJzPGhqaVrfE6UymQZaIFkthCXJ2efbCgpvj/Dx/hOa0OW0Qa9BistgNc7pGJ3M6p7NYM/L+/n+/LAIAVlA4IBILAACwPQCdASoaAb4APpFGnkslo6KhozPaKLASCWMzq1+rPZlElXMyac07rkX0OcVjMi0Z/Yd1CE70/48dIn1rFFeTc2+eT0QeYB+n3S48w367/th71vo59AD+nf6D1qfUx9BT9o/TY9jv+w/9X9qPaZ9QD0AP//1l5EDz5r4rhXZHLl4Ncd/fh+d+ev/c+q1ne+uv/F7gf8z/svWV9C79TB+ljBJ66e306dCn1xe2Yx8AvsjrmvdLH+5hx2M8AOwobUsYIYRsnXoh+WCBUcGyA6kqzns0dc1gqntAA/jcVyoEHToU+LwsVOvra1Bn018i6CV4uldPaFvEXdJ7fTWbKRT1L/C/rIyVEjzBZzBkFWJutm22W0q/wDoaZx4YVI0+c1Un06dCass6SW/4MmFF2NNoI69X40UaNKTwxpp4JLBVGG1LGCTKry0/AWSh9+r0bKio8icMO668i1pfvY+Qp9coK0syse0nF8SAAA2vaRvIcgfPUMLY7WkR1egzaAD/GvY3yB06FPrjH1Nzin5DWws/WonTpVHAa16r77SBaEDwPyPksYJPXTt7MyV8eEoP6k78gop+SAJ2fYY4dUNeHFqlqOhtSxgi098Pl5Wq7BwP/+z1q1W6NSOlVbgnIxtTF64bFOmlEXy1q2y99iXChtSxgk+dE6AAAP7zwAAAAQ//VQ5thYoAM92OnvRPtZedat0B5aYeRxxH98USWdF4qt7Hflnxd0A3gToj/+W7X5CghMqc+gU9jNTObIRt894vbTHhtDLSky2h/Zxl0mjcfaWuXrOlCStPUZy00dCiHOb4GA6J4TJmW+lJQDZCAMMZa3gEciLKiXD5zWAFj/pOI/xB4KQp6q0EKV16rZwWEs1sVrDnjm5+LXAUXiV8bPcEXHm44TTnAFy7iuj4nncgKGPziE3nNMAwJUVI78osfZJvmqU3xHERR1DmurMG/SQ+eQmaBh2h6E+38hLfgf1DOm6Vh26BL0GKXILjd0UIRma4p7O+OV9RY7Hp5EHO//cffL93XbfO7Z6S8V9pcxMnmAAvFaGoFeF/i854V9HwRV68vYUV3viUw4mzqTUbbdkEiwBh/8skFC3DjYQ6pZYtz6W9oac5/jF6McL3q+jvTSqSSUg9kAyEFLsukOTZSy9UgYell+UFzfvfLHEaUtMxY6Xj6cufb+1+/8fl7wFplEsNDP140qPQ/F/Ohh5EcldMWgRacICKAxitKi++TqPK6bQoABM8elDmSs8TBrvSWvjeGkFNc75psNaw8MlD3FlTTqX6HxgA+I91R1ZROGbyyq7LpV2OsnYe20n3+MMwEbyPhenMOtLMskowvsosYrpPVmz5yVOLTtQC623Bh9V2u4C7hnqWN4kzlU4l4fpY5EP+84jyGRd/CFny0vY0XDFo5vATDUrzNrgN3SSiYu71+aNNdhyU/pVJJpOBMmYVh2CvebMTeRv4oFasMD8UiGNfDlRLIerfb4UKMDEnxGbDNtzXcrEn8453kJap4Vc23QTl5z31/+AXkazaww82oRcTW9Hf3XbckPTDuVu7k2xfrGKVIq5EoccXF/YUdffXYv4WocYohPtTGopuDkXwDPdTKC2Ahga/vPRZSkpwJRTkhQCmRS3jotcQcqoe49yds9UdGPjMIn9pjL5kuLQhXG0LuGgl9jHzR4zprpeEsY8Xlrbiz1bSD9HgMGNOKwLGf7Axn9RkppcZNQq9aKr1S7ljJXeyugMxF09aXzhOaQKb81WQNJpsxEzqg8Drki31FeQWQUnRCPiPheoqJJ/phqswt//qO1J9i8lkx5rVYFfar5BpesIvfj7/4w+0H351HK5dsAAGjNCQNndM0VhwPftBivlM4apmKkdOzDQeUhRIKji/laO+ELC8fzAHPTQm3zyS1T2bAvbaL5KMTarIYl/6LojokibVvJO6g6vadWyxa/VrTkfTe79e7XdgWMTrd4n8Lc7NoHoNy2ugJJZ6S4/QJBWm6VIpXYDD1VhXf3l76QpyVsBgPN0cJ1ijTHECAFSVTCUrERRKN/KbGSfB9EJnLviByn2LUOu3rf8dDYPnrf9di12RIdFAgAlg3vMXEL2f6k7LotjcmFexYv0e4302ZLx4q0+EbYnud04JBu8u5LAfT6nI35bLoQNmnnNaPKgm1s11G04aRKpSHGipXVfZLZ1/lbmZsJ0mqOkB6lHOajKzxKUYbazgCuwbLwh9DVvA3ClBtbJ2t9bugl27MNcsinVp7wWwwfhto7OFl7I+3tu7sg8qomLTnekfGVK1IjQkinS4Lst4/kgfjDNMDc9vjAZpyizLunWJAYWnLa0jEFs6A/sBM/fAJwI8XKlnEAbTYeNHbqAa1L1OpVc6+0lelkItUAFdzUdf8nOhOC3c9qTygjvgmHy06akg7Srik2rWV8Xp94D2VZgVjlsmbOmgd7YDDdyNIbb2orHYmVrLSvtMRMi2xsaAwmN6jye0LwhdPdiHxCS3hhCyXsAb2aBmT+TfJgy1anJrN+AThMWn3lVmoKcJknMZ8oi+oSWWKyHlaiMu0lfIy+b9jNZ7IDZW/cWo8zmVFJ7OI34ePRmuU9fjYnOR8V1zdLvqBNglAXlW4PAECD4yRtdF8rOK7N0k94IIoFD7f7WmY3RyNOCWZV+uBmJtJX8Dsp+bVe6WJXKPpp5RVmmWlvXdM1A/Ae+KQQfBNbjU1YxrIrNdTn8+M7EjHedZQLOgmgITIxd9ivAGyIMk/9JNiSHUcmhXA9vVkomYThKRP3D27zYlt7dmgyL4w2wmU52cNco4+Bw1BCEiF8zMB4t5XlWd/Mq38Mx9TCA/ocd8OFoMKU/zEgZlO4bgmwZFmYOHs2t8oSqcod6JlXGeRq2dLP/SioKSSNAU48cEYl0qDbZt5IeGy9TMNjiU38leM+C8oRgc28xJc7ckI/nTQTWX1bSabbbCT4oph/AA7FOLTZarcKrxqN4qy//5+bJ7UUI1KKLfyhBDeuOqEMKujBu+yLXNzUmx3man0psEC7Iq+MAXhKUvEYuts1EkIwltvJCGK1AEfTTDHbz+Pq6uHSt1PUxU5wERUUJFRuc9DxqQujmAwnP/k73U9iE2RHlKMmbBKkfrJUJDnZFAX6RdRJ+PJJtLduz4ZhYGx5h1VmMaRPwtCEC6cKqes+JIvgdpv8u/xYm/JqCWOaZDw79pTRMbT8Dah9Ux4rkwqFryu3p6P7XsYEzcgH4FKLhPAXhwySZgq3VRpjsC/CRWK35jNkZy+rB1iMABWtHSo3AAAPp43msiX1QJU3GiWA50DkFnKB+ow2EROx+Zw6dilZyEt/EBrjAS3j/w/Z99kTnYPX+51oEZ5qsirBZDk1zo9OnijJHboZu33fReZ2Be/i0FsT5whyoy59rzGaG90Ormp+4tP+kzM/JAFmq2V4mTmuqSVpfzRyqS81NoNmqcdCtt9gCDb53HcZBUDb/MXteyqFFpybkwwnsnWC8tKNGb/CzEeQtpgbksBWp/6VxS+AA2hAdWfNKazH/p4snH79oWydrA7uwt8OpBQn5JDm/4T+pQOOcW4e8kdA33hcbnUObkbxv5JfZ6k6z+sG7CgFAY0fMIMk7C28dcbGgOQciHZR+g1lGopcRD+NdsHLrFqDQmAga/x56lU+lItJ6BbrwHA+zAGj5MUz7rnHvvYxPJ33T1vI9yDVJMuumVpdTsl1fPqhaC4Nype5vNhTeNnn7XvcKgYbQkXPV4Tzmu7GHizF7cAmzy61Ndij0vQMOLgWCO4D6LH9BNwrFHYqAAAAAAAA==";
|
|
4541
4546
|
var Ri = { exports: {} };
|
|
4542
4547
|
(function(e, t) {
|
|
4543
4548
|
(function(n, r) {
|
|
4544
4549
|
e.exports = r();
|
|
4545
4550
|
})(ni, function() {
|
|
4546
|
-
var n = 1e3, r = 6e4, i = 36e5, s = "millisecond",
|
|
4551
|
+
var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", b = "month", y = "quarter", M = "year", E = "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+)?$/, $ = /\[([^\]]+)]|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, U = { 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(v) {
|
|
4547
4552
|
var _ = ["th", "st", "nd", "rd"], g = v % 100;
|
|
4548
4553
|
return "[" + v + (_[(g - 20) % 10] || _[g] || _[0]) + "]";
|
|
4549
|
-
} },
|
|
4554
|
+
} }, S = function(v, _, g) {
|
|
4550
4555
|
var x = String(v);
|
|
4551
4556
|
return !x || x.length >= _ ? v : "" + Array(_ + 1 - x.length).join(g) + v;
|
|
4552
|
-
}, H = { s:
|
|
4557
|
+
}, H = { s: S, z: function(v) {
|
|
4553
4558
|
var _ = -v.utcOffset(), g = Math.abs(_), x = Math.floor(g / 60), h = g % 60;
|
|
4554
|
-
return (_ <= 0 ? "+" : "-") +
|
|
4559
|
+
return (_ <= 0 ? "+" : "-") + S(x, 2, "0") + ":" + S(h, 2, "0");
|
|
4555
4560
|
}, m: function v(_, g) {
|
|
4556
4561
|
if (_.date() < g.date())
|
|
4557
4562
|
return -v(g, _);
|
|
@@ -4560,40 +4565,40 @@ var Ri = { exports: {} };
|
|
|
4560
4565
|
}, a: function(v) {
|
|
4561
4566
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
4562
4567
|
}, p: function(v) {
|
|
4563
|
-
return { M: b, y: M, w: f, d:
|
|
4568
|
+
return { M: b, y: M, w: f, d: u, D: E, h: c, m: a, s: l, ms: s, Q: y }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
4564
4569
|
}, u: function(v) {
|
|
4565
4570
|
return v === void 0;
|
|
4566
|
-
} }, I = "en",
|
|
4567
|
-
|
|
4568
|
-
var
|
|
4569
|
-
return v instanceof ne || !(!v || !v[
|
|
4571
|
+
} }, I = "en", F = {};
|
|
4572
|
+
F[I] = U;
|
|
4573
|
+
var Z = "$isDayjsObject", X = function(v) {
|
|
4574
|
+
return v instanceof ne || !(!v || !v[Z]);
|
|
4570
4575
|
}, Q = function v(_, g, x) {
|
|
4571
4576
|
var h;
|
|
4572
4577
|
if (!_)
|
|
4573
4578
|
return I;
|
|
4574
4579
|
if (typeof _ == "string") {
|
|
4575
4580
|
var T = _.toLowerCase();
|
|
4576
|
-
|
|
4581
|
+
F[T] && (h = T), g && (F[T] = g, h = T);
|
|
4577
4582
|
var N = _.split("-");
|
|
4578
4583
|
if (!h && N.length > 1)
|
|
4579
4584
|
return v(N[0]);
|
|
4580
4585
|
} else {
|
|
4581
4586
|
var L = _.name;
|
|
4582
|
-
|
|
4587
|
+
F[L] = _, h = L;
|
|
4583
4588
|
}
|
|
4584
4589
|
return !x && h && (I = h), h || !x && I;
|
|
4585
|
-
},
|
|
4586
|
-
if (
|
|
4590
|
+
}, z = function(v, _) {
|
|
4591
|
+
if (X(v))
|
|
4587
4592
|
return v.clone();
|
|
4588
4593
|
var g = typeof _ == "object" ? _ : {};
|
|
4589
4594
|
return g.date = v, g.args = arguments, new ne(g);
|
|
4590
4595
|
}, O = H;
|
|
4591
|
-
O.l = Q, O.i =
|
|
4592
|
-
return
|
|
4596
|
+
O.l = Q, O.i = X, O.w = function(v, _) {
|
|
4597
|
+
return z(v, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
4593
4598
|
};
|
|
4594
4599
|
var ne = function() {
|
|
4595
4600
|
function v(g) {
|
|
4596
|
-
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[
|
|
4601
|
+
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[Z] = !0;
|
|
4597
4602
|
}
|
|
4598
4603
|
var _ = v.prototype;
|
|
4599
4604
|
return _.parse = function(g) {
|
|
@@ -4608,8 +4613,8 @@ var Ri = { exports: {} };
|
|
|
4608
4613
|
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
4609
4614
|
var N = h.match(C);
|
|
4610
4615
|
if (N) {
|
|
4611
|
-
var L = N[2] - 1 || 0,
|
|
4612
|
-
return T ? new Date(Date.UTC(N[1], L, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0,
|
|
4616
|
+
var L = N[2] - 1 || 0, W = (N[7] || "0").substring(0, 3);
|
|
4617
|
+
return T ? new Date(Date.UTC(N[1], L, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W)) : new Date(N[1], L, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W);
|
|
4613
4618
|
}
|
|
4614
4619
|
}
|
|
4615
4620
|
return new Date(h);
|
|
@@ -4622,12 +4627,12 @@ var Ri = { exports: {} };
|
|
|
4622
4627
|
}, _.isValid = function() {
|
|
4623
4628
|
return this.$d.toString() !== d;
|
|
4624
4629
|
}, _.isSame = function(g, x) {
|
|
4625
|
-
var h =
|
|
4630
|
+
var h = z(g);
|
|
4626
4631
|
return this.startOf(x) <= h && h <= this.endOf(x);
|
|
4627
4632
|
}, _.isAfter = function(g, x) {
|
|
4628
|
-
return
|
|
4633
|
+
return z(g) < this.startOf(x);
|
|
4629
4634
|
}, _.isBefore = function(g, x) {
|
|
4630
|
-
return this.endOf(x) <
|
|
4635
|
+
return this.endOf(x) < z(g);
|
|
4631
4636
|
}, _.$g = function(g, x, h) {
|
|
4632
4637
|
return O.u(g) ? this[x] : this.set(h, g);
|
|
4633
4638
|
}, _.unix = function() {
|
|
@@ -4637,10 +4642,10 @@ var Ri = { exports: {} };
|
|
|
4637
4642
|
}, _.startOf = function(g, x) {
|
|
4638
4643
|
var h = this, T = !!O.u(x) || x, N = O.p(g), L = function(_e, ie) {
|
|
4639
4644
|
var ye = O.w(h.$u ? Date.UTC(h.$y, ie, _e) : new Date(h.$y, ie, _e), h);
|
|
4640
|
-
return T ? ye : ye.endOf(
|
|
4641
|
-
},
|
|
4645
|
+
return T ? ye : ye.endOf(u);
|
|
4646
|
+
}, W = function(_e, ie) {
|
|
4642
4647
|
return O.w(h.toDate()[_e].apply(h.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), h);
|
|
4643
|
-
}, R = this.$W, q = this.$M, m = this.$D,
|
|
4648
|
+
}, R = this.$W, q = this.$M, m = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
4644
4649
|
switch (N) {
|
|
4645
4650
|
case M:
|
|
4646
4651
|
return T ? L(1, 0) : L(31, 11);
|
|
@@ -4649,27 +4654,27 @@ var Ri = { exports: {} };
|
|
|
4649
4654
|
case f:
|
|
4650
4655
|
var ee = this.$locale().weekStart || 0, K = (R < ee ? R + 7 : R) - ee;
|
|
4651
4656
|
return L(T ? m - K : m + (6 - K), q);
|
|
4652
|
-
case
|
|
4657
|
+
case u:
|
|
4653
4658
|
case E:
|
|
4654
|
-
return
|
|
4659
|
+
return W(G + "Hours", 0);
|
|
4655
4660
|
case c:
|
|
4656
|
-
return
|
|
4661
|
+
return W(G + "Minutes", 1);
|
|
4657
4662
|
case a:
|
|
4658
|
-
return
|
|
4659
|
-
case
|
|
4660
|
-
return
|
|
4663
|
+
return W(G + "Seconds", 2);
|
|
4664
|
+
case l:
|
|
4665
|
+
return W(G + "Milliseconds", 3);
|
|
4661
4666
|
default:
|
|
4662
4667
|
return this.clone();
|
|
4663
4668
|
}
|
|
4664
4669
|
}, _.endOf = function(g) {
|
|
4665
4670
|
return this.startOf(g, !1);
|
|
4666
4671
|
}, _.$set = function(g, x) {
|
|
4667
|
-
var h, T = O.p(g), N = "set" + (this.$u ? "UTC" : ""), L = (h = {}, h[
|
|
4672
|
+
var h, T = O.p(g), N = "set" + (this.$u ? "UTC" : ""), L = (h = {}, h[u] = N + "Date", h[E] = N + "Date", h[b] = N + "Month", h[M] = N + "FullYear", h[c] = N + "Hours", h[a] = N + "Minutes", h[l] = N + "Seconds", h[s] = N + "Milliseconds", h)[T], W = T === u ? this.$D + (x - this.$W) : x;
|
|
4668
4673
|
if (T === b || T === M) {
|
|
4669
4674
|
var R = this.clone().set(E, 1);
|
|
4670
|
-
R.$d[L](
|
|
4675
|
+
R.$d[L](W), R.init(), this.$d = R.set(E, Math.min(this.$D, R.daysInMonth())).$d;
|
|
4671
4676
|
} else
|
|
4672
|
-
L && this.$d[L](
|
|
4677
|
+
L && this.$d[L](W);
|
|
4673
4678
|
return this.init(), this;
|
|
4674
4679
|
}, _.set = function(g, x) {
|
|
4675
4680
|
return this.clone().$set(g, x);
|
|
@@ -4679,18 +4684,18 @@ var Ri = { exports: {} };
|
|
|
4679
4684
|
var h, T = this;
|
|
4680
4685
|
g = Number(g);
|
|
4681
4686
|
var N = O.p(x), L = function(q) {
|
|
4682
|
-
var m =
|
|
4687
|
+
var m = z(T);
|
|
4683
4688
|
return O.w(m.date(m.date() + Math.round(q * g)), T);
|
|
4684
4689
|
};
|
|
4685
4690
|
if (N === b)
|
|
4686
4691
|
return this.set(b, this.$M + g);
|
|
4687
4692
|
if (N === M)
|
|
4688
4693
|
return this.set(M, this.$y + g);
|
|
4689
|
-
if (N ===
|
|
4694
|
+
if (N === u)
|
|
4690
4695
|
return L(1);
|
|
4691
4696
|
if (N === f)
|
|
4692
4697
|
return L(7);
|
|
4693
|
-
var
|
|
4698
|
+
var W = (h = {}, h[a] = r, h[c] = i, h[l] = n, h)[N] || 1, R = this.$d.getTime() + g * W;
|
|
4694
4699
|
return O.w(R, this);
|
|
4695
4700
|
}, _.subtract = function(g, x) {
|
|
4696
4701
|
return this.add(-1 * g, x);
|
|
@@ -4698,15 +4703,15 @@ var Ri = { exports: {} };
|
|
|
4698
4703
|
var x = this, h = this.$locale();
|
|
4699
4704
|
if (!this.isValid())
|
|
4700
4705
|
return h.invalidDate || d;
|
|
4701
|
-
var T = g || "YYYY-MM-DDTHH:mm:ssZ", N = O.z(this), L = this.$H,
|
|
4702
|
-
return ie && (ie[ye] || ie(x, T)) || be[ye].slice(0,
|
|
4706
|
+
var T = g || "YYYY-MM-DDTHH:mm:ssZ", N = O.z(this), L = this.$H, W = this.$m, R = this.$M, q = h.weekdays, m = h.months, G = h.meridiem, ee = function(ie, ye, be, Ce) {
|
|
4707
|
+
return ie && (ie[ye] || ie(x, T)) || be[ye].slice(0, Ce);
|
|
4703
4708
|
}, K = function(ie) {
|
|
4704
4709
|
return O.s(L % 12 || 12, ie, "0");
|
|
4705
|
-
}, _e =
|
|
4706
|
-
var
|
|
4707
|
-
return be ?
|
|
4710
|
+
}, _e = G || function(ie, ye, be) {
|
|
4711
|
+
var Ce = ie < 12 ? "AM" : "PM";
|
|
4712
|
+
return be ? Ce.toLowerCase() : Ce;
|
|
4708
4713
|
};
|
|
4709
|
-
return T.replace(
|
|
4714
|
+
return T.replace($, function(ie, ye) {
|
|
4710
4715
|
return ye || function(be) {
|
|
4711
4716
|
switch (be) {
|
|
4712
4717
|
case "YY":
|
|
@@ -4742,13 +4747,13 @@ var Ri = { exports: {} };
|
|
|
4742
4747
|
case "hh":
|
|
4743
4748
|
return K(2);
|
|
4744
4749
|
case "a":
|
|
4745
|
-
return _e(L,
|
|
4750
|
+
return _e(L, W, !0);
|
|
4746
4751
|
case "A":
|
|
4747
|
-
return _e(L,
|
|
4752
|
+
return _e(L, W, !1);
|
|
4748
4753
|
case "m":
|
|
4749
|
-
return String(
|
|
4754
|
+
return String(W);
|
|
4750
4755
|
case "mm":
|
|
4751
|
-
return O.s(
|
|
4756
|
+
return O.s(W, 2, "0");
|
|
4752
4757
|
case "s":
|
|
4753
4758
|
return String(x.$s);
|
|
4754
4759
|
case "ss":
|
|
@@ -4764,8 +4769,8 @@ var Ri = { exports: {} };
|
|
|
4764
4769
|
}, _.utcOffset = function() {
|
|
4765
4770
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4766
4771
|
}, _.diff = function(g, x, h) {
|
|
4767
|
-
var T, N = this, L = O.p(x),
|
|
4768
|
-
return O.m(N,
|
|
4772
|
+
var T, N = this, L = O.p(x), W = z(g), R = (W.utcOffset() - this.utcOffset()) * r, q = this - W, m = function() {
|
|
4773
|
+
return O.m(N, W);
|
|
4769
4774
|
};
|
|
4770
4775
|
switch (L) {
|
|
4771
4776
|
case M:
|
|
@@ -4780,7 +4785,7 @@ var Ri = { exports: {} };
|
|
|
4780
4785
|
case f:
|
|
4781
4786
|
T = (q - R) / 6048e5;
|
|
4782
4787
|
break;
|
|
4783
|
-
case
|
|
4788
|
+
case u:
|
|
4784
4789
|
T = (q - R) / 864e5;
|
|
4785
4790
|
break;
|
|
4786
4791
|
case c:
|
|
@@ -4789,7 +4794,7 @@ var Ri = { exports: {} };
|
|
|
4789
4794
|
case a:
|
|
4790
4795
|
T = q / r;
|
|
4791
4796
|
break;
|
|
4792
|
-
case
|
|
4797
|
+
case l:
|
|
4793
4798
|
T = q / n;
|
|
4794
4799
|
break;
|
|
4795
4800
|
default:
|
|
@@ -4799,7 +4804,7 @@ var Ri = { exports: {} };
|
|
|
4799
4804
|
}, _.daysInMonth = function() {
|
|
4800
4805
|
return this.endOf(b).$D;
|
|
4801
4806
|
}, _.$locale = function() {
|
|
4802
|
-
return
|
|
4807
|
+
return F[this.$L];
|
|
4803
4808
|
}, _.locale = function(g, x) {
|
|
4804
4809
|
if (!g)
|
|
4805
4810
|
return this.$L;
|
|
@@ -4817,39 +4822,39 @@ var Ri = { exports: {} };
|
|
|
4817
4822
|
return this.$d.toUTCString();
|
|
4818
4823
|
}, v;
|
|
4819
4824
|
}(), he = ne.prototype;
|
|
4820
|
-
return
|
|
4825
|
+
return z.prototype = he, [["$ms", s], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", b], ["$y", M], ["$D", E]].forEach(function(v) {
|
|
4821
4826
|
he[v[1]] = function(_) {
|
|
4822
4827
|
return this.$g(_, v[0], v[1]);
|
|
4823
4828
|
};
|
|
4824
|
-
}),
|
|
4825
|
-
return v.$i || (v(_, ne,
|
|
4826
|
-
},
|
|
4827
|
-
return
|
|
4828
|
-
},
|
|
4829
|
+
}), z.extend = function(v, _) {
|
|
4830
|
+
return v.$i || (v(_, ne, z), v.$i = !0), z;
|
|
4831
|
+
}, z.locale = Q, z.isDayjs = X, z.unix = function(v) {
|
|
4832
|
+
return z(1e3 * v);
|
|
4833
|
+
}, z.en = F[I], z.Ls = F, z.p = {}, z;
|
|
4829
4834
|
});
|
|
4830
4835
|
})(Ri);
|
|
4831
|
-
var
|
|
4832
|
-
const Dr = /* @__PURE__ */
|
|
4836
|
+
var Na = Ri.exports;
|
|
4837
|
+
const Dr = /* @__PURE__ */ Hn(Na);
|
|
4833
4838
|
var Pi = { exports: {} };
|
|
4834
4839
|
(function(e, t) {
|
|
4835
4840
|
(function(n, r) {
|
|
4836
4841
|
e.exports = r();
|
|
4837
4842
|
})(ni, function() {
|
|
4838
4843
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4839
|
-
return function(s,
|
|
4840
|
-
var c =
|
|
4844
|
+
return function(s, l, a) {
|
|
4845
|
+
var c = l.prototype;
|
|
4841
4846
|
a.utc = function(d) {
|
|
4842
4847
|
var C = { date: d, utc: !0, args: arguments };
|
|
4843
|
-
return new
|
|
4848
|
+
return new l(C);
|
|
4844
4849
|
}, c.utc = function(d) {
|
|
4845
4850
|
var C = a(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4846
4851
|
return d ? C.add(this.utcOffset(), n) : C;
|
|
4847
4852
|
}, c.local = function() {
|
|
4848
4853
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4849
4854
|
};
|
|
4850
|
-
var
|
|
4855
|
+
var u = c.parse;
|
|
4851
4856
|
c.parse = function(d) {
|
|
4852
|
-
d.utc && (this.$u = !0), this.$utils().u(d.$offset) || (this.$offset = d.$offset),
|
|
4857
|
+
d.utc && (this.$u = !0), this.$utils().u(d.$offset) || (this.$offset = d.$offset), u.call(this, d);
|
|
4853
4858
|
};
|
|
4854
4859
|
var f = c.init;
|
|
4855
4860
|
c.init = function() {
|
|
@@ -4861,27 +4866,27 @@ var Pi = { exports: {} };
|
|
|
4861
4866
|
};
|
|
4862
4867
|
var b = c.utcOffset;
|
|
4863
4868
|
c.utcOffset = function(d, C) {
|
|
4864
|
-
var
|
|
4865
|
-
if (
|
|
4866
|
-
return this.$u ? 0 :
|
|
4869
|
+
var $ = this.$utils().u;
|
|
4870
|
+
if ($(d))
|
|
4871
|
+
return this.$u ? 0 : $(this.$offset) ? b.call(this) : this.$offset;
|
|
4867
4872
|
if (typeof d == "string" && (d = function(I) {
|
|
4868
4873
|
I === void 0 && (I = "");
|
|
4869
|
-
var
|
|
4870
|
-
if (!
|
|
4874
|
+
var F = I.match(r);
|
|
4875
|
+
if (!F)
|
|
4871
4876
|
return null;
|
|
4872
|
-
var
|
|
4873
|
-
return Q === 0 ? 0 :
|
|
4877
|
+
var Z = ("" + F[0]).match(i) || ["-", 0, 0], X = Z[0], Q = 60 * +Z[1] + +Z[2];
|
|
4878
|
+
return Q === 0 ? 0 : X === "+" ? Q : -Q;
|
|
4874
4879
|
}(d), d === null))
|
|
4875
4880
|
return this;
|
|
4876
|
-
var U = Math.abs(d) <= 16 ? 60 * d : d,
|
|
4881
|
+
var U = Math.abs(d) <= 16 ? 60 * d : d, S = this;
|
|
4877
4882
|
if (C)
|
|
4878
|
-
return
|
|
4883
|
+
return S.$offset = U, S.$u = d === 0, S;
|
|
4879
4884
|
if (d !== 0) {
|
|
4880
4885
|
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4881
|
-
(
|
|
4886
|
+
(S = this.local().add(U + H, n)).$offset = U, S.$x.$localOffset = H;
|
|
4882
4887
|
} else
|
|
4883
|
-
|
|
4884
|
-
return
|
|
4888
|
+
S = this.utc();
|
|
4889
|
+
return S;
|
|
4885
4890
|
};
|
|
4886
4891
|
var y = c.format;
|
|
4887
4892
|
c.format = function(d) {
|
|
@@ -4902,25 +4907,25 @@ var Pi = { exports: {} };
|
|
|
4902
4907
|
return d === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
|
|
4903
4908
|
};
|
|
4904
4909
|
var E = c.diff;
|
|
4905
|
-
c.diff = function(d, C,
|
|
4910
|
+
c.diff = function(d, C, $) {
|
|
4906
4911
|
if (d && this.$u === d.$u)
|
|
4907
|
-
return E.call(this, d, C,
|
|
4908
|
-
var U = this.local(),
|
|
4909
|
-
return E.call(U,
|
|
4912
|
+
return E.call(this, d, C, $);
|
|
4913
|
+
var U = this.local(), S = a(d).local();
|
|
4914
|
+
return E.call(U, S, C, $);
|
|
4910
4915
|
};
|
|
4911
4916
|
};
|
|
4912
4917
|
});
|
|
4913
4918
|
})(Pi);
|
|
4914
|
-
var
|
|
4915
|
-
const
|
|
4916
|
-
let Br =
|
|
4917
|
-
function
|
|
4919
|
+
var La = Pi.exports;
|
|
4920
|
+
const Ha = /* @__PURE__ */ Hn(La);
|
|
4921
|
+
let Br = bt(null);
|
|
4922
|
+
function Ra(e, t) {
|
|
4918
4923
|
if (e) {
|
|
4919
4924
|
const n = document.createElement("style");
|
|
4920
4925
|
n.innerHTML = t, e.appendChild(n);
|
|
4921
4926
|
}
|
|
4922
4927
|
}
|
|
4923
|
-
function
|
|
4928
|
+
function Pa(e, t) {
|
|
4924
4929
|
const n = new URL(t);
|
|
4925
4930
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4926
4931
|
const i = document.createElement("style");
|
|
@@ -4929,7 +4934,7 @@ function Ia(e, t) {
|
|
|
4929
4934
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4930
4935
|
});
|
|
4931
4936
|
}
|
|
4932
|
-
function
|
|
4937
|
+
function Ia(e, t, n) {
|
|
4933
4938
|
if (window.emMessageBus) {
|
|
4934
4939
|
const r = document.createElement("style");
|
|
4935
4940
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4937,43 +4942,43 @@ function Da(e, t, n) {
|
|
|
4937
4942
|
});
|
|
4938
4943
|
}
|
|
4939
4944
|
}
|
|
4940
|
-
function
|
|
4941
|
-
Xi(e, "svelte-
|
|
4945
|
+
function Da(e) {
|
|
4946
|
+
Xi(e, "svelte-140mrml", "*,*::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:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--mmw--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(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-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(--mmw--color-grey-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(--mmw--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)}.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(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--mmw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--mmw--color-main-button-disabled, #5C950F)}.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}}");
|
|
4942
4947
|
}
|
|
4943
|
-
const
|
|
4948
|
+
const Ba = (e) => ({}), Ur = (e) => ({}), Ua = (e) => ({}), kr = (e) => ({}), ka = (e) => ({}), Fr = (e) => ({}), Fa = (e) => ({}), Gr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4944
4949
|
function $r(e) {
|
|
4945
|
-
let t, n, r, i, s,
|
|
4950
|
+
let t, n, r, i, s, l = (
|
|
4946
4951
|
/*$_*/
|
|
4947
4952
|
e[8]("sessionExpirationHeader") + ""
|
|
4948
|
-
), a, c,
|
|
4949
|
-
const
|
|
4953
|
+
), a, c, u, f, b, y, M, E, d, C, $, U, S, H, I;
|
|
4954
|
+
const F = (
|
|
4950
4955
|
/*#slots*/
|
|
4951
4956
|
e[22].icon
|
|
4952
|
-
),
|
|
4953
|
-
|
|
4957
|
+
), Z = Nt(
|
|
4958
|
+
F,
|
|
4954
4959
|
e,
|
|
4955
4960
|
/*$$scope*/
|
|
4956
4961
|
e[21],
|
|
4957
4962
|
Gr
|
|
4958
|
-
),
|
|
4963
|
+
), X = Z || ja(e), Q = (
|
|
4959
4964
|
/*#slots*/
|
|
4960
4965
|
e[22].title
|
|
4961
|
-
),
|
|
4966
|
+
), z = Nt(
|
|
4962
4967
|
Q,
|
|
4963
4968
|
e,
|
|
4964
4969
|
/*$$scope*/
|
|
4965
4970
|
e[21],
|
|
4966
4971
|
Fr
|
|
4967
|
-
), O =
|
|
4972
|
+
), O = z || za(e), ne = (
|
|
4968
4973
|
/*#slots*/
|
|
4969
4974
|
e[22].text
|
|
4970
|
-
), he =
|
|
4975
|
+
), he = Nt(
|
|
4971
4976
|
ne,
|
|
4972
4977
|
e,
|
|
4973
4978
|
/*$$scope*/
|
|
4974
4979
|
e[21],
|
|
4975
4980
|
kr
|
|
4976
|
-
), v = he ||
|
|
4981
|
+
), v = he || Wa(e), _ = [Xa, Va], g = [];
|
|
4977
4982
|
function x(h, T) {
|
|
4978
4983
|
return (
|
|
4979
4984
|
/*showLoaderButton*/
|
|
@@ -4982,25 +4987,25 @@ function $r(e) {
|
|
|
4982
4987
|
}
|
|
4983
4988
|
return d = x(e), C = g[d] = _[d](e), {
|
|
4984
4989
|
c() {
|
|
4985
|
-
t = te("div"), n = te("div"), r = te("div"), i = te("div"), s = te("div"), a =
|
|
4986
|
-
e[6],
|
|
4990
|
+
t = te("div"), n = te("div"), r = te("div"), i = te("div"), s = te("div"), a = Qe(l), c = ft(), u = te("div"), f = te("div"), X && X.c(), b = ft(), O && O.c(), y = ft(), v && v.c(), M = ft(), E = te("button"), C.c(), j(s, "class", "CashierSessionExpirationModalHeaderTitle"), j(i, "class", "CashierSessionExpirationModalHeader"), j(E, "type", "button"), E.disabled = /*showLoaderButton*/
|
|
4991
|
+
e[6], j(E, "class", "CashierSessionExpirationButton"), j(f, "class", "CashierSessionExpiration"), j(u, "class", "CashierSessionExpirationModalContainer"), j(r, "class", "CashierSessionExpirationModalWrapper"), j(n, "class", "CashierSessionExpirationModalWindow"), j(n, "id", "CashierSessionExpirationModal"), Xe(() => (
|
|
4987
4992
|
/*div5_elementresize_handler*/
|
|
4988
4993
|
e[24].call(n)
|
|
4989
4994
|
));
|
|
4990
4995
|
},
|
|
4991
4996
|
m(h, T) {
|
|
4992
|
-
|
|
4997
|
+
Se(h, t, T), J(t, n), J(n, r), J(r, i), J(i, s), J(s, a), J(r, c), J(r, u), J(u, f), X && X.m(f, null), J(f, b), O && O.m(f, null), J(f, y), v && v.m(f, null), J(f, M), J(f, E), g[d].m(E, null), e[23](f), $ = Ji(
|
|
4993
4998
|
n,
|
|
4994
4999
|
/*div5_elementresize_handler*/
|
|
4995
5000
|
e[24].bind(n)
|
|
4996
|
-
), e[25](t),
|
|
4997
|
-
|
|
5001
|
+
), e[25](t), S = !0, H || (I = [
|
|
5002
|
+
kt(
|
|
4998
5003
|
E,
|
|
4999
5004
|
"click",
|
|
5000
5005
|
/*renewSession*/
|
|
5001
5006
|
e[9]
|
|
5002
5007
|
),
|
|
5003
|
-
|
|
5008
|
+
kt(
|
|
5004
5009
|
n,
|
|
5005
5010
|
"click",
|
|
5006
5011
|
/*outOfModalClick*/
|
|
@@ -5009,100 +5014,100 @@ function $r(e) {
|
|
|
5009
5014
|
], H = !0);
|
|
5010
5015
|
},
|
|
5011
5016
|
p(h, T) {
|
|
5012
|
-
e = h, (!
|
|
5013
|
-
256) &&
|
|
5014
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5015
|
-
2097152) &&
|
|
5016
|
-
|
|
5017
|
-
|
|
5017
|
+
e = h, (!S || T[0] & /*$_*/
|
|
5018
|
+
256) && l !== (l = /*$_*/
|
|
5019
|
+
e[8]("sessionExpirationHeader") + "") && Xt(a, l), Z ? Z.p && (!S || T[0] & /*$$scope*/
|
|
5020
|
+
2097152) && Ht(
|
|
5021
|
+
Z,
|
|
5022
|
+
F,
|
|
5018
5023
|
e,
|
|
5019
5024
|
/*$$scope*/
|
|
5020
5025
|
e[21],
|
|
5021
|
-
|
|
5022
|
-
|
|
5026
|
+
S ? Lt(
|
|
5027
|
+
F,
|
|
5023
5028
|
/*$$scope*/
|
|
5024
5029
|
e[21],
|
|
5025
5030
|
T,
|
|
5026
|
-
|
|
5027
|
-
) :
|
|
5031
|
+
Fa
|
|
5032
|
+
) : Rt(
|
|
5028
5033
|
/*$$scope*/
|
|
5029
5034
|
e[21]
|
|
5030
5035
|
),
|
|
5031
5036
|
Gr
|
|
5032
|
-
) :
|
|
5033
|
-
8) &&
|
|
5034
|
-
2097152) &&
|
|
5035
|
-
|
|
5037
|
+
) : X && X.p && (!S || T[0] & /*assetsurl*/
|
|
5038
|
+
8) && X.p(e, S ? T : [-1, -1]), z ? z.p && (!S || T[0] & /*$$scope*/
|
|
5039
|
+
2097152) && Ht(
|
|
5040
|
+
z,
|
|
5036
5041
|
Q,
|
|
5037
5042
|
e,
|
|
5038
5043
|
/*$$scope*/
|
|
5039
5044
|
e[21],
|
|
5040
|
-
|
|
5045
|
+
S ? Lt(
|
|
5041
5046
|
Q,
|
|
5042
5047
|
/*$$scope*/
|
|
5043
5048
|
e[21],
|
|
5044
5049
|
T,
|
|
5045
|
-
|
|
5046
|
-
) :
|
|
5050
|
+
ka
|
|
5051
|
+
) : Rt(
|
|
5047
5052
|
/*$$scope*/
|
|
5048
5053
|
e[21]
|
|
5049
5054
|
),
|
|
5050
5055
|
Fr
|
|
5051
|
-
) : O && O.p && (!
|
|
5052
|
-
256) && O.p(e,
|
|
5053
|
-
2097152) &&
|
|
5056
|
+
) : O && O.p && (!S || T[0] & /*$_*/
|
|
5057
|
+
256) && O.p(e, S ? T : [-1, -1]), he ? he.p && (!S || T[0] & /*$$scope*/
|
|
5058
|
+
2097152) && Ht(
|
|
5054
5059
|
he,
|
|
5055
5060
|
ne,
|
|
5056
5061
|
e,
|
|
5057
5062
|
/*$$scope*/
|
|
5058
5063
|
e[21],
|
|
5059
|
-
|
|
5064
|
+
S ? Lt(
|
|
5060
5065
|
ne,
|
|
5061
5066
|
/*$$scope*/
|
|
5062
5067
|
e[21],
|
|
5063
5068
|
T,
|
|
5064
|
-
|
|
5065
|
-
) :
|
|
5069
|
+
Ua
|
|
5070
|
+
) : Rt(
|
|
5066
5071
|
/*$$scope*/
|
|
5067
5072
|
e[21]
|
|
5068
5073
|
),
|
|
5069
5074
|
kr
|
|
5070
|
-
) : v && v.p && (!
|
|
5071
|
-
384) && v.p(e,
|
|
5075
|
+
) : v && v.p && (!S || T[0] & /*$_, timeLeft*/
|
|
5076
|
+
384) && v.p(e, S ? T : [-1, -1]);
|
|
5072
5077
|
let N = d;
|
|
5073
|
-
d = x(e), d === N ? g[d].p(e, T) : (Kr(),
|
|
5078
|
+
d = x(e), d === N ? g[d].p(e, T) : (Kr(), Ne(g[N], 1, 1, () => {
|
|
5074
5079
|
g[N] = null;
|
|
5075
|
-
}), ei(), C = g[d], C ? C.p(e, T) : (C = g[d] = _[d](e), C.c()),
|
|
5080
|
+
}), ei(), C = g[d], C ? C.p(e, T) : (C = g[d] = _[d](e), C.c()), Ae(C, 1), C.m(E, null)), (!S || T[0] & /*showLoaderButton*/
|
|
5076
5081
|
64) && (E.disabled = /*showLoaderButton*/
|
|
5077
5082
|
e[6]);
|
|
5078
5083
|
},
|
|
5079
5084
|
i(h) {
|
|
5080
|
-
|
|
5081
|
-
|
|
5085
|
+
S || (Ae(X, h), Ae(O, h), Ae(v, h), Ae(C), h && Xe(() => {
|
|
5086
|
+
S && (U || (U = ur(n, cr, { duration: (
|
|
5082
5087
|
/*duration*/
|
|
5083
5088
|
e[2]
|
|
5084
5089
|
) }, !0)), U.run(1));
|
|
5085
|
-
}),
|
|
5090
|
+
}), S = !0);
|
|
5086
5091
|
},
|
|
5087
5092
|
o(h) {
|
|
5088
|
-
|
|
5093
|
+
Ne(X, h), Ne(O, h), Ne(v, h), Ne(C), h && (U || (U = ur(n, cr, { duration: (
|
|
5089
5094
|
/*duration*/
|
|
5090
5095
|
e[2]
|
|
5091
|
-
) }, !1)), U.run(0)),
|
|
5096
|
+
) }, !1)), U.run(0)), S = !1;
|
|
5092
5097
|
},
|
|
5093
5098
|
d(h) {
|
|
5094
|
-
h && ge(t),
|
|
5099
|
+
h && ge(t), X && X.d(h), O && O.d(h), v && v.d(h), g[d].d(), e[23](null), $(), h && U && U.end(), e[25](null), H = !1, He(I);
|
|
5095
5100
|
}
|
|
5096
5101
|
};
|
|
5097
5102
|
}
|
|
5098
|
-
function
|
|
5103
|
+
function Ga(e) {
|
|
5099
5104
|
let t, n;
|
|
5100
5105
|
return {
|
|
5101
5106
|
c() {
|
|
5102
|
-
t = te("img"),
|
|
5107
|
+
t = te("img"), En(t.src, n = Ca) || j(t, "src", n), j(t, "width", "300px"), j(t, "alt", "error");
|
|
5103
5108
|
},
|
|
5104
5109
|
m(r, i) {
|
|
5105
|
-
|
|
5110
|
+
Se(r, t, i);
|
|
5106
5111
|
},
|
|
5107
5112
|
p: de,
|
|
5108
5113
|
d(r) {
|
|
@@ -5110,32 +5115,32 @@ function $a(e) {
|
|
|
5110
5115
|
}
|
|
5111
5116
|
};
|
|
5112
5117
|
}
|
|
5113
|
-
function
|
|
5118
|
+
function $a(e) {
|
|
5114
5119
|
let t, n;
|
|
5115
5120
|
return {
|
|
5116
5121
|
c() {
|
|
5117
|
-
t = te("img"),
|
|
5118
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5122
|
+
t = te("img"), En(t.src, n = `${/*assetsurl*/
|
|
5123
|
+
e[3]}/set-timeout-icon.png`) || j(t, "src", n), j(t, "width", "300px"), j(t, "alt", "error");
|
|
5119
5124
|
},
|
|
5120
5125
|
m(r, i) {
|
|
5121
|
-
|
|
5126
|
+
Se(r, t, i);
|
|
5122
5127
|
},
|
|
5123
5128
|
p(r, i) {
|
|
5124
5129
|
i[0] & /*assetsurl*/
|
|
5125
|
-
8 && !
|
|
5126
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5130
|
+
8 && !En(t.src, n = `${/*assetsurl*/
|
|
5131
|
+
r[3]}/set-timeout-icon.png`) && j(t, "src", n);
|
|
5127
5132
|
},
|
|
5128
5133
|
d(r) {
|
|
5129
5134
|
r && ge(t);
|
|
5130
5135
|
}
|
|
5131
5136
|
};
|
|
5132
5137
|
}
|
|
5133
|
-
function
|
|
5138
|
+
function ja(e) {
|
|
5134
5139
|
let t;
|
|
5135
|
-
function n(s,
|
|
5140
|
+
function n(s, l) {
|
|
5136
5141
|
return (
|
|
5137
5142
|
/*assetsurl*/
|
|
5138
|
-
s[3] ?
|
|
5143
|
+
s[3] ? $a : Ga
|
|
5139
5144
|
);
|
|
5140
5145
|
}
|
|
5141
5146
|
let r = n(e), i = r(e);
|
|
@@ -5143,40 +5148,40 @@ function za(e) {
|
|
|
5143
5148
|
c() {
|
|
5144
5149
|
i.c(), t = Jr();
|
|
5145
5150
|
},
|
|
5146
|
-
m(s,
|
|
5147
|
-
i.m(s,
|
|
5151
|
+
m(s, l) {
|
|
5152
|
+
i.m(s, l), Se(s, t, l);
|
|
5148
5153
|
},
|
|
5149
|
-
p(s,
|
|
5150
|
-
r === (r = n(s)) && i ? i.p(s,
|
|
5154
|
+
p(s, l) {
|
|
5155
|
+
r === (r = n(s)) && i ? i.p(s, l) : (i.d(1), i = r(s), i && (i.c(), i.m(t.parentNode, t)));
|
|
5151
5156
|
},
|
|
5152
5157
|
d(s) {
|
|
5153
5158
|
s && ge(t), i.d(s);
|
|
5154
5159
|
}
|
|
5155
5160
|
};
|
|
5156
5161
|
}
|
|
5157
|
-
function
|
|
5162
|
+
function za(e) {
|
|
5158
5163
|
let t, n = (
|
|
5159
5164
|
/*$_*/
|
|
5160
5165
|
e[8]("sessionExpirationTitle") + ""
|
|
5161
5166
|
), r;
|
|
5162
5167
|
return {
|
|
5163
5168
|
c() {
|
|
5164
|
-
t = te("span"), r =
|
|
5169
|
+
t = te("span"), r = Qe(n), j(t, "class", "CashierSessionExpirationTitle");
|
|
5165
5170
|
},
|
|
5166
5171
|
m(i, s) {
|
|
5167
|
-
|
|
5172
|
+
Se(i, t, s), J(t, r);
|
|
5168
5173
|
},
|
|
5169
5174
|
p(i, s) {
|
|
5170
5175
|
s[0] & /*$_*/
|
|
5171
5176
|
256 && n !== (n = /*$_*/
|
|
5172
|
-
i[8]("sessionExpirationTitle") + "") &&
|
|
5177
|
+
i[8]("sessionExpirationTitle") + "") && Xt(r, n);
|
|
5173
5178
|
},
|
|
5174
5179
|
d(i) {
|
|
5175
5180
|
i && ge(t);
|
|
5176
5181
|
}
|
|
5177
5182
|
};
|
|
5178
5183
|
}
|
|
5179
|
-
function
|
|
5184
|
+
function Wa(e) {
|
|
5180
5185
|
let t, n = Ir.sanitize(
|
|
5181
5186
|
/*$_*/
|
|
5182
5187
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -5186,10 +5191,10 @@ function Va(e) {
|
|
|
5186
5191
|
) + "";
|
|
5187
5192
|
return {
|
|
5188
5193
|
c() {
|
|
5189
|
-
t = te("span"),
|
|
5194
|
+
t = te("span"), j(t, "class", "CashierSessionExpirationText");
|
|
5190
5195
|
},
|
|
5191
5196
|
m(r, i) {
|
|
5192
|
-
|
|
5197
|
+
Se(r, t, i), t.innerHTML = n;
|
|
5193
5198
|
},
|
|
5194
5199
|
p(r, i) {
|
|
5195
5200
|
i[0] & /*$_, timeLeft*/
|
|
@@ -5206,74 +5211,74 @@ function Va(e) {
|
|
|
5206
5211
|
}
|
|
5207
5212
|
};
|
|
5208
5213
|
}
|
|
5209
|
-
function
|
|
5214
|
+
function Va(e) {
|
|
5210
5215
|
let t;
|
|
5211
5216
|
const n = (
|
|
5212
5217
|
/*#slots*/
|
|
5213
5218
|
e[22].button
|
|
5214
|
-
), r =
|
|
5219
|
+
), r = Nt(
|
|
5215
5220
|
n,
|
|
5216
5221
|
e,
|
|
5217
5222
|
/*$$scope*/
|
|
5218
5223
|
e[21],
|
|
5219
5224
|
Ur
|
|
5220
|
-
), i = r ||
|
|
5225
|
+
), i = r || Ya(e);
|
|
5221
5226
|
return {
|
|
5222
5227
|
c() {
|
|
5223
5228
|
i && i.c();
|
|
5224
5229
|
},
|
|
5225
|
-
m(s,
|
|
5226
|
-
i && i.m(s,
|
|
5230
|
+
m(s, l) {
|
|
5231
|
+
i && i.m(s, l), t = !0;
|
|
5227
5232
|
},
|
|
5228
|
-
p(s,
|
|
5229
|
-
r ? r.p && (!t ||
|
|
5230
|
-
2097152) &&
|
|
5233
|
+
p(s, l) {
|
|
5234
|
+
r ? r.p && (!t || l[0] & /*$$scope*/
|
|
5235
|
+
2097152) && Ht(
|
|
5231
5236
|
r,
|
|
5232
5237
|
n,
|
|
5233
5238
|
s,
|
|
5234
5239
|
/*$$scope*/
|
|
5235
5240
|
s[21],
|
|
5236
|
-
t ?
|
|
5241
|
+
t ? Lt(
|
|
5237
5242
|
n,
|
|
5238
5243
|
/*$$scope*/
|
|
5239
5244
|
s[21],
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
) :
|
|
5245
|
+
l,
|
|
5246
|
+
Ba
|
|
5247
|
+
) : Rt(
|
|
5243
5248
|
/*$$scope*/
|
|
5244
5249
|
s[21]
|
|
5245
5250
|
),
|
|
5246
5251
|
Ur
|
|
5247
|
-
) : i && i.p && (!t ||
|
|
5248
|
-
256) && i.p(s, t ?
|
|
5252
|
+
) : i && i.p && (!t || l[0] & /*$_*/
|
|
5253
|
+
256) && i.p(s, t ? l : [-1, -1]);
|
|
5249
5254
|
},
|
|
5250
5255
|
i(s) {
|
|
5251
|
-
t || (
|
|
5256
|
+
t || (Ae(i, s), t = !0);
|
|
5252
5257
|
},
|
|
5253
5258
|
o(s) {
|
|
5254
|
-
|
|
5259
|
+
Ne(i, s), t = !1;
|
|
5255
5260
|
},
|
|
5256
5261
|
d(s) {
|
|
5257
5262
|
i && i.d(s);
|
|
5258
5263
|
}
|
|
5259
5264
|
};
|
|
5260
5265
|
}
|
|
5261
|
-
function
|
|
5262
|
-
let t, n, r, i, s,
|
|
5266
|
+
function Xa(e) {
|
|
5267
|
+
let t, n, r, i, s, l = (
|
|
5263
5268
|
/*$_*/
|
|
5264
5269
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5265
5270
|
), a;
|
|
5266
5271
|
return {
|
|
5267
5272
|
c() {
|
|
5268
|
-
t = te("div"), n = or("svg"), r = or("path"), i =
|
|
5273
|
+
t = te("div"), n = or("svg"), r = or("path"), i = ft(), s = te("span"), a = Qe(l), j(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"), j(r, "fill", "white"), j(n, "class", "CashierSessionExpirationButtonSpinner"), j(n, "xmlns", "http://www.w3.org/2000/svg"), j(n, "width", "15"), j(n, "height", "14"), j(n, "viewBox", "0 0 15 14"), j(n, "fill", "none"), j(s, "class", "CashierSessionExpirationButtonText");
|
|
5269
5274
|
},
|
|
5270
|
-
m(c,
|
|
5271
|
-
|
|
5275
|
+
m(c, u) {
|
|
5276
|
+
Se(c, t, u), J(t, n), J(n, r), J(t, i), J(t, s), J(s, a);
|
|
5272
5277
|
},
|
|
5273
|
-
p(c,
|
|
5274
|
-
|
|
5275
|
-
256 &&
|
|
5276
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5278
|
+
p(c, u) {
|
|
5279
|
+
u[0] & /*$_*/
|
|
5280
|
+
256 && l !== (l = /*$_*/
|
|
5281
|
+
c[8]("sessionExpirationLoadingButton") + "") && Xt(a, l);
|
|
5277
5282
|
},
|
|
5278
5283
|
i: de,
|
|
5279
5284
|
o: de,
|
|
@@ -5282,29 +5287,29 @@ function Ya(e) {
|
|
|
5282
5287
|
}
|
|
5283
5288
|
};
|
|
5284
5289
|
}
|
|
5285
|
-
function
|
|
5290
|
+
function Ya(e) {
|
|
5286
5291
|
let t, n = (
|
|
5287
5292
|
/*$_*/
|
|
5288
5293
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5289
5294
|
), r;
|
|
5290
5295
|
return {
|
|
5291
5296
|
c() {
|
|
5292
|
-
t = te("span"), r =
|
|
5297
|
+
t = te("span"), r = Qe(n), j(t, "class", "CashierSessionExpirationButtonText");
|
|
5293
5298
|
},
|
|
5294
5299
|
m(i, s) {
|
|
5295
|
-
|
|
5300
|
+
Se(i, t, s), J(t, r);
|
|
5296
5301
|
},
|
|
5297
5302
|
p(i, s) {
|
|
5298
5303
|
s[0] & /*$_*/
|
|
5299
5304
|
256 && n !== (n = /*$_*/
|
|
5300
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5305
|
+
i[8]("sessionExpirationGeneralButton") + "") && Xt(r, n);
|
|
5301
5306
|
},
|
|
5302
5307
|
d(i) {
|
|
5303
5308
|
i && ge(t);
|
|
5304
5309
|
}
|
|
5305
5310
|
};
|
|
5306
5311
|
}
|
|
5307
|
-
function
|
|
5312
|
+
function Za(e) {
|
|
5308
5313
|
let t, n, r = (
|
|
5309
5314
|
/*show*/
|
|
5310
5315
|
e[5] && $r(e)
|
|
@@ -5314,39 +5319,39 @@ function qa(e) {
|
|
|
5314
5319
|
r && r.c(), t = Jr();
|
|
5315
5320
|
},
|
|
5316
5321
|
m(i, s) {
|
|
5317
|
-
r && r.m(i, s),
|
|
5322
|
+
r && r.m(i, s), Se(i, t, s), n = !0;
|
|
5318
5323
|
},
|
|
5319
5324
|
p(i, s) {
|
|
5320
5325
|
/*show*/
|
|
5321
5326
|
i[5] ? r ? (r.p(i, s), s[0] & /*show*/
|
|
5322
|
-
32 &&
|
|
5327
|
+
32 && Ae(r, 1)) : (r = $r(i), r.c(), Ae(r, 1), r.m(t.parentNode, t)) : r && (Kr(), Ne(r, 1, 1, () => {
|
|
5323
5328
|
r = null;
|
|
5324
5329
|
}), ei());
|
|
5325
5330
|
},
|
|
5326
5331
|
i(i) {
|
|
5327
|
-
n || (
|
|
5332
|
+
n || (Ae(r), n = !0);
|
|
5328
5333
|
},
|
|
5329
5334
|
o(i) {
|
|
5330
|
-
|
|
5335
|
+
Ne(r), n = !1;
|
|
5331
5336
|
},
|
|
5332
5337
|
d(i) {
|
|
5333
5338
|
i && ge(t), r && r.d(i);
|
|
5334
5339
|
}
|
|
5335
5340
|
};
|
|
5336
5341
|
}
|
|
5337
|
-
const
|
|
5338
|
-
function
|
|
5342
|
+
const qa = 90;
|
|
5343
|
+
function Ja(e, t, n) {
|
|
5339
5344
|
let r, i;
|
|
5340
5345
|
sr(e, Br, (m) => n(20, r = m)), sr(e, la, (m) => n(8, i = m));
|
|
5341
|
-
let { $$slots: s = {}, $$scope:
|
|
5342
|
-
Dr.extend(
|
|
5343
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width:
|
|
5346
|
+
let { $$slots: s = {}, $$scope: l } = t;
|
|
5347
|
+
Dr.extend(Ha);
|
|
5348
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: b = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: E = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: $ } = t, { selectedpaymentmethodname: U } = t, { mbsource: S = "" } = t, H, I = !1, F = !1, Z, X, Q, z, O;
|
|
5344
5349
|
var ne;
|
|
5345
5350
|
(function(m) {
|
|
5346
5351
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
5347
5352
|
})(ne || (ne = {}));
|
|
5348
5353
|
const he = (m) => {
|
|
5349
|
-
m.data.type === "StartSessionCountdown" && (
|
|
5354
|
+
m.data.type === "StartSessionCountdown" && (z = m.data.paymentMethodName);
|
|
5350
5355
|
}, v = (m) => {
|
|
5351
5356
|
try {
|
|
5352
5357
|
return JSON.parse(atob(m.split(".")[1]));
|
|
@@ -5363,27 +5368,27 @@ function Qa(e, t, n) {
|
|
|
5363
5368
|
);
|
|
5364
5369
|
}, g = (m) => {
|
|
5365
5370
|
n(5, I = !1);
|
|
5366
|
-
const
|
|
5367
|
-
|
|
5371
|
+
const G = v(m);
|
|
5372
|
+
G && (X = G?.exp, n(7, Z = X), Q && clearInterval(Q), Q = setInterval(
|
|
5368
5373
|
() => {
|
|
5369
5374
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5370
|
-
n(7,
|
|
5375
|
+
n(7, Z = X - ee), Z <= qa && n(5, I = !0), ee >= X && (x(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5371
5376
|
},
|
|
5372
5377
|
1e3
|
|
5373
5378
|
));
|
|
5374
5379
|
}, x = () => {
|
|
5375
|
-
n(7,
|
|
5380
|
+
n(7, Z = 0), n(5, I = !1), clearInterval(Q);
|
|
5376
5381
|
}, h = () => {
|
|
5377
|
-
if (
|
|
5382
|
+
if (F)
|
|
5378
5383
|
return;
|
|
5379
|
-
const m = new URL(`${d}/v1/player/${
|
|
5380
|
-
n(6,
|
|
5384
|
+
const m = new URL(`${d}/v1/player/${$}/payment/GetPaymentMethod`), G = new Headers();
|
|
5385
|
+
n(6, F = !0), G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-Client-Request-Timestamp", Dr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5381
5386
|
const ee = {
|
|
5382
5387
|
method: "POST",
|
|
5383
5388
|
mode: "cors",
|
|
5384
|
-
headers:
|
|
5389
|
+
headers: G,
|
|
5385
5390
|
body: JSON.stringify({
|
|
5386
|
-
PaymentMethodName:
|
|
5391
|
+
PaymentMethodName: z || U,
|
|
5387
5392
|
Currency: C,
|
|
5388
5393
|
XPaymentSessionToken: r
|
|
5389
5394
|
})
|
|
@@ -5408,62 +5413,62 @@ function Qa(e, t, n) {
|
|
|
5408
5413
|
return;
|
|
5409
5414
|
}
|
|
5410
5415
|
K.XPaymentSessionToken && Br.set(K.XPaymentSessionToken);
|
|
5411
|
-
}).finally(() => n(6,
|
|
5416
|
+
}).finally(() => n(6, F = !1));
|
|
5412
5417
|
}, T = (m) => {
|
|
5413
|
-
const
|
|
5414
|
-
m.target ===
|
|
5418
|
+
const G = m.currentTarget;
|
|
5419
|
+
m.target === G && h();
|
|
5415
5420
|
}, N = () => {
|
|
5416
|
-
fetch(E).then((
|
|
5417
|
-
Object.keys(
|
|
5418
|
-
|
|
5421
|
+
fetch(E).then((G) => G.json()).then((G) => {
|
|
5422
|
+
Object.keys(G).forEach((ee) => {
|
|
5423
|
+
Sr(ee, G[ee]);
|
|
5419
5424
|
});
|
|
5420
|
-
}).catch((
|
|
5421
|
-
console.log(
|
|
5425
|
+
}).catch((G) => {
|
|
5426
|
+
console.log(G);
|
|
5422
5427
|
});
|
|
5423
5428
|
};
|
|
5424
5429
|
Object.keys(wr).forEach((m) => {
|
|
5425
|
-
|
|
5430
|
+
Sr(m, wr[m]);
|
|
5426
5431
|
});
|
|
5427
5432
|
const L = () => {
|
|
5428
|
-
|
|
5433
|
+
ua(M);
|
|
5429
5434
|
};
|
|
5430
5435
|
is(() => (window.addEventListener("message", he, !1), () => {
|
|
5431
5436
|
window.removeEventListener("message", he);
|
|
5432
5437
|
})), ss(() => {
|
|
5433
5438
|
clearInterval(Q);
|
|
5434
5439
|
});
|
|
5435
|
-
function
|
|
5436
|
-
|
|
5440
|
+
function W(m) {
|
|
5441
|
+
$t[m ? "unshift" : "push"](() => {
|
|
5437
5442
|
H = m, n(4, H);
|
|
5438
5443
|
});
|
|
5439
5444
|
}
|
|
5440
5445
|
function R() {
|
|
5441
|
-
|
|
5446
|
+
u = this.clientWidth, f = this.clientHeight, n(0, u), n(1, f);
|
|
5442
5447
|
}
|
|
5443
5448
|
function q(m) {
|
|
5444
|
-
|
|
5449
|
+
$t[m ? "unshift" : "push"](() => {
|
|
5445
5450
|
H = m, n(4, H);
|
|
5446
5451
|
});
|
|
5447
5452
|
}
|
|
5448
5453
|
return e.$$set = (m) => {
|
|
5449
|
-
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0,
|
|
5454
|
+
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, u = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, b = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, E = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17, $ = m.customerid), "selectedpaymentmethodname" in m && n(18, U = m.selectedpaymentmethodname), "mbsource" in m && n(19, S = m.mbsource), "$$scope" in m && n(21, l = m.$$scope);
|
|
5450
5455
|
}, e.$$.update = () => {
|
|
5451
5456
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5452
5457
|
1048576 && g(r), e.$$.dirty[0] & /*lang*/
|
|
5453
5458
|
8192 && M && L(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5454
|
-
2064 && a && H &&
|
|
5455
|
-
4112 && c && H &&
|
|
5456
|
-
524304 &&
|
|
5459
|
+
2064 && a && H && Ra(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5460
|
+
4112 && c && H && Pa(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5461
|
+
524304 && S && H && Ia(H, `${S}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5457
5462
|
16384 && E && N();
|
|
5458
5463
|
}, [
|
|
5459
|
-
|
|
5464
|
+
u,
|
|
5460
5465
|
f,
|
|
5461
5466
|
b,
|
|
5462
5467
|
y,
|
|
5463
5468
|
H,
|
|
5464
5469
|
I,
|
|
5465
|
-
|
|
5466
|
-
|
|
5470
|
+
F,
|
|
5471
|
+
Z,
|
|
5467
5472
|
i,
|
|
5468
5473
|
h,
|
|
5469
5474
|
T,
|
|
@@ -5473,24 +5478,24 @@ function Qa(e, t, n) {
|
|
|
5473
5478
|
E,
|
|
5474
5479
|
d,
|
|
5475
5480
|
C,
|
|
5476
|
-
|
|
5481
|
+
$,
|
|
5477
5482
|
U,
|
|
5478
|
-
|
|
5483
|
+
S,
|
|
5479
5484
|
r,
|
|
5480
|
-
|
|
5485
|
+
l,
|
|
5481
5486
|
s,
|
|
5482
|
-
|
|
5487
|
+
W,
|
|
5483
5488
|
R,
|
|
5484
5489
|
q
|
|
5485
5490
|
];
|
|
5486
5491
|
}
|
|
5487
|
-
class
|
|
5492
|
+
class Qa extends bs {
|
|
5488
5493
|
constructor(t) {
|
|
5489
5494
|
super(), ps(
|
|
5490
5495
|
this,
|
|
5491
5496
|
t,
|
|
5492
|
-
|
|
5493
|
-
|
|
5497
|
+
Ja,
|
|
5498
|
+
Za,
|
|
5494
5499
|
Wr,
|
|
5495
5500
|
{
|
|
5496
5501
|
clientstyling: 11,
|
|
@@ -5507,7 +5512,7 @@ class Ka extends bs {
|
|
|
5507
5512
|
selectedpaymentmethodname: 18,
|
|
5508
5513
|
mbsource: 19
|
|
5509
5514
|
},
|
|
5510
|
-
|
|
5515
|
+
Da,
|
|
5511
5516
|
[-1, -1]
|
|
5512
5517
|
);
|
|
5513
5518
|
}
|
|
@@ -5515,82 +5520,82 @@ class Ka extends bs {
|
|
|
5515
5520
|
return this.$$.ctx[11];
|
|
5516
5521
|
}
|
|
5517
5522
|
set clientstyling(t) {
|
|
5518
|
-
this.$$set({ clientstyling: t }),
|
|
5523
|
+
this.$$set({ clientstyling: t }), ue();
|
|
5519
5524
|
}
|
|
5520
5525
|
get clientstylingurl() {
|
|
5521
5526
|
return this.$$.ctx[12];
|
|
5522
5527
|
}
|
|
5523
5528
|
set clientstylingurl(t) {
|
|
5524
|
-
this.$$set({ clientstylingurl: t }),
|
|
5529
|
+
this.$$set({ clientstylingurl: t }), ue();
|
|
5525
5530
|
}
|
|
5526
5531
|
get width() {
|
|
5527
5532
|
return this.$$.ctx[0];
|
|
5528
5533
|
}
|
|
5529
5534
|
set width(t) {
|
|
5530
|
-
this.$$set({ width: t }),
|
|
5535
|
+
this.$$set({ width: t }), ue();
|
|
5531
5536
|
}
|
|
5532
5537
|
get height() {
|
|
5533
5538
|
return this.$$.ctx[1];
|
|
5534
5539
|
}
|
|
5535
5540
|
set height(t) {
|
|
5536
|
-
this.$$set({ height: t }),
|
|
5541
|
+
this.$$set({ height: t }), ue();
|
|
5537
5542
|
}
|
|
5538
5543
|
get duration() {
|
|
5539
5544
|
return this.$$.ctx[2];
|
|
5540
5545
|
}
|
|
5541
5546
|
set duration(t) {
|
|
5542
|
-
this.$$set({ duration: t }),
|
|
5547
|
+
this.$$set({ duration: t }), ue();
|
|
5543
5548
|
}
|
|
5544
5549
|
get assetsurl() {
|
|
5545
5550
|
return this.$$.ctx[3];
|
|
5546
5551
|
}
|
|
5547
5552
|
set assetsurl(t) {
|
|
5548
|
-
this.$$set({ assetsurl: t }),
|
|
5553
|
+
this.$$set({ assetsurl: t }), ue();
|
|
5549
5554
|
}
|
|
5550
5555
|
get lang() {
|
|
5551
5556
|
return this.$$.ctx[13];
|
|
5552
5557
|
}
|
|
5553
5558
|
set lang(t) {
|
|
5554
|
-
this.$$set({ lang: t }),
|
|
5559
|
+
this.$$set({ lang: t }), ue();
|
|
5555
5560
|
}
|
|
5556
5561
|
get translationurl() {
|
|
5557
5562
|
return this.$$.ctx[14];
|
|
5558
5563
|
}
|
|
5559
5564
|
set translationurl(t) {
|
|
5560
|
-
this.$$set({ translationurl: t }),
|
|
5565
|
+
this.$$set({ translationurl: t }), ue();
|
|
5561
5566
|
}
|
|
5562
5567
|
get endpoint() {
|
|
5563
5568
|
return this.$$.ctx[15];
|
|
5564
5569
|
}
|
|
5565
5570
|
set endpoint(t) {
|
|
5566
|
-
this.$$set({ endpoint: t }),
|
|
5571
|
+
this.$$set({ endpoint: t }), ue();
|
|
5567
5572
|
}
|
|
5568
5573
|
get currency() {
|
|
5569
5574
|
return this.$$.ctx[16];
|
|
5570
5575
|
}
|
|
5571
5576
|
set currency(t) {
|
|
5572
|
-
this.$$set({ currency: t }),
|
|
5577
|
+
this.$$set({ currency: t }), ue();
|
|
5573
5578
|
}
|
|
5574
5579
|
get customerid() {
|
|
5575
5580
|
return this.$$.ctx[17];
|
|
5576
5581
|
}
|
|
5577
5582
|
set customerid(t) {
|
|
5578
|
-
this.$$set({ customerid: t }),
|
|
5583
|
+
this.$$set({ customerid: t }), ue();
|
|
5579
5584
|
}
|
|
5580
5585
|
get selectedpaymentmethodname() {
|
|
5581
5586
|
return this.$$.ctx[18];
|
|
5582
5587
|
}
|
|
5583
5588
|
set selectedpaymentmethodname(t) {
|
|
5584
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
5589
|
+
this.$$set({ selectedpaymentmethodname: t }), ue();
|
|
5585
5590
|
}
|
|
5586
5591
|
get mbsource() {
|
|
5587
5592
|
return this.$$.ctx[19];
|
|
5588
5593
|
}
|
|
5589
5594
|
set mbsource(t) {
|
|
5590
|
-
this.$$set({ mbsource: t }),
|
|
5595
|
+
this.$$set({ mbsource: t }), ue();
|
|
5591
5596
|
}
|
|
5592
5597
|
}
|
|
5593
|
-
gs(
|
|
5598
|
+
gs(Qa, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5594
5599
|
export {
|
|
5595
|
-
|
|
5600
|
+
Qa as C
|
|
5596
5601
|
};
|