@everymatrix/cashier-session-expiration-modal 1.77.26 → 1.77.27
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-_PoHG-vX.js → CashierSessionExpirationModal-BAFxIrEq.js} +927 -932
- package/components/CashierSessionExpirationModal-DqNHgUjj.cjs +9 -0
- package/components/{CashierSessionExpirationModal-DXQECF5R.js → CashierSessionExpirationModal-ge0R8xm0.js} +908 -913
- 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-BIRBjf6M.cjs +0 -22
|
@@ -2,15 +2,15 @@ var qi = Object.defineProperty, Ji = Object.defineProperties;
|
|
|
2
2
|
var Qi = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var or = Object.getOwnPropertySymbols;
|
|
4
4
|
var Ki = Object.prototype.hasOwnProperty, eo = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var un = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sr = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
Ki.call(t, n) &&
|
|
7
|
+
Ki.call(t, n) && un(e, n, t[n]);
|
|
8
8
|
if (or)
|
|
9
9
|
for (var n of or(t))
|
|
10
|
-
eo.call(t, n) &&
|
|
10
|
+
eo.call(t, n) && un(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, ar = (e, t) => Ji(e, Qi(t));
|
|
13
|
-
var _e = (e, t, n) => (
|
|
13
|
+
var _e = (e, t, n) => (un(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var ur = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
@@ -44,18 +44,18 @@ function Jr(e) {
|
|
|
44
44
|
function lr() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Pe(e) {
|
|
48
48
|
e.forEach(Jr);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Zt(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
53
|
function Qr(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let Ot;
|
|
57
57
|
function cr(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (Ot || (Ot = document.createElement("a")), Ot.href = t, e === Ot.href);
|
|
59
59
|
}
|
|
60
60
|
function no(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -72,7 +72,7 @@ function Kr(e, ...t) {
|
|
|
72
72
|
function fr(e, t, n) {
|
|
73
73
|
e.$$.on_destroy.push(Kr(t, n));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ht(e, t, n, r) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = ei(e, t, n, r);
|
|
78
78
|
return e[0](i);
|
|
@@ -81,7 +81,7 @@ function Nt(e, t, n, r) {
|
|
|
81
81
|
function ei(e, t, n, r) {
|
|
82
82
|
return e[1] && r ? to(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function It(e, t, n, r) {
|
|
85
85
|
if (e[2] && r) {
|
|
86
86
|
const i = e[2](r(n));
|
|
87
87
|
if (t.dirty === void 0)
|
|
@@ -96,7 +96,7 @@ function Ht(e, t, n, r) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Pt(e, t, n, r, i, o) {
|
|
100
100
|
if (i) {
|
|
101
101
|
const a = ei(t, n, r, o);
|
|
102
102
|
e.p(a, i);
|
|
@@ -112,21 +112,21 @@ function Rt(e) {
|
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
114
|
const ti = typeof window != "undefined";
|
|
115
|
-
let ro = ti ? () => window.performance.now() : () => Date.now(),
|
|
116
|
-
const
|
|
115
|
+
let ro = ti ? () => window.performance.now() : () => Date.now(), In = ti ? (e) => requestAnimationFrame(e) : de;
|
|
116
|
+
const Xe = /* @__PURE__ */ new Set();
|
|
117
117
|
function ni(e) {
|
|
118
|
-
|
|
119
|
-
t.c(e) || (
|
|
120
|
-
}),
|
|
118
|
+
Xe.forEach((t) => {
|
|
119
|
+
t.c(e) || (Xe.delete(t), t.f());
|
|
120
|
+
}), Xe.size !== 0 && In(ni);
|
|
121
121
|
}
|
|
122
122
|
function io(e) {
|
|
123
123
|
let t;
|
|
124
|
-
return
|
|
124
|
+
return Xe.size === 0 && In(ni), {
|
|
125
125
|
promise: new Promise((n) => {
|
|
126
|
-
|
|
126
|
+
Xe.add(t = { c: e, f: n });
|
|
127
127
|
}),
|
|
128
128
|
abort() {
|
|
129
|
-
|
|
129
|
+
Xe.delete(t);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -134,13 +134,13 @@ function J(e, t) {
|
|
|
134
134
|
e.appendChild(t);
|
|
135
135
|
}
|
|
136
136
|
function oo(e, t, n) {
|
|
137
|
-
const r =
|
|
137
|
+
const r = Pn(e);
|
|
138
138
|
if (!r.getElementById(t)) {
|
|
139
139
|
const i = re("style");
|
|
140
140
|
i.id = t, i.textContent = n, ri(r, i);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Pn(e) {
|
|
144
144
|
if (!e)
|
|
145
145
|
return document;
|
|
146
146
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -152,7 +152,7 @@ function Hn(e) {
|
|
|
152
152
|
}
|
|
153
153
|
function so(e) {
|
|
154
154
|
const t = re("style");
|
|
155
|
-
return t.textContent = "/* empty */", ri(
|
|
155
|
+
return t.textContent = "/* empty */", ri(Pn(e), t), t.sheet;
|
|
156
156
|
}
|
|
157
157
|
function ri(e, t) {
|
|
158
158
|
return J(
|
|
@@ -161,7 +161,7 @@ function ri(e, t) {
|
|
|
161
161
|
t
|
|
162
162
|
), t.sheet;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Le(e, t, n) {
|
|
165
165
|
e.insertBefore(t, n || null);
|
|
166
166
|
}
|
|
167
167
|
function Ee(e) {
|
|
@@ -173,39 +173,39 @@ function re(e) {
|
|
|
173
173
|
function hr(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function et(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function mt() {
|
|
180
|
+
return et(" ");
|
|
181
181
|
}
|
|
182
182
|
function ii() {
|
|
183
|
-
return
|
|
183
|
+
return et("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Ft(e, t, n, r) {
|
|
186
186
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function W(e, t, n) {
|
|
189
189
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
190
190
|
}
|
|
191
191
|
function ao(e) {
|
|
192
192
|
return Array.from(e.childNodes);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function qt(e, t) {
|
|
195
195
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
196
196
|
t);
|
|
197
197
|
}
|
|
198
|
-
let
|
|
198
|
+
let Mt;
|
|
199
199
|
function uo() {
|
|
200
|
-
if (
|
|
201
|
-
|
|
200
|
+
if (Mt === void 0) {
|
|
201
|
+
Mt = !1;
|
|
202
202
|
try {
|
|
203
203
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
204
204
|
} catch (e) {
|
|
205
|
-
|
|
205
|
+
Mt = !0;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return Mt;
|
|
209
209
|
}
|
|
210
210
|
function lo(e, t) {
|
|
211
211
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
@@ -216,7 +216,7 @@ function lo(e, t) {
|
|
|
216
216
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
217
217
|
const i = uo();
|
|
218
218
|
let o;
|
|
219
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
219
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Ft(
|
|
220
220
|
window,
|
|
221
221
|
"message",
|
|
222
222
|
/** @param {MessageEvent} event */
|
|
@@ -224,7 +224,7 @@ function lo(e, t) {
|
|
|
224
224
|
a.source === r.contentWindow && t();
|
|
225
225
|
}
|
|
226
226
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
227
|
-
o =
|
|
227
|
+
o = Ft(r.contentWindow, "resize", t), t();
|
|
228
228
|
}), J(e, r), () => {
|
|
229
229
|
(i || o && r.contentWindow) && o(), Ee(r);
|
|
230
230
|
};
|
|
@@ -241,8 +241,8 @@ function fo(e) {
|
|
|
241
241
|
}
|
|
242
242
|
), t;
|
|
243
243
|
}
|
|
244
|
-
const
|
|
245
|
-
let
|
|
244
|
+
const Gt = /* @__PURE__ */ new Map();
|
|
245
|
+
let jt = 0;
|
|
246
246
|
function ho(e) {
|
|
247
247
|
let t = 5381, n = e.length;
|
|
248
248
|
for (; n--; )
|
|
@@ -251,46 +251,46 @@ function ho(e) {
|
|
|
251
251
|
}
|
|
252
252
|
function mo(e, t) {
|
|
253
253
|
const n = { stylesheet: so(t), rules: {} };
|
|
254
|
-
return
|
|
254
|
+
return Gt.set(e, n), n;
|
|
255
255
|
}
|
|
256
256
|
function mr(e, t, n, r, i, o, a, u = 0) {
|
|
257
257
|
const c = 16.666 / r;
|
|
258
258
|
let l = `{
|
|
259
259
|
`;
|
|
260
260
|
for (let C = 0; C <= 1; C += c) {
|
|
261
|
-
const
|
|
262
|
-
l += C * 100 + `%{${a(
|
|
261
|
+
const F = t + (n - t) * o(C);
|
|
262
|
+
l += C * 100 + `%{${a(F, 1 - F)}}
|
|
263
263
|
`;
|
|
264
264
|
}
|
|
265
265
|
const f = l + `100% {${a(n, 1 - n)}}
|
|
266
|
-
}`, _ = `__svelte_${ho(f)}_${u}`, y =
|
|
266
|
+
}`, _ = `__svelte_${ho(f)}_${u}`, y = Pn(e), { stylesheet: M, rules: b } = Gt.get(y) || mo(y, e);
|
|
267
267
|
b[_] || (b[_] = !0, M.insertRule(`@keyframes ${_} ${f}`, M.cssRules.length));
|
|
268
268
|
const d = e.style.animation || "";
|
|
269
|
-
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`,
|
|
269
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`, jt += 1, _;
|
|
270
270
|
}
|
|
271
271
|
function po(e, t) {
|
|
272
272
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
273
273
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
274
274
|
// remove all Svelte animations
|
|
275
275
|
), i = n.length - r.length;
|
|
276
|
-
i && (e.style.animation = r.join(", "),
|
|
276
|
+
i && (e.style.animation = r.join(", "), jt -= i, jt || go());
|
|
277
277
|
}
|
|
278
278
|
function go() {
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
In(() => {
|
|
280
|
+
jt || (Gt.forEach((e) => {
|
|
281
281
|
const { ownerNode: t } = e.stylesheet;
|
|
282
282
|
t && Ee(t);
|
|
283
|
-
}),
|
|
283
|
+
}), Gt.clear());
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
let
|
|
287
|
-
function
|
|
288
|
-
|
|
286
|
+
let gt;
|
|
287
|
+
function pt(e) {
|
|
288
|
+
gt = e;
|
|
289
289
|
}
|
|
290
290
|
function oi() {
|
|
291
|
-
if (!
|
|
291
|
+
if (!gt)
|
|
292
292
|
throw new Error("Function called outside component initialization");
|
|
293
|
-
return
|
|
293
|
+
return gt;
|
|
294
294
|
}
|
|
295
295
|
function _o(e) {
|
|
296
296
|
oi().$$.on_mount.push(e);
|
|
@@ -298,85 +298,85 @@ function _o(e) {
|
|
|
298
298
|
function bo(e) {
|
|
299
299
|
oi().$$.on_destroy.push(e);
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
let
|
|
301
|
+
const Ve = [], zt = [];
|
|
302
|
+
let Ye = [];
|
|
303
303
|
const dr = [], Eo = /* @__PURE__ */ Promise.resolve();
|
|
304
|
-
let
|
|
304
|
+
let vn = !1;
|
|
305
305
|
function yo() {
|
|
306
|
-
|
|
306
|
+
vn || (vn = !0, Eo.then(le));
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
|
|
308
|
+
function Ze(e) {
|
|
309
|
+
Ye.push(e);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
312
|
-
let
|
|
311
|
+
const ln = /* @__PURE__ */ new Set();
|
|
312
|
+
let ze = 0;
|
|
313
313
|
function le() {
|
|
314
|
-
if (
|
|
314
|
+
if (ze !== 0)
|
|
315
315
|
return;
|
|
316
|
-
const e =
|
|
316
|
+
const e = gt;
|
|
317
317
|
do {
|
|
318
318
|
try {
|
|
319
|
-
for (;
|
|
320
|
-
const t =
|
|
321
|
-
|
|
319
|
+
for (; ze < Ve.length; ) {
|
|
320
|
+
const t = Ve[ze];
|
|
321
|
+
ze++, pt(t), xo(t.$$);
|
|
322
322
|
}
|
|
323
323
|
} catch (t) {
|
|
324
|
-
throw
|
|
324
|
+
throw Ve.length = 0, ze = 0, t;
|
|
325
325
|
}
|
|
326
|
-
for (
|
|
327
|
-
|
|
328
|
-
for (let t = 0; t <
|
|
329
|
-
const n =
|
|
330
|
-
|
|
326
|
+
for (pt(null), Ve.length = 0, ze = 0; zt.length; )
|
|
327
|
+
zt.pop()();
|
|
328
|
+
for (let t = 0; t < Ye.length; t += 1) {
|
|
329
|
+
const n = Ye[t];
|
|
330
|
+
ln.has(n) || (ln.add(n), n());
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
} while (
|
|
332
|
+
Ye.length = 0;
|
|
333
|
+
} while (Ve.length);
|
|
334
334
|
for (; dr.length; )
|
|
335
335
|
dr.pop()();
|
|
336
|
-
|
|
336
|
+
vn = !1, ln.clear(), pt(e);
|
|
337
337
|
}
|
|
338
338
|
function xo(e) {
|
|
339
339
|
if (e.fragment !== null) {
|
|
340
|
-
e.update(),
|
|
340
|
+
e.update(), Pe(e.before_update);
|
|
341
341
|
const t = e.dirty;
|
|
342
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
342
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ze);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function vo(e) {
|
|
346
346
|
const t = [], n = [];
|
|
347
|
-
|
|
347
|
+
Ye.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ye = t;
|
|
348
348
|
}
|
|
349
|
-
let
|
|
350
|
-
function
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
})),
|
|
349
|
+
let st;
|
|
350
|
+
function To() {
|
|
351
|
+
return st || (st = Promise.resolve(), st.then(() => {
|
|
352
|
+
st = null;
|
|
353
|
+
})), st;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function cn(e, t, n) {
|
|
356
356
|
e.dispatchEvent(co(`${t ? "intro" : "outro"}${n}`));
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
let
|
|
358
|
+
const Dt = /* @__PURE__ */ new Set();
|
|
359
|
+
let Ce;
|
|
360
360
|
function si() {
|
|
361
|
-
|
|
361
|
+
Ce = {
|
|
362
362
|
r: 0,
|
|
363
363
|
c: [],
|
|
364
|
-
p:
|
|
364
|
+
p: Ce
|
|
365
365
|
// parent group
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function ai() {
|
|
369
|
-
|
|
369
|
+
Ce.r || Pe(Ce.c), Ce = Ce.p;
|
|
370
370
|
}
|
|
371
371
|
function we(e, t) {
|
|
372
|
-
e && e.i && (
|
|
372
|
+
e && e.i && (Dt.delete(e), e.i(t));
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function He(e, t, n, r) {
|
|
375
375
|
if (e && e.o) {
|
|
376
|
-
if (
|
|
376
|
+
if (Dt.has(e))
|
|
377
377
|
return;
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
Dt.add(e), Ce.c.push(() => {
|
|
379
|
+
Dt.delete(e), r && (n && e.d(1), r());
|
|
380
380
|
}), e.o(t);
|
|
381
381
|
} else
|
|
382
382
|
r && r();
|
|
@@ -406,29 +406,29 @@ function pr(e, t, n, r) {
|
|
|
406
406
|
const {
|
|
407
407
|
delay: d = 0,
|
|
408
408
|
duration: C = 300,
|
|
409
|
-
easing:
|
|
409
|
+
easing: F = qr,
|
|
410
410
|
tick: $ = de,
|
|
411
411
|
css: w
|
|
412
412
|
} = o || So, H = {
|
|
413
413
|
start: ro() + d,
|
|
414
414
|
b
|
|
415
415
|
};
|
|
416
|
-
b || (H.group =
|
|
417
|
-
e.inert, e.inert = !0)), u || c ? c = H : (w && (_(), l = mr(e, a, b, C, d,
|
|
418
|
-
if (c &&
|
|
416
|
+
b || (H.group = Ce, Ce.r += 1), "inert" in e && (b ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
417
|
+
e.inert, e.inert = !0)), u || c ? c = H : (w && (_(), l = mr(e, a, b, C, d, F, w)), b && $(0, 1), u = y(H, C), Ze(() => cn(e, b, "start")), io((R) => {
|
|
418
|
+
if (c && R > c.start && (u = y(c, C), c = null, cn(e, u.b, "start"), w && (_(), l = mr(
|
|
419
419
|
e,
|
|
420
420
|
a,
|
|
421
421
|
u.b,
|
|
422
422
|
u.duration,
|
|
423
423
|
0,
|
|
424
|
-
|
|
424
|
+
F,
|
|
425
425
|
o.css
|
|
426
426
|
))), u) {
|
|
427
|
-
if (
|
|
428
|
-
$(a = u.b, 1 - a),
|
|
429
|
-
else if (
|
|
430
|
-
const
|
|
431
|
-
a = u.a + u.d *
|
|
427
|
+
if (R >= u.end)
|
|
428
|
+
$(a = u.b, 1 - a), cn(e, u.b, "end"), c || (u.b ? _() : --u.group.r || Pe(u.group.c)), u = null;
|
|
429
|
+
else if (R >= u.start) {
|
|
430
|
+
const k = R - u.start;
|
|
431
|
+
a = u.a + u.d * F(k / u.duration), $(a, 1 - a);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return !!(u || c);
|
|
@@ -436,7 +436,7 @@ function pr(e, t, n, r) {
|
|
|
436
436
|
}
|
|
437
437
|
return {
|
|
438
438
|
run(b) {
|
|
439
|
-
|
|
439
|
+
Zt(o) ? To().then(() => {
|
|
440
440
|
o = o({ direction: b ? "in" : "out" }), M(b);
|
|
441
441
|
}) : M(b);
|
|
442
442
|
},
|
|
@@ -447,21 +447,21 @@ function pr(e, t, n, r) {
|
|
|
447
447
|
}
|
|
448
448
|
function wo(e, t, n) {
|
|
449
449
|
const { fragment: r, after_update: i } = e.$$;
|
|
450
|
-
r && r.m(t, n),
|
|
451
|
-
const o = e.$$.on_mount.map(Jr).filter(
|
|
452
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
453
|
-
}), i.forEach(
|
|
450
|
+
r && r.m(t, n), Ze(() => {
|
|
451
|
+
const o = e.$$.on_mount.map(Jr).filter(Zt);
|
|
452
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Pe(o), e.$$.on_mount = [];
|
|
453
|
+
}), i.forEach(Ze);
|
|
454
454
|
}
|
|
455
455
|
function Ao(e, t) {
|
|
456
456
|
const n = e.$$;
|
|
457
|
-
n.fragment !== null && (
|
|
457
|
+
n.fragment !== null && (vo(n.after_update), Pe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
458
458
|
}
|
|
459
459
|
function Oo(e, t) {
|
|
460
|
-
e.$$.dirty[0] === -1 && (
|
|
460
|
+
e.$$.dirty[0] === -1 && (Ve.push(e), yo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
461
461
|
}
|
|
462
462
|
function Mo(e, t, n, r, i, o, a = null, u = [-1]) {
|
|
463
|
-
const c =
|
|
464
|
-
|
|
463
|
+
const c = gt;
|
|
464
|
+
pt(e);
|
|
465
465
|
const l = e.$$ = {
|
|
466
466
|
fragment: null,
|
|
467
467
|
ctx: [],
|
|
@@ -488,7 +488,7 @@ function Mo(e, t, n, r, i, o, a = null, u = [-1]) {
|
|
|
488
488
|
if (l.ctx = n ? n(e, t.props || {}, (_, y, ...M) => {
|
|
489
489
|
const b = M.length ? M[0] : y;
|
|
490
490
|
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), f && Oo(e, _)), y;
|
|
491
|
-
}) : [], l.update(), f = !0,
|
|
491
|
+
}) : [], l.update(), f = !0, Pe(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
492
492
|
if (t.hydrate) {
|
|
493
493
|
const _ = ao(t.target);
|
|
494
494
|
l.fragment && l.fragment.l(_), _.forEach(Ee);
|
|
@@ -496,7 +496,7 @@ function Mo(e, t, n, r, i, o, a = null, u = [-1]) {
|
|
|
496
496
|
l.fragment && l.fragment.c();
|
|
497
497
|
t.intro && we(e.$$.fragment), wo(e, t.target, t.anchor), le();
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
pt(c);
|
|
500
500
|
}
|
|
501
501
|
let ui;
|
|
502
502
|
typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
@@ -543,14 +543,14 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
543
543
|
let a;
|
|
544
544
|
return {
|
|
545
545
|
c: function() {
|
|
546
|
-
a = re("slot"), o !== "default" &&
|
|
546
|
+
a = re("slot"), o !== "default" && W(a, "name", o);
|
|
547
547
|
},
|
|
548
548
|
/**
|
|
549
549
|
* @param {HTMLElement} target
|
|
550
550
|
* @param {HTMLElement} [anchor]
|
|
551
551
|
*/
|
|
552
552
|
m: function(l, f) {
|
|
553
|
-
|
|
553
|
+
Le(l, a, f);
|
|
554
554
|
},
|
|
555
555
|
d: function(l) {
|
|
556
556
|
l && Ee(a);
|
|
@@ -565,7 +565,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
565
565
|
o in r && (n[o] = [t(o)]);
|
|
566
566
|
for (const o of this.attributes) {
|
|
567
567
|
const a = this.$$g_p(o.name);
|
|
568
|
-
a in this.$$d || (this.$$d[a] =
|
|
568
|
+
a in this.$$d || (this.$$d[a] = Bt(a, o.value, this.$$p_d, "toProp"));
|
|
569
569
|
}
|
|
570
570
|
for (const o in this.$$p_d)
|
|
571
571
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -582,7 +582,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
582
582
|
this.$$r = !0;
|
|
583
583
|
for (const o in this.$$p_d)
|
|
584
584
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
585
|
-
const a =
|
|
585
|
+
const a = Bt(
|
|
586
586
|
o,
|
|
587
587
|
this.$$d[o],
|
|
588
588
|
this.$$p_d,
|
|
@@ -606,7 +606,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
606
606
|
// and setting attributes through setAttribute etc, this is helpful
|
|
607
607
|
attributeChangedCallback(t, n, r) {
|
|
608
608
|
var i;
|
|
609
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
609
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Bt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
610
610
|
}
|
|
611
611
|
disconnectedCallback() {
|
|
612
612
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -619,7 +619,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
|
|
|
619
619
|
) || t;
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
function
|
|
622
|
+
function Bt(e, t, n, r) {
|
|
623
623
|
var o;
|
|
624
624
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
625
625
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -667,7 +667,7 @@ function Co(e, t, n, r, i, o) {
|
|
|
667
667
|
},
|
|
668
668
|
set(c) {
|
|
669
669
|
var l;
|
|
670
|
-
c =
|
|
670
|
+
c = Bt(u, c, t), this.$$d[u] = c, (l = this.$$c) == null || l.$set({ [u]: c });
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}), r.forEach((u) => {
|
|
@@ -710,7 +710,7 @@ class Lo {
|
|
|
710
710
|
* @returns {() => void}
|
|
711
711
|
*/
|
|
712
712
|
$on(t, n) {
|
|
713
|
-
if (!
|
|
713
|
+
if (!Zt(n))
|
|
714
714
|
return de;
|
|
715
715
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
716
716
|
return r.push(n), () => {
|
|
@@ -737,24 +737,24 @@ function gr(e, { delay: t = 0, duration: n = 400, easing: r = qr } = {}) {
|
|
|
737
737
|
css: (o) => `opacity: ${o * i}`
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const We = [];
|
|
741
741
|
function Ho(e, t) {
|
|
742
742
|
return {
|
|
743
|
-
subscribe:
|
|
743
|
+
subscribe: Et(e, t).subscribe
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function Et(e, t = de) {
|
|
747
747
|
let n;
|
|
748
748
|
const r = /* @__PURE__ */ new Set();
|
|
749
749
|
function i(u) {
|
|
750
750
|
if (Qr(e, u) && (e = u, n)) {
|
|
751
|
-
const c = !
|
|
751
|
+
const c = !We.length;
|
|
752
752
|
for (const l of r)
|
|
753
|
-
l[1](),
|
|
753
|
+
l[1](), We.push(l, e);
|
|
754
754
|
if (c) {
|
|
755
|
-
for (let l = 0; l <
|
|
756
|
-
|
|
757
|
-
|
|
755
|
+
for (let l = 0; l < We.length; l += 2)
|
|
756
|
+
We[l][0](We[l + 1]);
|
|
757
|
+
We.length = 0;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
}
|
|
@@ -769,7 +769,7 @@ function bt(e, t = de) {
|
|
|
769
769
|
}
|
|
770
770
|
return { set: i, update: o, subscribe: a };
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function tt(e, t, n) {
|
|
773
773
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
774
774
|
if (!i.every(Boolean))
|
|
775
775
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -783,7 +783,7 @@ function et(e, t, n) {
|
|
|
783
783
|
return;
|
|
784
784
|
_();
|
|
785
785
|
const b = t(r ? l[0] : l, a, u);
|
|
786
|
-
o ? a(b) : _ =
|
|
786
|
+
o ? a(b) : _ = Zt(b) ? b : de;
|
|
787
787
|
}, M = i.map(
|
|
788
788
|
(b, d) => Kr(
|
|
789
789
|
b,
|
|
@@ -796,21 +796,21 @@ function et(e, t, n) {
|
|
|
796
796
|
)
|
|
797
797
|
);
|
|
798
798
|
return c = !0, y(), function() {
|
|
799
|
-
|
|
799
|
+
Pe(M), _(), c = !1;
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
var li = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
804
|
-
function
|
|
804
|
+
function Rn(e) {
|
|
805
805
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
806
806
|
}
|
|
807
807
|
var Io = function(t) {
|
|
808
|
-
return
|
|
808
|
+
return Po(t) && !Ro(t);
|
|
809
809
|
};
|
|
810
|
-
function
|
|
810
|
+
function Po(e) {
|
|
811
811
|
return !!e && typeof e == "object";
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Ro(e) {
|
|
814
814
|
var t = Object.prototype.toString.call(e);
|
|
815
815
|
return t === "[object RegExp]" || t === "[object Date]" || $o(e);
|
|
816
816
|
}
|
|
@@ -821,19 +821,19 @@ function $o(e) {
|
|
|
821
821
|
function Uo(e) {
|
|
822
822
|
return Array.isArray(e) ? [] : {};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
824
|
+
function _t(e, t) {
|
|
825
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? qe(Uo(e), e, t) : e;
|
|
826
826
|
}
|
|
827
827
|
function ko(e, t, n) {
|
|
828
828
|
return e.concat(t).map(function(r) {
|
|
829
|
-
return
|
|
829
|
+
return _t(r, n);
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
function Fo(e, t) {
|
|
833
833
|
if (!t.customMerge)
|
|
834
|
-
return
|
|
834
|
+
return qe;
|
|
835
835
|
var n = t.customMerge(e);
|
|
836
|
-
return typeof n == "function" ? n :
|
|
836
|
+
return typeof n == "function" ? n : qe;
|
|
837
837
|
}
|
|
838
838
|
function Go(e) {
|
|
839
839
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -856,65 +856,51 @@ function jo(e, t) {
|
|
|
856
856
|
function zo(e, t, n) {
|
|
857
857
|
var r = {};
|
|
858
858
|
return n.isMergeableObject(e) && _r(e).forEach(function(i) {
|
|
859
|
-
r[i] =
|
|
859
|
+
r[i] = _t(e[i], n);
|
|
860
860
|
}), _r(t).forEach(function(i) {
|
|
861
|
-
jo(e, i) || (ci(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fo(i, n)(e[i], t[i], n) : r[i] =
|
|
861
|
+
jo(e, i) || (ci(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fo(i, n)(e[i], t[i], n) : r[i] = _t(t[i], n));
|
|
862
862
|
}), r;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || ko, n.isMergeableObject = n.isMergeableObject || Io, n.cloneUnlessOtherwiseSpecified =
|
|
864
|
+
function qe(e, t, n) {
|
|
865
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || ko, n.isMergeableObject = n.isMergeableObject || Io, n.cloneUnlessOtherwiseSpecified = _t;
|
|
866
866
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
867
|
-
return o ? r ? n.arrayMerge(e, t, n) : zo(e, t, n) :
|
|
867
|
+
return o ? r ? n.arrayMerge(e, t, n) : zo(e, t, n) : _t(t, n);
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
qe.all = function(t, n) {
|
|
870
870
|
if (!Array.isArray(t))
|
|
871
871
|
throw new Error("first argument should be an array");
|
|
872
872
|
return t.reduce(function(r, i) {
|
|
873
|
-
return
|
|
873
|
+
return qe(r, i, n);
|
|
874
874
|
}, {});
|
|
875
875
|
};
|
|
876
|
-
var Wo =
|
|
877
|
-
const Xo = /* @__PURE__ */
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
882
|
-
purpose with or without fee is hereby granted.
|
|
883
|
-
|
|
884
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
885
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
886
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
887
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
888
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
889
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
890
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
891
|
-
***************************************************************************** */
|
|
892
|
-
var xn = function(e, t) {
|
|
893
|
-
return xn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
876
|
+
var Wo = qe, Vo = Wo;
|
|
877
|
+
const Xo = /* @__PURE__ */ Rn(Vo);
|
|
878
|
+
var Tn = function(e, t) {
|
|
879
|
+
return Tn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
894
880
|
n.__proto__ = r;
|
|
895
881
|
} || function(n, r) {
|
|
896
882
|
for (var i in r)
|
|
897
883
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
898
|
-
},
|
|
884
|
+
}, Tn(e, t);
|
|
899
885
|
};
|
|
900
|
-
function
|
|
886
|
+
function Jt(e, t) {
|
|
901
887
|
if (typeof t != "function" && t !== null)
|
|
902
888
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
903
|
-
|
|
889
|
+
Tn(e, t);
|
|
904
890
|
function n() {
|
|
905
891
|
this.constructor = e;
|
|
906
892
|
}
|
|
907
893
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
908
894
|
}
|
|
909
|
-
var
|
|
910
|
-
return
|
|
895
|
+
var Ae = function() {
|
|
896
|
+
return Ae = Object.assign || function(t) {
|
|
911
897
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
912
898
|
n = arguments[r];
|
|
913
899
|
for (var o in n)
|
|
914
900
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
915
901
|
}
|
|
916
902
|
return t;
|
|
917
|
-
},
|
|
903
|
+
}, Ae.apply(this, arguments);
|
|
918
904
|
};
|
|
919
905
|
function Yo(e, t) {
|
|
920
906
|
var n = {};
|
|
@@ -925,14 +911,14 @@ function Yo(e, t) {
|
|
|
925
911
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
926
912
|
return n;
|
|
927
913
|
}
|
|
928
|
-
function
|
|
929
|
-
if (arguments.length === 2)
|
|
914
|
+
function fn(e, t, n) {
|
|
915
|
+
if (n || arguments.length === 2)
|
|
930
916
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
931
917
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
932
|
-
return e.concat(o || t);
|
|
918
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
933
919
|
}
|
|
934
|
-
function
|
|
935
|
-
var n = t && t.cache ? t.cache :
|
|
920
|
+
function hn(e, t) {
|
|
921
|
+
var n = t && t.cache ? t.cache : ts, r = t && t.serializer ? t.serializer : Ko, i = t && t.strategy ? t.strategy : Jo;
|
|
936
922
|
return i(e, {
|
|
937
923
|
cache: n,
|
|
938
924
|
serializer: r
|
|
@@ -941,95 +927,103 @@ function cn(e, t) {
|
|
|
941
927
|
function Zo(e) {
|
|
942
928
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
943
929
|
}
|
|
944
|
-
function
|
|
930
|
+
function qo(e, t, n, r) {
|
|
945
931
|
var i = Zo(r) ? r : n(r), o = t.get(i);
|
|
946
932
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
947
933
|
}
|
|
948
|
-
function
|
|
934
|
+
function fi(e, t, n) {
|
|
949
935
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
950
936
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
951
937
|
}
|
|
952
|
-
function
|
|
938
|
+
function hi(e, t, n, r, i) {
|
|
953
939
|
return n.bind(t, e, r, i);
|
|
954
940
|
}
|
|
955
|
-
function qo(e, t) {
|
|
956
|
-
var n = e.length === 1 ? fi : hi;
|
|
957
|
-
return Rn(e, this, n, t.cache.create(), t.serializer);
|
|
958
|
-
}
|
|
959
941
|
function Jo(e, t) {
|
|
960
|
-
|
|
942
|
+
var n = e.length === 1 ? qo : fi;
|
|
943
|
+
return hi(e, this, n, t.cache.create(), t.serializer);
|
|
961
944
|
}
|
|
962
945
|
function Qo(e, t) {
|
|
963
|
-
return
|
|
946
|
+
return hi(e, this, fi, t.cache.create(), t.serializer);
|
|
964
947
|
}
|
|
965
948
|
var Ko = function() {
|
|
966
949
|
return JSON.stringify(arguments);
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
950
|
+
}, es = (
|
|
951
|
+
/** @class */
|
|
952
|
+
function() {
|
|
953
|
+
function e() {
|
|
954
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
955
|
+
}
|
|
956
|
+
return e.prototype.get = function(t) {
|
|
957
|
+
return this.cache[t];
|
|
958
|
+
}, e.prototype.set = function(t, n) {
|
|
959
|
+
this.cache[t] = n;
|
|
960
|
+
}, e;
|
|
961
|
+
}()
|
|
962
|
+
), ts = {
|
|
978
963
|
create: function() {
|
|
979
|
-
return new
|
|
964
|
+
return new es();
|
|
980
965
|
}
|
|
981
|
-
},
|
|
982
|
-
variadic:
|
|
983
|
-
|
|
984
|
-
|
|
966
|
+
}, mn = {
|
|
967
|
+
variadic: Qo
|
|
968
|
+
}, Wt = function() {
|
|
969
|
+
return Wt = Object.assign || function(t) {
|
|
970
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
971
|
+
n = arguments[r];
|
|
972
|
+
for (var o in n)
|
|
973
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
974
|
+
}
|
|
975
|
+
return t;
|
|
976
|
+
}, Wt.apply(this, arguments);
|
|
977
|
+
};
|
|
978
|
+
var D;
|
|
985
979
|
(function(e) {
|
|
986
980
|
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";
|
|
987
981
|
})(D || (D = {}));
|
|
988
|
-
var
|
|
982
|
+
var X;
|
|
989
983
|
(function(e) {
|
|
990
984
|
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";
|
|
991
|
-
})(
|
|
992
|
-
var
|
|
985
|
+
})(X || (X = {}));
|
|
986
|
+
var Je;
|
|
993
987
|
(function(e) {
|
|
994
988
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
995
|
-
})(
|
|
989
|
+
})(Je || (Je = {}));
|
|
996
990
|
function br(e) {
|
|
997
|
-
return e.type ===
|
|
991
|
+
return e.type === X.literal;
|
|
998
992
|
}
|
|
999
|
-
function
|
|
1000
|
-
return e.type ===
|
|
993
|
+
function ns(e) {
|
|
994
|
+
return e.type === X.argument;
|
|
1001
995
|
}
|
|
1002
996
|
function mi(e) {
|
|
1003
|
-
return e.type ===
|
|
997
|
+
return e.type === X.number;
|
|
1004
998
|
}
|
|
1005
999
|
function di(e) {
|
|
1006
|
-
return e.type ===
|
|
1000
|
+
return e.type === X.date;
|
|
1007
1001
|
}
|
|
1008
1002
|
function pi(e) {
|
|
1009
|
-
return e.type ===
|
|
1003
|
+
return e.type === X.time;
|
|
1010
1004
|
}
|
|
1011
1005
|
function gi(e) {
|
|
1012
|
-
return e.type ===
|
|
1006
|
+
return e.type === X.select;
|
|
1013
1007
|
}
|
|
1014
1008
|
function _i(e) {
|
|
1015
|
-
return e.type ===
|
|
1009
|
+
return e.type === X.plural;
|
|
1016
1010
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return e.type ===
|
|
1011
|
+
function rs(e) {
|
|
1012
|
+
return e.type === X.pound;
|
|
1019
1013
|
}
|
|
1020
1014
|
function bi(e) {
|
|
1021
|
-
return e.type ===
|
|
1015
|
+
return e.type === X.tag;
|
|
1022
1016
|
}
|
|
1023
1017
|
function Ei(e) {
|
|
1024
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1018
|
+
return !!(e && typeof e == "object" && e.type === Je.number);
|
|
1025
1019
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1020
|
+
function Sn(e) {
|
|
1021
|
+
return !!(e && typeof e == "object" && e.type === Je.dateTime);
|
|
1028
1022
|
}
|
|
1029
|
-
var yi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1030
|
-
function
|
|
1023
|
+
var yi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, is = /(?:[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;
|
|
1024
|
+
function os(e) {
|
|
1031
1025
|
var t = {};
|
|
1032
|
-
return e.replace(
|
|
1026
|
+
return e.replace(is, function(n) {
|
|
1033
1027
|
var r = n.length;
|
|
1034
1028
|
switch (n[0]) {
|
|
1035
1029
|
case "G":
|
|
@@ -1118,11 +1112,21 @@ function is(e) {
|
|
|
1118
1112
|
return "";
|
|
1119
1113
|
}), t;
|
|
1120
1114
|
}
|
|
1121
|
-
var
|
|
1122
|
-
function
|
|
1115
|
+
var Z = function() {
|
|
1116
|
+
return Z = Object.assign || function(t) {
|
|
1117
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1118
|
+
n = arguments[r];
|
|
1119
|
+
for (var o in n)
|
|
1120
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1121
|
+
}
|
|
1122
|
+
return t;
|
|
1123
|
+
}, Z.apply(this, arguments);
|
|
1124
|
+
};
|
|
1125
|
+
var ss = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1126
|
+
function as(e) {
|
|
1123
1127
|
if (e.length === 0)
|
|
1124
1128
|
throw new Error("Number skeleton cannot be empty");
|
|
1125
|
-
for (var t = e.split(
|
|
1129
|
+
for (var t = e.split(ss).filter(function(y) {
|
|
1126
1130
|
return y.length > 0;
|
|
1127
1131
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1128
1132
|
var o = i[r], a = o.split("/");
|
|
@@ -1137,17 +1141,17 @@ function ss(e) {
|
|
|
1137
1141
|
}
|
|
1138
1142
|
return n;
|
|
1139
1143
|
}
|
|
1140
|
-
function
|
|
1144
|
+
function us(e) {
|
|
1141
1145
|
return e.replace(/^(.*?)-/, "");
|
|
1142
1146
|
}
|
|
1143
|
-
var Er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1147
|
+
var Er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xi = /^(@+)?(\+|#+)?[rs]?$/g, ls = /(\*)(0+)|(#+)(0+)|(0+)/g, vi = /^(0+)$/;
|
|
1144
1148
|
function yr(e) {
|
|
1145
1149
|
var t = {};
|
|
1146
1150
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xi, function(n, r, i) {
|
|
1147
1151
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1148
1152
|
}), t;
|
|
1149
1153
|
}
|
|
1150
|
-
function
|
|
1154
|
+
function Ti(e) {
|
|
1151
1155
|
switch (e) {
|
|
1152
1156
|
case "sign-auto":
|
|
1153
1157
|
return {
|
|
@@ -1187,7 +1191,7 @@ function vi(e) {
|
|
|
1187
1191
|
};
|
|
1188
1192
|
}
|
|
1189
1193
|
}
|
|
1190
|
-
function
|
|
1194
|
+
function cs(e) {
|
|
1191
1195
|
var t;
|
|
1192
1196
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1193
1197
|
notation: "engineering"
|
|
@@ -1195,17 +1199,17 @@ function ls(e) {
|
|
|
1195
1199
|
notation: "scientific"
|
|
1196
1200
|
}, e = e.slice(1)), t) {
|
|
1197
1201
|
var n = e.slice(0, 2);
|
|
1198
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1202
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vi.test(e))
|
|
1199
1203
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1200
1204
|
t.minimumIntegerDigits = e.length;
|
|
1201
1205
|
}
|
|
1202
1206
|
return t;
|
|
1203
1207
|
}
|
|
1204
1208
|
function xr(e) {
|
|
1205
|
-
var t = {}, n =
|
|
1209
|
+
var t = {}, n = Ti(e);
|
|
1206
1210
|
return n || t;
|
|
1207
1211
|
}
|
|
1208
|
-
function
|
|
1212
|
+
function fs(e) {
|
|
1209
1213
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1210
1214
|
var i = r[n];
|
|
1211
1215
|
switch (i.stem) {
|
|
@@ -1229,7 +1233,7 @@ function cs(e) {
|
|
|
1229
1233
|
continue;
|
|
1230
1234
|
case "measure-unit":
|
|
1231
1235
|
case "unit":
|
|
1232
|
-
t.style = "unit", t.unit =
|
|
1236
|
+
t.style = "unit", t.unit = us(i.options[0]);
|
|
1233
1237
|
continue;
|
|
1234
1238
|
case "compact-short":
|
|
1235
1239
|
case "K":
|
|
@@ -1240,13 +1244,13 @@ function cs(e) {
|
|
|
1240
1244
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1241
1245
|
continue;
|
|
1242
1246
|
case "scientific":
|
|
1243
|
-
t =
|
|
1244
|
-
return
|
|
1247
|
+
t = Z(Z(Z({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1248
|
+
return Z(Z({}, c), xr(l));
|
|
1245
1249
|
}, {}));
|
|
1246
1250
|
continue;
|
|
1247
1251
|
case "engineering":
|
|
1248
|
-
t =
|
|
1249
|
-
return
|
|
1252
|
+
t = Z(Z(Z({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1253
|
+
return Z(Z({}, c), xr(l));
|
|
1250
1254
|
}, {}));
|
|
1251
1255
|
continue;
|
|
1252
1256
|
case "notation-simple":
|
|
@@ -1291,7 +1295,7 @@ function cs(e) {
|
|
|
1291
1295
|
case "integer-width":
|
|
1292
1296
|
if (i.options.length > 1)
|
|
1293
1297
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1294
|
-
i.options[0].replace(
|
|
1298
|
+
i.options[0].replace(ls, function(c, l, f, _, y, M) {
|
|
1295
1299
|
if (l)
|
|
1296
1300
|
t.minimumIntegerDigits = f.length;
|
|
1297
1301
|
else {
|
|
@@ -1304,7 +1308,7 @@ function cs(e) {
|
|
|
1304
1308
|
});
|
|
1305
1309
|
continue;
|
|
1306
1310
|
}
|
|
1307
|
-
if (
|
|
1311
|
+
if (vi.test(i.stem)) {
|
|
1308
1312
|
t.minimumIntegerDigits = i.stem.length;
|
|
1309
1313
|
continue;
|
|
1310
1314
|
}
|
|
@@ -1315,21 +1319,21 @@ function cs(e) {
|
|
|
1315
1319
|
return f === "*" ? t.minimumFractionDigits = l.length : _ && _[0] === "#" ? t.maximumFractionDigits = _.length : y && M ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + M.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1316
1320
|
});
|
|
1317
1321
|
var o = i.options[0];
|
|
1318
|
-
o === "w" ? t =
|
|
1322
|
+
o === "w" ? t = Z(Z({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = Z(Z({}, t), yr(o)));
|
|
1319
1323
|
continue;
|
|
1320
1324
|
}
|
|
1321
1325
|
if (xi.test(i.stem)) {
|
|
1322
|
-
t =
|
|
1326
|
+
t = Z(Z({}, t), yr(i.stem));
|
|
1323
1327
|
continue;
|
|
1324
1328
|
}
|
|
1325
|
-
var a =
|
|
1326
|
-
a && (t =
|
|
1327
|
-
var u =
|
|
1328
|
-
u && (t =
|
|
1329
|
+
var a = Ti(i.stem);
|
|
1330
|
+
a && (t = Z(Z({}, t), a));
|
|
1331
|
+
var u = cs(i.stem);
|
|
1332
|
+
u && (t = Z(Z({}, t), u));
|
|
1329
1333
|
}
|
|
1330
1334
|
return t;
|
|
1331
1335
|
}
|
|
1332
|
-
var
|
|
1336
|
+
var Ct = {
|
|
1333
1337
|
"001": [
|
|
1334
1338
|
"H",
|
|
1335
1339
|
"h"
|
|
@@ -2744,13 +2748,13 @@ var Mt = {
|
|
|
2744
2748
|
"h"
|
|
2745
2749
|
]
|
|
2746
2750
|
};
|
|
2747
|
-
function
|
|
2751
|
+
function hs(e, t) {
|
|
2748
2752
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2749
2753
|
var i = e.charAt(r);
|
|
2750
2754
|
if (i === "j") {
|
|
2751
2755
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2752
2756
|
o++, r++;
|
|
2753
|
-
var a = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), c = "a", l =
|
|
2757
|
+
var a = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = ms(t);
|
|
2754
2758
|
for ((l == "H" || l == "k") && (u = 0); u-- > 0; )
|
|
2755
2759
|
n += c;
|
|
2756
2760
|
for (; a-- > 0; )
|
|
@@ -2760,7 +2764,7 @@ function fs(e, t) {
|
|
|
2760
2764
|
}
|
|
2761
2765
|
return n;
|
|
2762
2766
|
}
|
|
2763
|
-
function
|
|
2767
|
+
function ms(e) {
|
|
2764
2768
|
var t = e.hourCycle;
|
|
2765
2769
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2766
2770
|
e.hourCycles && // @ts-ignore
|
|
@@ -2779,23 +2783,23 @@ function hs(e) {
|
|
|
2779
2783
|
}
|
|
2780
2784
|
var n = e.language, r;
|
|
2781
2785
|
n !== "root" && (r = e.maximize().region);
|
|
2782
|
-
var i =
|
|
2786
|
+
var i = Ct[r || ""] || Ct[n || ""] || Ct["".concat(n, "-001")] || Ct["001"];
|
|
2783
2787
|
return i[0];
|
|
2784
2788
|
}
|
|
2785
|
-
var
|
|
2789
|
+
var dn, ds = new RegExp("^".concat(yi.source, "*")), ps = new RegExp("".concat(yi.source, "*$"));
|
|
2786
2790
|
function B(e, t) {
|
|
2787
2791
|
return { start: e, end: t };
|
|
2788
2792
|
}
|
|
2789
|
-
var
|
|
2793
|
+
var gs = !!String.prototype.startsWith && "_a".startsWith("a", 1), _s = !!String.fromCodePoint, bs = !!Object.fromEntries, Es = !!String.prototype.codePointAt, ys = !!String.prototype.trimStart, xs = !!String.prototype.trimEnd, vs = !!Number.isSafeInteger, Ts = vs ? Number.isSafeInteger : function(e) {
|
|
2790
2794
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2791
|
-
},
|
|
2795
|
+
}, wn = !0;
|
|
2792
2796
|
try {
|
|
2793
|
-
var
|
|
2794
|
-
|
|
2797
|
+
var Ss = wi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2798
|
+
wn = ((dn = Ss.exec("a")) === null || dn === void 0 ? void 0 : dn[0]) === "a";
|
|
2795
2799
|
} catch (e) {
|
|
2796
|
-
|
|
2800
|
+
wn = !1;
|
|
2797
2801
|
}
|
|
2798
|
-
var
|
|
2802
|
+
var vr = gs ? (
|
|
2799
2803
|
// Native
|
|
2800
2804
|
function(t, n, r) {
|
|
2801
2805
|
return t.startsWith(n, r);
|
|
@@ -2805,7 +2809,7 @@ var Tr = ps ? (
|
|
|
2805
2809
|
function(t, n, r) {
|
|
2806
2810
|
return t.slice(r, r + n.length) === n;
|
|
2807
2811
|
}
|
|
2808
|
-
),
|
|
2812
|
+
), An = _s ? String.fromCodePoint : (
|
|
2809
2813
|
// IE11
|
|
2810
2814
|
function() {
|
|
2811
2815
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2817,9 +2821,9 @@ var Tr = ps ? (
|
|
|
2817
2821
|
}
|
|
2818
2822
|
return r;
|
|
2819
2823
|
}
|
|
2820
|
-
),
|
|
2824
|
+
), Tr = (
|
|
2821
2825
|
// native
|
|
2822
|
-
|
|
2826
|
+
bs ? Object.fromEntries : (
|
|
2823
2827
|
// Ponyfill
|
|
2824
2828
|
function(t) {
|
|
2825
2829
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2829,7 +2833,7 @@ var Tr = ps ? (
|
|
|
2829
2833
|
return n;
|
|
2830
2834
|
}
|
|
2831
2835
|
)
|
|
2832
|
-
), Si =
|
|
2836
|
+
), Si = Es ? (
|
|
2833
2837
|
// Native
|
|
2834
2838
|
function(t, n) {
|
|
2835
2839
|
return t.codePointAt(n);
|
|
@@ -2843,7 +2847,7 @@ var Tr = ps ? (
|
|
|
2843
2847
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2844
2848
|
}
|
|
2845
2849
|
}
|
|
2846
|
-
),
|
|
2850
|
+
), ws = ys ? (
|
|
2847
2851
|
// Native
|
|
2848
2852
|
function(t) {
|
|
2849
2853
|
return t.trimStart();
|
|
@@ -2851,9 +2855,9 @@ var Tr = ps ? (
|
|
|
2851
2855
|
) : (
|
|
2852
2856
|
// Ponyfill
|
|
2853
2857
|
function(t) {
|
|
2854
|
-
return t.replace(
|
|
2858
|
+
return t.replace(ds, "");
|
|
2855
2859
|
}
|
|
2856
|
-
),
|
|
2860
|
+
), As = xs ? (
|
|
2857
2861
|
// Native
|
|
2858
2862
|
function(t) {
|
|
2859
2863
|
return t.trimEnd();
|
|
@@ -2861,32 +2865,32 @@ var Tr = ps ? (
|
|
|
2861
2865
|
) : (
|
|
2862
2866
|
// Ponyfill
|
|
2863
2867
|
function(t) {
|
|
2864
|
-
return t.replace(
|
|
2868
|
+
return t.replace(ps, "");
|
|
2865
2869
|
}
|
|
2866
2870
|
);
|
|
2867
2871
|
function wi(e, t) {
|
|
2868
2872
|
return new RegExp(e, t);
|
|
2869
2873
|
}
|
|
2870
|
-
var
|
|
2871
|
-
if (
|
|
2874
|
+
var On;
|
|
2875
|
+
if (wn) {
|
|
2872
2876
|
var Sr = wi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2873
|
-
|
|
2877
|
+
On = function(t, n) {
|
|
2874
2878
|
var r;
|
|
2875
2879
|
Sr.lastIndex = n;
|
|
2876
2880
|
var i = Sr.exec(t);
|
|
2877
2881
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2878
2882
|
};
|
|
2879
2883
|
} else
|
|
2880
|
-
|
|
2884
|
+
On = function(t, n) {
|
|
2881
2885
|
for (var r = []; ; ) {
|
|
2882
2886
|
var i = Si(t, n);
|
|
2883
|
-
if (i === void 0 || Ai(i) ||
|
|
2887
|
+
if (i === void 0 || Ai(i) || Ls(i))
|
|
2884
2888
|
break;
|
|
2885
2889
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2886
2890
|
}
|
|
2887
|
-
return
|
|
2891
|
+
return An.apply(void 0, r);
|
|
2888
2892
|
};
|
|
2889
|
-
var
|
|
2893
|
+
var Os = (
|
|
2890
2894
|
/** @class */
|
|
2891
2895
|
function() {
|
|
2892
2896
|
function e(t, n) {
|
|
@@ -2910,14 +2914,14 @@ var As = (
|
|
|
2910
2914
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2911
2915
|
var u = this.clonePosition();
|
|
2912
2916
|
this.bump(), i.push({
|
|
2913
|
-
type:
|
|
2917
|
+
type: X.pound,
|
|
2914
2918
|
location: B(u, this.clonePosition())
|
|
2915
2919
|
});
|
|
2916
2920
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2917
2921
|
if (r)
|
|
2918
2922
|
break;
|
|
2919
2923
|
return this.error(D.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
|
|
2920
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2924
|
+
} else if (o === 60 && !this.ignoreTag && Mn(this.peek() || 0)) {
|
|
2921
2925
|
var a = this.parseTag(t, n);
|
|
2922
2926
|
if (a.err)
|
|
2923
2927
|
return a;
|
|
@@ -2938,7 +2942,7 @@ var As = (
|
|
|
2938
2942
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2939
2943
|
return {
|
|
2940
2944
|
val: {
|
|
2941
|
-
type:
|
|
2945
|
+
type: X.literal,
|
|
2942
2946
|
value: "<".concat(i, "/>"),
|
|
2943
2947
|
location: B(r, this.clonePosition())
|
|
2944
2948
|
},
|
|
@@ -2950,12 +2954,12 @@ var As = (
|
|
|
2950
2954
|
return o;
|
|
2951
2955
|
var a = o.val, u = this.clonePosition();
|
|
2952
2956
|
if (this.bumpIf("</")) {
|
|
2953
|
-
if (this.isEOF() || !
|
|
2957
|
+
if (this.isEOF() || !Mn(this.char()))
|
|
2954
2958
|
return this.error(D.INVALID_TAG, B(u, this.clonePosition()));
|
|
2955
2959
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
2956
2960
|
return i !== l ? this.error(D.UNMATCHED_CLOSING_TAG, B(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2957
2961
|
val: {
|
|
2958
|
-
type:
|
|
2962
|
+
type: X.tag,
|
|
2959
2963
|
value: i,
|
|
2960
2964
|
children: a,
|
|
2961
2965
|
location: B(r, this.clonePosition())
|
|
@@ -2968,7 +2972,7 @@ var As = (
|
|
|
2968
2972
|
return this.error(D.INVALID_TAG, B(r, this.clonePosition()));
|
|
2969
2973
|
}, e.prototype.parseTagName = function() {
|
|
2970
2974
|
var t = this.offset();
|
|
2971
|
-
for (this.bump(); !this.isEOF() &&
|
|
2975
|
+
for (this.bump(); !this.isEOF() && Cs(this.char()); )
|
|
2972
2976
|
this.bump();
|
|
2973
2977
|
return this.message.slice(t, this.offset());
|
|
2974
2978
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2992,12 +2996,12 @@ var As = (
|
|
|
2992
2996
|
}
|
|
2993
2997
|
var c = B(r, this.clonePosition());
|
|
2994
2998
|
return {
|
|
2995
|
-
val: { type:
|
|
2999
|
+
val: { type: X.literal, value: i, location: c },
|
|
2996
3000
|
err: null
|
|
2997
3001
|
};
|
|
2998
3002
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2999
3003
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3000
|
-
!
|
|
3004
|
+
!Ms(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3001
3005
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3002
3006
|
if (this.isEOF() || this.char() !== 39)
|
|
3003
3007
|
return null;
|
|
@@ -3031,12 +3035,12 @@ var As = (
|
|
|
3031
3035
|
n.push(r);
|
|
3032
3036
|
this.bump();
|
|
3033
3037
|
}
|
|
3034
|
-
return
|
|
3038
|
+
return An.apply(void 0, n);
|
|
3035
3039
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3036
3040
|
if (this.isEOF())
|
|
3037
3041
|
return null;
|
|
3038
3042
|
var r = this.char();
|
|
3039
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3043
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), An(r));
|
|
3040
3044
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3041
3045
|
var r = this.clonePosition();
|
|
3042
3046
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3052,7 +3056,7 @@ var As = (
|
|
|
3052
3056
|
case 125:
|
|
3053
3057
|
return this.bump(), {
|
|
3054
3058
|
val: {
|
|
3055
|
-
type:
|
|
3059
|
+
type: X.argument,
|
|
3056
3060
|
// value does not include the opening and closing braces.
|
|
3057
3061
|
value: i,
|
|
3058
3062
|
location: B(r, this.clonePosition())
|
|
@@ -3065,7 +3069,7 @@ var As = (
|
|
|
3065
3069
|
return this.error(D.MALFORMED_ARGUMENT, B(r, this.clonePosition()));
|
|
3066
3070
|
}
|
|
3067
3071
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3068
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3072
|
+
var t = this.clonePosition(), n = this.offset(), r = On(this.message, n), i = n + r.length;
|
|
3069
3073
|
this.bumpTo(i);
|
|
3070
3074
|
var o = this.clonePosition(), a = B(t, o);
|
|
3071
3075
|
return { value: r, location: a };
|
|
@@ -3084,7 +3088,7 @@ var As = (
|
|
|
3084
3088
|
var f = this.clonePosition(), _ = this.parseSimpleArgStyleIfPossible();
|
|
3085
3089
|
if (_.err)
|
|
3086
3090
|
return _;
|
|
3087
|
-
var y =
|
|
3091
|
+
var y = As(_.val);
|
|
3088
3092
|
if (y.length === 0)
|
|
3089
3093
|
return this.error(D.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
|
|
3090
3094
|
var M = B(f, this.clonePosition());
|
|
@@ -3094,25 +3098,25 @@ var As = (
|
|
|
3094
3098
|
if (b.err)
|
|
3095
3099
|
return b;
|
|
3096
3100
|
var d = B(i, this.clonePosition());
|
|
3097
|
-
if (l &&
|
|
3098
|
-
var C =
|
|
3101
|
+
if (l && vr(l == null ? void 0 : l.style, "::", 0)) {
|
|
3102
|
+
var C = ws(l.style.slice(2));
|
|
3099
3103
|
if (u === "number") {
|
|
3100
3104
|
var _ = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3101
3105
|
return _.err ? _ : {
|
|
3102
|
-
val: { type:
|
|
3106
|
+
val: { type: X.number, value: r, location: d, style: _.val },
|
|
3103
3107
|
err: null
|
|
3104
3108
|
};
|
|
3105
3109
|
} else {
|
|
3106
3110
|
if (C.length === 0)
|
|
3107
3111
|
return this.error(D.EXPECT_DATE_TIME_SKELETON, d);
|
|
3108
|
-
var
|
|
3109
|
-
this.locale && (
|
|
3112
|
+
var F = C;
|
|
3113
|
+
this.locale && (F = hs(C, this.locale));
|
|
3110
3114
|
var y = {
|
|
3111
|
-
type:
|
|
3112
|
-
pattern:
|
|
3115
|
+
type: Je.dateTime,
|
|
3116
|
+
pattern: F,
|
|
3113
3117
|
location: l.styleLocation,
|
|
3114
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3115
|
-
}, $ = u === "date" ?
|
|
3118
|
+
parsedOptions: this.shouldParseSkeletons ? os(F) : {}
|
|
3119
|
+
}, $ = u === "date" ? X.date : X.time;
|
|
3116
3120
|
return {
|
|
3117
3121
|
val: { type: $, value: r, location: d, style: y },
|
|
3118
3122
|
err: null
|
|
@@ -3121,7 +3125,7 @@ var As = (
|
|
|
3121
3125
|
}
|
|
3122
3126
|
return {
|
|
3123
3127
|
val: {
|
|
3124
|
-
type: u === "number" ?
|
|
3128
|
+
type: u === "number" ? X.number : u === "date" ? X.date : X.time,
|
|
3125
3129
|
value: r,
|
|
3126
3130
|
location: d,
|
|
3127
3131
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -3134,9 +3138,9 @@ var As = (
|
|
|
3134
3138
|
case "select": {
|
|
3135
3139
|
var w = this.clonePosition();
|
|
3136
3140
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3137
|
-
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(w,
|
|
3141
|
+
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(w, Wt({}, w)));
|
|
3138
3142
|
this.bumpSpace();
|
|
3139
|
-
var H = this.parseIdentifierIfPossible(),
|
|
3143
|
+
var H = this.parseIdentifierIfPossible(), R = 0;
|
|
3140
3144
|
if (u !== "select" && H.value === "offset") {
|
|
3141
3145
|
if (!this.bumpIf(":"))
|
|
3142
3146
|
return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B(this.clonePosition(), this.clonePosition()));
|
|
@@ -3144,31 +3148,31 @@ var As = (
|
|
|
3144
3148
|
var _ = this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3145
3149
|
if (_.err)
|
|
3146
3150
|
return _;
|
|
3147
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
3151
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), R = _.val;
|
|
3148
3152
|
}
|
|
3149
|
-
var
|
|
3150
|
-
if (
|
|
3151
|
-
return
|
|
3153
|
+
var k = this.tryParsePluralOrSelectOptions(t, u, n, H);
|
|
3154
|
+
if (k.err)
|
|
3155
|
+
return k;
|
|
3152
3156
|
var b = this.tryParseArgumentClose(i);
|
|
3153
3157
|
if (b.err)
|
|
3154
3158
|
return b;
|
|
3155
|
-
var
|
|
3159
|
+
var Y = B(i, this.clonePosition());
|
|
3156
3160
|
return u === "select" ? {
|
|
3157
3161
|
val: {
|
|
3158
|
-
type:
|
|
3162
|
+
type: X.select,
|
|
3159
3163
|
value: r,
|
|
3160
|
-
options:
|
|
3161
|
-
location:
|
|
3164
|
+
options: Tr(k.val),
|
|
3165
|
+
location: Y
|
|
3162
3166
|
},
|
|
3163
3167
|
err: null
|
|
3164
3168
|
} : {
|
|
3165
3169
|
val: {
|
|
3166
|
-
type:
|
|
3170
|
+
type: X.plural,
|
|
3167
3171
|
value: r,
|
|
3168
|
-
options:
|
|
3169
|
-
offset:
|
|
3172
|
+
options: Tr(k.val),
|
|
3173
|
+
offset: R,
|
|
3170
3174
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3171
|
-
location:
|
|
3175
|
+
location: Y
|
|
3172
3176
|
},
|
|
3173
3177
|
err: null
|
|
3174
3178
|
};
|
|
@@ -3216,16 +3220,16 @@ var As = (
|
|
|
3216
3220
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3217
3221
|
var r = [];
|
|
3218
3222
|
try {
|
|
3219
|
-
r =
|
|
3223
|
+
r = as(t);
|
|
3220
3224
|
} catch (i) {
|
|
3221
3225
|
return this.error(D.INVALID_NUMBER_SKELETON, n);
|
|
3222
3226
|
}
|
|
3223
3227
|
return {
|
|
3224
3228
|
val: {
|
|
3225
|
-
type:
|
|
3229
|
+
type: Je.number,
|
|
3226
3230
|
tokens: r,
|
|
3227
3231
|
location: n,
|
|
3228
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3232
|
+
parsedOptions: this.shouldParseSkeletons ? fs(r) : {}
|
|
3229
3233
|
},
|
|
3230
3234
|
err: null
|
|
3231
3235
|
};
|
|
@@ -3307,7 +3311,7 @@ var As = (
|
|
|
3307
3311
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3308
3312
|
}
|
|
3309
3313
|
}, e.prototype.bumpIf = function(t) {
|
|
3310
|
-
if (
|
|
3314
|
+
if (vr(this.message, t, this.offset())) {
|
|
3311
3315
|
for (var n = 0; n < t.length; n++)
|
|
3312
3316
|
this.bump();
|
|
3313
3317
|
return !0;
|
|
@@ -3339,47 +3343,47 @@ var As = (
|
|
|
3339
3343
|
}, e;
|
|
3340
3344
|
}()
|
|
3341
3345
|
);
|
|
3342
|
-
function
|
|
3346
|
+
function Mn(e) {
|
|
3343
3347
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3344
3348
|
}
|
|
3345
|
-
function Os(e) {
|
|
3346
|
-
return An(e) || e === 47;
|
|
3347
|
-
}
|
|
3348
3349
|
function Ms(e) {
|
|
3350
|
+
return Mn(e) || e === 47;
|
|
3351
|
+
}
|
|
3352
|
+
function Cs(e) {
|
|
3349
3353
|
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;
|
|
3350
3354
|
}
|
|
3351
3355
|
function Ai(e) {
|
|
3352
3356
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3353
3357
|
}
|
|
3354
|
-
function
|
|
3358
|
+
function Ls(e) {
|
|
3355
3359
|
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;
|
|
3356
3360
|
}
|
|
3357
|
-
function
|
|
3361
|
+
function Cn(e) {
|
|
3358
3362
|
e.forEach(function(t) {
|
|
3359
3363
|
if (delete t.location, gi(t) || _i(t))
|
|
3360
3364
|
for (var n in t.options)
|
|
3361
|
-
delete t.options[n].location,
|
|
3365
|
+
delete t.options[n].location, Cn(t.options[n].value);
|
|
3362
3366
|
else
|
|
3363
|
-
mi(t) && Ei(t.style) || (di(t) || pi(t)) &&
|
|
3367
|
+
mi(t) && Ei(t.style) || (di(t) || pi(t)) && Sn(t.style) ? delete t.style.location : bi(t) && Cn(t.children);
|
|
3364
3368
|
});
|
|
3365
3369
|
}
|
|
3366
|
-
function
|
|
3367
|
-
t === void 0 && (t = {}), t =
|
|
3368
|
-
var n = new
|
|
3370
|
+
function Ns(e, t) {
|
|
3371
|
+
t === void 0 && (t = {}), t = Wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3372
|
+
var n = new Os(e, t).parse();
|
|
3369
3373
|
if (n.err) {
|
|
3370
3374
|
var r = SyntaxError(D[n.err.kind]);
|
|
3371
3375
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3372
3376
|
}
|
|
3373
|
-
return t != null && t.captureLocation ||
|
|
3377
|
+
return t != null && t.captureLocation || Cn(n.val), n.val;
|
|
3374
3378
|
}
|
|
3375
|
-
var
|
|
3379
|
+
var Qe;
|
|
3376
3380
|
(function(e) {
|
|
3377
3381
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3378
|
-
})(
|
|
3379
|
-
var
|
|
3382
|
+
})(Qe || (Qe = {}));
|
|
3383
|
+
var Qt = (
|
|
3380
3384
|
/** @class */
|
|
3381
3385
|
function(e) {
|
|
3382
|
-
|
|
3386
|
+
Jt(t, e);
|
|
3383
3387
|
function t(n, r, i) {
|
|
3384
3388
|
var o = e.call(this, n) || this;
|
|
3385
3389
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3391,35 +3395,35 @@ var qt = (
|
|
|
3391
3395
|
), wr = (
|
|
3392
3396
|
/** @class */
|
|
3393
3397
|
function(e) {
|
|
3394
|
-
|
|
3398
|
+
Jt(t, e);
|
|
3395
3399
|
function t(n, r, i, o) {
|
|
3396
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3400
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Qe.INVALID_VALUE, o) || this;
|
|
3397
3401
|
}
|
|
3398
3402
|
return t;
|
|
3399
|
-
}(
|
|
3400
|
-
),
|
|
3403
|
+
}(Qt)
|
|
3404
|
+
), Hs = (
|
|
3401
3405
|
/** @class */
|
|
3402
3406
|
function(e) {
|
|
3403
|
-
|
|
3407
|
+
Jt(t, e);
|
|
3404
3408
|
function t(n, r, i) {
|
|
3405
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3409
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Qe.INVALID_VALUE, i) || this;
|
|
3406
3410
|
}
|
|
3407
3411
|
return t;
|
|
3408
|
-
}(
|
|
3409
|
-
),
|
|
3412
|
+
}(Qt)
|
|
3413
|
+
), Is = (
|
|
3410
3414
|
/** @class */
|
|
3411
3415
|
function(e) {
|
|
3412
|
-
|
|
3416
|
+
Jt(t, e);
|
|
3413
3417
|
function t(n, r) {
|
|
3414
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3418
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Qe.MISSING_VALUE, r) || this;
|
|
3415
3419
|
}
|
|
3416
3420
|
return t;
|
|
3417
|
-
}(
|
|
3421
|
+
}(Qt)
|
|
3418
3422
|
), ce;
|
|
3419
3423
|
(function(e) {
|
|
3420
3424
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3421
3425
|
})(ce || (ce = {}));
|
|
3422
|
-
function
|
|
3426
|
+
function Ps(e) {
|
|
3423
3427
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3424
3428
|
var r = t[t.length - 1];
|
|
3425
3429
|
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
@@ -3428,7 +3432,7 @@ function Is(e) {
|
|
|
3428
3432
|
function Rs(e) {
|
|
3429
3433
|
return typeof e == "function";
|
|
3430
3434
|
}
|
|
3431
|
-
function
|
|
3435
|
+
function $t(e, t, n, r, i, o, a) {
|
|
3432
3436
|
if (e.length === 1 && br(e[0]))
|
|
3433
3437
|
return [
|
|
3434
3438
|
{
|
|
@@ -3445,7 +3449,7 @@ function Bt(e, t, n, r, i, o, a) {
|
|
|
3445
3449
|
});
|
|
3446
3450
|
continue;
|
|
3447
3451
|
}
|
|
3448
|
-
if (
|
|
3452
|
+
if (rs(f)) {
|
|
3449
3453
|
typeof o == "number" && u.push({
|
|
3450
3454
|
type: ce.literal,
|
|
3451
3455
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3454,9 +3458,9 @@ function Bt(e, t, n, r, i, o, a) {
|
|
|
3454
3458
|
}
|
|
3455
3459
|
var _ = f.value;
|
|
3456
3460
|
if (!(i && _ in i))
|
|
3457
|
-
throw new
|
|
3461
|
+
throw new Is(_, a);
|
|
3458
3462
|
var y = i[_];
|
|
3459
|
-
if (
|
|
3463
|
+
if (ns(f)) {
|
|
3460
3464
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), u.push({
|
|
3461
3465
|
type: typeof y == "string" ? ce.literal : ce.object,
|
|
3462
3466
|
value: y
|
|
@@ -3464,7 +3468,7 @@ function Bt(e, t, n, r, i, o, a) {
|
|
|
3464
3468
|
continue;
|
|
3465
3469
|
}
|
|
3466
3470
|
if (di(f)) {
|
|
3467
|
-
var M = typeof f.style == "string" ? r.date[f.style] :
|
|
3471
|
+
var M = typeof f.style == "string" ? r.date[f.style] : Sn(f.style) ? f.style.parsedOptions : void 0;
|
|
3468
3472
|
u.push({
|
|
3469
3473
|
type: ce.literal,
|
|
3470
3474
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
@@ -3472,7 +3476,7 @@ function Bt(e, t, n, r, i, o, a) {
|
|
|
3472
3476
|
continue;
|
|
3473
3477
|
}
|
|
3474
3478
|
if (pi(f)) {
|
|
3475
|
-
var M = typeof f.style == "string" ? r.time[f.style] :
|
|
3479
|
+
var M = typeof f.style == "string" ? r.time[f.style] : Sn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3476
3480
|
u.push({
|
|
3477
3481
|
type: ce.literal,
|
|
3478
3482
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
@@ -3490,14 +3494,14 @@ function Bt(e, t, n, r, i, o, a) {
|
|
|
3490
3494
|
if (bi(f)) {
|
|
3491
3495
|
var b = f.children, d = f.value, C = i[d];
|
|
3492
3496
|
if (!Rs(C))
|
|
3493
|
-
throw new
|
|
3494
|
-
var
|
|
3495
|
-
return
|
|
3497
|
+
throw new Hs(d, "function", a);
|
|
3498
|
+
var F = $t(b, t, n, r, i, o), $ = C(F.map(function(R) {
|
|
3499
|
+
return R.value;
|
|
3496
3500
|
}));
|
|
3497
|
-
Array.isArray($) || ($ = [$]), u.push.apply(u, $.map(function(
|
|
3501
|
+
Array.isArray($) || ($ = [$]), u.push.apply(u, $.map(function(R) {
|
|
3498
3502
|
return {
|
|
3499
|
-
type: typeof
|
|
3500
|
-
value:
|
|
3503
|
+
type: typeof R == "string" ? ce.literal : ce.object,
|
|
3504
|
+
value: R
|
|
3501
3505
|
};
|
|
3502
3506
|
}));
|
|
3503
3507
|
}
|
|
@@ -3505,38 +3509,38 @@ function Bt(e, t, n, r, i, o, a) {
|
|
|
3505
3509
|
var w = f.options[y] || f.options.other;
|
|
3506
3510
|
if (!w)
|
|
3507
3511
|
throw new wr(f.value, y, Object.keys(f.options), a);
|
|
3508
|
-
u.push.apply(u,
|
|
3512
|
+
u.push.apply(u, $t(w.value, t, n, r, i));
|
|
3509
3513
|
continue;
|
|
3510
3514
|
}
|
|
3511
3515
|
if (_i(f)) {
|
|
3512
3516
|
var w = f.options["=".concat(y)];
|
|
3513
3517
|
if (!w) {
|
|
3514
3518
|
if (!Intl.PluralRules)
|
|
3515
|
-
throw new
|
|
3519
|
+
throw new Qt(`Intl.PluralRules is not available in this environment.
|
|
3516
3520
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3517
|
-
`,
|
|
3521
|
+
`, Qe.MISSING_INTL_API, a);
|
|
3518
3522
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3519
3523
|
w = f.options[H] || f.options.other;
|
|
3520
3524
|
}
|
|
3521
3525
|
if (!w)
|
|
3522
3526
|
throw new wr(f.value, y, Object.keys(f.options), a);
|
|
3523
|
-
u.push.apply(u,
|
|
3527
|
+
u.push.apply(u, $t(w.value, t, n, r, i, y - (f.offset || 0)));
|
|
3524
3528
|
continue;
|
|
3525
3529
|
}
|
|
3526
3530
|
}
|
|
3527
|
-
return
|
|
3531
|
+
return Ps(u);
|
|
3528
3532
|
}
|
|
3529
|
-
function
|
|
3530
|
-
return t ?
|
|
3531
|
-
return n[r] =
|
|
3533
|
+
function Ds(e, t) {
|
|
3534
|
+
return t ? Ae(Ae(Ae({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3535
|
+
return n[r] = Ae(Ae({}, e[r]), t[r] || {}), n;
|
|
3532
3536
|
}, {})) : e;
|
|
3533
3537
|
}
|
|
3534
|
-
function
|
|
3538
|
+
function Bs(e, t) {
|
|
3535
3539
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3536
|
-
return n[r] =
|
|
3537
|
-
},
|
|
3540
|
+
return n[r] = Ds(e[r], t[r]), n;
|
|
3541
|
+
}, Ae({}, e)) : e;
|
|
3538
3542
|
}
|
|
3539
|
-
function
|
|
3543
|
+
function pn(e) {
|
|
3540
3544
|
return {
|
|
3541
3545
|
create: function() {
|
|
3542
3546
|
return {
|
|
@@ -3550,35 +3554,35 @@ function mn(e) {
|
|
|
3550
3554
|
}
|
|
3551
3555
|
};
|
|
3552
3556
|
}
|
|
3553
|
-
function
|
|
3557
|
+
function $s(e) {
|
|
3554
3558
|
return e === void 0 && (e = {
|
|
3555
3559
|
number: {},
|
|
3556
3560
|
dateTime: {},
|
|
3557
3561
|
pluralRules: {}
|
|
3558
3562
|
}), {
|
|
3559
|
-
getNumberFormat:
|
|
3563
|
+
getNumberFormat: hn(function() {
|
|
3560
3564
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3561
3565
|
n[r] = arguments[r];
|
|
3562
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3566
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, fn([void 0], n, !1)))();
|
|
3563
3567
|
}, {
|
|
3564
|
-
cache:
|
|
3565
|
-
strategy:
|
|
3568
|
+
cache: pn(e.number),
|
|
3569
|
+
strategy: mn.variadic
|
|
3566
3570
|
}),
|
|
3567
|
-
getDateTimeFormat:
|
|
3571
|
+
getDateTimeFormat: hn(function() {
|
|
3568
3572
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3569
3573
|
n[r] = arguments[r];
|
|
3570
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3574
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, fn([void 0], n, !1)))();
|
|
3571
3575
|
}, {
|
|
3572
|
-
cache:
|
|
3573
|
-
strategy:
|
|
3576
|
+
cache: pn(e.dateTime),
|
|
3577
|
+
strategy: mn.variadic
|
|
3574
3578
|
}),
|
|
3575
|
-
getPluralRules:
|
|
3579
|
+
getPluralRules: hn(function() {
|
|
3576
3580
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3577
3581
|
n[r] = arguments[r];
|
|
3578
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3582
|
+
return new ((t = Intl.PluralRules).bind.apply(t, fn([void 0], n, !1)))();
|
|
3579
3583
|
}, {
|
|
3580
|
-
cache:
|
|
3581
|
-
strategy:
|
|
3584
|
+
cache: pn(e.pluralRules),
|
|
3585
|
+
strategy: mn.variadic
|
|
3582
3586
|
})
|
|
3583
3587
|
};
|
|
3584
3588
|
}
|
|
@@ -3601,7 +3605,7 @@ var Oi = (
|
|
|
3601
3605
|
}, []);
|
|
3602
3606
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3603
3607
|
}, this.formatToParts = function(c) {
|
|
3604
|
-
return
|
|
3608
|
+
return $t(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3605
3609
|
}, this.resolvedOptions = function() {
|
|
3606
3610
|
var c;
|
|
3607
3611
|
return {
|
|
@@ -3615,12 +3619,12 @@ var Oi = (
|
|
|
3615
3619
|
var a = i || {};
|
|
3616
3620
|
a.formatters;
|
|
3617
3621
|
var u = Yo(a, ["formatters"]);
|
|
3618
|
-
this.ast = e.__parse(t,
|
|
3622
|
+
this.ast = e.__parse(t, Ae(Ae({}, u), { locale: this.resolvedLocale }));
|
|
3619
3623
|
} else
|
|
3620
3624
|
this.ast = t;
|
|
3621
3625
|
if (!Array.isArray(this.ast))
|
|
3622
3626
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3623
|
-
this.formats =
|
|
3627
|
+
this.formats = Bs(e.formats, r), this.formatters = i && i.formatters || $s(this.formatterCache);
|
|
3624
3628
|
}
|
|
3625
3629
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3626
3630
|
get: function() {
|
|
@@ -3633,7 +3637,7 @@ var Oi = (
|
|
|
3633
3637
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3634
3638
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3635
3639
|
}
|
|
3636
|
-
}, e.__parse =
|
|
3640
|
+
}, e.__parse = Ns, e.formats = {
|
|
3637
3641
|
number: {
|
|
3638
3642
|
integer: {
|
|
3639
3643
|
maximumFractionDigits: 0
|
|
@@ -3694,7 +3698,7 @@ var Oi = (
|
|
|
3694
3698
|
}, e;
|
|
3695
3699
|
}()
|
|
3696
3700
|
);
|
|
3697
|
-
function
|
|
3701
|
+
function Us(e, t) {
|
|
3698
3702
|
if (t == null)
|
|
3699
3703
|
return;
|
|
3700
3704
|
if (t in e)
|
|
@@ -3715,36 +3719,36 @@ function $s(e, t) {
|
|
|
3715
3719
|
r = void 0;
|
|
3716
3720
|
return r;
|
|
3717
3721
|
}
|
|
3718
|
-
const
|
|
3722
|
+
const Ie = {}, ks = (e, t, n) => n && (t in Ie || (Ie[t] = {}), e in Ie[t] || (Ie[t][e] = n), n), Mi = (e, t) => {
|
|
3719
3723
|
if (t == null)
|
|
3720
3724
|
return;
|
|
3721
|
-
if (t in
|
|
3722
|
-
return
|
|
3723
|
-
const n =
|
|
3725
|
+
if (t in Ie && e in Ie[t])
|
|
3726
|
+
return Ie[t][e];
|
|
3727
|
+
const n = xt(t);
|
|
3724
3728
|
for (let r = 0; r < n.length; r++) {
|
|
3725
|
-
const i = n[r], o =
|
|
3729
|
+
const i = n[r], o = Gs(i, e);
|
|
3726
3730
|
if (o)
|
|
3727
|
-
return
|
|
3731
|
+
return ks(e, t, o);
|
|
3728
3732
|
}
|
|
3729
3733
|
};
|
|
3730
3734
|
let Dn;
|
|
3731
|
-
const
|
|
3732
|
-
function
|
|
3735
|
+
const yt = Et({});
|
|
3736
|
+
function Fs(e) {
|
|
3733
3737
|
return Dn[e] || null;
|
|
3734
3738
|
}
|
|
3735
3739
|
function Ci(e) {
|
|
3736
3740
|
return e in Dn;
|
|
3737
3741
|
}
|
|
3738
|
-
function
|
|
3742
|
+
function Gs(e, t) {
|
|
3739
3743
|
if (!Ci(e))
|
|
3740
3744
|
return null;
|
|
3741
|
-
const n =
|
|
3742
|
-
return
|
|
3745
|
+
const n = Fs(e);
|
|
3746
|
+
return Us(n, t);
|
|
3743
3747
|
}
|
|
3744
|
-
function
|
|
3748
|
+
function js(e) {
|
|
3745
3749
|
if (e == null)
|
|
3746
3750
|
return;
|
|
3747
|
-
const t =
|
|
3751
|
+
const t = xt(e);
|
|
3748
3752
|
for (let n = 0; n < t.length; n++) {
|
|
3749
3753
|
const r = t[n];
|
|
3750
3754
|
if (Ci(r))
|
|
@@ -3752,64 +3756,64 @@ function Gs(e) {
|
|
|
3752
3756
|
}
|
|
3753
3757
|
}
|
|
3754
3758
|
function Li(e, ...t) {
|
|
3755
|
-
delete
|
|
3759
|
+
delete Ie[e], yt.update((n) => (n[e] = Xo.all([n[e] || {}, ...t]), n));
|
|
3756
3760
|
}
|
|
3757
|
-
|
|
3758
|
-
[
|
|
3761
|
+
tt(
|
|
3762
|
+
[yt],
|
|
3759
3763
|
([e]) => Object.keys(e)
|
|
3760
3764
|
);
|
|
3761
|
-
|
|
3762
|
-
const
|
|
3763
|
-
function
|
|
3764
|
-
|
|
3765
|
+
yt.subscribe((e) => Dn = e);
|
|
3766
|
+
const Ut = {};
|
|
3767
|
+
function zs(e, t) {
|
|
3768
|
+
Ut[e].delete(t), Ut[e].size === 0 && delete Ut[e];
|
|
3765
3769
|
}
|
|
3766
3770
|
function Ni(e) {
|
|
3767
|
-
return
|
|
3771
|
+
return Ut[e];
|
|
3768
3772
|
}
|
|
3769
|
-
function
|
|
3770
|
-
return
|
|
3773
|
+
function Ws(e) {
|
|
3774
|
+
return xt(e).map((t) => {
|
|
3771
3775
|
const n = Ni(t);
|
|
3772
3776
|
return [t, n ? [...n] : []];
|
|
3773
3777
|
}).filter(([, t]) => t.length > 0);
|
|
3774
3778
|
}
|
|
3775
|
-
function
|
|
3776
|
-
return e == null ? !1 :
|
|
3779
|
+
function Vt(e) {
|
|
3780
|
+
return e == null ? !1 : xt(e).some(
|
|
3777
3781
|
(t) => {
|
|
3778
3782
|
var n;
|
|
3779
3783
|
return (n = Ni(t)) == null ? void 0 : n.size;
|
|
3780
3784
|
}
|
|
3781
3785
|
);
|
|
3782
3786
|
}
|
|
3783
|
-
function
|
|
3787
|
+
function Vs(e, t) {
|
|
3784
3788
|
return Promise.all(
|
|
3785
|
-
t.map((r) => (
|
|
3789
|
+
t.map((r) => (zs(e, r), r().then((i) => i.default || i)))
|
|
3786
3790
|
).then((r) => Li(e, ...r));
|
|
3787
3791
|
}
|
|
3788
|
-
const
|
|
3792
|
+
const at = {};
|
|
3789
3793
|
function Hi(e) {
|
|
3790
|
-
if (!
|
|
3791
|
-
return e in
|
|
3792
|
-
const t =
|
|
3793
|
-
return
|
|
3794
|
+
if (!Vt(e))
|
|
3795
|
+
return e in at ? at[e] : Promise.resolve();
|
|
3796
|
+
const t = Ws(e);
|
|
3797
|
+
return at[e] = Promise.all(
|
|
3794
3798
|
t.map(
|
|
3795
|
-
([n, r]) =>
|
|
3799
|
+
([n, r]) => Vs(n, r)
|
|
3796
3800
|
)
|
|
3797
3801
|
).then(() => {
|
|
3798
|
-
if (
|
|
3802
|
+
if (Vt(e))
|
|
3799
3803
|
return Hi(e);
|
|
3800
|
-
delete
|
|
3801
|
-
}),
|
|
3804
|
+
delete at[e];
|
|
3805
|
+
}), at[e];
|
|
3802
3806
|
}
|
|
3803
|
-
var Ar = Object.getOwnPropertySymbols,
|
|
3807
|
+
var Ar = Object.getOwnPropertySymbols, Xs = Object.prototype.hasOwnProperty, Ys = Object.prototype.propertyIsEnumerable, Zs = (e, t) => {
|
|
3804
3808
|
var n = {};
|
|
3805
3809
|
for (var r in e)
|
|
3806
|
-
|
|
3810
|
+
Xs.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3807
3811
|
if (e != null && Ar)
|
|
3808
3812
|
for (var r of Ar(e))
|
|
3809
|
-
t.indexOf(r) < 0 &&
|
|
3813
|
+
t.indexOf(r) < 0 && Ys.call(e, r) && (n[r] = e[r]);
|
|
3810
3814
|
return n;
|
|
3811
3815
|
};
|
|
3812
|
-
const
|
|
3816
|
+
const qs = {
|
|
3813
3817
|
number: {
|
|
3814
3818
|
scientific: { notation: "scientific" },
|
|
3815
3819
|
engineering: { notation: "engineering" },
|
|
@@ -3839,28 +3843,28 @@ const Zs = {
|
|
|
3839
3843
|
}
|
|
3840
3844
|
}
|
|
3841
3845
|
};
|
|
3842
|
-
function
|
|
3846
|
+
function Js({ locale: e, id: t }) {
|
|
3843
3847
|
console.warn(
|
|
3844
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3848
|
+
`[svelte-i18n] The message "${t}" was not found in "${xt(
|
|
3845
3849
|
e
|
|
3846
|
-
).join('", "')}".${
|
|
3850
|
+
).join('", "')}".${Vt(Re()) ? `
|
|
3847
3851
|
|
|
3848
3852
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3849
3853
|
);
|
|
3850
3854
|
}
|
|
3851
|
-
const
|
|
3855
|
+
const Qs = {
|
|
3852
3856
|
fallbackLocale: null,
|
|
3853
3857
|
loadingDelay: 200,
|
|
3854
|
-
formats:
|
|
3858
|
+
formats: qs,
|
|
3855
3859
|
warnOnMissingMessages: !0,
|
|
3856
3860
|
handleMissingMessage: void 0,
|
|
3857
3861
|
ignoreTag: !0
|
|
3858
|
-
},
|
|
3859
|
-
function
|
|
3860
|
-
return
|
|
3862
|
+
}, dt = Qs;
|
|
3863
|
+
function Ke() {
|
|
3864
|
+
return dt;
|
|
3861
3865
|
}
|
|
3862
|
-
function
|
|
3863
|
-
const t = e, { formats: n } = t, r =
|
|
3866
|
+
function Ks(e) {
|
|
3867
|
+
const t = e, { formats: n } = t, r = Zs(t, ["formats"]);
|
|
3864
3868
|
let i = e.fallbackLocale;
|
|
3865
3869
|
if (e.initialLocale)
|
|
3866
3870
|
try {
|
|
@@ -3870,128 +3874,128 @@ function Qs(e) {
|
|
|
3870
3874
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3871
3875
|
);
|
|
3872
3876
|
}
|
|
3873
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3877
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Js : console.warn(
|
|
3874
3878
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3875
|
-
)), Object.assign(
|
|
3879
|
+
)), Object.assign(dt, r, { initialLocale: i }), n && ("number" in n && Object.assign(dt.formats.number, n.number), "date" in n && Object.assign(dt.formats.date, n.date), "time" in n && Object.assign(dt.formats.time, n.time)), $e.set(i);
|
|
3876
3880
|
}
|
|
3877
|
-
const
|
|
3878
|
-
var
|
|
3881
|
+
const gn = Et(!1);
|
|
3882
|
+
var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, Or = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Mr = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oa = (e, t) => {
|
|
3879
3883
|
for (var n in t || (t = {}))
|
|
3880
|
-
|
|
3884
|
+
ra.call(t, n) && Mr(e, n, t[n]);
|
|
3881
3885
|
if (Or)
|
|
3882
3886
|
for (var n of Or(t))
|
|
3883
|
-
|
|
3887
|
+
ia.call(t, n) && Mr(e, n, t[n]);
|
|
3884
3888
|
return e;
|
|
3885
|
-
},
|
|
3886
|
-
let
|
|
3887
|
-
const
|
|
3889
|
+
}, sa = (e, t) => ta(e, na(t));
|
|
3890
|
+
let Ln;
|
|
3891
|
+
const Xt = Et(null);
|
|
3888
3892
|
function Cr(e) {
|
|
3889
3893
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3890
3894
|
}
|
|
3891
|
-
function
|
|
3895
|
+
function xt(e, t = Ke().fallbackLocale) {
|
|
3892
3896
|
const n = Cr(e);
|
|
3893
3897
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Cr(t)])] : n;
|
|
3894
3898
|
}
|
|
3895
3899
|
function Re() {
|
|
3896
|
-
return
|
|
3900
|
+
return Ln != null ? Ln : void 0;
|
|
3897
3901
|
}
|
|
3898
|
-
|
|
3899
|
-
|
|
3902
|
+
Xt.subscribe((e) => {
|
|
3903
|
+
Ln = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3900
3904
|
});
|
|
3901
|
-
const
|
|
3902
|
-
if (e &&
|
|
3903
|
-
const { loadingDelay: t } =
|
|
3905
|
+
const aa = (e) => {
|
|
3906
|
+
if (e && js(e) && Vt(e)) {
|
|
3907
|
+
const { loadingDelay: t } = Ke();
|
|
3904
3908
|
let n;
|
|
3905
3909
|
return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
|
|
3906
|
-
() =>
|
|
3910
|
+
() => gn.set(!0),
|
|
3907
3911
|
t
|
|
3908
|
-
) :
|
|
3909
|
-
|
|
3912
|
+
) : gn.set(!0), Hi(e).then(() => {
|
|
3913
|
+
Xt.set(e);
|
|
3910
3914
|
}).finally(() => {
|
|
3911
|
-
clearTimeout(n),
|
|
3915
|
+
clearTimeout(n), gn.set(!1);
|
|
3912
3916
|
});
|
|
3913
3917
|
}
|
|
3914
|
-
return
|
|
3915
|
-
},
|
|
3916
|
-
set:
|
|
3917
|
-
}),
|
|
3918
|
+
return Xt.set(e);
|
|
3919
|
+
}, $e = sa(oa({}, Xt), {
|
|
3920
|
+
set: aa
|
|
3921
|
+
}), Kt = (e) => {
|
|
3918
3922
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3919
3923
|
return (r) => {
|
|
3920
3924
|
const i = JSON.stringify(r);
|
|
3921
3925
|
return i in t ? t[i] : t[i] = e(r);
|
|
3922
3926
|
};
|
|
3923
3927
|
};
|
|
3924
|
-
var
|
|
3928
|
+
var ua = Object.defineProperty, Yt = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Lr = (e, t, n) => t in e ? ua(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bn = (e, t) => {
|
|
3925
3929
|
for (var n in t || (t = {}))
|
|
3926
3930
|
Ii.call(t, n) && Lr(e, n, t[n]);
|
|
3927
|
-
if (
|
|
3928
|
-
for (var n of
|
|
3929
|
-
|
|
3931
|
+
if (Yt)
|
|
3932
|
+
for (var n of Yt(t))
|
|
3933
|
+
Pi.call(t, n) && Lr(e, n, t[n]);
|
|
3930
3934
|
return e;
|
|
3931
|
-
},
|
|
3935
|
+
}, nt = (e, t) => {
|
|
3932
3936
|
var n = {};
|
|
3933
3937
|
for (var r in e)
|
|
3934
3938
|
Ii.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3935
|
-
if (e != null &&
|
|
3936
|
-
for (var r of
|
|
3937
|
-
t.indexOf(r) < 0 &&
|
|
3939
|
+
if (e != null && Yt)
|
|
3940
|
+
for (var r of Yt(e))
|
|
3941
|
+
t.indexOf(r) < 0 && Pi.call(e, r) && (n[r] = e[r]);
|
|
3938
3942
|
return n;
|
|
3939
3943
|
};
|
|
3940
|
-
const
|
|
3941
|
-
const { formats: n } =
|
|
3944
|
+
const bt = (e, t) => {
|
|
3945
|
+
const { formats: n } = Ke();
|
|
3942
3946
|
if (e in n && t in n[e])
|
|
3943
3947
|
return n[e][t];
|
|
3944
3948
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3945
|
-
},
|
|
3949
|
+
}, la = Kt(
|
|
3946
3950
|
(e) => {
|
|
3947
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3951
|
+
var t = e, { locale: n, format: r } = t, i = nt(t, ["locale", "format"]);
|
|
3948
3952
|
if (n == null)
|
|
3949
3953
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3950
|
-
return r && (i =
|
|
3954
|
+
return r && (i = bt("number", r)), new Intl.NumberFormat(n, i);
|
|
3951
3955
|
}
|
|
3952
|
-
),
|
|
3956
|
+
), ca = Kt(
|
|
3953
3957
|
(e) => {
|
|
3954
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3958
|
+
var t = e, { locale: n, format: r } = t, i = nt(t, ["locale", "format"]);
|
|
3955
3959
|
if (n == null)
|
|
3956
3960
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3957
|
-
return r ? i =
|
|
3961
|
+
return r ? i = bt("date", r) : Object.keys(i).length === 0 && (i = bt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3958
3962
|
}
|
|
3959
|
-
),
|
|
3963
|
+
), fa = Kt(
|
|
3960
3964
|
(e) => {
|
|
3961
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3965
|
+
var t = e, { locale: n, format: r } = t, i = nt(t, ["locale", "format"]);
|
|
3962
3966
|
if (n == null)
|
|
3963
3967
|
throw new Error(
|
|
3964
3968
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3965
3969
|
);
|
|
3966
|
-
return r ? i =
|
|
3970
|
+
return r ? i = bt("time", r) : Object.keys(i).length === 0 && (i = bt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3967
3971
|
}
|
|
3968
|
-
),
|
|
3972
|
+
), ha = (e = {}) => {
|
|
3969
3973
|
var t = e, {
|
|
3970
3974
|
locale: n = Re()
|
|
3971
|
-
} = t, r =
|
|
3975
|
+
} = t, r = nt(t, [
|
|
3972
3976
|
"locale"
|
|
3973
3977
|
]);
|
|
3974
|
-
return
|
|
3975
|
-
},
|
|
3978
|
+
return la(Bn({ locale: n }, r));
|
|
3979
|
+
}, ma = (e = {}) => {
|
|
3976
3980
|
var t = e, {
|
|
3977
3981
|
locale: n = Re()
|
|
3978
|
-
} = t, r =
|
|
3982
|
+
} = t, r = nt(t, [
|
|
3979
3983
|
"locale"
|
|
3980
3984
|
]);
|
|
3981
|
-
return
|
|
3982
|
-
},
|
|
3985
|
+
return ca(Bn({ locale: n }, r));
|
|
3986
|
+
}, da = (e = {}) => {
|
|
3983
3987
|
var t = e, {
|
|
3984
3988
|
locale: n = Re()
|
|
3985
|
-
} = t, r =
|
|
3989
|
+
} = t, r = nt(t, [
|
|
3986
3990
|
"locale"
|
|
3987
3991
|
]);
|
|
3988
|
-
return
|
|
3989
|
-
},
|
|
3992
|
+
return fa(Bn({ locale: n }, r));
|
|
3993
|
+
}, pa = Kt(
|
|
3990
3994
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3991
|
-
(e, t = Re()) => new Oi(e, t,
|
|
3992
|
-
ignoreTag:
|
|
3995
|
+
(e, t = Re()) => new Oi(e, t, Ke().formats, {
|
|
3996
|
+
ignoreTag: Ke().ignoreTag
|
|
3993
3997
|
})
|
|
3994
|
-
),
|
|
3998
|
+
), ga = (e, t = {}) => {
|
|
3995
3999
|
var n, r, i, o;
|
|
3996
4000
|
let a = t;
|
|
3997
4001
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4006,7 +4010,7 @@ const _t = (e, t) => {
|
|
|
4006
4010
|
);
|
|
4007
4011
|
let f = Mi(e, c);
|
|
4008
4012
|
if (!f)
|
|
4009
|
-
f = (o = (i = (r = (n =
|
|
4013
|
+
f = (o = (i = (r = (n = Ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4010
4014
|
else if (typeof f != "string")
|
|
4011
4015
|
return console.warn(
|
|
4012
4016
|
`[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.`
|
|
@@ -4015,7 +4019,7 @@ const _t = (e, t) => {
|
|
|
4015
4019
|
return f;
|
|
4016
4020
|
let _ = f;
|
|
4017
4021
|
try {
|
|
4018
|
-
_ =
|
|
4022
|
+
_ = pa(f, c).format(u);
|
|
4019
4023
|
} catch (y) {
|
|
4020
4024
|
y instanceof Error && console.warn(
|
|
4021
4025
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4023,18 +4027,18 @@ const _t = (e, t) => {
|
|
|
4023
4027
|
);
|
|
4024
4028
|
}
|
|
4025
4029
|
return _;
|
|
4026
|
-
},
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4030
|
+
}, _a = (e, t) => da(t).format(e), ba = (e, t) => ma(t).format(e), Ea = (e, t) => ha(t).format(e), ya = (e, t = Re()) => Mi(e, t), xa = tt([$e, yt], () => ga);
|
|
4031
|
+
tt([$e], () => _a);
|
|
4032
|
+
tt([$e], () => ba);
|
|
4033
|
+
tt([$e], () => Ea);
|
|
4034
|
+
tt([$e, yt], () => ya);
|
|
4031
4035
|
function Nr(e, t) {
|
|
4032
4036
|
Li(e, t);
|
|
4033
4037
|
}
|
|
4034
|
-
function
|
|
4035
|
-
|
|
4038
|
+
function va(e) {
|
|
4039
|
+
Ks({
|
|
4036
4040
|
fallbackLocale: "en"
|
|
4037
|
-
}),
|
|
4041
|
+
}), $e.set(e);
|
|
4038
4042
|
}
|
|
4039
4043
|
const Hr = {
|
|
4040
4044
|
en: {
|
|
@@ -4061,19 +4065,19 @@ const Hr = {
|
|
|
4061
4065
|
};
|
|
4062
4066
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
4063
4067
|
const {
|
|
4064
|
-
entries:
|
|
4068
|
+
entries: Ri,
|
|
4065
4069
|
setPrototypeOf: Ir,
|
|
4066
4070
|
isFrozen: Ta,
|
|
4067
|
-
getPrototypeOf:
|
|
4068
|
-
getOwnPropertyDescriptor:
|
|
4071
|
+
getPrototypeOf: Sa,
|
|
4072
|
+
getOwnPropertyDescriptor: wa
|
|
4069
4073
|
} = Object;
|
|
4070
4074
|
let {
|
|
4071
4075
|
freeze: fe,
|
|
4072
4076
|
seal: be,
|
|
4073
4077
|
create: Di
|
|
4074
4078
|
} = Object, {
|
|
4075
|
-
apply:
|
|
4076
|
-
construct:
|
|
4079
|
+
apply: Nn,
|
|
4080
|
+
construct: Hn
|
|
4077
4081
|
} = typeof Reflect != "undefined" && Reflect;
|
|
4078
4082
|
fe || (fe = function(t) {
|
|
4079
4083
|
return t;
|
|
@@ -4081,29 +4085,29 @@ fe || (fe = function(t) {
|
|
|
4081
4085
|
be || (be = function(t) {
|
|
4082
4086
|
return t;
|
|
4083
4087
|
});
|
|
4084
|
-
|
|
4088
|
+
Nn || (Nn = function(t, n, r) {
|
|
4085
4089
|
return t.apply(n, r);
|
|
4086
4090
|
});
|
|
4087
|
-
|
|
4091
|
+
Hn || (Hn = function(t, n) {
|
|
4088
4092
|
return new t(...n);
|
|
4089
4093
|
});
|
|
4090
|
-
const
|
|
4094
|
+
const Lt = pe(Array.prototype.forEach), Pr = pe(Array.prototype.pop), ut = pe(Array.prototype.push), kt = pe(String.prototype.toLowerCase), _n = pe(String.prototype.toString), Rr = pe(String.prototype.match), lt = pe(String.prototype.replace), Aa = pe(String.prototype.indexOf), Oa = pe(String.prototype.trim), ve = pe(Object.prototype.hasOwnProperty), ue = pe(RegExp.prototype.test), ct = Ma(TypeError);
|
|
4091
4095
|
function pe(e) {
|
|
4092
4096
|
return function(t) {
|
|
4093
4097
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4094
4098
|
r[i - 1] = arguments[i];
|
|
4095
|
-
return
|
|
4099
|
+
return Nn(e, t, r);
|
|
4096
4100
|
};
|
|
4097
4101
|
}
|
|
4098
|
-
function
|
|
4102
|
+
function Ma(e) {
|
|
4099
4103
|
return function() {
|
|
4100
4104
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4101
4105
|
n[r] = arguments[r];
|
|
4102
|
-
return
|
|
4106
|
+
return Hn(e, n);
|
|
4103
4107
|
};
|
|
4104
4108
|
}
|
|
4105
|
-
function
|
|
4106
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4109
|
+
function P(e, t) {
|
|
4110
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : kt;
|
|
4107
4111
|
Ir && Ir(e, null);
|
|
4108
4112
|
let r = t.length;
|
|
4109
4113
|
for (; r--; ) {
|
|
@@ -4116,72 +4120,63 @@ function R(e, t) {
|
|
|
4116
4120
|
}
|
|
4117
4121
|
return e;
|
|
4118
4122
|
}
|
|
4119
|
-
function
|
|
4123
|
+
function Ca(e) {
|
|
4120
4124
|
for (let t = 0; t < e.length; t++)
|
|
4121
|
-
|
|
4125
|
+
ve(e, t) || (e[t] = null);
|
|
4122
4126
|
return e;
|
|
4123
4127
|
}
|
|
4124
|
-
function
|
|
4128
|
+
function Be(e) {
|
|
4125
4129
|
const t = Di(null);
|
|
4126
|
-
for (const [n, r] of
|
|
4127
|
-
|
|
4130
|
+
for (const [n, r] of Ri(e))
|
|
4131
|
+
ve(e, n) && (Array.isArray(r) ? t[n] = Ca(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Be(r) : t[n] = r);
|
|
4128
4132
|
return t;
|
|
4129
4133
|
}
|
|
4130
|
-
function
|
|
4134
|
+
function ft(e, t) {
|
|
4131
4135
|
for (; e !== null; ) {
|
|
4132
|
-
const r =
|
|
4136
|
+
const r = wa(e, t);
|
|
4133
4137
|
if (r) {
|
|
4134
4138
|
if (r.get)
|
|
4135
4139
|
return pe(r.get);
|
|
4136
4140
|
if (typeof r.value == "function")
|
|
4137
4141
|
return pe(r.value);
|
|
4138
4142
|
}
|
|
4139
|
-
e =
|
|
4143
|
+
e = Sa(e);
|
|
4140
4144
|
}
|
|
4141
4145
|
function n() {
|
|
4142
4146
|
return null;
|
|
4143
4147
|
}
|
|
4144
4148
|
return n;
|
|
4145
4149
|
}
|
|
4146
|
-
const Dr = 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"]),
|
|
4150
|
+
const Dr = 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"]), bn = 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"]), En = 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"]), La = 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"]), yn = 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"]), Na = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Br = fe(["#text"]), $r = 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"]), xn = 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"]), Ur = 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"]), Nt = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ha = be(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ia = be(/<%[\w\W]*|[\w\W]*%>/gm), Pa = be(/\${[\w\W]*}/gm), Ra = be(/^data-[\-\w.\u00B7-\uFFFF]/), Da = be(/^aria-[\-\w]+$/), Bi = be(
|
|
4147
4151
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4148
4152
|
// eslint-disable-line no-useless-escape
|
|
4149
|
-
),
|
|
4153
|
+
), Ba = be(/^(?:\w+script|data):/i), $a = be(
|
|
4150
4154
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4151
4155
|
// eslint-disable-line no-control-regex
|
|
4152
|
-
), $i = be(/^html$/i),
|
|
4156
|
+
), $i = be(/^html$/i), Ua = be(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4153
4157
|
var kr = /* @__PURE__ */ Object.freeze({
|
|
4154
4158
|
__proto__: null,
|
|
4155
|
-
MUSTACHE_EXPR:
|
|
4156
|
-
ERB_EXPR:
|
|
4157
|
-
TMPLIT_EXPR:
|
|
4159
|
+
MUSTACHE_EXPR: Ha,
|
|
4160
|
+
ERB_EXPR: Ia,
|
|
4161
|
+
TMPLIT_EXPR: Pa,
|
|
4158
4162
|
DATA_ATTR: Ra,
|
|
4159
|
-
ARIA_ATTR:
|
|
4163
|
+
ARIA_ATTR: Da,
|
|
4160
4164
|
IS_ALLOWED_URI: Bi,
|
|
4161
|
-
IS_SCRIPT_OR_DATA:
|
|
4162
|
-
ATTR_WHITESPACE:
|
|
4165
|
+
IS_SCRIPT_OR_DATA: Ba,
|
|
4166
|
+
ATTR_WHITESPACE: $a,
|
|
4163
4167
|
DOCTYPE_NAME: $i,
|
|
4164
|
-
CUSTOM_ELEMENT:
|
|
4168
|
+
CUSTOM_ELEMENT: Ua
|
|
4165
4169
|
});
|
|
4166
|
-
const
|
|
4170
|
+
const ht = {
|
|
4167
4171
|
element: 1,
|
|
4168
|
-
attribute: 2,
|
|
4169
4172
|
text: 3,
|
|
4170
|
-
cdataSection: 4,
|
|
4171
|
-
entityReference: 5,
|
|
4172
|
-
// Deprecated
|
|
4173
|
-
entityNode: 6,
|
|
4174
4173
|
// Deprecated
|
|
4175
4174
|
progressingInstruction: 7,
|
|
4176
4175
|
comment: 8,
|
|
4177
|
-
document: 9
|
|
4178
|
-
|
|
4179
|
-
documentFragment: 11,
|
|
4180
|
-
notation: 12
|
|
4181
|
-
// Deprecated
|
|
4182
|
-
}, Ua = function() {
|
|
4176
|
+
document: 9
|
|
4177
|
+
}, ka = function() {
|
|
4183
4178
|
return typeof window == "undefined" ? null : window;
|
|
4184
|
-
},
|
|
4179
|
+
}, Fa = function(t, n) {
|
|
4185
4180
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4186
4181
|
return null;
|
|
4187
4182
|
let r = null;
|
|
@@ -4202,9 +4197,9 @@ const ft = {
|
|
|
4202
4197
|
}
|
|
4203
4198
|
};
|
|
4204
4199
|
function Ui() {
|
|
4205
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4200
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ka();
|
|
4206
4201
|
const t = (A) => Ui(A);
|
|
4207
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4202
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== ht.document)
|
|
4208
4203
|
return t.isSupported = !1, t;
|
|
4209
4204
|
let {
|
|
4210
4205
|
document: n
|
|
@@ -4219,38 +4214,38 @@ function Ui() {
|
|
|
4219
4214
|
HTMLFormElement: _,
|
|
4220
4215
|
DOMParser: y,
|
|
4221
4216
|
trustedTypes: M
|
|
4222
|
-
} = e, b = c.prototype, d =
|
|
4217
|
+
} = e, b = c.prototype, d = ft(b, "cloneNode"), C = ft(b, "remove"), F = ft(b, "nextSibling"), $ = ft(b, "childNodes"), w = ft(b, "parentNode");
|
|
4223
4218
|
if (typeof a == "function") {
|
|
4224
4219
|
const A = n.createElement("template");
|
|
4225
4220
|
A.content && A.content.ownerDocument && (n = A.content.ownerDocument);
|
|
4226
4221
|
}
|
|
4227
|
-
let H,
|
|
4222
|
+
let H, R = "";
|
|
4228
4223
|
const {
|
|
4229
|
-
implementation:
|
|
4230
|
-
createNodeIterator:
|
|
4231
|
-
createDocumentFragment:
|
|
4224
|
+
implementation: k,
|
|
4225
|
+
createNodeIterator: Y,
|
|
4226
|
+
createDocumentFragment: V,
|
|
4232
4227
|
getElementsByTagName: Q
|
|
4233
4228
|
} = n, {
|
|
4234
|
-
importNode:
|
|
4229
|
+
importNode: G
|
|
4235
4230
|
} = r;
|
|
4236
4231
|
let O = {};
|
|
4237
|
-
t.isSupported = typeof
|
|
4232
|
+
t.isSupported = typeof Ri == "function" && typeof w == "function" && k && k.createHTMLDocument !== void 0;
|
|
4238
4233
|
const {
|
|
4239
4234
|
MUSTACHE_EXPR: te,
|
|
4240
4235
|
ERB_EXPR: he,
|
|
4241
|
-
TMPLIT_EXPR:
|
|
4236
|
+
TMPLIT_EXPR: T,
|
|
4242
4237
|
DATA_ATTR: E,
|
|
4243
4238
|
ARIA_ATTR: g,
|
|
4244
|
-
IS_SCRIPT_OR_DATA:
|
|
4239
|
+
IS_SCRIPT_OR_DATA: v,
|
|
4245
4240
|
ATTR_WHITESPACE: h,
|
|
4246
4241
|
CUSTOM_ELEMENT: x
|
|
4247
4242
|
} = kr;
|
|
4248
4243
|
let {
|
|
4249
4244
|
IS_ALLOWED_URI: L
|
|
4250
4245
|
} = kr, N = null;
|
|
4251
|
-
const
|
|
4246
|
+
const j = P({}, [...Dr, ...bn, ...En, ...yn, ...Br]);
|
|
4252
4247
|
let I = null;
|
|
4253
|
-
const q =
|
|
4248
|
+
const q = P({}, [...$r, ...xn, ...Ur, ...Nt]);
|
|
4254
4249
|
let m = Object.seal(Di(null, {
|
|
4255
4250
|
tagNameCheck: {
|
|
4256
4251
|
writable: !0,
|
|
@@ -4270,59 +4265,59 @@ function Ui() {
|
|
|
4270
4265
|
enumerable: !0,
|
|
4271
4266
|
value: !1
|
|
4272
4267
|
}
|
|
4273
|
-
})), U = null, ee = null, K = !0, ye = !0, ie = !1, xe = !0, ge = !1,
|
|
4268
|
+
})), U = null, ee = null, K = !0, ye = !0, ie = !1, xe = !0, ge = !1, Ne = !0, De = !1, en = !1, tn = !1, Ue = !1, vt = !1, Tt = !1, $n = !0, Un = !1;
|
|
4274
4269
|
const Gi = "user-content-";
|
|
4275
|
-
let
|
|
4276
|
-
const kn =
|
|
4270
|
+
let nn = !0, rt = !1, ke = {}, Fe = null;
|
|
4271
|
+
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"]);
|
|
4277
4272
|
let Fn = null;
|
|
4278
|
-
const Gn =
|
|
4279
|
-
let
|
|
4280
|
-
const jn =
|
|
4281
|
-
let
|
|
4282
|
-
const ji =
|
|
4283
|
-
let
|
|
4273
|
+
const Gn = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4274
|
+
let rn = null;
|
|
4275
|
+
const jn = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), St = "http://www.w3.org/1998/Math/MathML", wt = "http://www.w3.org/2000/svg", Oe = "http://www.w3.org/1999/xhtml";
|
|
4276
|
+
let Ge = Oe, on = !1, sn = null;
|
|
4277
|
+
const ji = P({}, [St, wt, Oe], _n);
|
|
4278
|
+
let it = null;
|
|
4284
4279
|
const zi = ["application/xhtml+xml", "text/html"], Wi = "text/html";
|
|
4285
|
-
let ne = null,
|
|
4280
|
+
let ne = null, je = null;
|
|
4286
4281
|
const Vi = n.createElement("form"), zn = function(s) {
|
|
4287
4282
|
return s instanceof RegExp || s instanceof Function;
|
|
4288
|
-
},
|
|
4283
|
+
}, an = function() {
|
|
4289
4284
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4290
|
-
if (!(
|
|
4291
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
4292
|
-
zi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Wi : s.PARSER_MEDIA_TYPE, ne =
|
|
4293
|
-
|
|
4285
|
+
if (!(je && je === s)) {
|
|
4286
|
+
if ((!s || typeof s != "object") && (s = {}), s = Be(s), it = // eslint-disable-next-line unicorn/prefer-includes
|
|
4287
|
+
zi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Wi : s.PARSER_MEDIA_TYPE, ne = it === "application/xhtml+xml" ? _n : kt, N = ve(s, "ALLOWED_TAGS") ? P({}, s.ALLOWED_TAGS, ne) : j, I = ve(s, "ALLOWED_ATTR") ? P({}, s.ALLOWED_ATTR, ne) : q, sn = ve(s, "ALLOWED_NAMESPACES") ? P({}, s.ALLOWED_NAMESPACES, _n) : ji, rn = ve(s, "ADD_URI_SAFE_ATTR") ? P(
|
|
4288
|
+
Be(jn),
|
|
4294
4289
|
// eslint-disable-line indent
|
|
4295
4290
|
s.ADD_URI_SAFE_ATTR,
|
|
4296
4291
|
// eslint-disable-line indent
|
|
4297
4292
|
ne
|
|
4298
4293
|
// eslint-disable-line indent
|
|
4299
|
-
) : jn, Fn =
|
|
4300
|
-
|
|
4294
|
+
) : jn, Fn = ve(s, "ADD_DATA_URI_TAGS") ? P(
|
|
4295
|
+
Be(Gn),
|
|
4301
4296
|
// eslint-disable-line indent
|
|
4302
4297
|
s.ADD_DATA_URI_TAGS,
|
|
4303
4298
|
// eslint-disable-line indent
|
|
4304
4299
|
ne
|
|
4305
4300
|
// eslint-disable-line indent
|
|
4306
|
-
) : Gn,
|
|
4301
|
+
) : Gn, Fe = ve(s, "FORBID_CONTENTS") ? P({}, s.FORBID_CONTENTS, ne) : kn, U = ve(s, "FORBID_TAGS") ? P({}, s.FORBID_TAGS, ne) : {}, ee = ve(s, "FORBID_ATTR") ? P({}, s.FORBID_ATTR, ne) : {}, ke = ve(s, "USE_PROFILES") ? s.USE_PROFILES : !1, K = s.ALLOW_ARIA_ATTR !== !1, ye = s.ALLOW_DATA_ATTR !== !1, ie = s.ALLOW_UNKNOWN_PROTOCOLS || !1, xe = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ge = s.SAFE_FOR_TEMPLATES || !1, Ne = s.SAFE_FOR_XML !== !1, De = s.WHOLE_DOCUMENT || !1, Ue = s.RETURN_DOM || !1, vt = s.RETURN_DOM_FRAGMENT || !1, Tt = s.RETURN_TRUSTED_TYPE || !1, tn = s.FORCE_BODY || !1, $n = s.SANITIZE_DOM !== !1, Un = s.SANITIZE_NAMED_PROPS || !1, nn = s.KEEP_CONTENT !== !1, rt = s.IN_PLACE || !1, L = s.ALLOWED_URI_REGEXP || Bi, Ge = s.NAMESPACE || Oe, m = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && zn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ge && (ye = !1), vt && (Ue = !0), ke && (N = P({}, Br), I = [], ke.html === !0 && (P(N, Dr), P(I, $r)), ke.svg === !0 && (P(N, bn), P(I, xn), P(I, Nt)), ke.svgFilters === !0 && (P(N, En), P(I, xn), P(I, Nt)), ke.mathMl === !0 && (P(N, yn), P(I, Ur), P(I, Nt))), s.ADD_TAGS && (N === j && (N = Be(N)), P(N, s.ADD_TAGS, ne)), s.ADD_ATTR && (I === q && (I = Be(I)), P(I, s.ADD_ATTR, ne)), s.ADD_URI_SAFE_ATTR && P(rn, s.ADD_URI_SAFE_ATTR, ne), s.FORBID_CONTENTS && (Fe === kn && (Fe = Be(Fe)), P(Fe, s.FORBID_CONTENTS, ne)), nn && (N["#text"] = !0), De && P(N, ["html", "head", "body"]), N.table && (P(N, ["tbody"]), delete U.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4307
4302
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4308
|
-
throw
|
|
4303
|
+
throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4309
4304
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4310
|
-
throw
|
|
4311
|
-
H = s.TRUSTED_TYPES_POLICY,
|
|
4305
|
+
throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4306
|
+
H = s.TRUSTED_TYPES_POLICY, R = H.createHTML("");
|
|
4312
4307
|
} else
|
|
4313
|
-
H === void 0 && (H =
|
|
4314
|
-
fe && fe(s),
|
|
4308
|
+
H === void 0 && (H = Fa(M, i)), H !== null && typeof R == "string" && (R = H.createHTML(""));
|
|
4309
|
+
fe && fe(s), je = s;
|
|
4315
4310
|
}
|
|
4316
|
-
}, Wn =
|
|
4311
|
+
}, Wn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), Vn = P({}, ["foreignobject", "annotation-xml"]), Xi = P({}, ["title", "style", "font", "a", "script"]), Xn = P({}, [...bn, ...En, ...La]), Yn = P({}, [...yn, ...Na]), Yi = function(s) {
|
|
4317
4312
|
let p = w(s);
|
|
4318
4313
|
(!p || !p.tagName) && (p = {
|
|
4319
|
-
namespaceURI:
|
|
4314
|
+
namespaceURI: Ge,
|
|
4320
4315
|
tagName: "template"
|
|
4321
4316
|
});
|
|
4322
|
-
const S =
|
|
4323
|
-
return
|
|
4324
|
-
},
|
|
4325
|
-
|
|
4317
|
+
const S = kt(s.tagName), z = kt(p.tagName);
|
|
4318
|
+
return sn[s.namespaceURI] ? s.namespaceURI === wt ? p.namespaceURI === Oe ? S === "svg" : p.namespaceURI === St ? S === "svg" && (z === "annotation-xml" || Wn[z]) : !!Xn[S] : s.namespaceURI === St ? p.namespaceURI === Oe ? S === "math" : p.namespaceURI === wt ? S === "math" && Vn[z] : !!Yn[S] : s.namespaceURI === Oe ? p.namespaceURI === wt && !Vn[z] || p.namespaceURI === St && !Wn[z] ? !1 : !Yn[S] && (Xi[S] || !Xn[S]) : !!(it === "application/xhtml+xml" && sn[s.namespaceURI]) : !1;
|
|
4319
|
+
}, Te = function(s) {
|
|
4320
|
+
ut(t.removed, {
|
|
4326
4321
|
element: s
|
|
4327
4322
|
});
|
|
4328
4323
|
try {
|
|
@@ -4330,22 +4325,22 @@ function Ui() {
|
|
|
4330
4325
|
} catch (p) {
|
|
4331
4326
|
C(s);
|
|
4332
4327
|
}
|
|
4333
|
-
},
|
|
4328
|
+
}, At = function(s, p) {
|
|
4334
4329
|
try {
|
|
4335
|
-
|
|
4330
|
+
ut(t.removed, {
|
|
4336
4331
|
attribute: p.getAttributeNode(s),
|
|
4337
4332
|
from: p
|
|
4338
4333
|
});
|
|
4339
4334
|
} catch (S) {
|
|
4340
|
-
|
|
4335
|
+
ut(t.removed, {
|
|
4341
4336
|
attribute: null,
|
|
4342
4337
|
from: p
|
|
4343
4338
|
});
|
|
4344
4339
|
}
|
|
4345
4340
|
if (p.removeAttribute(s), s === "is" && !I[s])
|
|
4346
|
-
if (
|
|
4341
|
+
if (Ue || vt)
|
|
4347
4342
|
try {
|
|
4348
|
-
|
|
4343
|
+
Te(p);
|
|
4349
4344
|
} catch (S) {
|
|
4350
4345
|
}
|
|
4351
4346
|
else
|
|
@@ -4355,30 +4350,30 @@ function Ui() {
|
|
|
4355
4350
|
}
|
|
4356
4351
|
}, Zn = function(s) {
|
|
4357
4352
|
let p = null, S = null;
|
|
4358
|
-
if (
|
|
4353
|
+
if (tn)
|
|
4359
4354
|
s = "<remove></remove>" + s;
|
|
4360
4355
|
else {
|
|
4361
|
-
const oe =
|
|
4356
|
+
const oe = Rr(s, /^[\r\n\t ]+/);
|
|
4362
4357
|
S = oe && oe[0];
|
|
4363
4358
|
}
|
|
4364
|
-
|
|
4365
|
-
const
|
|
4366
|
-
if (
|
|
4359
|
+
it === "application/xhtml+xml" && Ge === Oe && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4360
|
+
const z = H ? H.createHTML(s) : s;
|
|
4361
|
+
if (Ge === Oe)
|
|
4367
4362
|
try {
|
|
4368
|
-
p = new y().parseFromString(
|
|
4363
|
+
p = new y().parseFromString(z, it);
|
|
4369
4364
|
} catch (oe) {
|
|
4370
4365
|
}
|
|
4371
4366
|
if (!p || !p.documentElement) {
|
|
4372
|
-
p =
|
|
4367
|
+
p = k.createDocument(Ge, "template", null);
|
|
4373
4368
|
try {
|
|
4374
|
-
p.documentElement.innerHTML =
|
|
4369
|
+
p.documentElement.innerHTML = on ? R : z;
|
|
4375
4370
|
} catch (oe) {
|
|
4376
4371
|
}
|
|
4377
4372
|
}
|
|
4378
4373
|
const se = p.body || p.documentElement;
|
|
4379
|
-
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null),
|
|
4374
|
+
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null), Ge === Oe ? Q.call(p, De ? "html" : "body")[0] : De ? p.documentElement : se;
|
|
4380
4375
|
}, qn = function(s) {
|
|
4381
|
-
return
|
|
4376
|
+
return Y.call(
|
|
4382
4377
|
s.ownerDocument || s,
|
|
4383
4378
|
s,
|
|
4384
4379
|
// eslint-disable-next-line no-bitwise
|
|
@@ -4389,40 +4384,40 @@ function Ui() {
|
|
|
4389
4384
|
return s instanceof _ && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof f) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
4390
4385
|
}, Qn = function(s) {
|
|
4391
4386
|
return typeof u == "function" && s instanceof u;
|
|
4392
|
-
},
|
|
4393
|
-
O[s] &&
|
|
4394
|
-
|
|
4387
|
+
}, Me = function(s, p, S) {
|
|
4388
|
+
O[s] && Lt(O[s], (z) => {
|
|
4389
|
+
z.call(t, p, S, je);
|
|
4395
4390
|
});
|
|
4396
4391
|
}, Kn = function(s) {
|
|
4397
4392
|
let p = null;
|
|
4398
|
-
if (
|
|
4399
|
-
return
|
|
4393
|
+
if (Me("beforeSanitizeElements", s, null), Jn(s))
|
|
4394
|
+
return Te(s), !0;
|
|
4400
4395
|
const S = ne(s.nodeName);
|
|
4401
|
-
if (
|
|
4396
|
+
if (Me("uponSanitizeElement", s, {
|
|
4402
4397
|
tagName: S,
|
|
4403
4398
|
allowedTags: N
|
|
4404
|
-
}), s.hasChildNodes() && !Qn(s.firstElementChild) && ue(/<[/\w]/g, s.innerHTML) && ue(/<[/\w]/g, s.textContent) || s.nodeType ===
|
|
4405
|
-
return
|
|
4399
|
+
}), s.hasChildNodes() && !Qn(s.firstElementChild) && ue(/<[/\w]/g, s.innerHTML) && ue(/<[/\w]/g, s.textContent) || s.nodeType === ht.progressingInstruction || Ne && s.nodeType === ht.comment && ue(/<[/\w]/g, s.data))
|
|
4400
|
+
return Te(s), !0;
|
|
4406
4401
|
if (!N[S] || U[S]) {
|
|
4407
4402
|
if (!U[S] && tr(S) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4408
4403
|
return !1;
|
|
4409
|
-
if (
|
|
4410
|
-
const
|
|
4411
|
-
if (se &&
|
|
4404
|
+
if (nn && !Fe[S]) {
|
|
4405
|
+
const z = w(s) || s.parentNode, se = $(s) || s.childNodes;
|
|
4406
|
+
if (se && z) {
|
|
4412
4407
|
const oe = se.length;
|
|
4413
4408
|
for (let me = oe - 1; me >= 0; --me) {
|
|
4414
4409
|
const Se = d(se[me], !0);
|
|
4415
|
-
Se.__removalCount = (s.__removalCount || 0) + 1,
|
|
4410
|
+
Se.__removalCount = (s.__removalCount || 0) + 1, z.insertBefore(Se, F(s));
|
|
4416
4411
|
}
|
|
4417
4412
|
}
|
|
4418
4413
|
}
|
|
4419
|
-
return
|
|
4414
|
+
return Te(s), !0;
|
|
4420
4415
|
}
|
|
4421
|
-
return s instanceof c && !Yi(s) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, s.innerHTML) ? (
|
|
4422
|
-
p =
|
|
4423
|
-
}), s.textContent !== p && (
|
|
4416
|
+
return s instanceof c && !Yi(s) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, s.innerHTML) ? (Te(s), !0) : (ge && s.nodeType === ht.text && (p = s.textContent, Lt([te, he, T], (z) => {
|
|
4417
|
+
p = lt(p, z, " ");
|
|
4418
|
+
}), s.textContent !== p && (ut(t.removed, {
|
|
4424
4419
|
element: s.cloneNode()
|
|
4425
|
-
}), s.textContent = p)),
|
|
4420
|
+
}), s.textContent = p)), Me("afterSanitizeElements", s, null), !1);
|
|
4426
4421
|
}, er = function(s, p, S) {
|
|
4427
4422
|
if ($n && (p === "id" || p === "name") && (S in n || S in Vi))
|
|
4428
4423
|
return !1;
|
|
@@ -4438,10 +4433,10 @@ function Ui() {
|
|
|
4438
4433
|
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4439
4434
|
)
|
|
4440
4435
|
return !1;
|
|
4441
|
-
} else if (!
|
|
4442
|
-
if (!ue(L,
|
|
4443
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" &&
|
|
4444
|
-
if (!(ie && !ue(
|
|
4436
|
+
} else if (!rn[p]) {
|
|
4437
|
+
if (!ue(L, lt(S, h, ""))) {
|
|
4438
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && Aa(S, "data:") === 0 && Fn[s])) {
|
|
4439
|
+
if (!(ie && !ue(v, lt(S, h, "")))) {
|
|
4445
4440
|
if (S)
|
|
4446
4441
|
return !1;
|
|
4447
4442
|
}
|
|
@@ -4452,9 +4447,9 @@ function Ui() {
|
|
|
4452
4447
|
}
|
|
4453
4448
|
return !0;
|
|
4454
4449
|
}, tr = function(s) {
|
|
4455
|
-
return s !== "annotation-xml" &&
|
|
4450
|
+
return s !== "annotation-xml" && Rr(s, x);
|
|
4456
4451
|
}, nr = function(s) {
|
|
4457
|
-
|
|
4452
|
+
Me("beforeSanitizeAttributes", s, null);
|
|
4458
4453
|
const {
|
|
4459
4454
|
attributes: p
|
|
4460
4455
|
} = s;
|
|
@@ -4466,31 +4461,31 @@ function Ui() {
|
|
|
4466
4461
|
keepAttr: !0,
|
|
4467
4462
|
allowedAttributes: I
|
|
4468
4463
|
};
|
|
4469
|
-
let
|
|
4470
|
-
for (;
|
|
4471
|
-
const se = p[
|
|
4464
|
+
let z = p.length;
|
|
4465
|
+
for (; z--; ) {
|
|
4466
|
+
const se = p[z], {
|
|
4472
4467
|
name: oe,
|
|
4473
4468
|
namespaceURI: me,
|
|
4474
4469
|
value: Se
|
|
4475
|
-
} = se,
|
|
4476
|
-
let ae = oe === "value" ? Se :
|
|
4477
|
-
if (S.attrName =
|
|
4478
|
-
|
|
4470
|
+
} = se, ot = ne(oe);
|
|
4471
|
+
let ae = oe === "value" ? Se : Oa(Se);
|
|
4472
|
+
if (S.attrName = ot, S.attrValue = ae, S.keepAttr = !0, S.forceKeepAttr = void 0, Me("uponSanitizeAttribute", s, S), ae = S.attrValue, Ne && ue(/((--!?|])>)|<\/(style|title)/i, ae)) {
|
|
4473
|
+
At(oe, s);
|
|
4479
4474
|
continue;
|
|
4480
4475
|
}
|
|
4481
|
-
if (S.forceKeepAttr || (
|
|
4476
|
+
if (S.forceKeepAttr || (At(oe, s), !S.keepAttr))
|
|
4482
4477
|
continue;
|
|
4483
4478
|
if (!xe && ue(/\/>/i, ae)) {
|
|
4484
|
-
|
|
4479
|
+
At(oe, s);
|
|
4485
4480
|
continue;
|
|
4486
4481
|
}
|
|
4487
|
-
ge &&
|
|
4488
|
-
ae =
|
|
4482
|
+
ge && Lt([te, he, T], (ir) => {
|
|
4483
|
+
ae = lt(ae, ir, " ");
|
|
4489
4484
|
});
|
|
4490
4485
|
const rr = ne(s.nodeName);
|
|
4491
|
-
if (er(rr,
|
|
4492
|
-
if (Un && (
|
|
4493
|
-
switch (M.getAttributeType(rr,
|
|
4486
|
+
if (er(rr, ot, ae)) {
|
|
4487
|
+
if (Un && (ot === "id" || ot === "name") && (At(oe, s), ae = Gi + ae), H && typeof M == "object" && typeof M.getAttributeType == "function" && !me)
|
|
4488
|
+
switch (M.getAttributeType(rr, ot)) {
|
|
4494
4489
|
case "TrustedHTML": {
|
|
4495
4490
|
ae = H.createHTML(ae);
|
|
4496
4491
|
break;
|
|
@@ -4501,77 +4496,77 @@ function Ui() {
|
|
|
4501
4496
|
}
|
|
4502
4497
|
}
|
|
4503
4498
|
try {
|
|
4504
|
-
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae), Jn(s) ?
|
|
4499
|
+
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae), Jn(s) ? Te(s) : Pr(t.removed);
|
|
4505
4500
|
} catch (ir) {
|
|
4506
4501
|
}
|
|
4507
4502
|
}
|
|
4508
4503
|
}
|
|
4509
|
-
|
|
4504
|
+
Me("afterSanitizeAttributes", s, null);
|
|
4510
4505
|
}, Zi = function A(s) {
|
|
4511
4506
|
let p = null;
|
|
4512
4507
|
const S = qn(s);
|
|
4513
|
-
for (
|
|
4514
|
-
|
|
4515
|
-
|
|
4508
|
+
for (Me("beforeSanitizeShadowDOM", s, null); p = S.nextNode(); )
|
|
4509
|
+
Me("uponSanitizeShadowNode", p, null), !Kn(p) && (p.content instanceof o && A(p.content), nr(p));
|
|
4510
|
+
Me("afterSanitizeShadowDOM", s, null);
|
|
4516
4511
|
};
|
|
4517
4512
|
return t.sanitize = function(A) {
|
|
4518
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null,
|
|
4519
|
-
if (
|
|
4513
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null, z = null, se = null;
|
|
4514
|
+
if (on = !A, on && (A = "<!-->"), typeof A != "string" && !Qn(A))
|
|
4520
4515
|
if (typeof A.toString == "function") {
|
|
4521
4516
|
if (A = A.toString(), typeof A != "string")
|
|
4522
|
-
throw
|
|
4517
|
+
throw ct("dirty is not a string, aborting");
|
|
4523
4518
|
} else
|
|
4524
|
-
throw
|
|
4519
|
+
throw ct("toString is not a function");
|
|
4525
4520
|
if (!t.isSupported)
|
|
4526
4521
|
return A;
|
|
4527
|
-
if (
|
|
4522
|
+
if (en || an(s), t.removed = [], typeof A == "string" && (rt = !1), rt) {
|
|
4528
4523
|
if (A.nodeName) {
|
|
4529
4524
|
const Se = ne(A.nodeName);
|
|
4530
4525
|
if (!N[Se] || U[Se])
|
|
4531
|
-
throw
|
|
4526
|
+
throw ct("root node is forbidden and cannot be sanitized in-place");
|
|
4532
4527
|
}
|
|
4533
4528
|
} else if (A instanceof u)
|
|
4534
|
-
p = Zn("<!---->"), S = p.ownerDocument.importNode(A, !0), S.nodeType ===
|
|
4529
|
+
p = Zn("<!---->"), S = p.ownerDocument.importNode(A, !0), S.nodeType === ht.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? p = S : p.appendChild(S);
|
|
4535
4530
|
else {
|
|
4536
|
-
if (
|
|
4531
|
+
if (!Ue && !ge && !De && // eslint-disable-next-line unicorn/prefer-includes
|
|
4537
4532
|
A.indexOf("<") === -1)
|
|
4538
4533
|
return H && Tt ? H.createHTML(A) : A;
|
|
4539
4534
|
if (p = Zn(A), !p)
|
|
4540
|
-
return
|
|
4535
|
+
return Ue ? null : Tt ? R : "";
|
|
4541
4536
|
}
|
|
4542
|
-
p &&
|
|
4543
|
-
const oe = qn(
|
|
4544
|
-
for (;
|
|
4545
|
-
Kn(
|
|
4546
|
-
if (
|
|
4537
|
+
p && tn && Te(p.firstChild);
|
|
4538
|
+
const oe = qn(rt ? A : p);
|
|
4539
|
+
for (; z = oe.nextNode(); )
|
|
4540
|
+
Kn(z) || (z.content instanceof o && Zi(z.content), nr(z));
|
|
4541
|
+
if (rt)
|
|
4547
4542
|
return A;
|
|
4548
|
-
if (
|
|
4549
|
-
if (
|
|
4550
|
-
for (se =
|
|
4543
|
+
if (Ue) {
|
|
4544
|
+
if (vt)
|
|
4545
|
+
for (se = V.call(p.ownerDocument); p.firstChild; )
|
|
4551
4546
|
se.appendChild(p.firstChild);
|
|
4552
4547
|
else
|
|
4553
4548
|
se = p;
|
|
4554
|
-
return (I.shadowroot || I.shadowrootmode) && (se =
|
|
4549
|
+
return (I.shadowroot || I.shadowrootmode) && (se = G.call(r, se, !0)), se;
|
|
4555
4550
|
}
|
|
4556
|
-
let me =
|
|
4557
|
-
return
|
|
4558
|
-
` + me), ge &&
|
|
4559
|
-
me =
|
|
4551
|
+
let me = De ? p.outerHTML : p.innerHTML;
|
|
4552
|
+
return De && N["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && ue($i, p.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4553
|
+
` + me), ge && Lt([te, he, T], (Se) => {
|
|
4554
|
+
me = lt(me, Se, " ");
|
|
4560
4555
|
}), H && Tt ? H.createHTML(me) : me;
|
|
4561
4556
|
}, t.setConfig = function() {
|
|
4562
4557
|
let A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4563
|
-
|
|
4558
|
+
an(A), en = !0;
|
|
4564
4559
|
}, t.clearConfig = function() {
|
|
4565
|
-
|
|
4560
|
+
je = null, en = !1;
|
|
4566
4561
|
}, t.isValidAttribute = function(A, s, p) {
|
|
4567
|
-
|
|
4568
|
-
const S = ne(A),
|
|
4569
|
-
return er(S,
|
|
4562
|
+
je || an({});
|
|
4563
|
+
const S = ne(A), z = ne(s);
|
|
4564
|
+
return er(S, z, p);
|
|
4570
4565
|
}, t.addHook = function(A, s) {
|
|
4571
|
-
typeof s == "function" && (O[A] = O[A] || [],
|
|
4566
|
+
typeof s == "function" && (O[A] = O[A] || [], ut(O[A], s));
|
|
4572
4567
|
}, t.removeHook = function(A) {
|
|
4573
4568
|
if (O[A])
|
|
4574
|
-
return
|
|
4569
|
+
return Pr(O[A]);
|
|
4575
4570
|
}, t.removeHooks = function(A) {
|
|
4576
4571
|
O[A] && (O[A] = []);
|
|
4577
4572
|
}, t.removeAllHooks = function() {
|
|
@@ -4583,62 +4578,62 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4583
4578
|
(function(n, r) {
|
|
4584
4579
|
e.exports = r();
|
|
4585
4580
|
})(li, function() {
|
|
4586
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", u = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
4587
|
-
var E = ["th", "st", "nd", "rd"], g =
|
|
4588
|
-
return "[" +
|
|
4589
|
-
} }, w = function(
|
|
4590
|
-
var
|
|
4591
|
-
return !
|
|
4592
|
-
}, H = { s: w, z: function(
|
|
4593
|
-
var E = -
|
|
4594
|
-
return (E <= 0 ? "+" : "-") + w(
|
|
4595
|
-
}, m: function
|
|
4581
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", a = "second", u = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
4582
|
+
var E = ["th", "st", "nd", "rd"], g = T % 100;
|
|
4583
|
+
return "[" + T + (E[(g - 20) % 10] || E[g] || E[0]) + "]";
|
|
4584
|
+
} }, w = function(T, E, g) {
|
|
4585
|
+
var v = String(T);
|
|
4586
|
+
return !v || v.length >= E ? T : "" + Array(E + 1 - v.length).join(g) + T;
|
|
4587
|
+
}, H = { s: w, z: function(T) {
|
|
4588
|
+
var E = -T.utcOffset(), g = Math.abs(E), v = Math.floor(g / 60), h = g % 60;
|
|
4589
|
+
return (E <= 0 ? "+" : "-") + w(v, 2, "0") + ":" + w(h, 2, "0");
|
|
4590
|
+
}, m: function T(E, g) {
|
|
4596
4591
|
if (E.date() < g.date())
|
|
4597
|
-
return -
|
|
4598
|
-
var
|
|
4599
|
-
return +(-(
|
|
4600
|
-
}, a: function(
|
|
4601
|
-
return
|
|
4602
|
-
}, p: function(
|
|
4603
|
-
return { M: _, y: M, w: f, d: l, D: b, h: c, m: u, s: a, ms: o, Q: y }[
|
|
4604
|
-
}, u: function(
|
|
4605
|
-
return
|
|
4606
|
-
} },
|
|
4607
|
-
|
|
4608
|
-
var
|
|
4609
|
-
return
|
|
4610
|
-
}, Q = function
|
|
4592
|
+
return -T(g, E);
|
|
4593
|
+
var v = 12 * (g.year() - E.year()) + (g.month() - E.month()), h = E.clone().add(v, _), x = g - h < 0, L = E.clone().add(v + (x ? -1 : 1), _);
|
|
4594
|
+
return +(-(v + (g - h) / (x ? h - L : L - h)) || 0);
|
|
4595
|
+
}, a: function(T) {
|
|
4596
|
+
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
4597
|
+
}, p: function(T) {
|
|
4598
|
+
return { M: _, y: M, w: f, d: l, D: b, h: c, m: u, s: a, ms: o, Q: y }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
4599
|
+
}, u: function(T) {
|
|
4600
|
+
return T === void 0;
|
|
4601
|
+
} }, R = "en", k = {};
|
|
4602
|
+
k[R] = $;
|
|
4603
|
+
var Y = "$isDayjsObject", V = function(T) {
|
|
4604
|
+
return T instanceof te || !(!T || !T[Y]);
|
|
4605
|
+
}, Q = function T(E, g, v) {
|
|
4611
4606
|
var h;
|
|
4612
4607
|
if (!E)
|
|
4613
|
-
return
|
|
4608
|
+
return R;
|
|
4614
4609
|
if (typeof E == "string") {
|
|
4615
4610
|
var x = E.toLowerCase();
|
|
4616
|
-
|
|
4611
|
+
k[x] && (h = x), g && (k[x] = g, h = x);
|
|
4617
4612
|
var L = E.split("-");
|
|
4618
4613
|
if (!h && L.length > 1)
|
|
4619
|
-
return
|
|
4614
|
+
return T(L[0]);
|
|
4620
4615
|
} else {
|
|
4621
4616
|
var N = E.name;
|
|
4622
|
-
|
|
4617
|
+
k[N] = E, h = N;
|
|
4623
4618
|
}
|
|
4624
|
-
return !
|
|
4625
|
-
},
|
|
4626
|
-
if (
|
|
4627
|
-
return
|
|
4619
|
+
return !v && h && (R = h), h || !v && R;
|
|
4620
|
+
}, G = function(T, E) {
|
|
4621
|
+
if (V(T))
|
|
4622
|
+
return T.clone();
|
|
4628
4623
|
var g = typeof E == "object" ? E : {};
|
|
4629
|
-
return g.date =
|
|
4624
|
+
return g.date = T, g.args = arguments, new te(g);
|
|
4630
4625
|
}, O = H;
|
|
4631
|
-
O.l = Q, O.i =
|
|
4632
|
-
return
|
|
4626
|
+
O.l = Q, O.i = V, O.w = function(T, E) {
|
|
4627
|
+
return G(T, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4633
4628
|
};
|
|
4634
4629
|
var te = function() {
|
|
4635
|
-
function
|
|
4636
|
-
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[
|
|
4630
|
+
function T(g) {
|
|
4631
|
+
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[Y] = !0;
|
|
4637
4632
|
}
|
|
4638
|
-
var E =
|
|
4633
|
+
var E = T.prototype;
|
|
4639
4634
|
return E.parse = function(g) {
|
|
4640
|
-
this.$d = function(
|
|
4641
|
-
var h =
|
|
4635
|
+
this.$d = function(v) {
|
|
4636
|
+
var h = v.date, x = v.utc;
|
|
4642
4637
|
if (h === null)
|
|
4643
4638
|
return /* @__PURE__ */ new Date(NaN);
|
|
4644
4639
|
if (O.u(h))
|
|
@@ -4648,8 +4643,8 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4648
4643
|
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
4649
4644
|
var L = h.match(C);
|
|
4650
4645
|
if (L) {
|
|
4651
|
-
var N = L[2] - 1 || 0,
|
|
4652
|
-
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0,
|
|
4646
|
+
var N = L[2] - 1 || 0, j = (L[7] || "0").substring(0, 3);
|
|
4647
|
+
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, j)) : new Date(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, j);
|
|
4653
4648
|
}
|
|
4654
4649
|
}
|
|
4655
4650
|
return new Date(h);
|
|
@@ -4661,24 +4656,24 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4661
4656
|
return O;
|
|
4662
4657
|
}, E.isValid = function() {
|
|
4663
4658
|
return this.$d.toString() !== d;
|
|
4664
|
-
}, E.isSame = function(g,
|
|
4665
|
-
var h =
|
|
4666
|
-
return this.startOf(
|
|
4667
|
-
}, E.isAfter = function(g,
|
|
4668
|
-
return
|
|
4669
|
-
}, E.isBefore = function(g,
|
|
4670
|
-
return this.endOf(
|
|
4671
|
-
}, E.$g = function(g,
|
|
4672
|
-
return O.u(g) ? this[
|
|
4659
|
+
}, E.isSame = function(g, v) {
|
|
4660
|
+
var h = G(g);
|
|
4661
|
+
return this.startOf(v) <= h && h <= this.endOf(v);
|
|
4662
|
+
}, E.isAfter = function(g, v) {
|
|
4663
|
+
return G(g) < this.startOf(v);
|
|
4664
|
+
}, E.isBefore = function(g, v) {
|
|
4665
|
+
return this.endOf(v) < G(g);
|
|
4666
|
+
}, E.$g = function(g, v, h) {
|
|
4667
|
+
return O.u(g) ? this[v] : this.set(h, g);
|
|
4673
4668
|
}, E.unix = function() {
|
|
4674
4669
|
return Math.floor(this.valueOf() / 1e3);
|
|
4675
4670
|
}, E.valueOf = function() {
|
|
4676
4671
|
return this.$d.getTime();
|
|
4677
|
-
}, E.startOf = function(g,
|
|
4678
|
-
var h = this, x = !!O.u(
|
|
4672
|
+
}, E.startOf = function(g, v) {
|
|
4673
|
+
var h = this, x = !!O.u(v) || v, L = O.p(g), N = function(ye, ie) {
|
|
4679
4674
|
var xe = O.w(h.$u ? Date.UTC(h.$y, ie, ye) : new Date(h.$y, ie, ye), h);
|
|
4680
4675
|
return x ? xe : xe.endOf(l);
|
|
4681
|
-
},
|
|
4676
|
+
}, j = function(ye, ie) {
|
|
4682
4677
|
return O.w(h.toDate()[ye].apply(h.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), h);
|
|
4683
4678
|
}, I = this.$W, q = this.$M, m = this.$D, U = "set" + (this.$u ? "UTC" : "");
|
|
4684
4679
|
switch (L) {
|
|
@@ -4691,35 +4686,35 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4691
4686
|
return N(x ? m - K : m + (6 - K), q);
|
|
4692
4687
|
case l:
|
|
4693
4688
|
case b:
|
|
4694
|
-
return
|
|
4689
|
+
return j(U + "Hours", 0);
|
|
4695
4690
|
case c:
|
|
4696
|
-
return
|
|
4691
|
+
return j(U + "Minutes", 1);
|
|
4697
4692
|
case u:
|
|
4698
|
-
return
|
|
4693
|
+
return j(U + "Seconds", 2);
|
|
4699
4694
|
case a:
|
|
4700
|
-
return
|
|
4695
|
+
return j(U + "Milliseconds", 3);
|
|
4701
4696
|
default:
|
|
4702
4697
|
return this.clone();
|
|
4703
4698
|
}
|
|
4704
4699
|
}, E.endOf = function(g) {
|
|
4705
4700
|
return this.startOf(g, !1);
|
|
4706
|
-
}, E.$set = function(g,
|
|
4707
|
-
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[u] = L + "Minutes", h[a] = L + "Seconds", h[o] = L + "Milliseconds", h)[x],
|
|
4701
|
+
}, E.$set = function(g, v) {
|
|
4702
|
+
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[u] = L + "Minutes", h[a] = L + "Seconds", h[o] = L + "Milliseconds", h)[x], j = x === l ? this.$D + (v - this.$W) : v;
|
|
4708
4703
|
if (x === _ || x === M) {
|
|
4709
4704
|
var I = this.clone().set(b, 1);
|
|
4710
|
-
I.$d[N](
|
|
4705
|
+
I.$d[N](j), I.init(), this.$d = I.set(b, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4711
4706
|
} else
|
|
4712
|
-
N && this.$d[N](
|
|
4707
|
+
N && this.$d[N](j);
|
|
4713
4708
|
return this.init(), this;
|
|
4714
|
-
}, E.set = function(g,
|
|
4715
|
-
return this.clone().$set(g,
|
|
4709
|
+
}, E.set = function(g, v) {
|
|
4710
|
+
return this.clone().$set(g, v);
|
|
4716
4711
|
}, E.get = function(g) {
|
|
4717
4712
|
return this[O.p(g)]();
|
|
4718
|
-
}, E.add = function(g,
|
|
4713
|
+
}, E.add = function(g, v) {
|
|
4719
4714
|
var h, x = this;
|
|
4720
4715
|
g = Number(g);
|
|
4721
|
-
var L = O.p(
|
|
4722
|
-
var m =
|
|
4716
|
+
var L = O.p(v), N = function(q) {
|
|
4717
|
+
var m = G(x);
|
|
4723
4718
|
return O.w(m.date(m.date() + Math.round(q * g)), x);
|
|
4724
4719
|
};
|
|
4725
4720
|
if (L === _)
|
|
@@ -4730,29 +4725,29 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4730
4725
|
return N(1);
|
|
4731
4726
|
if (L === f)
|
|
4732
4727
|
return N(7);
|
|
4733
|
-
var
|
|
4728
|
+
var j = (h = {}, h[u] = r, h[c] = i, h[a] = n, h)[L] || 1, I = this.$d.getTime() + g * j;
|
|
4734
4729
|
return O.w(I, this);
|
|
4735
|
-
}, E.subtract = function(g,
|
|
4736
|
-
return this.add(-1 * g,
|
|
4730
|
+
}, E.subtract = function(g, v) {
|
|
4731
|
+
return this.add(-1 * g, v);
|
|
4737
4732
|
}, E.format = function(g) {
|
|
4738
|
-
var
|
|
4733
|
+
var v = this, h = this.$locale();
|
|
4739
4734
|
if (!this.isValid())
|
|
4740
4735
|
return h.invalidDate || d;
|
|
4741
|
-
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H,
|
|
4742
|
-
return ie && (ie[xe] || ie(
|
|
4736
|
+
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H, j = this.$m, I = this.$M, q = h.weekdays, m = h.months, U = h.meridiem, ee = function(ie, xe, ge, Ne) {
|
|
4737
|
+
return ie && (ie[xe] || ie(v, x)) || ge[xe].slice(0, Ne);
|
|
4743
4738
|
}, K = function(ie) {
|
|
4744
4739
|
return O.s(N % 12 || 12, ie, "0");
|
|
4745
4740
|
}, ye = U || function(ie, xe, ge) {
|
|
4746
|
-
var
|
|
4747
|
-
return ge ?
|
|
4741
|
+
var Ne = ie < 12 ? "AM" : "PM";
|
|
4742
|
+
return ge ? Ne.toLowerCase() : Ne;
|
|
4748
4743
|
};
|
|
4749
|
-
return x.replace(
|
|
4744
|
+
return x.replace(F, function(ie, xe) {
|
|
4750
4745
|
return xe || function(ge) {
|
|
4751
4746
|
switch (ge) {
|
|
4752
4747
|
case "YY":
|
|
4753
|
-
return String(
|
|
4748
|
+
return String(v.$y).slice(-2);
|
|
4754
4749
|
case "YYYY":
|
|
4755
|
-
return O.s(
|
|
4750
|
+
return O.s(v.$y, 4, "0");
|
|
4756
4751
|
case "M":
|
|
4757
4752
|
return I + 1;
|
|
4758
4753
|
case "MM":
|
|
@@ -4762,17 +4757,17 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4762
4757
|
case "MMMM":
|
|
4763
4758
|
return ee(m, I);
|
|
4764
4759
|
case "D":
|
|
4765
|
-
return
|
|
4760
|
+
return v.$D;
|
|
4766
4761
|
case "DD":
|
|
4767
|
-
return O.s(
|
|
4762
|
+
return O.s(v.$D, 2, "0");
|
|
4768
4763
|
case "d":
|
|
4769
|
-
return String(
|
|
4764
|
+
return String(v.$W);
|
|
4770
4765
|
case "dd":
|
|
4771
|
-
return ee(h.weekdaysMin,
|
|
4766
|
+
return ee(h.weekdaysMin, v.$W, q, 2);
|
|
4772
4767
|
case "ddd":
|
|
4773
|
-
return ee(h.weekdaysShort,
|
|
4768
|
+
return ee(h.weekdaysShort, v.$W, q, 3);
|
|
4774
4769
|
case "dddd":
|
|
4775
|
-
return q[
|
|
4770
|
+
return q[v.$W];
|
|
4776
4771
|
case "H":
|
|
4777
4772
|
return String(N);
|
|
4778
4773
|
case "HH":
|
|
@@ -4782,19 +4777,19 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4782
4777
|
case "hh":
|
|
4783
4778
|
return K(2);
|
|
4784
4779
|
case "a":
|
|
4785
|
-
return ye(N,
|
|
4780
|
+
return ye(N, j, !0);
|
|
4786
4781
|
case "A":
|
|
4787
|
-
return ye(N,
|
|
4782
|
+
return ye(N, j, !1);
|
|
4788
4783
|
case "m":
|
|
4789
|
-
return String(
|
|
4784
|
+
return String(j);
|
|
4790
4785
|
case "mm":
|
|
4791
|
-
return O.s(
|
|
4786
|
+
return O.s(j, 2, "0");
|
|
4792
4787
|
case "s":
|
|
4793
|
-
return String(
|
|
4788
|
+
return String(v.$s);
|
|
4794
4789
|
case "ss":
|
|
4795
|
-
return O.s(
|
|
4790
|
+
return O.s(v.$s, 2, "0");
|
|
4796
4791
|
case "SSS":
|
|
4797
|
-
return O.s(
|
|
4792
|
+
return O.s(v.$ms, 3, "0");
|
|
4798
4793
|
case "Z":
|
|
4799
4794
|
return L;
|
|
4800
4795
|
}
|
|
@@ -4803,9 +4798,9 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4803
4798
|
});
|
|
4804
4799
|
}, E.utcOffset = function() {
|
|
4805
4800
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4806
|
-
}, E.diff = function(g,
|
|
4807
|
-
var x, L = this, N = O.p(
|
|
4808
|
-
return O.m(L,
|
|
4801
|
+
}, E.diff = function(g, v, h) {
|
|
4802
|
+
var x, L = this, N = O.p(v), j = G(g), I = (j.utcOffset() - this.utcOffset()) * r, q = this - j, m = function() {
|
|
4803
|
+
return O.m(L, j);
|
|
4809
4804
|
};
|
|
4810
4805
|
switch (N) {
|
|
4811
4806
|
case M:
|
|
@@ -4839,11 +4834,11 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4839
4834
|
}, E.daysInMonth = function() {
|
|
4840
4835
|
return this.endOf(_).$D;
|
|
4841
4836
|
}, E.$locale = function() {
|
|
4842
|
-
return
|
|
4843
|
-
}, E.locale = function(g,
|
|
4837
|
+
return k[this.$L];
|
|
4838
|
+
}, E.locale = function(g, v) {
|
|
4844
4839
|
if (!g)
|
|
4845
4840
|
return this.$L;
|
|
4846
|
-
var h = this.clone(), x = Q(g,
|
|
4841
|
+
var h = this.clone(), x = Q(g, v, !0);
|
|
4847
4842
|
return x && (h.$L = x), h;
|
|
4848
4843
|
}, E.clone = function() {
|
|
4849
4844
|
return O.w(this.$d, this);
|
|
@@ -4855,21 +4850,21 @@ var Fr = Ui(), ki = { exports: {} };
|
|
|
4855
4850
|
return this.$d.toISOString();
|
|
4856
4851
|
}, E.toString = function() {
|
|
4857
4852
|
return this.$d.toUTCString();
|
|
4858
|
-
},
|
|
4853
|
+
}, T;
|
|
4859
4854
|
}(), he = te.prototype;
|
|
4860
|
-
return
|
|
4861
|
-
he[
|
|
4862
|
-
return this.$g(E,
|
|
4855
|
+
return G.prototype = he, [["$ms", o], ["$s", a], ["$m", u], ["$H", c], ["$W", l], ["$M", _], ["$y", M], ["$D", b]].forEach(function(T) {
|
|
4856
|
+
he[T[1]] = function(E) {
|
|
4857
|
+
return this.$g(E, T[0], T[1]);
|
|
4863
4858
|
};
|
|
4864
|
-
}),
|
|
4865
|
-
return
|
|
4866
|
-
},
|
|
4867
|
-
return
|
|
4868
|
-
},
|
|
4859
|
+
}), G.extend = function(T, E) {
|
|
4860
|
+
return T.$i || (T(E, te, G), T.$i = !0), G;
|
|
4861
|
+
}, G.locale = Q, G.isDayjs = V, G.unix = function(T) {
|
|
4862
|
+
return G(1e3 * T);
|
|
4863
|
+
}, G.en = k[R], G.Ls = k, G.p = {}, G;
|
|
4869
4864
|
});
|
|
4870
4865
|
})(ki);
|
|
4871
|
-
var
|
|
4872
|
-
const Gr = /* @__PURE__ */
|
|
4866
|
+
var Ga = ki.exports;
|
|
4867
|
+
const Gr = /* @__PURE__ */ Rn(Ga);
|
|
4873
4868
|
var Fi = { exports: {} };
|
|
4874
4869
|
(function(e, t) {
|
|
4875
4870
|
(function(n, r) {
|
|
@@ -4901,16 +4896,16 @@ var Fi = { exports: {} };
|
|
|
4901
4896
|
};
|
|
4902
4897
|
var _ = c.utcOffset;
|
|
4903
4898
|
c.utcOffset = function(d, C) {
|
|
4904
|
-
var
|
|
4905
|
-
if (
|
|
4906
|
-
return this.$u ? 0 :
|
|
4907
|
-
if (typeof d == "string" && (d = function(
|
|
4908
|
-
|
|
4909
|
-
var
|
|
4910
|
-
if (!
|
|
4899
|
+
var F = this.$utils().u;
|
|
4900
|
+
if (F(d))
|
|
4901
|
+
return this.$u ? 0 : F(this.$offset) ? _.call(this) : this.$offset;
|
|
4902
|
+
if (typeof d == "string" && (d = function(R) {
|
|
4903
|
+
R === void 0 && (R = "");
|
|
4904
|
+
var k = R.match(r);
|
|
4905
|
+
if (!k)
|
|
4911
4906
|
return null;
|
|
4912
|
-
var
|
|
4913
|
-
return Q === 0 ? 0 :
|
|
4907
|
+
var Y = ("" + k[0]).match(i) || ["-", 0, 0], V = Y[0], Q = 60 * +Y[1] + +Y[2];
|
|
4908
|
+
return Q === 0 ? 0 : V === "+" ? Q : -Q;
|
|
4914
4909
|
}(d), d === null))
|
|
4915
4910
|
return this;
|
|
4916
4911
|
var $ = Math.abs(d) <= 16 ? 60 * d : d, w = this;
|
|
@@ -4942,25 +4937,25 @@ var Fi = { exports: {} };
|
|
|
4942
4937
|
return d === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
|
|
4943
4938
|
};
|
|
4944
4939
|
var b = c.diff;
|
|
4945
|
-
c.diff = function(d, C,
|
|
4940
|
+
c.diff = function(d, C, F) {
|
|
4946
4941
|
if (d && this.$u === d.$u)
|
|
4947
|
-
return b.call(this, d, C,
|
|
4942
|
+
return b.call(this, d, C, F);
|
|
4948
4943
|
var $ = this.local(), w = u(d).local();
|
|
4949
|
-
return b.call($, w, C,
|
|
4944
|
+
return b.call($, w, C, F);
|
|
4950
4945
|
};
|
|
4951
4946
|
};
|
|
4952
4947
|
});
|
|
4953
4948
|
})(Fi);
|
|
4954
|
-
var
|
|
4955
|
-
const
|
|
4956
|
-
let jr =
|
|
4957
|
-
function
|
|
4949
|
+
var ja = Fi.exports;
|
|
4950
|
+
const za = /* @__PURE__ */ Rn(ja);
|
|
4951
|
+
let jr = Et(null);
|
|
4952
|
+
function Wa(e, t) {
|
|
4958
4953
|
if (e) {
|
|
4959
4954
|
const n = document.createElement("style");
|
|
4960
4955
|
n.innerHTML = t, e.appendChild(n);
|
|
4961
4956
|
}
|
|
4962
4957
|
}
|
|
4963
|
-
function
|
|
4958
|
+
function Va(e, t) {
|
|
4964
4959
|
const n = new URL(t);
|
|
4965
4960
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4966
4961
|
const i = document.createElement("style");
|
|
@@ -4969,7 +4964,7 @@ function Wa(e, t) {
|
|
|
4969
4964
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4970
4965
|
});
|
|
4971
4966
|
}
|
|
4972
|
-
function
|
|
4967
|
+
function Xa(e, t, n) {
|
|
4973
4968
|
if (window.emMessageBus) {
|
|
4974
4969
|
const r = document.createElement("style");
|
|
4975
4970
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4977,70 +4972,70 @@ function Va(e, t, n) {
|
|
|
4977
4972
|
});
|
|
4978
4973
|
}
|
|
4979
4974
|
}
|
|
4980
|
-
function
|
|
4975
|
+
function Ya(e) {
|
|
4981
4976
|
oo(e, "svelte-878602", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #3854FF)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
|
|
4982
4977
|
}
|
|
4983
|
-
const
|
|
4978
|
+
const Za = (e) => ({}), zr = (e) => ({}), qa = (e) => ({}), Wr = (e) => ({}), Ja = (e) => ({}), Vr = (e) => ({}), Qa = (e) => ({}), Xr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4984
4979
|
function Yr(e) {
|
|
4985
4980
|
let t, n, r, i, o, a = (
|
|
4986
4981
|
/*$_*/
|
|
4987
4982
|
e[8]("sessionExpirationHeader") + ""
|
|
4988
|
-
), u, c, l, f, _, y, M, b, d, C,
|
|
4989
|
-
const
|
|
4983
|
+
), u, c, l, f, _, y, M, b, d, C, F, $, w, H, R;
|
|
4984
|
+
const k = (
|
|
4990
4985
|
/*#slots*/
|
|
4991
4986
|
e[22].icon
|
|
4992
|
-
),
|
|
4993
|
-
|
|
4987
|
+
), Y = Ht(
|
|
4988
|
+
k,
|
|
4994
4989
|
e,
|
|
4995
4990
|
/*$$scope*/
|
|
4996
4991
|
e[21],
|
|
4997
4992
|
Xr
|
|
4998
|
-
),
|
|
4993
|
+
), V = Y || Ka(e), Q = (
|
|
4999
4994
|
/*#slots*/
|
|
5000
4995
|
e[22].title
|
|
5001
|
-
),
|
|
4996
|
+
), G = Ht(
|
|
5002
4997
|
Q,
|
|
5003
4998
|
e,
|
|
5004
4999
|
/*$$scope*/
|
|
5005
5000
|
e[21],
|
|
5006
5001
|
Vr
|
|
5007
|
-
), O =
|
|
5002
|
+
), O = G || eu(e), te = (
|
|
5008
5003
|
/*#slots*/
|
|
5009
5004
|
e[22].text
|
|
5010
|
-
), he =
|
|
5005
|
+
), he = Ht(
|
|
5011
5006
|
te,
|
|
5012
5007
|
e,
|
|
5013
5008
|
/*$$scope*/
|
|
5014
5009
|
e[21],
|
|
5015
5010
|
Wr
|
|
5016
|
-
),
|
|
5017
|
-
function
|
|
5011
|
+
), T = he || tu(e), E = [ru, nu], g = [];
|
|
5012
|
+
function v(h, x) {
|
|
5018
5013
|
return (
|
|
5019
5014
|
/*showLoaderButton*/
|
|
5020
5015
|
h[6] ? 0 : 1
|
|
5021
5016
|
);
|
|
5022
5017
|
}
|
|
5023
|
-
return d =
|
|
5018
|
+
return d = v(e), C = g[d] = E[d](e), {
|
|
5024
5019
|
c() {
|
|
5025
|
-
t = re("div"), n = re("div"), r = re("div"), i = re("div"), o = re("div"), u =
|
|
5026
|
-
e[6],
|
|
5020
|
+
t = re("div"), n = re("div"), r = re("div"), i = re("div"), o = re("div"), u = et(a), c = mt(), l = re("div"), f = re("div"), V && V.c(), _ = mt(), O && O.c(), y = mt(), T && T.c(), M = mt(), b = re("button"), C.c(), W(o, "class", "CashierSessionExpirationModalHeaderTitle"), W(i, "class", "CashierSessionExpirationModalHeader"), W(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
5021
|
+
e[6], W(b, "class", "CashierSessionExpirationButton"), W(f, "class", "CashierSessionExpiration"), W(l, "class", "CashierSessionExpirationModalContainer"), W(r, "class", "CashierSessionExpirationModalWrapper"), W(n, "class", "CashierSessionExpirationModalWindow"), W(n, "id", "CashierSessionExpirationModal"), Ze(() => (
|
|
5027
5022
|
/*div5_elementresize_handler*/
|
|
5028
5023
|
e[24].call(n)
|
|
5029
5024
|
));
|
|
5030
5025
|
},
|
|
5031
5026
|
m(h, x) {
|
|
5032
|
-
|
|
5027
|
+
Le(h, t, x), J(t, n), J(n, r), J(r, i), J(i, o), J(o, u), J(r, c), J(r, l), J(l, f), V && V.m(f, null), J(f, _), O && O.m(f, null), J(f, y), T && T.m(f, null), J(f, M), J(f, b), g[d].m(b, null), e[23](f), F = lo(
|
|
5033
5028
|
n,
|
|
5034
5029
|
/*div5_elementresize_handler*/
|
|
5035
5030
|
e[24].bind(n)
|
|
5036
|
-
), e[25](t), w = !0, H || (
|
|
5037
|
-
|
|
5031
|
+
), e[25](t), w = !0, H || (R = [
|
|
5032
|
+
Ft(
|
|
5038
5033
|
b,
|
|
5039
5034
|
"click",
|
|
5040
5035
|
/*renewSession*/
|
|
5041
5036
|
e[9]
|
|
5042
5037
|
),
|
|
5043
|
-
|
|
5038
|
+
Ft(
|
|
5044
5039
|
n,
|
|
5045
5040
|
"click",
|
|
5046
5041
|
/*outOfModalClick*/
|
|
@@ -5051,38 +5046,38 @@ function Yr(e) {
|
|
|
5051
5046
|
p(h, x) {
|
|
5052
5047
|
e = h, (!w || x[0] & /*$_*/
|
|
5053
5048
|
256) && a !== (a = /*$_*/
|
|
5054
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5055
|
-
2097152) &&
|
|
5056
|
-
|
|
5057
|
-
|
|
5049
|
+
e[8]("sessionExpirationHeader") + "") && qt(u, a), Y ? Y.p && (!w || x[0] & /*$$scope*/
|
|
5050
|
+
2097152) && Pt(
|
|
5051
|
+
Y,
|
|
5052
|
+
k,
|
|
5058
5053
|
e,
|
|
5059
5054
|
/*$$scope*/
|
|
5060
5055
|
e[21],
|
|
5061
|
-
w ?
|
|
5062
|
-
|
|
5056
|
+
w ? It(
|
|
5057
|
+
k,
|
|
5063
5058
|
/*$$scope*/
|
|
5064
5059
|
e[21],
|
|
5065
5060
|
x,
|
|
5066
|
-
|
|
5061
|
+
Qa
|
|
5067
5062
|
) : Rt(
|
|
5068
5063
|
/*$$scope*/
|
|
5069
5064
|
e[21]
|
|
5070
5065
|
),
|
|
5071
5066
|
Xr
|
|
5072
|
-
) :
|
|
5073
|
-
8) &&
|
|
5074
|
-
2097152) &&
|
|
5075
|
-
|
|
5067
|
+
) : V && V.p && (!w || x[0] & /*assetsurl*/
|
|
5068
|
+
8) && V.p(e, w ? x : [-1, -1]), G ? G.p && (!w || x[0] & /*$$scope*/
|
|
5069
|
+
2097152) && Pt(
|
|
5070
|
+
G,
|
|
5076
5071
|
Q,
|
|
5077
5072
|
e,
|
|
5078
5073
|
/*$$scope*/
|
|
5079
5074
|
e[21],
|
|
5080
|
-
w ?
|
|
5075
|
+
w ? It(
|
|
5081
5076
|
Q,
|
|
5082
5077
|
/*$$scope*/
|
|
5083
5078
|
e[21],
|
|
5084
5079
|
x,
|
|
5085
|
-
|
|
5080
|
+
Ja
|
|
5086
5081
|
) : Rt(
|
|
5087
5082
|
/*$$scope*/
|
|
5088
5083
|
e[21]
|
|
@@ -5090,34 +5085,34 @@ function Yr(e) {
|
|
|
5090
5085
|
Vr
|
|
5091
5086
|
) : O && O.p && (!w || x[0] & /*$_*/
|
|
5092
5087
|
256) && O.p(e, w ? x : [-1, -1]), he ? he.p && (!w || x[0] & /*$$scope*/
|
|
5093
|
-
2097152) &&
|
|
5088
|
+
2097152) && Pt(
|
|
5094
5089
|
he,
|
|
5095
5090
|
te,
|
|
5096
5091
|
e,
|
|
5097
5092
|
/*$$scope*/
|
|
5098
5093
|
e[21],
|
|
5099
|
-
w ?
|
|
5094
|
+
w ? It(
|
|
5100
5095
|
te,
|
|
5101
5096
|
/*$$scope*/
|
|
5102
5097
|
e[21],
|
|
5103
5098
|
x,
|
|
5104
|
-
|
|
5099
|
+
qa
|
|
5105
5100
|
) : Rt(
|
|
5106
5101
|
/*$$scope*/
|
|
5107
5102
|
e[21]
|
|
5108
5103
|
),
|
|
5109
5104
|
Wr
|
|
5110
|
-
) :
|
|
5111
|
-
384) &&
|
|
5105
|
+
) : T && T.p && (!w || x[0] & /*$_, timeLeft*/
|
|
5106
|
+
384) && T.p(e, w ? x : [-1, -1]);
|
|
5112
5107
|
let L = d;
|
|
5113
|
-
d =
|
|
5108
|
+
d = v(e), d === L ? g[d].p(e, x) : (si(), He(g[L], 1, 1, () => {
|
|
5114
5109
|
g[L] = null;
|
|
5115
5110
|
}), ai(), C = g[d], C ? C.p(e, x) : (C = g[d] = E[d](e), C.c()), we(C, 1), C.m(b, null)), (!w || x[0] & /*showLoaderButton*/
|
|
5116
5111
|
64) && (b.disabled = /*showLoaderButton*/
|
|
5117
5112
|
e[6]);
|
|
5118
5113
|
},
|
|
5119
5114
|
i(h) {
|
|
5120
|
-
w || (we(
|
|
5115
|
+
w || (we(V, h), we(O, h), we(T, h), we(C), h && Ze(() => {
|
|
5121
5116
|
w && ($ || ($ = pr(n, gr, { duration: (
|
|
5122
5117
|
/*duration*/
|
|
5123
5118
|
e[2]
|
|
@@ -5125,13 +5120,13 @@ function Yr(e) {
|
|
|
5125
5120
|
}), w = !0);
|
|
5126
5121
|
},
|
|
5127
5122
|
o(h) {
|
|
5128
|
-
|
|
5123
|
+
He(V, h), He(O, h), He(T, h), He(C), h && ($ || ($ = pr(n, gr, { duration: (
|
|
5129
5124
|
/*duration*/
|
|
5130
5125
|
e[2]
|
|
5131
5126
|
) }, !1)), $.run(0)), w = !1;
|
|
5132
5127
|
},
|
|
5133
5128
|
d(h) {
|
|
5134
|
-
h && Ee(t),
|
|
5129
|
+
h && Ee(t), V && V.d(h), O && O.d(h), T && T.d(h), g[d].d(), e[23](null), F(), h && $ && $.end(), e[25](null), H = !1, Pe(R);
|
|
5135
5130
|
}
|
|
5136
5131
|
};
|
|
5137
5132
|
}
|
|
@@ -5140,22 +5135,22 @@ function Zr(e) {
|
|
|
5140
5135
|
return {
|
|
5141
5136
|
c() {
|
|
5142
5137
|
t = re("img"), cr(t.src, n = `${/*assetsurl*/
|
|
5143
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5138
|
+
e[3]}/set-timeout-icon.png`) || W(t, "src", n), W(t, "width", "300px"), W(t, "alt", "error");
|
|
5144
5139
|
},
|
|
5145
5140
|
m(r, i) {
|
|
5146
|
-
|
|
5141
|
+
Le(r, t, i);
|
|
5147
5142
|
},
|
|
5148
5143
|
p(r, i) {
|
|
5149
5144
|
i[0] & /*assetsurl*/
|
|
5150
5145
|
8 && !cr(t.src, n = `${/*assetsurl*/
|
|
5151
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5146
|
+
r[3]}/set-timeout-icon.png`) && W(t, "src", n);
|
|
5152
5147
|
},
|
|
5153
5148
|
d(r) {
|
|
5154
5149
|
r && Ee(t);
|
|
5155
5150
|
}
|
|
5156
5151
|
};
|
|
5157
5152
|
}
|
|
5158
|
-
function
|
|
5153
|
+
function Ka(e) {
|
|
5159
5154
|
let t, n = (
|
|
5160
5155
|
/*assetsurl*/
|
|
5161
5156
|
e[3] && Zr(e)
|
|
@@ -5165,7 +5160,7 @@ function Qa(e) {
|
|
|
5165
5160
|
n && n.c(), t = ii();
|
|
5166
5161
|
},
|
|
5167
5162
|
m(r, i) {
|
|
5168
|
-
n && n.m(r, i),
|
|
5163
|
+
n && n.m(r, i), Le(r, t, i);
|
|
5169
5164
|
},
|
|
5170
5165
|
p(r, i) {
|
|
5171
5166
|
/*assetsurl*/
|
|
@@ -5176,29 +5171,29 @@ function Qa(e) {
|
|
|
5176
5171
|
}
|
|
5177
5172
|
};
|
|
5178
5173
|
}
|
|
5179
|
-
function
|
|
5174
|
+
function eu(e) {
|
|
5180
5175
|
let t, n = (
|
|
5181
5176
|
/*$_*/
|
|
5182
5177
|
e[8]("sessionExpirationTitle") + ""
|
|
5183
5178
|
), r;
|
|
5184
5179
|
return {
|
|
5185
5180
|
c() {
|
|
5186
|
-
t = re("span"), r =
|
|
5181
|
+
t = re("span"), r = et(n), W(t, "class", "CashierSessionExpirationTitle");
|
|
5187
5182
|
},
|
|
5188
5183
|
m(i, o) {
|
|
5189
|
-
|
|
5184
|
+
Le(i, t, o), J(t, r);
|
|
5190
5185
|
},
|
|
5191
5186
|
p(i, o) {
|
|
5192
5187
|
o[0] & /*$_*/
|
|
5193
5188
|
256 && n !== (n = /*$_*/
|
|
5194
|
-
i[8]("sessionExpirationTitle") + "") &&
|
|
5189
|
+
i[8]("sessionExpirationTitle") + "") && qt(r, n);
|
|
5195
5190
|
},
|
|
5196
5191
|
d(i) {
|
|
5197
5192
|
i && Ee(t);
|
|
5198
5193
|
}
|
|
5199
5194
|
};
|
|
5200
5195
|
}
|
|
5201
|
-
function
|
|
5196
|
+
function tu(e) {
|
|
5202
5197
|
let t, n = Fr.sanitize(
|
|
5203
5198
|
/*$_*/
|
|
5204
5199
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -5208,10 +5203,10 @@ function eu(e) {
|
|
|
5208
5203
|
) + "";
|
|
5209
5204
|
return {
|
|
5210
5205
|
c() {
|
|
5211
|
-
t = re("span"),
|
|
5206
|
+
t = re("span"), W(t, "class", "CashierSessionExpirationText");
|
|
5212
5207
|
},
|
|
5213
5208
|
m(r, i) {
|
|
5214
|
-
|
|
5209
|
+
Le(r, t, i), t.innerHTML = n;
|
|
5215
5210
|
},
|
|
5216
5211
|
p(r, i) {
|
|
5217
5212
|
i[0] & /*$_, timeLeft*/
|
|
@@ -5228,18 +5223,18 @@ function eu(e) {
|
|
|
5228
5223
|
}
|
|
5229
5224
|
};
|
|
5230
5225
|
}
|
|
5231
|
-
function
|
|
5226
|
+
function nu(e) {
|
|
5232
5227
|
let t;
|
|
5233
5228
|
const n = (
|
|
5234
5229
|
/*#slots*/
|
|
5235
5230
|
e[22].button
|
|
5236
|
-
), r =
|
|
5231
|
+
), r = Ht(
|
|
5237
5232
|
n,
|
|
5238
5233
|
e,
|
|
5239
5234
|
/*$$scope*/
|
|
5240
5235
|
e[21],
|
|
5241
5236
|
zr
|
|
5242
|
-
), i = r ||
|
|
5237
|
+
), i = r || iu(e);
|
|
5243
5238
|
return {
|
|
5244
5239
|
c() {
|
|
5245
5240
|
i && i.c();
|
|
@@ -5249,18 +5244,18 @@ function tu(e) {
|
|
|
5249
5244
|
},
|
|
5250
5245
|
p(o, a) {
|
|
5251
5246
|
r ? r.p && (!t || a[0] & /*$$scope*/
|
|
5252
|
-
2097152) &&
|
|
5247
|
+
2097152) && Pt(
|
|
5253
5248
|
r,
|
|
5254
5249
|
n,
|
|
5255
5250
|
o,
|
|
5256
5251
|
/*$$scope*/
|
|
5257
5252
|
o[21],
|
|
5258
|
-
t ?
|
|
5253
|
+
t ? It(
|
|
5259
5254
|
n,
|
|
5260
5255
|
/*$$scope*/
|
|
5261
5256
|
o[21],
|
|
5262
5257
|
a,
|
|
5263
|
-
|
|
5258
|
+
Za
|
|
5264
5259
|
) : Rt(
|
|
5265
5260
|
/*$$scope*/
|
|
5266
5261
|
o[21]
|
|
@@ -5273,29 +5268,29 @@ function tu(e) {
|
|
|
5273
5268
|
t || (we(i, o), t = !0);
|
|
5274
5269
|
},
|
|
5275
5270
|
o(o) {
|
|
5276
|
-
|
|
5271
|
+
He(i, o), t = !1;
|
|
5277
5272
|
},
|
|
5278
5273
|
d(o) {
|
|
5279
5274
|
i && i.d(o);
|
|
5280
5275
|
}
|
|
5281
5276
|
};
|
|
5282
5277
|
}
|
|
5283
|
-
function
|
|
5278
|
+
function ru(e) {
|
|
5284
5279
|
let t, n, r, i, o, a = (
|
|
5285
5280
|
/*$_*/
|
|
5286
5281
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5287
5282
|
), u;
|
|
5288
5283
|
return {
|
|
5289
5284
|
c() {
|
|
5290
|
-
t = re("div"), n = hr("svg"), r = hr("path"), i =
|
|
5285
|
+
t = re("div"), n = hr("svg"), r = hr("path"), i = mt(), o = re("span"), u = et(a), W(r, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), W(r, "fill", "white"), W(n, "class", "CashierSessionExpirationButtonSpinner"), W(n, "xmlns", "http://www.w3.org/2000/svg"), W(n, "width", "15"), W(n, "height", "14"), W(n, "viewBox", "0 0 15 14"), W(n, "fill", "none"), W(o, "class", "CashierSessionExpirationButtonText");
|
|
5291
5286
|
},
|
|
5292
5287
|
m(c, l) {
|
|
5293
|
-
|
|
5288
|
+
Le(c, t, l), J(t, n), J(n, r), J(t, i), J(t, o), J(o, u);
|
|
5294
5289
|
},
|
|
5295
5290
|
p(c, l) {
|
|
5296
5291
|
l[0] & /*$_*/
|
|
5297
5292
|
256 && a !== (a = /*$_*/
|
|
5298
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5293
|
+
c[8]("sessionExpirationLoadingButton") + "") && qt(u, a);
|
|
5299
5294
|
},
|
|
5300
5295
|
i: de,
|
|
5301
5296
|
o: de,
|
|
@@ -5304,29 +5299,29 @@ function nu(e) {
|
|
|
5304
5299
|
}
|
|
5305
5300
|
};
|
|
5306
5301
|
}
|
|
5307
|
-
function
|
|
5302
|
+
function iu(e) {
|
|
5308
5303
|
let t, n = (
|
|
5309
5304
|
/*$_*/
|
|
5310
5305
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5311
5306
|
), r;
|
|
5312
5307
|
return {
|
|
5313
5308
|
c() {
|
|
5314
|
-
t = re("span"), r =
|
|
5309
|
+
t = re("span"), r = et(n), W(t, "class", "CashierSessionExpirationButtonText");
|
|
5315
5310
|
},
|
|
5316
5311
|
m(i, o) {
|
|
5317
|
-
|
|
5312
|
+
Le(i, t, o), J(t, r);
|
|
5318
5313
|
},
|
|
5319
5314
|
p(i, o) {
|
|
5320
5315
|
o[0] & /*$_*/
|
|
5321
5316
|
256 && n !== (n = /*$_*/
|
|
5322
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5317
|
+
i[8]("sessionExpirationGeneralButton") + "") && qt(r, n);
|
|
5323
5318
|
},
|
|
5324
5319
|
d(i) {
|
|
5325
5320
|
i && Ee(t);
|
|
5326
5321
|
}
|
|
5327
5322
|
};
|
|
5328
5323
|
}
|
|
5329
|
-
function
|
|
5324
|
+
function ou(e) {
|
|
5330
5325
|
let t, n, r = (
|
|
5331
5326
|
/*show*/
|
|
5332
5327
|
e[5] && Yr(e)
|
|
@@ -5336,12 +5331,12 @@ function iu(e) {
|
|
|
5336
5331
|
r && r.c(), t = ii();
|
|
5337
5332
|
},
|
|
5338
5333
|
m(i, o) {
|
|
5339
|
-
r && r.m(i, o),
|
|
5334
|
+
r && r.m(i, o), Le(i, t, o), n = !0;
|
|
5340
5335
|
},
|
|
5341
5336
|
p(i, o) {
|
|
5342
5337
|
/*show*/
|
|
5343
5338
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5344
|
-
32 && we(r, 1)) : (r = Yr(i), r.c(), we(r, 1), r.m(t.parentNode, t)) : r && (si(),
|
|
5339
|
+
32 && we(r, 1)) : (r = Yr(i), r.c(), we(r, 1), r.m(t.parentNode, t)) : r && (si(), He(r, 1, 1, () => {
|
|
5345
5340
|
r = null;
|
|
5346
5341
|
}), ai());
|
|
5347
5342
|
},
|
|
@@ -5349,27 +5344,27 @@ function iu(e) {
|
|
|
5349
5344
|
n || (we(r), n = !0);
|
|
5350
5345
|
},
|
|
5351
5346
|
o(i) {
|
|
5352
|
-
|
|
5347
|
+
He(r), n = !1;
|
|
5353
5348
|
},
|
|
5354
5349
|
d(i) {
|
|
5355
5350
|
i && Ee(t), r && r.d(i);
|
|
5356
5351
|
}
|
|
5357
5352
|
};
|
|
5358
5353
|
}
|
|
5359
|
-
const
|
|
5360
|
-
function
|
|
5354
|
+
const su = 90;
|
|
5355
|
+
function au(e, t, n) {
|
|
5361
5356
|
let r, i;
|
|
5362
|
-
fr(e, jr, (m) => n(20, r = m)), fr(e,
|
|
5357
|
+
fr(e, jr, (m) => n(20, r = m)), fr(e, xa, (m) => n(8, i = m));
|
|
5363
5358
|
let { $$slots: o = {}, $$scope: a } = t;
|
|
5364
|
-
Gr.extend(
|
|
5365
|
-
let { clientstyling: u = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid:
|
|
5359
|
+
Gr.extend(za);
|
|
5360
|
+
let { clientstyling: u = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: F } = t, { selectedpaymentmethodname: $ } = t, { mbsource: w = "" } = t, H, R = !1, k = !1, Y, V, Q, G, O;
|
|
5366
5361
|
var te;
|
|
5367
5362
|
(function(m) {
|
|
5368
5363
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
5369
5364
|
})(te || (te = {}));
|
|
5370
5365
|
const he = (m) => {
|
|
5371
|
-
m.data.type === "StartSessionCountdown" && (
|
|
5372
|
-
},
|
|
5366
|
+
m.data.type === "StartSessionCountdown" && (G = m.data.paymentMethodName);
|
|
5367
|
+
}, T = (m) => {
|
|
5373
5368
|
try {
|
|
5374
5369
|
return JSON.parse(atob(m.split(".")[1]));
|
|
5375
5370
|
} catch (U) {
|
|
@@ -5384,28 +5379,28 @@ function su(e, t, n) {
|
|
|
5384
5379
|
window.location.href
|
|
5385
5380
|
);
|
|
5386
5381
|
}, g = (m) => {
|
|
5387
|
-
n(5,
|
|
5388
|
-
const U =
|
|
5389
|
-
U && (
|
|
5382
|
+
n(5, R = !1);
|
|
5383
|
+
const U = T(m);
|
|
5384
|
+
U && (V = U == null ? void 0 : U.exp, n(7, Y = V), Q && clearInterval(Q), Q = setInterval(
|
|
5390
5385
|
() => {
|
|
5391
5386
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5392
|
-
n(7,
|
|
5387
|
+
n(7, Y = V - ee), Y <= su && n(5, R = !0), ee >= V && (v(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5393
5388
|
},
|
|
5394
5389
|
1e3
|
|
5395
5390
|
));
|
|
5396
|
-
},
|
|
5397
|
-
n(7,
|
|
5391
|
+
}, v = () => {
|
|
5392
|
+
n(7, Y = 0), n(5, R = !1), clearInterval(Q);
|
|
5398
5393
|
}, h = () => {
|
|
5399
|
-
if (
|
|
5394
|
+
if (k)
|
|
5400
5395
|
return;
|
|
5401
|
-
const m = new URL(`${d}/v1/player/${
|
|
5402
|
-
n(6,
|
|
5396
|
+
const m = new URL(`${d}/v1/player/${F}/payment/GetPaymentMethod`), U = new Headers();
|
|
5397
|
+
n(6, k = !0), U.append("accept", "application/json"), U.append("Content-Type", "application/json"), U.append("X-Client-Request-Timestamp", Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5403
5398
|
const ee = {
|
|
5404
5399
|
method: "POST",
|
|
5405
5400
|
mode: "cors",
|
|
5406
5401
|
headers: U,
|
|
5407
5402
|
body: JSON.stringify({
|
|
5408
|
-
PaymentMethodName:
|
|
5403
|
+
PaymentMethodName: G || $,
|
|
5409
5404
|
Currency: C,
|
|
5410
5405
|
XPaymentSessionToken: r
|
|
5411
5406
|
})
|
|
@@ -5418,19 +5413,19 @@ function su(e, t, n) {
|
|
|
5418
5413
|
error: K.error
|
|
5419
5414
|
},
|
|
5420
5415
|
window.location.href
|
|
5421
|
-
),
|
|
5416
|
+
), v();
|
|
5422
5417
|
return;
|
|
5423
5418
|
}
|
|
5424
5419
|
if (K.ResponseCode === te.PlayerSessionIsNotValid || K.ResponseCode === te.JwtTokenError) {
|
|
5425
|
-
O = K.ResponseCode,
|
|
5420
|
+
O = K.ResponseCode, v(), E();
|
|
5426
5421
|
return;
|
|
5427
5422
|
}
|
|
5428
5423
|
if (K.ResponseCode !== te.Success) {
|
|
5429
|
-
O = K.ResponseCode,
|
|
5424
|
+
O = K.ResponseCode, v();
|
|
5430
5425
|
return;
|
|
5431
5426
|
}
|
|
5432
5427
|
K.XPaymentSessionToken && jr.set(K.XPaymentSessionToken);
|
|
5433
|
-
}).finally(() => n(6,
|
|
5428
|
+
}).finally(() => n(6, k = !1));
|
|
5434
5429
|
}, x = (m) => {
|
|
5435
5430
|
const U = m.currentTarget;
|
|
5436
5431
|
m.target === U && h();
|
|
@@ -5447,15 +5442,15 @@ function su(e, t, n) {
|
|
|
5447
5442
|
Nr(m, Hr[m]);
|
|
5448
5443
|
});
|
|
5449
5444
|
const N = () => {
|
|
5450
|
-
|
|
5445
|
+
va(M);
|
|
5451
5446
|
};
|
|
5452
5447
|
_o(() => (window.addEventListener("message", he, !1), () => {
|
|
5453
5448
|
window.removeEventListener("message", he);
|
|
5454
5449
|
})), bo(() => {
|
|
5455
5450
|
clearInterval(Q);
|
|
5456
5451
|
});
|
|
5457
|
-
function
|
|
5458
|
-
|
|
5452
|
+
function j(m) {
|
|
5453
|
+
zt[m ? "unshift" : "push"](() => {
|
|
5459
5454
|
H = m, n(4, H);
|
|
5460
5455
|
});
|
|
5461
5456
|
}
|
|
@@ -5463,19 +5458,19 @@ function su(e, t, n) {
|
|
|
5463
5458
|
l = this.clientWidth, f = this.clientHeight, n(0, l), n(1, f);
|
|
5464
5459
|
}
|
|
5465
5460
|
function q(m) {
|
|
5466
|
-
|
|
5461
|
+
zt[m ? "unshift" : "push"](() => {
|
|
5467
5462
|
H = m, n(4, H);
|
|
5468
5463
|
});
|
|
5469
5464
|
}
|
|
5470
5465
|
return e.$$set = (m) => {
|
|
5471
|
-
"clientstyling" in m && n(11, u = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17,
|
|
5466
|
+
"clientstyling" in m && n(11, u = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17, F = m.customerid), "selectedpaymentmethodname" in m && n(18, $ = m.selectedpaymentmethodname), "mbsource" in m && n(19, w = m.mbsource), "$$scope" in m && n(21, a = m.$$scope);
|
|
5472
5467
|
}, e.$$.update = () => {
|
|
5473
5468
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5474
5469
|
1048576 && g(r), e.$$.dirty[0] & /*lang*/
|
|
5475
5470
|
8192 && M && N(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5476
|
-
2064 && u && H &&
|
|
5477
|
-
4112 && c && H &&
|
|
5478
|
-
524304 && w && H &&
|
|
5471
|
+
2064 && u && H && Wa(H, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5472
|
+
4112 && c && H && Va(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5473
|
+
524304 && w && H && Xa(H, `${w}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5479
5474
|
16384 && b && L();
|
|
5480
5475
|
}, [
|
|
5481
5476
|
l,
|
|
@@ -5483,9 +5478,9 @@ function su(e, t, n) {
|
|
|
5483
5478
|
_,
|
|
5484
5479
|
y,
|
|
5485
5480
|
H,
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5481
|
+
R,
|
|
5482
|
+
k,
|
|
5483
|
+
Y,
|
|
5489
5484
|
i,
|
|
5490
5485
|
h,
|
|
5491
5486
|
x,
|
|
@@ -5495,24 +5490,24 @@ function su(e, t, n) {
|
|
|
5495
5490
|
b,
|
|
5496
5491
|
d,
|
|
5497
5492
|
C,
|
|
5498
|
-
|
|
5493
|
+
F,
|
|
5499
5494
|
$,
|
|
5500
5495
|
w,
|
|
5501
5496
|
r,
|
|
5502
5497
|
a,
|
|
5503
5498
|
o,
|
|
5504
|
-
|
|
5499
|
+
j,
|
|
5505
5500
|
I,
|
|
5506
5501
|
q
|
|
5507
5502
|
];
|
|
5508
5503
|
}
|
|
5509
|
-
class
|
|
5504
|
+
class uu extends Lo {
|
|
5510
5505
|
constructor(t) {
|
|
5511
5506
|
super(), Mo(
|
|
5512
5507
|
this,
|
|
5513
5508
|
t,
|
|
5514
|
-
|
|
5515
|
-
|
|
5509
|
+
au,
|
|
5510
|
+
ou,
|
|
5516
5511
|
Qr,
|
|
5517
5512
|
{
|
|
5518
5513
|
clientstyling: 11,
|
|
@@ -5529,7 +5524,7 @@ class au extends Lo {
|
|
|
5529
5524
|
selectedpaymentmethodname: 18,
|
|
5530
5525
|
mbsource: 19
|
|
5531
5526
|
},
|
|
5532
|
-
|
|
5527
|
+
Ya,
|
|
5533
5528
|
[-1, -1]
|
|
5534
5529
|
);
|
|
5535
5530
|
}
|
|
@@ -5612,7 +5607,7 @@ class au extends Lo {
|
|
|
5612
5607
|
this.$$set({ mbsource: t }), le();
|
|
5613
5608
|
}
|
|
5614
5609
|
}
|
|
5615
|
-
Co(
|
|
5610
|
+
Co(uu, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5616
5611
|
export {
|
|
5617
|
-
|
|
5612
|
+
uu as default
|
|
5618
5613
|
};
|