@everymatrix/cashier-page 1.77.15 → 1.77.17

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.
Files changed (79) hide show
  1. package/components/CashierCarousel-C-jIotRi.js +5246 -0
  2. package/components/CashierCarousel-D9RhCULN.js +5209 -0
  3. package/components/CashierCarousel-DXPbv83E.cjs +23 -0
  4. package/components/CashierError-DFUpmwPW.js +478 -0
  5. package/components/CashierError-am916cR_.cjs +1 -0
  6. package/components/CashierError-gMoSUhpw.js +478 -0
  7. package/components/CashierHeader-B3IckLiD.cjs +1 -0
  8. package/components/{CashierHeader-C0U4zBfj.js → CashierHeader-CK_NVBvX.js} +22 -22
  9. package/components/{CashierHeader-9yR9rB6v.js → CashierHeader-Z4vR_fbH.js} +23 -23
  10. package/components/{CashierIframeRedirect-DwHJDAlT.js → CashierIframeRedirect-Cae_sEXq.js} +7 -7
  11. package/components/CashierIframeRedirect-CdQkuIPa.cjs +1 -0
  12. package/components/{CashierIframeRedirect-TLm5vXmi.js → CashierIframeRedirect-Cs3dAZqE.js} +25 -25
  13. package/components/CashierMethodDetails-DWh8sNEJ.js +9014 -0
  14. package/components/CashierMethodDetails-f2nVnAEu.cjs +85 -0
  15. package/components/{CashierMethodDetails-CtE_XCaQ.js → CashierMethodDetails-khwdIxvu.js} +3157 -3478
  16. package/components/CashierMethodsList-CZkxXZST.js +745 -0
  17. package/components/CashierMethodsList-DXkNlgio.js +733 -0
  18. package/components/CashierMethodsList-DeCIPW3N.cjs +1 -0
  19. package/components/CashierModal-By3PyyVz.js +268 -0
  20. package/components/CashierModal-D2cxw8Kv.cjs +1 -0
  21. package/components/CashierModal-pKGYmx2d.js +268 -0
  22. package/components/{CashierNotifications-MTmbWiw9.js → CashierNotifications-64xrf21d.js} +9 -9
  23. package/components/{CashierNotifications-CB4a3uqY.js → CashierNotifications-Cot8tKyV.js} +11 -11
  24. package/components/CashierNotifications-o1UTpxCw.cjs +1 -0
  25. package/components/{CashierPage-CeMygXXb.js → CashierPage-CDVatUXZ.js} +720 -638
  26. package/components/CashierPage-CJxWyfnl.cjs +1 -0
  27. package/components/{CashierPage-Bi-neNSx.js → CashierPage-D537sTlX.js} +744 -662
  28. package/components/CashierReceiptPage-DJVOcSy_.js +1691 -0
  29. package/components/CashierReceiptPage-ZjlpnjxZ.js +1695 -0
  30. package/components/CashierReceiptPage-vffilP0r.cjs +26 -0
  31. package/components/{CashierSessionExpirationModal-BuP2gZRp.js → CashierSessionExpirationModal-BCfqE6Qk.js} +49 -49
  32. package/components/{CashierSessionExpirationModal-BA7GqVZO.js → CashierSessionExpirationModal-BfRG-VY2.js} +75 -75
  33. package/components/CashierSessionExpirationModal-BgZuMP6W.cjs +2 -0
  34. package/components/{CashierSpinner-Bcbn7NFN.js → CashierSpinner-CIpXwm9I.js} +8 -8
  35. package/components/CashierSpinner-DOCzNsD8.cjs +1 -0
  36. package/components/{CashierSpinner-CC685xv0.js → CashierSpinner-fUvoz21a.js} +10 -10
  37. package/components/{CashierTransactionHistory-f_cDoUjm.js → CashierTransactionHistory-CHPwXvGA.js} +89 -89
  38. package/components/CashierTransactionHistory-C_77nNRF.cjs +1 -0
  39. package/components/{CashierTransactionHistory-BcTdJmY-.js → CashierTransactionHistory-DLBclLcC.js} +89 -89
  40. package/components/{CashierVerifications-CYTjUimI.js → CashierVerifications-B-e9bu7a.js} +11 -11
  41. package/components/CashierVerifications-D1I7kgbX.cjs +1 -0
  42. package/components/{CashierVerifications-BLeew-eu.js → CashierVerifications-DAfJTpBE.js} +11 -11
  43. package/components/{TxnStatusIcon-DfjGRo9E.js → TxnStatusIcon-C5YEVJGC.js} +1 -1
  44. package/components/{TxnStatusIcon-LjTv77dO.js → TxnStatusIcon-Cdbn57Qc.js} +5 -5
  45. package/components/TxnStatusIcon-Dx4SpBKR.cjs +1 -0
  46. package/components/TxnTypeIcons-D-p9WLvQ.cjs +1 -0
  47. package/components/{TxnTypeIcons-Tp7YGWh4.js → TxnTypeIcons-DaYTcY0u.js} +1 -1
  48. package/components/{TxnTypeIcons-ZH4yQKtS.js → TxnTypeIcons-Dl8aWDV4.js} +1 -1
  49. package/es2015/cashier-page.cjs +1 -1
  50. package/es2015/cashier-page.js +1 -1
  51. package/esnext/cashier-page.js +1 -1
  52. package/package.json +1 -1
  53. package/stencil/{index-b2193545-DGHOe8n4.cjs → index-b2193545-B8kMF2bI.cjs} +1 -1
  54. package/stencil/{ui-skeleton-DgAs7VA3.cjs → ui-skeleton-_yJvAdAL.cjs} +1 -1
  55. package/stencil/{ui-skeleton-ae35c6f2-DLHrpWJM.cjs → ui-skeleton-ae35c6f2-CKgUXOQC.cjs} +1 -1
  56. package/components/CashierError-BhctMdUR.cjs +0 -8
  57. package/components/CashierError-CIcmN4F_.js +0 -4706
  58. package/components/CashierError-DebgxlyU.js +0 -4669
  59. package/components/CashierHeader-DSSmSQhC.cjs +0 -1
  60. package/components/CashierIframeRedirect-TgDDZgbw.cjs +0 -1
  61. package/components/CashierMethodDetails-CB6K1HDl.js +0 -9335
  62. package/components/CashierMethodDetails-Dvo3m0Mn.cjs +0 -100
  63. package/components/CashierMethodsList-BpE60vfR.js +0 -839
  64. package/components/CashierMethodsList-CU5A6Rnz.js +0 -851
  65. package/components/CashierMethodsList-c2H5mZP-.cjs +0 -1
  66. package/components/CashierModal-B27iM5mQ.js +0 -268
  67. package/components/CashierModal-Cn96FSTa.js +0 -268
  68. package/components/CashierModal-UovnZ66s.cjs +0 -1
  69. package/components/CashierNotifications-DObMXxu9.cjs +0 -1
  70. package/components/CashierPage-qOt_RHtQ.cjs +0 -1
  71. package/components/CashierReceiptPage-DSxWhJWT.js +0 -1633
  72. package/components/CashierReceiptPage-p4zBInUH.cjs +0 -1
  73. package/components/CashierReceiptPage-uyd9X60g.js +0 -1635
  74. package/components/CashierSessionExpirationModal-wCrNRCi9.cjs +0 -2
  75. package/components/CashierSpinner-DQc4ncVv.cjs +0 -1
  76. package/components/CashierTransactionHistory-B1HEO-Qk.cjs +0 -1
  77. package/components/CashierVerifications-Bu5vRylZ.cjs +0 -1
  78. package/components/TxnStatusIcon-bkX4KNYC.cjs +0 -1
  79. package/components/TxnTypeIcons-BgeCYgHz.cjs +0 -1
@@ -1,4669 +0,0 @@
1
- import "../stencil/ui-image-DIEeZy5u.js";
2
- function B() {
3
- }
4
- const rt = (e) => e;
5
- function _r(e, t) {
6
- for (const r in t)
7
- e[r] = t[r];
8
- return (
9
- /** @type {T & S} */
10
- e
11
- );
12
- }
13
- function Dt(e) {
14
- return e();
15
- }
16
- function mt() {
17
- return /* @__PURE__ */ Object.create(null);
18
- }
19
- function $(e) {
20
- e.forEach(Dt);
21
- }
22
- function ee(e) {
23
- return typeof e == "function";
24
- }
25
- function kt(e, t) {
26
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
27
- }
28
- let me;
29
- function dt(e, t) {
30
- return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
31
- }
32
- function Er(e) {
33
- return Object.keys(e).length === 0;
34
- }
35
- function Ut(e, ...t) {
36
- if (e == null) {
37
- for (const n of t)
38
- n(void 0);
39
- return B;
40
- }
41
- const r = e.subscribe(...t);
42
- return r.unsubscribe ? () => r.unsubscribe() : r;
43
- }
44
- function vr(e, t, r) {
45
- e.$$.on_destroy.push(Ut(t, r));
46
- }
47
- function be(e, t, r, n) {
48
- if (e) {
49
- const i = Gt(e, t, r, n);
50
- return e[0](i);
51
- }
52
- }
53
- function Gt(e, t, r, n) {
54
- return e[1] && n ? _r(r.ctx.slice(), e[1](n(t))) : r.ctx;
55
- }
56
- function ye(e, t, r, n) {
57
- if (e[2] && n) {
58
- const i = e[2](n(r));
59
- if (t.dirty === void 0)
60
- return i;
61
- if (typeof i == "object") {
62
- const s = [], a = Math.max(t.dirty.length, i.length);
63
- for (let o = 0; o < a; o += 1)
64
- s[o] = t.dirty[o] | i[o];
65
- return s;
66
- }
67
- return t.dirty | i;
68
- }
69
- return t.dirty;
70
- }
71
- function _e(e, t, r, n, i, s) {
72
- if (i) {
73
- const a = Gt(t, r, n, s);
74
- e.p(a, i);
75
- }
76
- }
77
- function Ee(e) {
78
- if (e.ctx.length > 32) {
79
- const t = [], r = e.ctx.length / 32;
80
- for (let n = 0; n < r; n++)
81
- t[n] = -1;
82
- return t;
83
- }
84
- return -1;
85
- }
86
- function es(e) {
87
- return e ?? "";
88
- }
89
- const Ft = typeof window < "u";
90
- let nt = Ft ? () => window.performance.now() : () => Date.now(), it = Ft ? (e) => requestAnimationFrame(e) : B;
91
- const W = /* @__PURE__ */ new Set();
92
- function jt(e) {
93
- W.forEach((t) => {
94
- t.c(e) || (W.delete(t), t.f());
95
- }), W.size !== 0 && it(jt);
96
- }
97
- function st(e) {
98
- let t;
99
- return W.size === 0 && it(jt), {
100
- promise: new Promise((r) => {
101
- W.add(t = { c: e, f: r });
102
- }),
103
- abort() {
104
- W.delete(t);
105
- }
106
- };
107
- }
108
- const ts = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
109
- // @ts-ignore Node typings have this
110
- global
111
- );
112
- function C(e, t) {
113
- e.appendChild(t);
114
- }
115
- function xr(e, t, r) {
116
- const n = ot(e);
117
- if (!n.getElementById(t)) {
118
- const i = A("style");
119
- i.id = t, i.textContent = r, zt(n, i);
120
- }
121
- }
122
- function ot(e) {
123
- if (!e)
124
- return document;
125
- const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
126
- return t && /** @type {ShadowRoot} */
127
- t.host ? (
128
- /** @type {ShadowRoot} */
129
- t
130
- ) : e.ownerDocument;
131
- }
132
- function Tr(e) {
133
- const t = A("style");
134
- return t.textContent = "/* empty */", zt(ot(e), t), t.sheet;
135
- }
136
- function zt(e, t) {
137
- return C(
138
- /** @type {Document} */
139
- e.head || e,
140
- t
141
- ), t.sheet;
142
- }
143
- function U(e, t, r) {
144
- e.insertBefore(t, r || null);
145
- }
146
- function N(e) {
147
- e.parentNode && e.parentNode.removeChild(e);
148
- }
149
- function rs(e, t) {
150
- for (let r = 0; r < e.length; r += 1)
151
- e[r] && e[r].d(t);
152
- }
153
- function A(e) {
154
- return document.createElement(e);
155
- }
156
- function ns(e) {
157
- return document.createElementNS("http://www.w3.org/2000/svg", e);
158
- }
159
- function he(e) {
160
- return document.createTextNode(e);
161
- }
162
- function Re() {
163
- return he(" ");
164
- }
165
- function wr() {
166
- return he("");
167
- }
168
- function Ve(e, t, r, n) {
169
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
170
- }
171
- function is(e) {
172
- return function(t) {
173
- return t.preventDefault(), e.call(this, t);
174
- };
175
- }
176
- function k(e, t, r) {
177
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
178
- }
179
- function de(e, t, r) {
180
- const n = t.toLowerCase();
181
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
182
- }
183
- function ss(e) {
184
- return e === "" ? null : +e;
185
- }
186
- function Hr(e) {
187
- return Array.from(e.childNodes);
188
- }
189
- function at(e, t) {
190
- t = "" + t, e.data !== t && (e.data = /** @type {string} */
191
- t);
192
- }
193
- function os(e, t) {
194
- e.value = t ?? "";
195
- }
196
- function as(e, t, r, n) {
197
- r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
198
- }
199
- let pe;
200
- function Sr() {
201
- if (pe === void 0) {
202
- pe = !1;
203
- try {
204
- typeof window < "u" && window.parent && window.parent.document;
205
- } catch {
206
- pe = !0;
207
- }
208
- }
209
- return pe;
210
- }
211
- function us(e, t) {
212
- getComputedStyle(e).position === "static" && (e.style.position = "relative");
213
- const n = A("iframe");
214
- n.setAttribute(
215
- "style",
216
- "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
217
- ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
218
- const i = Sr();
219
- let s;
220
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = Ve(
221
- window,
222
- "message",
223
- /** @param {MessageEvent} event */
224
- (a) => {
225
- a.source === n.contentWindow && t();
226
- }
227
- )) : (n.src = "about:blank", n.onload = () => {
228
- s = Ve(n.contentWindow, "resize", t), t();
229
- }), C(e, n), () => {
230
- (i || s && n.contentWindow) && s(), N(n);
231
- };
232
- }
233
- function ls(e, t, r) {
234
- e.classList.toggle(t, !!r);
235
- }
236
- function Br(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
237
- return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
238
- }
239
- function Ar(e) {
240
- const t = {};
241
- return e.childNodes.forEach(
242
- /** @param {Element} node */
243
- (r) => {
244
- t[r.slot || "default"] = !0;
245
- }
246
- ), t;
247
- }
248
- const He = /* @__PURE__ */ new Map();
249
- let Se = 0;
250
- function Pr(e) {
251
- let t = 5381, r = e.length;
252
- for (; r--; )
253
- t = (t << 5) - t ^ e.charCodeAt(r);
254
- return t >>> 0;
255
- }
256
- function Or(e, t) {
257
- const r = { stylesheet: Tr(t), rules: {} };
258
- return He.set(e, r), r;
259
- }
260
- function Be(e, t, r, n, i, s, a, o = 0) {
261
- const h = 16.666 / n;
262
- let u = `{
263
- `;
264
- for (let g = 0; g <= 1; g += h) {
265
- const d = t + (r - t) * s(g);
266
- u += g * 100 + `%{${a(d, 1 - d)}}
267
- `;
268
- }
269
- const l = u + `100% {${a(r, 1 - r)}}
270
- }`, c = `__svelte_${Pr(l)}_${o}`, f = ot(e), { stylesheet: y, rules: m } = He.get(f) || Or(f, e);
271
- m[c] || (m[c] = !0, y.insertRule(`@keyframes ${c} ${l}`, y.cssRules.length));
272
- const p = e.style.animation || "";
273
- return e.style.animation = `${p ? `${p}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Se += 1, c;
274
- }
275
- function Ae(e, t) {
276
- const r = (e.style.animation || "").split(", "), n = r.filter(
277
- t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
278
- // remove all Svelte animations
279
- ), i = r.length - n.length;
280
- i && (e.style.animation = n.join(", "), Se -= i, Se || Cr());
281
- }
282
- function Cr() {
283
- it(() => {
284
- Se || (He.forEach((e) => {
285
- const { ownerNode: t } = e.stylesheet;
286
- t && N(t);
287
- }), He.clear());
288
- });
289
- }
290
- let ae;
291
- function oe(e) {
292
- ae = e;
293
- }
294
- function Vt() {
295
- if (!ae)
296
- throw new Error("Function called outside component initialization");
297
- return ae;
298
- }
299
- function Ir(e) {
300
- Vt().$$.on_mount.push(e);
301
- }
302
- function hs(e) {
303
- Vt().$$.on_destroy.push(e);
304
- }
305
- const V = [], Xe = [];
306
- let Z = [];
307
- const pt = [], Nr = /* @__PURE__ */ Promise.resolve();
308
- let We = !1;
309
- function Mr() {
310
- We || (We = !0, Nr.then(P));
311
- }
312
- function J(e) {
313
- Z.push(e);
314
- }
315
- const De = /* @__PURE__ */ new Set();
316
- let j = 0;
317
- function P() {
318
- if (j !== 0)
319
- return;
320
- const e = ae;
321
- do {
322
- try {
323
- for (; j < V.length; ) {
324
- const t = V[j];
325
- j++, oe(t), Lr(t.$$);
326
- }
327
- } catch (t) {
328
- throw V.length = 0, j = 0, t;
329
- }
330
- for (oe(null), V.length = 0, j = 0; Xe.length; )
331
- Xe.pop()();
332
- for (let t = 0; t < Z.length; t += 1) {
333
- const r = Z[t];
334
- De.has(r) || (De.add(r), r());
335
- }
336
- Z.length = 0;
337
- } while (V.length);
338
- for (; pt.length; )
339
- pt.pop()();
340
- We = !1, De.clear(), oe(e);
341
- }
342
- function Lr(e) {
343
- if (e.fragment !== null) {
344
- e.update(), $(e.before_update);
345
- const t = e.dirty;
346
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(J);
347
- }
348
- }
349
- function $r(e) {
350
- const t = [], r = [];
351
- Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
352
- }
353
- let ne;
354
- function ut() {
355
- return ne || (ne = Promise.resolve(), ne.then(() => {
356
- ne = null;
357
- })), ne;
358
- }
359
- function D(e, t, r) {
360
- e.dispatchEvent(Br(`${t ? "intro" : "outro"}${r}`));
361
- }
362
- const ve = /* @__PURE__ */ new Set();
363
- let I;
364
- function Rr() {
365
- I = {
366
- r: 0,
367
- c: [],
368
- p: I
369
- // parent group
370
- };
371
- }
372
- function Dr() {
373
- I.r || $(I.c), I = I.p;
374
- }
375
- function M(e, t) {
376
- e && e.i && (ve.delete(e), e.i(t));
377
- }
378
- function X(e, t, r, n) {
379
- if (e && e.o) {
380
- if (ve.has(e))
381
- return;
382
- ve.add(e), I.c.push(() => {
383
- ve.delete(e), n && (r && e.d(1), n());
384
- }), e.o(t);
385
- } else
386
- n && n();
387
- }
388
- const lt = { duration: 0 };
389
- function cs(e, t, r) {
390
- const n = { direction: "in" };
391
- let i = t(e, r, n), s = !1, a, o, h = 0;
392
- function u() {
393
- a && Ae(e, a);
394
- }
395
- function l() {
396
- const {
397
- delay: f = 0,
398
- duration: y = 300,
399
- easing: m = rt,
400
- tick: p = B,
401
- css: g
402
- } = i || lt;
403
- g && (a = Be(e, 0, 1, y, f, m, g, h++)), p(0, 1);
404
- const d = nt() + f, E = d + y;
405
- o && o.abort(), s = !0, J(() => D(e, !0, "start")), o = st((b) => {
406
- if (s) {
407
- if (b >= E)
408
- return p(1, 0), D(e, !0, "end"), u(), s = !1;
409
- if (b >= d) {
410
- const w = m((b - d) / y);
411
- p(w, 1 - w);
412
- }
413
- }
414
- return s;
415
- });
416
- }
417
- let c = !1;
418
- return {
419
- start() {
420
- c || (c = !0, Ae(e), ee(i) ? (i = i(n), ut().then(l)) : l());
421
- },
422
- invalidate() {
423
- c = !1;
424
- },
425
- end() {
426
- s && (u(), s = !1);
427
- }
428
- };
429
- }
430
- function fs(e, t, r) {
431
- const n = { direction: "out" };
432
- let i = t(e, r, n), s = !0, a;
433
- const o = I;
434
- o.r += 1;
435
- let h;
436
- function u() {
437
- const {
438
- delay: l = 0,
439
- duration: c = 300,
440
- easing: f = rt,
441
- tick: y = B,
442
- css: m
443
- } = i || lt;
444
- m && (a = Be(e, 1, 0, c, l, f, m));
445
- const p = nt() + l, g = p + c;
446
- J(() => D(e, !1, "start")), "inert" in e && (h = /** @type {HTMLElement} */
447
- e.inert, e.inert = !0), st((d) => {
448
- if (s) {
449
- if (d >= g)
450
- return y(0, 1), D(e, !1, "end"), --o.r || $(o.c), !1;
451
- if (d >= p) {
452
- const E = f((d - p) / c);
453
- y(1 - E, E);
454
- }
455
- }
456
- return s;
457
- });
458
- }
459
- return ee(i) ? ut().then(() => {
460
- i = i(n), u();
461
- }) : u(), {
462
- end(l) {
463
- l && "inert" in e && (e.inert = h), l && i.tick && i.tick(1, 0), s && (a && Ae(e, a), s = !1);
464
- }
465
- };
466
- }
467
- function ms(e, t, r, n) {
468
- let s = t(e, r, { direction: "both" }), a = n ? 0 : 1, o = null, h = null, u = null, l;
469
- function c() {
470
- u && Ae(e, u);
471
- }
472
- function f(m, p) {
473
- const g = (
474
- /** @type {Program['d']} */
475
- m.b - a
476
- );
477
- return p *= Math.abs(g), {
478
- a,
479
- b: m.b,
480
- d: g,
481
- duration: p,
482
- start: m.start,
483
- end: m.start + p,
484
- group: m.group
485
- };
486
- }
487
- function y(m) {
488
- const {
489
- delay: p = 0,
490
- duration: g = 300,
491
- easing: d = rt,
492
- tick: E = B,
493
- css: b
494
- } = s || lt, w = {
495
- start: nt() + p,
496
- b: m
497
- };
498
- m || (w.group = I, I.r += 1), "inert" in e && (m ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
499
- e.inert, e.inert = !0)), o || h ? h = w : (b && (c(), u = Be(e, a, m, g, p, d, b)), m && E(0, 1), o = f(w, g), J(() => D(e, m, "start")), st((H) => {
500
- if (h && H > h.start && (o = f(h, g), h = null, D(e, o.b, "start"), b && (c(), u = Be(
501
- e,
502
- a,
503
- o.b,
504
- o.duration,
505
- 0,
506
- d,
507
- s.css
508
- ))), o) {
509
- if (H >= o.end)
510
- E(a = o.b, 1 - a), D(e, o.b, "end"), h || (o.b ? c() : --o.group.r || $(o.group.c)), o = null;
511
- else if (H >= o.start) {
512
- const F = H - o.start;
513
- a = o.a + o.d * d(F / o.duration), E(a, 1 - a);
514
- }
515
- }
516
- return !!(o || h);
517
- }));
518
- }
519
- return {
520
- run(m) {
521
- ee(s) ? ut().then(() => {
522
- s = s({ direction: m ? "in" : "out" }), y(m);
523
- }) : y(m);
524
- },
525
- end() {
526
- c(), o = h = null;
527
- }
528
- };
529
- }
530
- function ds(e) {
531
- return e?.length !== void 0 ? e : Array.from(e);
532
- }
533
- function ps(e) {
534
- e && e.c();
535
- }
536
- function kr(e, t, r) {
537
- const { fragment: n, after_update: i } = e.$$;
538
- n && n.m(t, r), J(() => {
539
- const s = e.$$.on_mount.map(Dt).filter(ee);
540
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : $(s), e.$$.on_mount = [];
541
- }), i.forEach(J);
542
- }
543
- function Ur(e, t) {
544
- const r = e.$$;
545
- r.fragment !== null && ($r(r.after_update), $(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
546
- }
547
- function Gr(e, t) {
548
- e.$$.dirty[0] === -1 && (V.push(e), Mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
549
- }
550
- function Fr(e, t, r, n, i, s, a = null, o = [-1]) {
551
- const h = ae;
552
- oe(e);
553
- const u = e.$$ = {
554
- fragment: null,
555
- ctx: [],
556
- // state
557
- props: s,
558
- update: B,
559
- not_equal: i,
560
- bound: mt(),
561
- // lifecycle
562
- on_mount: [],
563
- on_destroy: [],
564
- on_disconnect: [],
565
- before_update: [],
566
- after_update: [],
567
- context: new Map(t.context || (h ? h.$$.context : [])),
568
- // everything else
569
- callbacks: mt(),
570
- dirty: o,
571
- skip_bound: !1,
572
- root: t.target || h.$$.root
573
- };
574
- a && a(u.root);
575
- let l = !1;
576
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...y) => {
577
- const m = y.length ? y[0] : f;
578
- return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Gr(e, c)), f;
579
- }) : [], u.update(), l = !0, $(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
580
- if (t.hydrate) {
581
- const c = Hr(t.target);
582
- u.fragment && u.fragment.l(c), c.forEach(N);
583
- } else
584
- u.fragment && u.fragment.c();
585
- t.intro && M(e.$$.fragment), kr(e, t.target, t.anchor), P();
586
- }
587
- oe(h);
588
- }
589
- let Xt;
590
- typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
591
- /** The Svelte component constructor */
592
- $$ctor;
593
- /** Slots */
594
- $$s;
595
- /** The Svelte component instance */
596
- $$c;
597
- /** Whether or not the custom element is connected */
598
- $$cn = !1;
599
- /** Component props data */
600
- $$d = {};
601
- /** `true` if currently in the process of reflecting component props back to attributes */
602
- $$r = !1;
603
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
604
- $$p_d = {};
605
- /** @type {Record<string, Function[]>} Event listeners */
606
- $$l = {};
607
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
608
- $$l_u = /* @__PURE__ */ new Map();
609
- constructor(e, t, r) {
610
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
611
- }
612
- addEventListener(e, t, r) {
613
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
614
- const n = this.$$c.$on(e, t);
615
- this.$$l_u.set(t, n);
616
- }
617
- super.addEventListener(e, t, r);
618
- }
619
- removeEventListener(e, t, r) {
620
- if (super.removeEventListener(e, t, r), this.$$c) {
621
- const n = this.$$l_u.get(t);
622
- n && (n(), this.$$l_u.delete(t));
623
- }
624
- }
625
- async connectedCallback() {
626
- if (this.$$cn = !0, !this.$$c) {
627
- let e = function(i) {
628
- return () => {
629
- let s;
630
- return {
631
- c: function() {
632
- s = A("slot"), i !== "default" && k(s, "name", i);
633
- },
634
- /**
635
- * @param {HTMLElement} target
636
- * @param {HTMLElement} [anchor]
637
- */
638
- m: function(h, u) {
639
- U(h, s, u);
640
- },
641
- d: function(h) {
642
- h && N(s);
643
- }
644
- };
645
- };
646
- };
647
- if (await Promise.resolve(), !this.$$cn || this.$$c)
648
- return;
649
- const t = {}, r = Ar(this);
650
- for (const i of this.$$s)
651
- i in r && (t[i] = [e(i)]);
652
- for (const i of this.attributes) {
653
- const s = this.$$g_p(i.name);
654
- s in this.$$d || (this.$$d[s] = xe(s, i.value, this.$$p_d, "toProp"));
655
- }
656
- for (const i in this.$$p_d)
657
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
658
- this.$$c = new this.$$ctor({
659
- target: this.shadowRoot || this,
660
- props: {
661
- ...this.$$d,
662
- $$slots: t,
663
- $$scope: {
664
- ctx: []
665
- }
666
- }
667
- });
668
- const n = () => {
669
- this.$$r = !0;
670
- for (const i in this.$$p_d)
671
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
672
- const s = xe(
673
- i,
674
- this.$$d[i],
675
- this.$$p_d,
676
- "toAttribute"
677
- );
678
- s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
679
- }
680
- this.$$r = !1;
681
- };
682
- this.$$c.$$.after_update.push(n), n();
683
- for (const i in this.$$l)
684
- for (const s of this.$$l[i]) {
685
- const a = this.$$c.$on(i, s);
686
- this.$$l_u.set(s, a);
687
- }
688
- this.$$l = {};
689
- }
690
- }
691
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
692
- // and setting attributes through setAttribute etc, this is helpful
693
- attributeChangedCallback(e, t, r) {
694
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = xe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
695
- }
696
- disconnectedCallback() {
697
- this.$$cn = !1, Promise.resolve().then(() => {
698
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
699
- });
700
- }
701
- $$g_p(e) {
702
- return Object.keys(this.$$p_d).find(
703
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
704
- ) || e;
705
- }
706
- });
707
- function xe(e, t, r, n) {
708
- const i = r[e]?.type;
709
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
710
- return t;
711
- if (n === "toAttribute")
712
- switch (i) {
713
- case "Object":
714
- case "Array":
715
- return t == null ? null : JSON.stringify(t);
716
- case "Boolean":
717
- return t ? "" : null;
718
- case "Number":
719
- return t ?? null;
720
- default:
721
- return t;
722
- }
723
- else
724
- switch (i) {
725
- case "Object":
726
- case "Array":
727
- return t && JSON.parse(t);
728
- case "Boolean":
729
- return t;
730
- case "Number":
731
- return t != null ? +t : t;
732
- default:
733
- return t;
734
- }
735
- }
736
- function jr(e, t, r, n, i, s) {
737
- let a = class extends Xt {
738
- constructor() {
739
- super(e, r, i), this.$$p_d = t;
740
- }
741
- static get observedAttributes() {
742
- return Object.keys(t).map(
743
- (o) => (t[o].attribute || o).toLowerCase()
744
- );
745
- }
746
- };
747
- return Object.keys(t).forEach((o) => {
748
- Object.defineProperty(a.prototype, o, {
749
- get() {
750
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
751
- },
752
- set(h) {
753
- h = xe(o, h, t), this.$$d[o] = h, this.$$c?.$set({ [o]: h });
754
- }
755
- });
756
- }), n.forEach((o) => {
757
- Object.defineProperty(a.prototype, o, {
758
- get() {
759
- return this.$$c?.[o];
760
- }
761
- });
762
- }), e.element = /** @type {any} */
763
- a, a;
764
- }
765
- class zr {
766
- /**
767
- * ### PRIVATE API
768
- *
769
- * Do not use, may change at any time
770
- *
771
- * @type {any}
772
- */
773
- $$ = void 0;
774
- /**
775
- * ### PRIVATE API
776
- *
777
- * Do not use, may change at any time
778
- *
779
- * @type {any}
780
- */
781
- $$set = void 0;
782
- /** @returns {void} */
783
- $destroy() {
784
- Ur(this, 1), this.$destroy = B;
785
- }
786
- /**
787
- * @template {Extract<keyof Events, string>} K
788
- * @param {K} type
789
- * @param {((e: Events[K]) => void) | null | undefined} callback
790
- * @returns {() => void}
791
- */
792
- $on(t, r) {
793
- if (!ee(r))
794
- return B;
795
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
796
- return n.push(r), () => {
797
- const i = n.indexOf(r);
798
- i !== -1 && n.splice(i, 1);
799
- };
800
- }
801
- /**
802
- * @param {Partial<Props>} props
803
- * @returns {void}
804
- */
805
- $set(t) {
806
- this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
807
- }
808
- }
809
- const Vr = "4";
810
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
811
- const z = [];
812
- function Xr(e, t) {
813
- return {
814
- subscribe: Ne(e, t).subscribe
815
- };
816
- }
817
- function Ne(e, t = B) {
818
- let r;
819
- const n = /* @__PURE__ */ new Set();
820
- function i(o) {
821
- if (kt(e, o) && (e = o, r)) {
822
- const h = !z.length;
823
- for (const u of n)
824
- u[1](), z.push(u, e);
825
- if (h) {
826
- for (let u = 0; u < z.length; u += 2)
827
- z[u][0](z[u + 1]);
828
- z.length = 0;
829
- }
830
- }
831
- }
832
- function s(o) {
833
- i(o(e));
834
- }
835
- function a(o, h = B) {
836
- const u = [o, h];
837
- return n.add(u), n.size === 1 && (r = t(i, s) || B), o(e), () => {
838
- n.delete(u), n.size === 0 && r && (r(), r = null);
839
- };
840
- }
841
- return { set: i, update: s, subscribe: a };
842
- }
843
- function te(e, t, r) {
844
- const n = !Array.isArray(e), i = n ? [e] : e;
845
- if (!i.every(Boolean))
846
- throw new Error("derived() expects stores as input, got a falsy value");
847
- const s = t.length < 2;
848
- return Xr(r, (a, o) => {
849
- let h = !1;
850
- const u = [];
851
- let l = 0, c = B;
852
- const f = () => {
853
- if (l)
854
- return;
855
- c();
856
- const m = t(n ? u[0] : u, a, o);
857
- s ? a(m) : c = ee(m) ? m : B;
858
- }, y = i.map(
859
- (m, p) => Ut(
860
- m,
861
- (g) => {
862
- u[p] = g, l &= ~(1 << p), h && f();
863
- },
864
- () => {
865
- l |= 1 << p;
866
- }
867
- )
868
- );
869
- return h = !0, f(), function() {
870
- $(y), c(), h = !1;
871
- };
872
- });
873
- }
874
- var gs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
875
- function Wr(e) {
876
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
877
- }
878
- var Zr = function(t) {
879
- return Jr(t) && !qr(t);
880
- };
881
- function Jr(e) {
882
- return !!e && typeof e == "object";
883
- }
884
- function qr(e) {
885
- var t = Object.prototype.toString.call(e);
886
- return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
887
- }
888
- var Qr = typeof Symbol == "function" && Symbol.for, Yr = Qr ? Symbol.for("react.element") : 60103;
889
- function Kr(e) {
890
- return e.$$typeof === Yr;
891
- }
892
- function en(e) {
893
- return Array.isArray(e) ? [] : {};
894
- }
895
- function ue(e, t) {
896
- return t.clone !== !1 && t.isMergeableObject(e) ? q(en(e), e, t) : e;
897
- }
898
- function tn(e, t, r) {
899
- return e.concat(t).map(function(n) {
900
- return ue(n, r);
901
- });
902
- }
903
- function rn(e, t) {
904
- if (!t.customMerge)
905
- return q;
906
- var r = t.customMerge(e);
907
- return typeof r == "function" ? r : q;
908
- }
909
- function nn(e) {
910
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
911
- return Object.propertyIsEnumerable.call(e, t);
912
- }) : [];
913
- }
914
- function gt(e) {
915
- return Object.keys(e).concat(nn(e));
916
- }
917
- function Wt(e, t) {
918
- try {
919
- return t in e;
920
- } catch {
921
- return !1;
922
- }
923
- }
924
- function sn(e, t) {
925
- return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
926
- }
927
- function on(e, t, r) {
928
- var n = {};
929
- return r.isMergeableObject(e) && gt(e).forEach(function(i) {
930
- n[i] = ue(e[i], r);
931
- }), gt(t).forEach(function(i) {
932
- sn(e, i) || (Wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
933
- }), n;
934
- }
935
- function q(e, t, r) {
936
- r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = ue;
937
- var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
938
- return s ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : ue(t, r);
939
- }
940
- q.all = function(t, r) {
941
- if (!Array.isArray(t))
942
- throw new Error("first argument should be an array");
943
- return t.reduce(function(n, i) {
944
- return q(n, i, r);
945
- }, {});
946
- };
947
- var an = q, un = an;
948
- const ln = /* @__PURE__ */ Wr(un);
949
- var Ze = function(e, t) {
950
- return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
951
- r.__proto__ = n;
952
- } || function(r, n) {
953
- for (var i in n)
954
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
955
- }, Ze(e, t);
956
- };
957
- function Me(e, t) {
958
- if (typeof t != "function" && t !== null)
959
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
960
- Ze(e, t);
961
- function r() {
962
- this.constructor = e;
963
- }
964
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
965
- }
966
- var O = function() {
967
- return O = Object.assign || function(t) {
968
- for (var r, n = 1, i = arguments.length; n < i; n++) {
969
- r = arguments[n];
970
- for (var s in r)
971
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
972
- }
973
- return t;
974
- }, O.apply(this, arguments);
975
- };
976
- function hn(e, t) {
977
- var r = {};
978
- for (var n in e)
979
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
980
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
981
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
982
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
983
- return r;
984
- }
985
- function ke(e, t, r) {
986
- if (r || arguments.length === 2)
987
- for (var n = 0, i = t.length, s; n < i; n++)
988
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
989
- return e.concat(s || Array.prototype.slice.call(t));
990
- }
991
- function Ue(e, t) {
992
- var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : mn;
993
- return i(e, {
994
- cache: r,
995
- serializer: n
996
- });
997
- }
998
- function cn(e) {
999
- return e == null || typeof e == "number" || typeof e == "boolean";
1000
- }
1001
- function fn(e, t, r, n) {
1002
- var i = cn(n) ? n : r(n), s = t.get(i);
1003
- return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
1004
- }
1005
- function Zt(e, t, r) {
1006
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1007
- return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
1008
- }
1009
- function Jt(e, t, r, n, i) {
1010
- return r.bind(t, e, n, i);
1011
- }
1012
- function mn(e, t) {
1013
- var r = e.length === 1 ? fn : Zt;
1014
- return Jt(e, this, r, t.cache.create(), t.serializer);
1015
- }
1016
- function dn(e, t) {
1017
- return Jt(e, this, Zt, t.cache.create(), t.serializer);
1018
- }
1019
- var pn = function() {
1020
- return JSON.stringify(arguments);
1021
- }, gn = (
1022
- /** @class */
1023
- function() {
1024
- function e() {
1025
- this.cache = /* @__PURE__ */ Object.create(null);
1026
- }
1027
- return e.prototype.get = function(t) {
1028
- return this.cache[t];
1029
- }, e.prototype.set = function(t, r) {
1030
- this.cache[t] = r;
1031
- }, e;
1032
- }()
1033
- ), bn = {
1034
- create: function() {
1035
- return new gn();
1036
- }
1037
- }, Ge = {
1038
- variadic: dn
1039
- }, Pe = function() {
1040
- return Pe = Object.assign || function(t) {
1041
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1042
- r = arguments[n];
1043
- for (var s in r)
1044
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1045
- }
1046
- return t;
1047
- }, Pe.apply(this, arguments);
1048
- };
1049
- var _;
1050
- (function(e) {
1051
- 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";
1052
- })(_ || (_ = {}));
1053
- var x;
1054
- (function(e) {
1055
- 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";
1056
- })(x || (x = {}));
1057
- var Q;
1058
- (function(e) {
1059
- e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1060
- })(Q || (Q = {}));
1061
- function bt(e) {
1062
- return e.type === x.literal;
1063
- }
1064
- function yn(e) {
1065
- return e.type === x.argument;
1066
- }
1067
- function qt(e) {
1068
- return e.type === x.number;
1069
- }
1070
- function Qt(e) {
1071
- return e.type === x.date;
1072
- }
1073
- function Yt(e) {
1074
- return e.type === x.time;
1075
- }
1076
- function Kt(e) {
1077
- return e.type === x.select;
1078
- }
1079
- function er(e) {
1080
- return e.type === x.plural;
1081
- }
1082
- function _n(e) {
1083
- return e.type === x.pound;
1084
- }
1085
- function tr(e) {
1086
- return e.type === x.tag;
1087
- }
1088
- function rr(e) {
1089
- return !!(e && typeof e == "object" && e.type === Q.number);
1090
- }
1091
- function Je(e) {
1092
- return !!(e && typeof e == "object" && e.type === Q.dateTime);
1093
- }
1094
- var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, En = /(?:[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;
1095
- function vn(e) {
1096
- var t = {};
1097
- return e.replace(En, function(r) {
1098
- var n = r.length;
1099
- switch (r[0]) {
1100
- case "G":
1101
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1102
- break;
1103
- case "y":
1104
- t.year = n === 2 ? "2-digit" : "numeric";
1105
- break;
1106
- case "Y":
1107
- case "u":
1108
- case "U":
1109
- case "r":
1110
- throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1111
- case "q":
1112
- case "Q":
1113
- throw new RangeError("`q/Q` (quarter) patterns are not supported");
1114
- case "M":
1115
- case "L":
1116
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1117
- break;
1118
- case "w":
1119
- case "W":
1120
- throw new RangeError("`w/W` (week) patterns are not supported");
1121
- case "d":
1122
- t.day = ["numeric", "2-digit"][n - 1];
1123
- break;
1124
- case "D":
1125
- case "F":
1126
- case "g":
1127
- throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1128
- case "E":
1129
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1130
- break;
1131
- case "e":
1132
- if (n < 4)
1133
- throw new RangeError("`e..eee` (weekday) patterns are not supported");
1134
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1135
- break;
1136
- case "c":
1137
- if (n < 4)
1138
- throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1139
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1140
- break;
1141
- case "a":
1142
- t.hour12 = !0;
1143
- break;
1144
- case "b":
1145
- case "B":
1146
- throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1147
- case "h":
1148
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1149
- break;
1150
- case "H":
1151
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1152
- break;
1153
- case "K":
1154
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1155
- break;
1156
- case "k":
1157
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1158
- break;
1159
- case "j":
1160
- case "J":
1161
- case "C":
1162
- throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1163
- case "m":
1164
- t.minute = ["numeric", "2-digit"][n - 1];
1165
- break;
1166
- case "s":
1167
- t.second = ["numeric", "2-digit"][n - 1];
1168
- break;
1169
- case "S":
1170
- case "A":
1171
- throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1172
- case "z":
1173
- t.timeZoneName = n < 4 ? "short" : "long";
1174
- break;
1175
- case "Z":
1176
- case "O":
1177
- case "v":
1178
- case "V":
1179
- case "X":
1180
- case "x":
1181
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1182
- }
1183
- return "";
1184
- }), t;
1185
- }
1186
- var T = function() {
1187
- return T = Object.assign || function(t) {
1188
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1189
- r = arguments[n];
1190
- for (var s in r)
1191
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
1192
- }
1193
- return t;
1194
- }, T.apply(this, arguments);
1195
- };
1196
- var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1197
- function Tn(e) {
1198
- if (e.length === 0)
1199
- throw new Error("Number skeleton cannot be empty");
1200
- for (var t = e.split(xn).filter(function(f) {
1201
- return f.length > 0;
1202
- }), r = [], n = 0, i = t; n < i.length; n++) {
1203
- var s = i[n], a = s.split("/");
1204
- if (a.length === 0)
1205
- throw new Error("Invalid number skeleton");
1206
- for (var o = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
1207
- var c = l[u];
1208
- if (c.length === 0)
1209
- throw new Error("Invalid number skeleton");
1210
- }
1211
- r.push({ stem: o, options: h });
1212
- }
1213
- return r;
1214
- }
1215
- function wn(e) {
1216
- return e.replace(/^(.*?)-/, "");
1217
- }
1218
- var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, sr = /^(0+)$/;
1219
- function _t(e) {
1220
- var t = {};
1221
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, n, i) {
1222
- return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1223
- }), t;
1224
- }
1225
- function or(e) {
1226
- switch (e) {
1227
- case "sign-auto":
1228
- return {
1229
- signDisplay: "auto"
1230
- };
1231
- case "sign-accounting":
1232
- case "()":
1233
- return {
1234
- currencySign: "accounting"
1235
- };
1236
- case "sign-always":
1237
- case "+!":
1238
- return {
1239
- signDisplay: "always"
1240
- };
1241
- case "sign-accounting-always":
1242
- case "()!":
1243
- return {
1244
- signDisplay: "always",
1245
- currencySign: "accounting"
1246
- };
1247
- case "sign-except-zero":
1248
- case "+?":
1249
- return {
1250
- signDisplay: "exceptZero"
1251
- };
1252
- case "sign-accounting-except-zero":
1253
- case "()?":
1254
- return {
1255
- signDisplay: "exceptZero",
1256
- currencySign: "accounting"
1257
- };
1258
- case "sign-never":
1259
- case "+_":
1260
- return {
1261
- signDisplay: "never"
1262
- };
1263
- }
1264
- }
1265
- function Sn(e) {
1266
- var t;
1267
- if (e[0] === "E" && e[1] === "E" ? (t = {
1268
- notation: "engineering"
1269
- }, e = e.slice(2)) : e[0] === "E" && (t = {
1270
- notation: "scientific"
1271
- }, e = e.slice(1)), t) {
1272
- var r = e.slice(0, 2);
1273
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sr.test(e))
1274
- throw new Error("Malformed concise eng/scientific notation");
1275
- t.minimumIntegerDigits = e.length;
1276
- }
1277
- return t;
1278
- }
1279
- function Et(e) {
1280
- var t = {}, r = or(e);
1281
- return r || t;
1282
- }
1283
- function Bn(e) {
1284
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
1285
- var i = n[r];
1286
- switch (i.stem) {
1287
- case "percent":
1288
- case "%":
1289
- t.style = "percent";
1290
- continue;
1291
- case "%x100":
1292
- t.style = "percent", t.scale = 100;
1293
- continue;
1294
- case "currency":
1295
- t.style = "currency", t.currency = i.options[0];
1296
- continue;
1297
- case "group-off":
1298
- case ",_":
1299
- t.useGrouping = !1;
1300
- continue;
1301
- case "precision-integer":
1302
- case ".":
1303
- t.maximumFractionDigits = 0;
1304
- continue;
1305
- case "measure-unit":
1306
- case "unit":
1307
- t.style = "unit", t.unit = wn(i.options[0]);
1308
- continue;
1309
- case "compact-short":
1310
- case "K":
1311
- t.notation = "compact", t.compactDisplay = "short";
1312
- continue;
1313
- case "compact-long":
1314
- case "KK":
1315
- t.notation = "compact", t.compactDisplay = "long";
1316
- continue;
1317
- case "scientific":
1318
- t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1319
- return T(T({}, h), Et(u));
1320
- }, {}));
1321
- continue;
1322
- case "engineering":
1323
- t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1324
- return T(T({}, h), Et(u));
1325
- }, {}));
1326
- continue;
1327
- case "notation-simple":
1328
- t.notation = "standard";
1329
- continue;
1330
- case "unit-width-narrow":
1331
- t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1332
- continue;
1333
- case "unit-width-short":
1334
- t.currencyDisplay = "code", t.unitDisplay = "short";
1335
- continue;
1336
- case "unit-width-full-name":
1337
- t.currencyDisplay = "name", t.unitDisplay = "long";
1338
- continue;
1339
- case "unit-width-iso-code":
1340
- t.currencyDisplay = "symbol";
1341
- continue;
1342
- case "scale":
1343
- t.scale = parseFloat(i.options[0]);
1344
- continue;
1345
- case "rounding-mode-floor":
1346
- t.roundingMode = "floor";
1347
- continue;
1348
- case "rounding-mode-ceiling":
1349
- t.roundingMode = "ceil";
1350
- continue;
1351
- case "rounding-mode-down":
1352
- t.roundingMode = "trunc";
1353
- continue;
1354
- case "rounding-mode-up":
1355
- t.roundingMode = "expand";
1356
- continue;
1357
- case "rounding-mode-half-even":
1358
- t.roundingMode = "halfEven";
1359
- continue;
1360
- case "rounding-mode-half-down":
1361
- t.roundingMode = "halfTrunc";
1362
- continue;
1363
- case "rounding-mode-half-up":
1364
- t.roundingMode = "halfExpand";
1365
- continue;
1366
- case "integer-width":
1367
- if (i.options.length > 1)
1368
- throw new RangeError("integer-width stems only accept a single optional option");
1369
- i.options[0].replace(Hn, function(h, u, l, c, f, y) {
1370
- if (u)
1371
- t.minimumIntegerDigits = l.length;
1372
- else {
1373
- if (c && f)
1374
- throw new Error("We currently do not support maximum integer digits");
1375
- if (y)
1376
- throw new Error("We currently do not support exact integer digits");
1377
- }
1378
- return "";
1379
- });
1380
- continue;
1381
- }
1382
- if (sr.test(i.stem)) {
1383
- t.minimumIntegerDigits = i.stem.length;
1384
- continue;
1385
- }
1386
- if (yt.test(i.stem)) {
1387
- if (i.options.length > 1)
1388
- throw new RangeError("Fraction-precision stems only accept a single optional option");
1389
- i.stem.replace(yt, function(h, u, l, c, f, y) {
1390
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && y ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1391
- });
1392
- var s = i.options[0];
1393
- s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), _t(s)));
1394
- continue;
1395
- }
1396
- if (ir.test(i.stem)) {
1397
- t = T(T({}, t), _t(i.stem));
1398
- continue;
1399
- }
1400
- var a = or(i.stem);
1401
- a && (t = T(T({}, t), a));
1402
- var o = Sn(i.stem);
1403
- o && (t = T(T({}, t), o));
1404
- }
1405
- return t;
1406
- }
1407
- var ge = {
1408
- "001": [
1409
- "H",
1410
- "h"
1411
- ],
1412
- 419: [
1413
- "h",
1414
- "H",
1415
- "hB",
1416
- "hb"
1417
- ],
1418
- AC: [
1419
- "H",
1420
- "h",
1421
- "hb",
1422
- "hB"
1423
- ],
1424
- AD: [
1425
- "H",
1426
- "hB"
1427
- ],
1428
- AE: [
1429
- "h",
1430
- "hB",
1431
- "hb",
1432
- "H"
1433
- ],
1434
- AF: [
1435
- "H",
1436
- "hb",
1437
- "hB",
1438
- "h"
1439
- ],
1440
- AG: [
1441
- "h",
1442
- "hb",
1443
- "H",
1444
- "hB"
1445
- ],
1446
- AI: [
1447
- "H",
1448
- "h",
1449
- "hb",
1450
- "hB"
1451
- ],
1452
- AL: [
1453
- "h",
1454
- "H",
1455
- "hB"
1456
- ],
1457
- AM: [
1458
- "H",
1459
- "hB"
1460
- ],
1461
- AO: [
1462
- "H",
1463
- "hB"
1464
- ],
1465
- AR: [
1466
- "h",
1467
- "H",
1468
- "hB",
1469
- "hb"
1470
- ],
1471
- AS: [
1472
- "h",
1473
- "H"
1474
- ],
1475
- AT: [
1476
- "H",
1477
- "hB"
1478
- ],
1479
- AU: [
1480
- "h",
1481
- "hb",
1482
- "H",
1483
- "hB"
1484
- ],
1485
- AW: [
1486
- "H",
1487
- "hB"
1488
- ],
1489
- AX: [
1490
- "H"
1491
- ],
1492
- AZ: [
1493
- "H",
1494
- "hB",
1495
- "h"
1496
- ],
1497
- BA: [
1498
- "H",
1499
- "hB",
1500
- "h"
1501
- ],
1502
- BB: [
1503
- "h",
1504
- "hb",
1505
- "H",
1506
- "hB"
1507
- ],
1508
- BD: [
1509
- "h",
1510
- "hB",
1511
- "H"
1512
- ],
1513
- BE: [
1514
- "H",
1515
- "hB"
1516
- ],
1517
- BF: [
1518
- "H",
1519
- "hB"
1520
- ],
1521
- BG: [
1522
- "H",
1523
- "hB",
1524
- "h"
1525
- ],
1526
- BH: [
1527
- "h",
1528
- "hB",
1529
- "hb",
1530
- "H"
1531
- ],
1532
- BI: [
1533
- "H",
1534
- "h"
1535
- ],
1536
- BJ: [
1537
- "H",
1538
- "hB"
1539
- ],
1540
- BL: [
1541
- "H",
1542
- "hB"
1543
- ],
1544
- BM: [
1545
- "h",
1546
- "hb",
1547
- "H",
1548
- "hB"
1549
- ],
1550
- BN: [
1551
- "hb",
1552
- "hB",
1553
- "h",
1554
- "H"
1555
- ],
1556
- BO: [
1557
- "h",
1558
- "H",
1559
- "hB",
1560
- "hb"
1561
- ],
1562
- BQ: [
1563
- "H"
1564
- ],
1565
- BR: [
1566
- "H",
1567
- "hB"
1568
- ],
1569
- BS: [
1570
- "h",
1571
- "hb",
1572
- "H",
1573
- "hB"
1574
- ],
1575
- BT: [
1576
- "h",
1577
- "H"
1578
- ],
1579
- BW: [
1580
- "H",
1581
- "h",
1582
- "hb",
1583
- "hB"
1584
- ],
1585
- BY: [
1586
- "H",
1587
- "h"
1588
- ],
1589
- BZ: [
1590
- "H",
1591
- "h",
1592
- "hb",
1593
- "hB"
1594
- ],
1595
- CA: [
1596
- "h",
1597
- "hb",
1598
- "H",
1599
- "hB"
1600
- ],
1601
- CC: [
1602
- "H",
1603
- "h",
1604
- "hb",
1605
- "hB"
1606
- ],
1607
- CD: [
1608
- "hB",
1609
- "H"
1610
- ],
1611
- CF: [
1612
- "H",
1613
- "h",
1614
- "hB"
1615
- ],
1616
- CG: [
1617
- "H",
1618
- "hB"
1619
- ],
1620
- CH: [
1621
- "H",
1622
- "hB",
1623
- "h"
1624
- ],
1625
- CI: [
1626
- "H",
1627
- "hB"
1628
- ],
1629
- CK: [
1630
- "H",
1631
- "h",
1632
- "hb",
1633
- "hB"
1634
- ],
1635
- CL: [
1636
- "h",
1637
- "H",
1638
- "hB",
1639
- "hb"
1640
- ],
1641
- CM: [
1642
- "H",
1643
- "h",
1644
- "hB"
1645
- ],
1646
- CN: [
1647
- "H",
1648
- "hB",
1649
- "hb",
1650
- "h"
1651
- ],
1652
- CO: [
1653
- "h",
1654
- "H",
1655
- "hB",
1656
- "hb"
1657
- ],
1658
- CP: [
1659
- "H"
1660
- ],
1661
- CR: [
1662
- "h",
1663
- "H",
1664
- "hB",
1665
- "hb"
1666
- ],
1667
- CU: [
1668
- "h",
1669
- "H",
1670
- "hB",
1671
- "hb"
1672
- ],
1673
- CV: [
1674
- "H",
1675
- "hB"
1676
- ],
1677
- CW: [
1678
- "H",
1679
- "hB"
1680
- ],
1681
- CX: [
1682
- "H",
1683
- "h",
1684
- "hb",
1685
- "hB"
1686
- ],
1687
- CY: [
1688
- "h",
1689
- "H",
1690
- "hb",
1691
- "hB"
1692
- ],
1693
- CZ: [
1694
- "H"
1695
- ],
1696
- DE: [
1697
- "H",
1698
- "hB"
1699
- ],
1700
- DG: [
1701
- "H",
1702
- "h",
1703
- "hb",
1704
- "hB"
1705
- ],
1706
- DJ: [
1707
- "h",
1708
- "H"
1709
- ],
1710
- DK: [
1711
- "H"
1712
- ],
1713
- DM: [
1714
- "h",
1715
- "hb",
1716
- "H",
1717
- "hB"
1718
- ],
1719
- DO: [
1720
- "h",
1721
- "H",
1722
- "hB",
1723
- "hb"
1724
- ],
1725
- DZ: [
1726
- "h",
1727
- "hB",
1728
- "hb",
1729
- "H"
1730
- ],
1731
- EA: [
1732
- "H",
1733
- "h",
1734
- "hB",
1735
- "hb"
1736
- ],
1737
- EC: [
1738
- "h",
1739
- "H",
1740
- "hB",
1741
- "hb"
1742
- ],
1743
- EE: [
1744
- "H",
1745
- "hB"
1746
- ],
1747
- EG: [
1748
- "h",
1749
- "hB",
1750
- "hb",
1751
- "H"
1752
- ],
1753
- EH: [
1754
- "h",
1755
- "hB",
1756
- "hb",
1757
- "H"
1758
- ],
1759
- ER: [
1760
- "h",
1761
- "H"
1762
- ],
1763
- ES: [
1764
- "H",
1765
- "hB",
1766
- "h",
1767
- "hb"
1768
- ],
1769
- ET: [
1770
- "hB",
1771
- "hb",
1772
- "h",
1773
- "H"
1774
- ],
1775
- FI: [
1776
- "H"
1777
- ],
1778
- FJ: [
1779
- "h",
1780
- "hb",
1781
- "H",
1782
- "hB"
1783
- ],
1784
- FK: [
1785
- "H",
1786
- "h",
1787
- "hb",
1788
- "hB"
1789
- ],
1790
- FM: [
1791
- "h",
1792
- "hb",
1793
- "H",
1794
- "hB"
1795
- ],
1796
- FO: [
1797
- "H",
1798
- "h"
1799
- ],
1800
- FR: [
1801
- "H",
1802
- "hB"
1803
- ],
1804
- GA: [
1805
- "H",
1806
- "hB"
1807
- ],
1808
- GB: [
1809
- "H",
1810
- "h",
1811
- "hb",
1812
- "hB"
1813
- ],
1814
- GD: [
1815
- "h",
1816
- "hb",
1817
- "H",
1818
- "hB"
1819
- ],
1820
- GE: [
1821
- "H",
1822
- "hB",
1823
- "h"
1824
- ],
1825
- GF: [
1826
- "H",
1827
- "hB"
1828
- ],
1829
- GG: [
1830
- "H",
1831
- "h",
1832
- "hb",
1833
- "hB"
1834
- ],
1835
- GH: [
1836
- "h",
1837
- "H"
1838
- ],
1839
- GI: [
1840
- "H",
1841
- "h",
1842
- "hb",
1843
- "hB"
1844
- ],
1845
- GL: [
1846
- "H",
1847
- "h"
1848
- ],
1849
- GM: [
1850
- "h",
1851
- "hb",
1852
- "H",
1853
- "hB"
1854
- ],
1855
- GN: [
1856
- "H",
1857
- "hB"
1858
- ],
1859
- GP: [
1860
- "H",
1861
- "hB"
1862
- ],
1863
- GQ: [
1864
- "H",
1865
- "hB",
1866
- "h",
1867
- "hb"
1868
- ],
1869
- GR: [
1870
- "h",
1871
- "H",
1872
- "hb",
1873
- "hB"
1874
- ],
1875
- GT: [
1876
- "h",
1877
- "H",
1878
- "hB",
1879
- "hb"
1880
- ],
1881
- GU: [
1882
- "h",
1883
- "hb",
1884
- "H",
1885
- "hB"
1886
- ],
1887
- GW: [
1888
- "H",
1889
- "hB"
1890
- ],
1891
- GY: [
1892
- "h",
1893
- "hb",
1894
- "H",
1895
- "hB"
1896
- ],
1897
- HK: [
1898
- "h",
1899
- "hB",
1900
- "hb",
1901
- "H"
1902
- ],
1903
- HN: [
1904
- "h",
1905
- "H",
1906
- "hB",
1907
- "hb"
1908
- ],
1909
- HR: [
1910
- "H",
1911
- "hB"
1912
- ],
1913
- HU: [
1914
- "H",
1915
- "h"
1916
- ],
1917
- IC: [
1918
- "H",
1919
- "h",
1920
- "hB",
1921
- "hb"
1922
- ],
1923
- ID: [
1924
- "H"
1925
- ],
1926
- IE: [
1927
- "H",
1928
- "h",
1929
- "hb",
1930
- "hB"
1931
- ],
1932
- IL: [
1933
- "H",
1934
- "hB"
1935
- ],
1936
- IM: [
1937
- "H",
1938
- "h",
1939
- "hb",
1940
- "hB"
1941
- ],
1942
- IN: [
1943
- "h",
1944
- "H"
1945
- ],
1946
- IO: [
1947
- "H",
1948
- "h",
1949
- "hb",
1950
- "hB"
1951
- ],
1952
- IQ: [
1953
- "h",
1954
- "hB",
1955
- "hb",
1956
- "H"
1957
- ],
1958
- IR: [
1959
- "hB",
1960
- "H"
1961
- ],
1962
- IS: [
1963
- "H"
1964
- ],
1965
- IT: [
1966
- "H",
1967
- "hB"
1968
- ],
1969
- JE: [
1970
- "H",
1971
- "h",
1972
- "hb",
1973
- "hB"
1974
- ],
1975
- JM: [
1976
- "h",
1977
- "hb",
1978
- "H",
1979
- "hB"
1980
- ],
1981
- JO: [
1982
- "h",
1983
- "hB",
1984
- "hb",
1985
- "H"
1986
- ],
1987
- JP: [
1988
- "H",
1989
- "K",
1990
- "h"
1991
- ],
1992
- KE: [
1993
- "hB",
1994
- "hb",
1995
- "H",
1996
- "h"
1997
- ],
1998
- KG: [
1999
- "H",
2000
- "h",
2001
- "hB",
2002
- "hb"
2003
- ],
2004
- KH: [
2005
- "hB",
2006
- "h",
2007
- "H",
2008
- "hb"
2009
- ],
2010
- KI: [
2011
- "h",
2012
- "hb",
2013
- "H",
2014
- "hB"
2015
- ],
2016
- KM: [
2017
- "H",
2018
- "h",
2019
- "hB",
2020
- "hb"
2021
- ],
2022
- KN: [
2023
- "h",
2024
- "hb",
2025
- "H",
2026
- "hB"
2027
- ],
2028
- KP: [
2029
- "h",
2030
- "H",
2031
- "hB",
2032
- "hb"
2033
- ],
2034
- KR: [
2035
- "h",
2036
- "H",
2037
- "hB",
2038
- "hb"
2039
- ],
2040
- KW: [
2041
- "h",
2042
- "hB",
2043
- "hb",
2044
- "H"
2045
- ],
2046
- KY: [
2047
- "h",
2048
- "hb",
2049
- "H",
2050
- "hB"
2051
- ],
2052
- KZ: [
2053
- "H",
2054
- "hB"
2055
- ],
2056
- LA: [
2057
- "H",
2058
- "hb",
2059
- "hB",
2060
- "h"
2061
- ],
2062
- LB: [
2063
- "h",
2064
- "hB",
2065
- "hb",
2066
- "H"
2067
- ],
2068
- LC: [
2069
- "h",
2070
- "hb",
2071
- "H",
2072
- "hB"
2073
- ],
2074
- LI: [
2075
- "H",
2076
- "hB",
2077
- "h"
2078
- ],
2079
- LK: [
2080
- "H",
2081
- "h",
2082
- "hB",
2083
- "hb"
2084
- ],
2085
- LR: [
2086
- "h",
2087
- "hb",
2088
- "H",
2089
- "hB"
2090
- ],
2091
- LS: [
2092
- "h",
2093
- "H"
2094
- ],
2095
- LT: [
2096
- "H",
2097
- "h",
2098
- "hb",
2099
- "hB"
2100
- ],
2101
- LU: [
2102
- "H",
2103
- "h",
2104
- "hB"
2105
- ],
2106
- LV: [
2107
- "H",
2108
- "hB",
2109
- "hb",
2110
- "h"
2111
- ],
2112
- LY: [
2113
- "h",
2114
- "hB",
2115
- "hb",
2116
- "H"
2117
- ],
2118
- MA: [
2119
- "H",
2120
- "h",
2121
- "hB",
2122
- "hb"
2123
- ],
2124
- MC: [
2125
- "H",
2126
- "hB"
2127
- ],
2128
- MD: [
2129
- "H",
2130
- "hB"
2131
- ],
2132
- ME: [
2133
- "H",
2134
- "hB",
2135
- "h"
2136
- ],
2137
- MF: [
2138
- "H",
2139
- "hB"
2140
- ],
2141
- MG: [
2142
- "H",
2143
- "h"
2144
- ],
2145
- MH: [
2146
- "h",
2147
- "hb",
2148
- "H",
2149
- "hB"
2150
- ],
2151
- MK: [
2152
- "H",
2153
- "h",
2154
- "hb",
2155
- "hB"
2156
- ],
2157
- ML: [
2158
- "H"
2159
- ],
2160
- MM: [
2161
- "hB",
2162
- "hb",
2163
- "H",
2164
- "h"
2165
- ],
2166
- MN: [
2167
- "H",
2168
- "h",
2169
- "hb",
2170
- "hB"
2171
- ],
2172
- MO: [
2173
- "h",
2174
- "hB",
2175
- "hb",
2176
- "H"
2177
- ],
2178
- MP: [
2179
- "h",
2180
- "hb",
2181
- "H",
2182
- "hB"
2183
- ],
2184
- MQ: [
2185
- "H",
2186
- "hB"
2187
- ],
2188
- MR: [
2189
- "h",
2190
- "hB",
2191
- "hb",
2192
- "H"
2193
- ],
2194
- MS: [
2195
- "H",
2196
- "h",
2197
- "hb",
2198
- "hB"
2199
- ],
2200
- MT: [
2201
- "H",
2202
- "h"
2203
- ],
2204
- MU: [
2205
- "H",
2206
- "h"
2207
- ],
2208
- MV: [
2209
- "H",
2210
- "h"
2211
- ],
2212
- MW: [
2213
- "h",
2214
- "hb",
2215
- "H",
2216
- "hB"
2217
- ],
2218
- MX: [
2219
- "h",
2220
- "H",
2221
- "hB",
2222
- "hb"
2223
- ],
2224
- MY: [
2225
- "hb",
2226
- "hB",
2227
- "h",
2228
- "H"
2229
- ],
2230
- MZ: [
2231
- "H",
2232
- "hB"
2233
- ],
2234
- NA: [
2235
- "h",
2236
- "H",
2237
- "hB",
2238
- "hb"
2239
- ],
2240
- NC: [
2241
- "H",
2242
- "hB"
2243
- ],
2244
- NE: [
2245
- "H"
2246
- ],
2247
- NF: [
2248
- "H",
2249
- "h",
2250
- "hb",
2251
- "hB"
2252
- ],
2253
- NG: [
2254
- "H",
2255
- "h",
2256
- "hb",
2257
- "hB"
2258
- ],
2259
- NI: [
2260
- "h",
2261
- "H",
2262
- "hB",
2263
- "hb"
2264
- ],
2265
- NL: [
2266
- "H",
2267
- "hB"
2268
- ],
2269
- NO: [
2270
- "H",
2271
- "h"
2272
- ],
2273
- NP: [
2274
- "H",
2275
- "h",
2276
- "hB"
2277
- ],
2278
- NR: [
2279
- "H",
2280
- "h",
2281
- "hb",
2282
- "hB"
2283
- ],
2284
- NU: [
2285
- "H",
2286
- "h",
2287
- "hb",
2288
- "hB"
2289
- ],
2290
- NZ: [
2291
- "h",
2292
- "hb",
2293
- "H",
2294
- "hB"
2295
- ],
2296
- OM: [
2297
- "h",
2298
- "hB",
2299
- "hb",
2300
- "H"
2301
- ],
2302
- PA: [
2303
- "h",
2304
- "H",
2305
- "hB",
2306
- "hb"
2307
- ],
2308
- PE: [
2309
- "h",
2310
- "H",
2311
- "hB",
2312
- "hb"
2313
- ],
2314
- PF: [
2315
- "H",
2316
- "h",
2317
- "hB"
2318
- ],
2319
- PG: [
2320
- "h",
2321
- "H"
2322
- ],
2323
- PH: [
2324
- "h",
2325
- "hB",
2326
- "hb",
2327
- "H"
2328
- ],
2329
- PK: [
2330
- "h",
2331
- "hB",
2332
- "H"
2333
- ],
2334
- PL: [
2335
- "H",
2336
- "h"
2337
- ],
2338
- PM: [
2339
- "H",
2340
- "hB"
2341
- ],
2342
- PN: [
2343
- "H",
2344
- "h",
2345
- "hb",
2346
- "hB"
2347
- ],
2348
- PR: [
2349
- "h",
2350
- "H",
2351
- "hB",
2352
- "hb"
2353
- ],
2354
- PS: [
2355
- "h",
2356
- "hB",
2357
- "hb",
2358
- "H"
2359
- ],
2360
- PT: [
2361
- "H",
2362
- "hB"
2363
- ],
2364
- PW: [
2365
- "h",
2366
- "H"
2367
- ],
2368
- PY: [
2369
- "h",
2370
- "H",
2371
- "hB",
2372
- "hb"
2373
- ],
2374
- QA: [
2375
- "h",
2376
- "hB",
2377
- "hb",
2378
- "H"
2379
- ],
2380
- RE: [
2381
- "H",
2382
- "hB"
2383
- ],
2384
- RO: [
2385
- "H",
2386
- "hB"
2387
- ],
2388
- RS: [
2389
- "H",
2390
- "hB",
2391
- "h"
2392
- ],
2393
- RU: [
2394
- "H"
2395
- ],
2396
- RW: [
2397
- "H",
2398
- "h"
2399
- ],
2400
- SA: [
2401
- "h",
2402
- "hB",
2403
- "hb",
2404
- "H"
2405
- ],
2406
- SB: [
2407
- "h",
2408
- "hb",
2409
- "H",
2410
- "hB"
2411
- ],
2412
- SC: [
2413
- "H",
2414
- "h",
2415
- "hB"
2416
- ],
2417
- SD: [
2418
- "h",
2419
- "hB",
2420
- "hb",
2421
- "H"
2422
- ],
2423
- SE: [
2424
- "H"
2425
- ],
2426
- SG: [
2427
- "h",
2428
- "hb",
2429
- "H",
2430
- "hB"
2431
- ],
2432
- SH: [
2433
- "H",
2434
- "h",
2435
- "hb",
2436
- "hB"
2437
- ],
2438
- SI: [
2439
- "H",
2440
- "hB"
2441
- ],
2442
- SJ: [
2443
- "H"
2444
- ],
2445
- SK: [
2446
- "H"
2447
- ],
2448
- SL: [
2449
- "h",
2450
- "hb",
2451
- "H",
2452
- "hB"
2453
- ],
2454
- SM: [
2455
- "H",
2456
- "h",
2457
- "hB"
2458
- ],
2459
- SN: [
2460
- "H",
2461
- "h",
2462
- "hB"
2463
- ],
2464
- SO: [
2465
- "h",
2466
- "H"
2467
- ],
2468
- SR: [
2469
- "H",
2470
- "hB"
2471
- ],
2472
- SS: [
2473
- "h",
2474
- "hb",
2475
- "H",
2476
- "hB"
2477
- ],
2478
- ST: [
2479
- "H",
2480
- "hB"
2481
- ],
2482
- SV: [
2483
- "h",
2484
- "H",
2485
- "hB",
2486
- "hb"
2487
- ],
2488
- SX: [
2489
- "H",
2490
- "h",
2491
- "hb",
2492
- "hB"
2493
- ],
2494
- SY: [
2495
- "h",
2496
- "hB",
2497
- "hb",
2498
- "H"
2499
- ],
2500
- SZ: [
2501
- "h",
2502
- "hb",
2503
- "H",
2504
- "hB"
2505
- ],
2506
- TA: [
2507
- "H",
2508
- "h",
2509
- "hb",
2510
- "hB"
2511
- ],
2512
- TC: [
2513
- "h",
2514
- "hb",
2515
- "H",
2516
- "hB"
2517
- ],
2518
- TD: [
2519
- "h",
2520
- "H",
2521
- "hB"
2522
- ],
2523
- TF: [
2524
- "H",
2525
- "h",
2526
- "hB"
2527
- ],
2528
- TG: [
2529
- "H",
2530
- "hB"
2531
- ],
2532
- TH: [
2533
- "H",
2534
- "h"
2535
- ],
2536
- TJ: [
2537
- "H",
2538
- "h"
2539
- ],
2540
- TL: [
2541
- "H",
2542
- "hB",
2543
- "hb",
2544
- "h"
2545
- ],
2546
- TM: [
2547
- "H",
2548
- "h"
2549
- ],
2550
- TN: [
2551
- "h",
2552
- "hB",
2553
- "hb",
2554
- "H"
2555
- ],
2556
- TO: [
2557
- "h",
2558
- "H"
2559
- ],
2560
- TR: [
2561
- "H",
2562
- "hB"
2563
- ],
2564
- TT: [
2565
- "h",
2566
- "hb",
2567
- "H",
2568
- "hB"
2569
- ],
2570
- TW: [
2571
- "hB",
2572
- "hb",
2573
- "h",
2574
- "H"
2575
- ],
2576
- TZ: [
2577
- "hB",
2578
- "hb",
2579
- "H",
2580
- "h"
2581
- ],
2582
- UA: [
2583
- "H",
2584
- "hB",
2585
- "h"
2586
- ],
2587
- UG: [
2588
- "hB",
2589
- "hb",
2590
- "H",
2591
- "h"
2592
- ],
2593
- UM: [
2594
- "h",
2595
- "hb",
2596
- "H",
2597
- "hB"
2598
- ],
2599
- US: [
2600
- "h",
2601
- "hb",
2602
- "H",
2603
- "hB"
2604
- ],
2605
- UY: [
2606
- "h",
2607
- "H",
2608
- "hB",
2609
- "hb"
2610
- ],
2611
- UZ: [
2612
- "H",
2613
- "hB",
2614
- "h"
2615
- ],
2616
- VA: [
2617
- "H",
2618
- "h",
2619
- "hB"
2620
- ],
2621
- VC: [
2622
- "h",
2623
- "hb",
2624
- "H",
2625
- "hB"
2626
- ],
2627
- VE: [
2628
- "h",
2629
- "H",
2630
- "hB",
2631
- "hb"
2632
- ],
2633
- VG: [
2634
- "h",
2635
- "hb",
2636
- "H",
2637
- "hB"
2638
- ],
2639
- VI: [
2640
- "h",
2641
- "hb",
2642
- "H",
2643
- "hB"
2644
- ],
2645
- VN: [
2646
- "H",
2647
- "h"
2648
- ],
2649
- VU: [
2650
- "h",
2651
- "H"
2652
- ],
2653
- WF: [
2654
- "H",
2655
- "hB"
2656
- ],
2657
- WS: [
2658
- "h",
2659
- "H"
2660
- ],
2661
- XK: [
2662
- "H",
2663
- "hB",
2664
- "h"
2665
- ],
2666
- YE: [
2667
- "h",
2668
- "hB",
2669
- "hb",
2670
- "H"
2671
- ],
2672
- YT: [
2673
- "H",
2674
- "hB"
2675
- ],
2676
- ZA: [
2677
- "H",
2678
- "h",
2679
- "hb",
2680
- "hB"
2681
- ],
2682
- ZM: [
2683
- "h",
2684
- "hb",
2685
- "H",
2686
- "hB"
2687
- ],
2688
- ZW: [
2689
- "H",
2690
- "h"
2691
- ],
2692
- "af-ZA": [
2693
- "H",
2694
- "h",
2695
- "hB",
2696
- "hb"
2697
- ],
2698
- "ar-001": [
2699
- "h",
2700
- "hB",
2701
- "hb",
2702
- "H"
2703
- ],
2704
- "ca-ES": [
2705
- "H",
2706
- "h",
2707
- "hB"
2708
- ],
2709
- "en-001": [
2710
- "h",
2711
- "hb",
2712
- "H",
2713
- "hB"
2714
- ],
2715
- "en-HK": [
2716
- "h",
2717
- "hb",
2718
- "H",
2719
- "hB"
2720
- ],
2721
- "en-IL": [
2722
- "H",
2723
- "h",
2724
- "hb",
2725
- "hB"
2726
- ],
2727
- "en-MY": [
2728
- "h",
2729
- "hb",
2730
- "H",
2731
- "hB"
2732
- ],
2733
- "es-BR": [
2734
- "H",
2735
- "h",
2736
- "hB",
2737
- "hb"
2738
- ],
2739
- "es-ES": [
2740
- "H",
2741
- "h",
2742
- "hB",
2743
- "hb"
2744
- ],
2745
- "es-GQ": [
2746
- "H",
2747
- "h",
2748
- "hB",
2749
- "hb"
2750
- ],
2751
- "fr-CA": [
2752
- "H",
2753
- "h",
2754
- "hB"
2755
- ],
2756
- "gl-ES": [
2757
- "H",
2758
- "h",
2759
- "hB"
2760
- ],
2761
- "gu-IN": [
2762
- "hB",
2763
- "hb",
2764
- "h",
2765
- "H"
2766
- ],
2767
- "hi-IN": [
2768
- "hB",
2769
- "h",
2770
- "H"
2771
- ],
2772
- "it-CH": [
2773
- "H",
2774
- "h",
2775
- "hB"
2776
- ],
2777
- "it-IT": [
2778
- "H",
2779
- "h",
2780
- "hB"
2781
- ],
2782
- "kn-IN": [
2783
- "hB",
2784
- "h",
2785
- "H"
2786
- ],
2787
- "ml-IN": [
2788
- "hB",
2789
- "h",
2790
- "H"
2791
- ],
2792
- "mr-IN": [
2793
- "hB",
2794
- "hb",
2795
- "h",
2796
- "H"
2797
- ],
2798
- "pa-IN": [
2799
- "hB",
2800
- "hb",
2801
- "h",
2802
- "H"
2803
- ],
2804
- "ta-IN": [
2805
- "hB",
2806
- "h",
2807
- "hb",
2808
- "H"
2809
- ],
2810
- "te-IN": [
2811
- "hB",
2812
- "h",
2813
- "H"
2814
- ],
2815
- "zu-ZA": [
2816
- "H",
2817
- "hB",
2818
- "hb",
2819
- "h"
2820
- ]
2821
- };
2822
- function An(e, t) {
2823
- for (var r = "", n = 0; n < e.length; n++) {
2824
- var i = e.charAt(n);
2825
- if (i === "j") {
2826
- for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2827
- s++, n++;
2828
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Pn(t);
2829
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2830
- r += h;
2831
- for (; a-- > 0; )
2832
- r = u + r;
2833
- } else
2834
- i === "J" ? r += "H" : r += i;
2835
- }
2836
- return r;
2837
- }
2838
- function Pn(e) {
2839
- var t = e.hourCycle;
2840
- if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2841
- e.hourCycles && // @ts-ignore
2842
- e.hourCycles.length && (t = e.hourCycles[0]), t)
2843
- switch (t) {
2844
- case "h24":
2845
- return "k";
2846
- case "h23":
2847
- return "H";
2848
- case "h12":
2849
- return "h";
2850
- case "h11":
2851
- return "K";
2852
- default:
2853
- throw new Error("Invalid hourCycle");
2854
- }
2855
- var r = e.language, n;
2856
- r !== "root" && (n = e.maximize().region);
2857
- var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2858
- return i[0];
2859
- }
2860
- var Fe, On = new RegExp("^".concat(nr.source, "*")), Cn = new RegExp("".concat(nr.source, "*$"));
2861
- function v(e, t) {
2862
- return { start: e, end: t };
2863
- }
2864
- var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Mn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Dn = !!Number.isSafeInteger, kn = Dn ? Number.isSafeInteger : function(e) {
2865
- return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2866
- }, qe = !0;
2867
- try {
2868
- var Un = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2869
- qe = ((Fe = Un.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
2870
- } catch {
2871
- qe = !1;
2872
- }
2873
- var vt = In ? (
2874
- // Native
2875
- function(t, r, n) {
2876
- return t.startsWith(r, n);
2877
- }
2878
- ) : (
2879
- // For IE11
2880
- function(t, r, n) {
2881
- return t.slice(n, n + r.length) === r;
2882
- }
2883
- ), Qe = Nn ? String.fromCodePoint : (
2884
- // IE11
2885
- function() {
2886
- for (var t = [], r = 0; r < arguments.length; r++)
2887
- t[r] = arguments[r];
2888
- for (var n = "", i = t.length, s = 0, a; i > s; ) {
2889
- if (a = t[s++], a > 1114111)
2890
- throw RangeError(a + " is not a valid code point");
2891
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2892
- }
2893
- return n;
2894
- }
2895
- ), xt = (
2896
- // native
2897
- Mn ? Object.fromEntries : (
2898
- // Ponyfill
2899
- function(t) {
2900
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
2901
- var s = i[n], a = s[0], o = s[1];
2902
- r[a] = o;
2903
- }
2904
- return r;
2905
- }
2906
- )
2907
- ), ar = Ln ? (
2908
- // Native
2909
- function(t, r) {
2910
- return t.codePointAt(r);
2911
- }
2912
- ) : (
2913
- // IE 11
2914
- function(t, r) {
2915
- var n = t.length;
2916
- if (!(r < 0 || r >= n)) {
2917
- var i = t.charCodeAt(r), s;
2918
- return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2919
- }
2920
- }
2921
- ), Gn = $n ? (
2922
- // Native
2923
- function(t) {
2924
- return t.trimStart();
2925
- }
2926
- ) : (
2927
- // Ponyfill
2928
- function(t) {
2929
- return t.replace(On, "");
2930
- }
2931
- ), Fn = Rn ? (
2932
- // Native
2933
- function(t) {
2934
- return t.trimEnd();
2935
- }
2936
- ) : (
2937
- // Ponyfill
2938
- function(t) {
2939
- return t.replace(Cn, "");
2940
- }
2941
- );
2942
- function ur(e, t) {
2943
- return new RegExp(e, t);
2944
- }
2945
- var Ye;
2946
- if (qe) {
2947
- var Tt = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2948
- Ye = function(t, r) {
2949
- var n;
2950
- Tt.lastIndex = r;
2951
- var i = Tt.exec(t);
2952
- return (n = i[1]) !== null && n !== void 0 ? n : "";
2953
- };
2954
- } else
2955
- Ye = function(t, r) {
2956
- for (var n = []; ; ) {
2957
- var i = ar(t, r);
2958
- if (i === void 0 || lr(i) || Xn(i))
2959
- break;
2960
- n.push(i), r += i >= 65536 ? 2 : 1;
2961
- }
2962
- return Qe.apply(void 0, n);
2963
- };
2964
- var jn = (
2965
- /** @class */
2966
- function() {
2967
- function e(t, r) {
2968
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2969
- }
2970
- return e.prototype.parse = function() {
2971
- if (this.offset() !== 0)
2972
- throw Error("parser can only be used once");
2973
- return this.parseMessage(0, "", !1);
2974
- }, e.prototype.parseMessage = function(t, r, n) {
2975
- for (var i = []; !this.isEOF(); ) {
2976
- var s = this.char();
2977
- if (s === 123) {
2978
- var a = this.parseArgument(t, n);
2979
- if (a.err)
2980
- return a;
2981
- i.push(a.val);
2982
- } else {
2983
- if (s === 125 && t > 0)
2984
- break;
2985
- if (s === 35 && (r === "plural" || r === "selectordinal")) {
2986
- var o = this.clonePosition();
2987
- this.bump(), i.push({
2988
- type: x.pound,
2989
- location: v(o, this.clonePosition())
2990
- });
2991
- } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2992
- if (n)
2993
- break;
2994
- return this.error(_.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
2995
- } else if (s === 60 && !this.ignoreTag && Ke(this.peek() || 0)) {
2996
- var a = this.parseTag(t, r);
2997
- if (a.err)
2998
- return a;
2999
- i.push(a.val);
3000
- } else {
3001
- var a = this.parseLiteral(t, r);
3002
- if (a.err)
3003
- return a;
3004
- i.push(a.val);
3005
- }
3006
- }
3007
- }
3008
- return { val: i, err: null };
3009
- }, e.prototype.parseTag = function(t, r) {
3010
- var n = this.clonePosition();
3011
- this.bump();
3012
- var i = this.parseTagName();
3013
- if (this.bumpSpace(), this.bumpIf("/>"))
3014
- return {
3015
- val: {
3016
- type: x.literal,
3017
- value: "<".concat(i, "/>"),
3018
- location: v(n, this.clonePosition())
3019
- },
3020
- err: null
3021
- };
3022
- if (this.bumpIf(">")) {
3023
- var s = this.parseMessage(t + 1, r, !0);
3024
- if (s.err)
3025
- return s;
3026
- var a = s.val, o = this.clonePosition();
3027
- if (this.bumpIf("</")) {
3028
- if (this.isEOF() || !Ke(this.char()))
3029
- return this.error(_.INVALID_TAG, v(o, this.clonePosition()));
3030
- var h = this.clonePosition(), u = this.parseTagName();
3031
- return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3032
- val: {
3033
- type: x.tag,
3034
- value: i,
3035
- children: a,
3036
- location: v(n, this.clonePosition())
3037
- },
3038
- err: null
3039
- } : this.error(_.INVALID_TAG, v(o, this.clonePosition())));
3040
- } else
3041
- return this.error(_.UNCLOSED_TAG, v(n, this.clonePosition()));
3042
- } else
3043
- return this.error(_.INVALID_TAG, v(n, this.clonePosition()));
3044
- }, e.prototype.parseTagName = function() {
3045
- var t = this.offset();
3046
- for (this.bump(); !this.isEOF() && Vn(this.char()); )
3047
- this.bump();
3048
- return this.message.slice(t, this.offset());
3049
- }, e.prototype.parseLiteral = function(t, r) {
3050
- for (var n = this.clonePosition(), i = ""; ; ) {
3051
- var s = this.tryParseQuote(r);
3052
- if (s) {
3053
- i += s;
3054
- continue;
3055
- }
3056
- var a = this.tryParseUnquoted(t, r);
3057
- if (a) {
3058
- i += a;
3059
- continue;
3060
- }
3061
- var o = this.tryParseLeftAngleBracket();
3062
- if (o) {
3063
- i += o;
3064
- continue;
3065
- }
3066
- break;
3067
- }
3068
- var h = v(n, this.clonePosition());
3069
- return {
3070
- val: { type: x.literal, value: i, location: h },
3071
- err: null
3072
- };
3073
- }, e.prototype.tryParseLeftAngleBracket = function() {
3074
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3075
- !zn(this.peek() || 0)) ? (this.bump(), "<") : null;
3076
- }, e.prototype.tryParseQuote = function(t) {
3077
- if (this.isEOF() || this.char() !== 39)
3078
- return null;
3079
- switch (this.peek()) {
3080
- case 39:
3081
- return this.bump(), this.bump(), "'";
3082
- case 123:
3083
- case 60:
3084
- case 62:
3085
- case 125:
3086
- break;
3087
- case 35:
3088
- if (t === "plural" || t === "selectordinal")
3089
- break;
3090
- return null;
3091
- default:
3092
- return null;
3093
- }
3094
- this.bump();
3095
- var r = [this.char()];
3096
- for (this.bump(); !this.isEOF(); ) {
3097
- var n = this.char();
3098
- if (n === 39)
3099
- if (this.peek() === 39)
3100
- r.push(39), this.bump();
3101
- else {
3102
- this.bump();
3103
- break;
3104
- }
3105
- else
3106
- r.push(n);
3107
- this.bump();
3108
- }
3109
- return Qe.apply(void 0, r);
3110
- }, e.prototype.tryParseUnquoted = function(t, r) {
3111
- if (this.isEOF())
3112
- return null;
3113
- var n = this.char();
3114
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qe(n));
3115
- }, e.prototype.parseArgument = function(t, r) {
3116
- var n = this.clonePosition();
3117
- if (this.bump(), this.bumpSpace(), this.isEOF())
3118
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3119
- if (this.char() === 125)
3120
- return this.bump(), this.error(_.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3121
- var i = this.parseIdentifierIfPossible().value;
3122
- if (!i)
3123
- return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3124
- if (this.bumpSpace(), this.isEOF())
3125
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3126
- switch (this.char()) {
3127
- case 125:
3128
- return this.bump(), {
3129
- val: {
3130
- type: x.argument,
3131
- // value does not include the opening and closing braces.
3132
- value: i,
3133
- location: v(n, this.clonePosition())
3134
- },
3135
- err: null
3136
- };
3137
- case 44:
3138
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3139
- default:
3140
- return this.error(_.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3141
- }
3142
- }, e.prototype.parseIdentifierIfPossible = function() {
3143
- var t = this.clonePosition(), r = this.offset(), n = Ye(this.message, r), i = r + n.length;
3144
- this.bumpTo(i);
3145
- var s = this.clonePosition(), a = v(t, s);
3146
- return { value: n, location: a };
3147
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3148
- var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3149
- switch (o) {
3150
- case "":
3151
- return this.error(_.EXPECT_ARGUMENT_TYPE, v(a, h));
3152
- case "number":
3153
- case "date":
3154
- case "time": {
3155
- this.bumpSpace();
3156
- var u = null;
3157
- if (this.bumpIf(",")) {
3158
- this.bumpSpace();
3159
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3160
- if (c.err)
3161
- return c;
3162
- var f = Fn(c.val);
3163
- if (f.length === 0)
3164
- return this.error(_.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3165
- var y = v(l, this.clonePosition());
3166
- u = { style: f, styleLocation: y };
3167
- }
3168
- var m = this.tryParseArgumentClose(i);
3169
- if (m.err)
3170
- return m;
3171
- var p = v(i, this.clonePosition());
3172
- if (u && vt(u?.style, "::", 0)) {
3173
- var g = Gn(u.style.slice(2));
3174
- if (o === "number") {
3175
- var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
3176
- return c.err ? c : {
3177
- val: { type: x.number, value: n, location: p, style: c.val },
3178
- err: null
3179
- };
3180
- } else {
3181
- if (g.length === 0)
3182
- return this.error(_.EXPECT_DATE_TIME_SKELETON, p);
3183
- var d = g;
3184
- this.locale && (d = An(g, this.locale));
3185
- var f = {
3186
- type: Q.dateTime,
3187
- pattern: d,
3188
- location: u.styleLocation,
3189
- parsedOptions: this.shouldParseSkeletons ? vn(d) : {}
3190
- }, E = o === "date" ? x.date : x.time;
3191
- return {
3192
- val: { type: E, value: n, location: p, style: f },
3193
- err: null
3194
- };
3195
- }
3196
- }
3197
- return {
3198
- val: {
3199
- type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3200
- value: n,
3201
- location: p,
3202
- style: (s = u?.style) !== null && s !== void 0 ? s : null
3203
- },
3204
- err: null
3205
- };
3206
- }
3207
- case "plural":
3208
- case "selectordinal":
3209
- case "select": {
3210
- var b = this.clonePosition();
3211
- if (this.bumpSpace(), !this.bumpIf(","))
3212
- return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, v(b, Pe({}, b)));
3213
- this.bumpSpace();
3214
- var w = this.parseIdentifierIfPossible(), H = 0;
3215
- if (o !== "select" && w.value === "offset") {
3216
- if (!this.bumpIf(":"))
3217
- return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3218
- this.bumpSpace();
3219
- var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3220
- if (c.err)
3221
- return c;
3222
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), H = c.val;
3223
- }
3224
- var F = this.tryParsePluralOrSelectOptions(t, o, r, w);
3225
- if (F.err)
3226
- return F;
3227
- var m = this.tryParseArgumentClose(i);
3228
- if (m.err)
3229
- return m;
3230
- var ft = v(i, this.clonePosition());
3231
- return o === "select" ? {
3232
- val: {
3233
- type: x.select,
3234
- value: n,
3235
- options: xt(F.val),
3236
- location: ft
3237
- },
3238
- err: null
3239
- } : {
3240
- val: {
3241
- type: x.plural,
3242
- value: n,
3243
- options: xt(F.val),
3244
- offset: H,
3245
- pluralType: o === "plural" ? "cardinal" : "ordinal",
3246
- location: ft
3247
- },
3248
- err: null
3249
- };
3250
- }
3251
- default:
3252
- return this.error(_.INVALID_ARGUMENT_TYPE, v(a, h));
3253
- }
3254
- }, e.prototype.tryParseArgumentClose = function(t) {
3255
- return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3256
- }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3257
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3258
- var n = this.char();
3259
- switch (n) {
3260
- case 39: {
3261
- this.bump();
3262
- var i = this.clonePosition();
3263
- if (!this.bumpUntil("'"))
3264
- return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3265
- this.bump();
3266
- break;
3267
- }
3268
- case 123: {
3269
- t += 1, this.bump();
3270
- break;
3271
- }
3272
- case 125: {
3273
- if (t > 0)
3274
- t -= 1;
3275
- else
3276
- return {
3277
- val: this.message.slice(r.offset, this.offset()),
3278
- err: null
3279
- };
3280
- break;
3281
- }
3282
- default:
3283
- this.bump();
3284
- break;
3285
- }
3286
- }
3287
- return {
3288
- val: this.message.slice(r.offset, this.offset()),
3289
- err: null
3290
- };
3291
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3292
- var n = [];
3293
- try {
3294
- n = Tn(t);
3295
- } catch {
3296
- return this.error(_.INVALID_NUMBER_SKELETON, r);
3297
- }
3298
- return {
3299
- val: {
3300
- type: Q.number,
3301
- tokens: n,
3302
- location: r,
3303
- parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
3304
- },
3305
- err: null
3306
- };
3307
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3308
- for (var s, a = !1, o = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3309
- if (u.length === 0) {
3310
- var c = this.clonePosition();
3311
- if (r !== "select" && this.bumpIf("=")) {
3312
- var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
3313
- if (f.err)
3314
- return f;
3315
- l = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3316
- } else
3317
- break;
3318
- }
3319
- if (h.has(u))
3320
- return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3321
- u === "other" && (a = !0), this.bumpSpace();
3322
- var y = this.clonePosition();
3323
- if (!this.bumpIf("{"))
3324
- return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3325
- var m = this.parseMessage(t + 1, r, n);
3326
- if (m.err)
3327
- return m;
3328
- var p = this.tryParseArgumentClose(y);
3329
- if (p.err)
3330
- return p;
3331
- o.push([
3332
- u,
3333
- {
3334
- value: m.val,
3335
- location: v(y, this.clonePosition())
3336
- }
3337
- ]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
3338
- }
3339
- return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3340
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3341
- var n = 1, i = this.clonePosition();
3342
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3343
- for (var s = !1, a = 0; !this.isEOF(); ) {
3344
- var o = this.char();
3345
- if (o >= 48 && o <= 57)
3346
- s = !0, a = a * 10 + (o - 48), this.bump();
3347
- else
3348
- break;
3349
- }
3350
- var h = v(i, this.clonePosition());
3351
- return s ? (a *= n, kn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3352
- }, e.prototype.offset = function() {
3353
- return this.position.offset;
3354
- }, e.prototype.isEOF = function() {
3355
- return this.offset() === this.message.length;
3356
- }, e.prototype.clonePosition = function() {
3357
- return {
3358
- offset: this.position.offset,
3359
- line: this.position.line,
3360
- column: this.position.column
3361
- };
3362
- }, e.prototype.char = function() {
3363
- var t = this.position.offset;
3364
- if (t >= this.message.length)
3365
- throw Error("out of bound");
3366
- var r = ar(this.message, t);
3367
- if (r === void 0)
3368
- throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3369
- return r;
3370
- }, e.prototype.error = function(t, r) {
3371
- return {
3372
- val: null,
3373
- err: {
3374
- kind: t,
3375
- message: this.message,
3376
- location: r
3377
- }
3378
- };
3379
- }, e.prototype.bump = function() {
3380
- if (!this.isEOF()) {
3381
- var t = this.char();
3382
- 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);
3383
- }
3384
- }, e.prototype.bumpIf = function(t) {
3385
- if (vt(this.message, t, this.offset())) {
3386
- for (var r = 0; r < t.length; r++)
3387
- this.bump();
3388
- return !0;
3389
- }
3390
- return !1;
3391
- }, e.prototype.bumpUntil = function(t) {
3392
- var r = this.offset(), n = this.message.indexOf(t, r);
3393
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3394
- }, e.prototype.bumpTo = function(t) {
3395
- if (this.offset() > t)
3396
- throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3397
- for (t = Math.min(t, this.message.length); ; ) {
3398
- var r = this.offset();
3399
- if (r === t)
3400
- break;
3401
- if (r > t)
3402
- throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3403
- if (this.bump(), this.isEOF())
3404
- break;
3405
- }
3406
- }, e.prototype.bumpSpace = function() {
3407
- for (; !this.isEOF() && lr(this.char()); )
3408
- this.bump();
3409
- }, e.prototype.peek = function() {
3410
- if (this.isEOF())
3411
- return null;
3412
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3413
- return n ?? null;
3414
- }, e;
3415
- }()
3416
- );
3417
- function Ke(e) {
3418
- return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3419
- }
3420
- function zn(e) {
3421
- return Ke(e) || e === 47;
3422
- }
3423
- function Vn(e) {
3424
- 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;
3425
- }
3426
- function lr(e) {
3427
- return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3428
- }
3429
- function Xn(e) {
3430
- 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;
3431
- }
3432
- function et(e) {
3433
- e.forEach(function(t) {
3434
- if (delete t.location, Kt(t) || er(t))
3435
- for (var r in t.options)
3436
- delete t.options[r].location, et(t.options[r].value);
3437
- else
3438
- qt(t) && rr(t.style) || (Qt(t) || Yt(t)) && Je(t.style) ? delete t.style.location : tr(t) && et(t.children);
3439
- });
3440
- }
3441
- function Wn(e, t) {
3442
- t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3443
- var r = new jn(e, t).parse();
3444
- if (r.err) {
3445
- var n = SyntaxError(_[r.err.kind]);
3446
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3447
- }
3448
- return t?.captureLocation || et(r.val), r.val;
3449
- }
3450
- var Y;
3451
- (function(e) {
3452
- e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3453
- })(Y || (Y = {}));
3454
- var Le = (
3455
- /** @class */
3456
- function(e) {
3457
- Me(t, e);
3458
- function t(r, n, i) {
3459
- var s = e.call(this, r) || this;
3460
- return s.code = n, s.originalMessage = i, s;
3461
- }
3462
- return t.prototype.toString = function() {
3463
- return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3464
- }, t;
3465
- }(Error)
3466
- ), wt = (
3467
- /** @class */
3468
- function(e) {
3469
- Me(t, e);
3470
- function t(r, n, i, s) {
3471
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
3472
- }
3473
- return t;
3474
- }(Le)
3475
- ), Zn = (
3476
- /** @class */
3477
- function(e) {
3478
- Me(t, e);
3479
- function t(r, n, i) {
3480
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3481
- }
3482
- return t;
3483
- }(Le)
3484
- ), Jn = (
3485
- /** @class */
3486
- function(e) {
3487
- Me(t, e);
3488
- function t(r, n) {
3489
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3490
- }
3491
- return t;
3492
- }(Le)
3493
- ), S;
3494
- (function(e) {
3495
- e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3496
- })(S || (S = {}));
3497
- function qn(e) {
3498
- return e.length < 2 ? e : e.reduce(function(t, r) {
3499
- var n = t[t.length - 1];
3500
- return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
3501
- }, []);
3502
- }
3503
- function Qn(e) {
3504
- return typeof e == "function";
3505
- }
3506
- function Te(e, t, r, n, i, s, a) {
3507
- if (e.length === 1 && bt(e[0]))
3508
- return [
3509
- {
3510
- type: S.literal,
3511
- value: e[0].value
3512
- }
3513
- ];
3514
- for (var o = [], h = 0, u = e; h < u.length; h++) {
3515
- var l = u[h];
3516
- if (bt(l)) {
3517
- o.push({
3518
- type: S.literal,
3519
- value: l.value
3520
- });
3521
- continue;
3522
- }
3523
- if (_n(l)) {
3524
- typeof s == "number" && o.push({
3525
- type: S.literal,
3526
- value: r.getNumberFormat(t).format(s)
3527
- });
3528
- continue;
3529
- }
3530
- var c = l.value;
3531
- if (!(i && c in i))
3532
- throw new Jn(c, a);
3533
- var f = i[c];
3534
- if (yn(l)) {
3535
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
3536
- type: typeof f == "string" ? S.literal : S.object,
3537
- value: f
3538
- });
3539
- continue;
3540
- }
3541
- if (Qt(l)) {
3542
- var y = typeof l.style == "string" ? n.date[l.style] : Je(l.style) ? l.style.parsedOptions : void 0;
3543
- o.push({
3544
- type: S.literal,
3545
- value: r.getDateTimeFormat(t, y).format(f)
3546
- });
3547
- continue;
3548
- }
3549
- if (Yt(l)) {
3550
- var y = typeof l.style == "string" ? n.time[l.style] : Je(l.style) ? l.style.parsedOptions : n.time.medium;
3551
- o.push({
3552
- type: S.literal,
3553
- value: r.getDateTimeFormat(t, y).format(f)
3554
- });
3555
- continue;
3556
- }
3557
- if (qt(l)) {
3558
- var y = typeof l.style == "string" ? n.number[l.style] : rr(l.style) ? l.style.parsedOptions : void 0;
3559
- y && y.scale && (f = f * (y.scale || 1)), o.push({
3560
- type: S.literal,
3561
- value: r.getNumberFormat(t, y).format(f)
3562
- });
3563
- continue;
3564
- }
3565
- if (tr(l)) {
3566
- var m = l.children, p = l.value, g = i[p];
3567
- if (!Qn(g))
3568
- throw new Zn(p, "function", a);
3569
- var d = Te(m, t, r, n, i, s), E = g(d.map(function(H) {
3570
- return H.value;
3571
- }));
3572
- Array.isArray(E) || (E = [E]), o.push.apply(o, E.map(function(H) {
3573
- return {
3574
- type: typeof H == "string" ? S.literal : S.object,
3575
- value: H
3576
- };
3577
- }));
3578
- }
3579
- if (Kt(l)) {
3580
- var b = l.options[f] || l.options.other;
3581
- if (!b)
3582
- throw new wt(l.value, f, Object.keys(l.options), a);
3583
- o.push.apply(o, Te(b.value, t, r, n, i));
3584
- continue;
3585
- }
3586
- if (er(l)) {
3587
- var b = l.options["=".concat(f)];
3588
- if (!b) {
3589
- if (!Intl.PluralRules)
3590
- throw new Le(`Intl.PluralRules is not available in this environment.
3591
- Try polyfilling it using "@formatjs/intl-pluralrules"
3592
- `, Y.MISSING_INTL_API, a);
3593
- var w = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3594
- b = l.options[w] || l.options.other;
3595
- }
3596
- if (!b)
3597
- throw new wt(l.value, f, Object.keys(l.options), a);
3598
- o.push.apply(o, Te(b.value, t, r, n, i, f - (l.offset || 0)));
3599
- continue;
3600
- }
3601
- }
3602
- return qn(o);
3603
- }
3604
- function Yn(e, t) {
3605
- return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3606
- return r[n] = O(O({}, e[n]), t[n] || {}), r;
3607
- }, {})) : e;
3608
- }
3609
- function Kn(e, t) {
3610
- return t ? Object.keys(e).reduce(function(r, n) {
3611
- return r[n] = Yn(e[n], t[n]), r;
3612
- }, O({}, e)) : e;
3613
- }
3614
- function je(e) {
3615
- return {
3616
- create: function() {
3617
- return {
3618
- get: function(t) {
3619
- return e[t];
3620
- },
3621
- set: function(t, r) {
3622
- e[t] = r;
3623
- }
3624
- };
3625
- }
3626
- };
3627
- }
3628
- function ei(e) {
3629
- return e === void 0 && (e = {
3630
- number: {},
3631
- dateTime: {},
3632
- pluralRules: {}
3633
- }), {
3634
- getNumberFormat: Ue(function() {
3635
- for (var t, r = [], n = 0; n < arguments.length; n++)
3636
- r[n] = arguments[n];
3637
- return new ((t = Intl.NumberFormat).bind.apply(t, ke([void 0], r, !1)))();
3638
- }, {
3639
- cache: je(e.number),
3640
- strategy: Ge.variadic
3641
- }),
3642
- getDateTimeFormat: Ue(function() {
3643
- for (var t, r = [], n = 0; n < arguments.length; n++)
3644
- r[n] = arguments[n];
3645
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ke([void 0], r, !1)))();
3646
- }, {
3647
- cache: je(e.dateTime),
3648
- strategy: Ge.variadic
3649
- }),
3650
- getPluralRules: Ue(function() {
3651
- for (var t, r = [], n = 0; n < arguments.length; n++)
3652
- r[n] = arguments[n];
3653
- return new ((t = Intl.PluralRules).bind.apply(t, ke([void 0], r, !1)))();
3654
- }, {
3655
- cache: je(e.pluralRules),
3656
- strategy: Ge.variadic
3657
- })
3658
- };
3659
- }
3660
- var hr = (
3661
- /** @class */
3662
- function() {
3663
- function e(t, r, n, i) {
3664
- r === void 0 && (r = e.defaultLocale);
3665
- var s = this;
3666
- if (this.formatterCache = {
3667
- number: {},
3668
- dateTime: {},
3669
- pluralRules: {}
3670
- }, this.format = function(h) {
3671
- var u = s.formatToParts(h);
3672
- if (u.length === 1)
3673
- return u[0].value;
3674
- var l = u.reduce(function(c, f) {
3675
- return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3676
- }, []);
3677
- return l.length <= 1 ? l[0] || "" : l;
3678
- }, this.formatToParts = function(h) {
3679
- return Te(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3680
- }, this.resolvedOptions = function() {
3681
- var h;
3682
- return {
3683
- locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3684
- };
3685
- }, this.getAst = function() {
3686
- return s.ast;
3687
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3688
- if (this.message = t, !e.__parse)
3689
- throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3690
- var a = i || {};
3691
- a.formatters;
3692
- var o = hn(a, ["formatters"]);
3693
- this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3694
- } else
3695
- this.ast = t;
3696
- if (!Array.isArray(this.ast))
3697
- throw new TypeError("A message must be provided as a String or AST.");
3698
- this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
3699
- }
3700
- return Object.defineProperty(e, "defaultLocale", {
3701
- get: function() {
3702
- return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
3703
- },
3704
- enumerable: !1,
3705
- configurable: !0
3706
- }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3707
- if (!(typeof Intl.Locale > "u")) {
3708
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3709
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3710
- }
3711
- }, e.__parse = Wn, e.formats = {
3712
- number: {
3713
- integer: {
3714
- maximumFractionDigits: 0
3715
- },
3716
- currency: {
3717
- style: "currency"
3718
- },
3719
- percent: {
3720
- style: "percent"
3721
- }
3722
- },
3723
- date: {
3724
- short: {
3725
- month: "numeric",
3726
- day: "numeric",
3727
- year: "2-digit"
3728
- },
3729
- medium: {
3730
- month: "short",
3731
- day: "numeric",
3732
- year: "numeric"
3733
- },
3734
- long: {
3735
- month: "long",
3736
- day: "numeric",
3737
- year: "numeric"
3738
- },
3739
- full: {
3740
- weekday: "long",
3741
- month: "long",
3742
- day: "numeric",
3743
- year: "numeric"
3744
- }
3745
- },
3746
- time: {
3747
- short: {
3748
- hour: "numeric",
3749
- minute: "numeric"
3750
- },
3751
- medium: {
3752
- hour: "numeric",
3753
- minute: "numeric",
3754
- second: "numeric"
3755
- },
3756
- long: {
3757
- hour: "numeric",
3758
- minute: "numeric",
3759
- second: "numeric",
3760
- timeZoneName: "short"
3761
- },
3762
- full: {
3763
- hour: "numeric",
3764
- minute: "numeric",
3765
- second: "numeric",
3766
- timeZoneName: "short"
3767
- }
3768
- }
3769
- }, e;
3770
- }()
3771
- );
3772
- function ti(e, t) {
3773
- if (t == null)
3774
- return;
3775
- if (t in e)
3776
- return e[t];
3777
- const r = t.split(".");
3778
- let n = e;
3779
- for (let i = 0; i < r.length; i++)
3780
- if (typeof n == "object") {
3781
- if (i > 0) {
3782
- const s = r.slice(i, r.length).join(".");
3783
- if (s in n) {
3784
- n = n[s];
3785
- break;
3786
- }
3787
- }
3788
- n = n[r[i]];
3789
- } else
3790
- n = void 0;
3791
- return n;
3792
- }
3793
- const L = {}, ri = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), cr = (e, t) => {
3794
- if (t == null)
3795
- return;
3796
- if (t in L && e in L[t])
3797
- return L[t][e];
3798
- const r = fe(t);
3799
- for (let n = 0; n < r.length; n++) {
3800
- const i = r[n], s = ii(i, e);
3801
- if (s)
3802
- return ri(e, t, s);
3803
- }
3804
- };
3805
- let ht;
3806
- const ce = Ne({});
3807
- function ni(e) {
3808
- return ht[e] || null;
3809
- }
3810
- function fr(e) {
3811
- return e in ht;
3812
- }
3813
- function ii(e, t) {
3814
- if (!fr(e))
3815
- return null;
3816
- const r = ni(e);
3817
- return ti(r, t);
3818
- }
3819
- function si(e) {
3820
- if (e == null)
3821
- return;
3822
- const t = fe(e);
3823
- for (let r = 0; r < t.length; r++) {
3824
- const n = t[r];
3825
- if (fr(n))
3826
- return n;
3827
- }
3828
- }
3829
- function mr(e, ...t) {
3830
- delete L[e], ce.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
3831
- }
3832
- te(
3833
- [ce],
3834
- ([e]) => Object.keys(e)
3835
- );
3836
- ce.subscribe((e) => ht = e);
3837
- const we = {};
3838
- function oi(e, t) {
3839
- we[e].delete(t), we[e].size === 0 && delete we[e];
3840
- }
3841
- function dr(e) {
3842
- return we[e];
3843
- }
3844
- function ai(e) {
3845
- return fe(e).map((t) => {
3846
- const r = dr(t);
3847
- return [t, r ? [...r] : []];
3848
- }).filter(([, t]) => t.length > 0);
3849
- }
3850
- function Oe(e) {
3851
- return e == null ? !1 : fe(e).some(
3852
- (t) => {
3853
- var r;
3854
- return (r = dr(t)) == null ? void 0 : r.size;
3855
- }
3856
- );
3857
- }
3858
- function ui(e, t) {
3859
- return Promise.all(
3860
- t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
3861
- ).then((n) => mr(e, ...n));
3862
- }
3863
- const ie = {};
3864
- function pr(e) {
3865
- if (!Oe(e))
3866
- return e in ie ? ie[e] : Promise.resolve();
3867
- const t = ai(e);
3868
- return ie[e] = Promise.all(
3869
- t.map(
3870
- ([r, n]) => ui(r, n)
3871
- )
3872
- ).then(() => {
3873
- if (Oe(e))
3874
- return pr(e);
3875
- delete ie[e];
3876
- }), ie[e];
3877
- }
3878
- var Ht = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, ci = (e, t) => {
3879
- var r = {};
3880
- for (var n in e)
3881
- li.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3882
- if (e != null && Ht)
3883
- for (var n of Ht(e))
3884
- t.indexOf(n) < 0 && hi.call(e, n) && (r[n] = e[n]);
3885
- return r;
3886
- };
3887
- const fi = {
3888
- number: {
3889
- scientific: { notation: "scientific" },
3890
- engineering: { notation: "engineering" },
3891
- compactLong: { notation: "compact", compactDisplay: "long" },
3892
- compactShort: { notation: "compact", compactDisplay: "short" }
3893
- },
3894
- date: {
3895
- short: { month: "numeric", day: "numeric", year: "2-digit" },
3896
- medium: { month: "short", day: "numeric", year: "numeric" },
3897
- long: { month: "long", day: "numeric", year: "numeric" },
3898
- full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
3899
- },
3900
- time: {
3901
- short: { hour: "numeric", minute: "numeric" },
3902
- medium: { hour: "numeric", minute: "numeric", second: "numeric" },
3903
- long: {
3904
- hour: "numeric",
3905
- minute: "numeric",
3906
- second: "numeric",
3907
- timeZoneName: "short"
3908
- },
3909
- full: {
3910
- hour: "numeric",
3911
- minute: "numeric",
3912
- second: "numeric",
3913
- timeZoneName: "short"
3914
- }
3915
- }
3916
- };
3917
- function mi({ locale: e, id: t }) {
3918
- console.warn(
3919
- `[svelte-i18n] The message "${t}" was not found in "${fe(
3920
- e
3921
- ).join('", "')}".${Oe(R()) ? `
3922
-
3923
- Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3924
- );
3925
- }
3926
- const di = {
3927
- fallbackLocale: null,
3928
- loadingDelay: 200,
3929
- formats: fi,
3930
- warnOnMissingMessages: !0,
3931
- handleMissingMessage: void 0,
3932
- ignoreTag: !0
3933
- }, se = di;
3934
- function K() {
3935
- return se;
3936
- }
3937
- function pi(e) {
3938
- const t = e, { formats: r } = t, n = ci(t, ["formats"]);
3939
- let i = e.fallbackLocale;
3940
- if (e.initialLocale)
3941
- try {
3942
- hr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3943
- } catch {
3944
- console.warn(
3945
- `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3946
- );
3947
- }
3948
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = mi : console.warn(
3949
- '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3950
- )), Object.assign(se, n, { initialLocale: i }), r && ("number" in r && Object.assign(se.formats.number, r.number), "date" in r && Object.assign(se.formats.date, r.date), "time" in r && Object.assign(se.formats.time, r.time)), G.set(i);
3951
- }
3952
- const ze = Ne(!1);
3953
- var gi = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vi = (e, t) => {
3954
- for (var r in t || (t = {}))
3955
- _i.call(t, r) && Bt(e, r, t[r]);
3956
- if (St)
3957
- for (var r of St(t))
3958
- Ei.call(t, r) && Bt(e, r, t[r]);
3959
- return e;
3960
- }, xi = (e, t) => bi(e, yi(t));
3961
- let tt;
3962
- const Ce = Ne(null);
3963
- function At(e) {
3964
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3965
- }
3966
- function fe(e, t = K().fallbackLocale) {
3967
- const r = At(e);
3968
- return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
3969
- }
3970
- function R() {
3971
- return tt ?? void 0;
3972
- }
3973
- Ce.subscribe((e) => {
3974
- tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3975
- });
3976
- const Ti = (e) => {
3977
- if (e && si(e) && Oe(e)) {
3978
- const { loadingDelay: t } = K();
3979
- let r;
3980
- return typeof window < "u" && R() != null && t ? r = window.setTimeout(
3981
- () => ze.set(!0),
3982
- t
3983
- ) : ze.set(!0), pr(e).then(() => {
3984
- Ce.set(e);
3985
- }).finally(() => {
3986
- clearTimeout(r), ze.set(!1);
3987
- });
3988
- }
3989
- return Ce.set(e);
3990
- }, G = xi(vi({}, Ce), {
3991
- set: Ti
3992
- }), $e = (e) => {
3993
- const t = /* @__PURE__ */ Object.create(null);
3994
- return (n) => {
3995
- const i = JSON.stringify(n);
3996
- return i in t ? t[i] : t[i] = e(n);
3997
- };
3998
- };
3999
- var wi = Object.defineProperty, Ie = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
4000
- for (var r in t || (t = {}))
4001
- gr.call(t, r) && Pt(e, r, t[r]);
4002
- if (Ie)
4003
- for (var r of Ie(t))
4004
- br.call(t, r) && Pt(e, r, t[r]);
4005
- return e;
4006
- }, re = (e, t) => {
4007
- var r = {};
4008
- for (var n in e)
4009
- gr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4010
- if (e != null && Ie)
4011
- for (var n of Ie(e))
4012
- t.indexOf(n) < 0 && br.call(e, n) && (r[n] = e[n]);
4013
- return r;
4014
- };
4015
- const le = (e, t) => {
4016
- const { formats: r } = K();
4017
- if (e in r && t in r[e])
4018
- return r[e][t];
4019
- throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4020
- }, Hi = $e(
4021
- (e) => {
4022
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4023
- if (r == null)
4024
- throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4025
- return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
4026
- }
4027
- ), Si = $e(
4028
- (e) => {
4029
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4030
- if (r == null)
4031
- throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4032
- return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
4033
- }
4034
- ), Bi = $e(
4035
- (e) => {
4036
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4037
- if (r == null)
4038
- throw new Error(
4039
- '[svelte-i18n] A "locale" must be set to format time values'
4040
- );
4041
- return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
4042
- }
4043
- ), Ai = (e = {}) => {
4044
- var t = e, {
4045
- locale: r = R()
4046
- } = t, n = re(t, [
4047
- "locale"
4048
- ]);
4049
- return Hi(ct({ locale: r }, n));
4050
- }, Pi = (e = {}) => {
4051
- var t = e, {
4052
- locale: r = R()
4053
- } = t, n = re(t, [
4054
- "locale"
4055
- ]);
4056
- return Si(ct({ locale: r }, n));
4057
- }, Oi = (e = {}) => {
4058
- var t = e, {
4059
- locale: r = R()
4060
- } = t, n = re(t, [
4061
- "locale"
4062
- ]);
4063
- return Bi(ct({ locale: r }, n));
4064
- }, Ci = $e(
4065
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4066
- (e, t = R()) => new hr(e, t, K().formats, {
4067
- ignoreTag: K().ignoreTag
4068
- })
4069
- ), Ii = (e, t = {}) => {
4070
- var r, n, i, s;
4071
- let a = t;
4072
- typeof e == "object" && (a = e, e = a.id);
4073
- const {
4074
- values: o,
4075
- locale: h = R(),
4076
- default: u
4077
- } = a;
4078
- if (h == null)
4079
- throw new Error(
4080
- "[svelte-i18n] Cannot format a message without first setting the initial locale."
4081
- );
4082
- let l = cr(e, h);
4083
- if (!l)
4084
- l = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4085
- else if (typeof l != "string")
4086
- return console.warn(
4087
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4088
- ), l;
4089
- if (!o)
4090
- return l;
4091
- let c = l;
4092
- try {
4093
- c = Ci(l, h).format(o);
4094
- } catch (f) {
4095
- f instanceof Error && console.warn(
4096
- `[svelte-i18n] Message "${e}" has syntax error:`,
4097
- f.message
4098
- );
4099
- }
4100
- return c;
4101
- }, Ni = (e, t) => Oi(t).format(e), Mi = (e, t) => Pi(t).format(e), Li = (e, t) => Ai(t).format(e), $i = (e, t = R()) => cr(e, t), Ri = te([G, ce], () => Ii);
4102
- te([G], () => Ni);
4103
- te([G], () => Mi);
4104
- te([G], () => Li);
4105
- te([G, ce], () => $i);
4106
- function Di(e, t) {
4107
- if (e) {
4108
- const r = document.createElement("style");
4109
- r.innerHTML = t, e.appendChild(r);
4110
- }
4111
- }
4112
- function ki(e, t) {
4113
- const r = new URL(t);
4114
- fetch(r.href).then((n) => n.text()).then((n) => {
4115
- const i = document.createElement("style");
4116
- i.innerHTML = n, e && e.appendChild(i);
4117
- }).catch((n) => {
4118
- console.error("There was an error while trying to load client styling from URL", n);
4119
- });
4120
- }
4121
- function Ui(e, t, r) {
4122
- if (window.emMessageBus) {
4123
- const n = document.createElement("style");
4124
- window.emMessageBus.subscribe(t, (i) => {
4125
- n.innerHTML = i, e && e.appendChild(n);
4126
- });
4127
- }
4128
- }
4129
- function Ot(e, t) {
4130
- mr(e, t);
4131
- }
4132
- function Gi(e) {
4133
- pi({
4134
- fallbackLocale: "en"
4135
- }), G.set(e);
4136
- }
4137
- const Ct = {
4138
- en: {
4139
- errorGeneralTitle: "Error Occurred",
4140
- errorGeneralText: "Something went wrong",
4141
- errorGeneralButton: "CLOSE",
4142
- PlayerSessionIsNotValid: "Player session is not valid",
4143
- VendorCommunicationError: "We apologise, but your payment provider has declined to process due to technical error. Please try later or contact your payment solution provider for further assistance. Error Code 21297",
4144
- PaymentMethodNotAllowed: "We apologise, but this payment method is unavailable at this time, please contact Customer Support for further assistance. Error Code 11402",
4145
- InvalidPaymentDetails: "We apologise, but you payment details are not valid. Please make sure you entered all payment details correctly and try again or contact Customer Support for further assistance. Error Code 13555",
4146
- MerchantUserHasWithdrawBlockRole: "Dear Player! Please be informed that currently you are not allowed to initiate withdrawal transactions from your player account. Error Code: 21122",
4147
- MerchantUserHasDepositBlockRole: "Dear Player! Please be informed that currently you are not allowed to initiate deposit transactions from your player account. Error Code: 21123",
4148
- JwtTokenError: "IDX12741: JWT must have three segments (JWS) or five segments (JWE).",
4149
- TransactionIsBlockedDueToNotCompletedKyc: "We apologise, but we cannot process the transaction because you haven't completed KYC. Please verify your identity or contact Customer Support for further assistance. Error Code 23601",
4150
- InsufficientCasinoFunds: " Your withdrawal is over your available balance. Please check your available balance to adjust your withdrawal amount",
4151
- DepositWageringLimit: "Attention! Your winnings balance has less than the amount you want to withdraw.",
4152
- AmountMinLimitExceeded: "Amount is smaller than PaymentMethod minimum limit",
4153
- AmountMaxLimitExceeded: "Amount is bigger than PaymentMethod maximum limit",
4154
- AmountIsMissing: "Amount is missing",
4155
- MaxCustomerTransactionsCountReached: "Looks like you have reached the frequency limit of the transaction attempts per minute. The server is taking too long to respond. Please wait a bit and try again in a while",
4156
- VendorTimeoutError: "Looks like the payment vendor has some issues. The server is taking too long to respond. Please wait a bit and try again in a while. Error Code 21292",
4157
- MerchantUserAccountIsInactive: "Declined by merchant user account is inactive",
4158
- MerchantUserHasDepositDenyRole: "Declined by merchant user has deposit deny role",
4159
- TransactionCodeIsInvalid: "Transaction code is invalid",
4160
- InvalidSession: "Your session has expired. Please try again",
4161
- TwoFactorAuthRequired: "Two-factor authentication is required",
4162
- DeclinedByMerchant: "We apologise, but transaction has been closed by merchant. Please contact Customer Support for further assistance."
4163
- },
4164
- tr: {
4165
- errorGeneralTitle: "Hata oluştu",
4166
- errorGeneralText: "Bir şeyler ters gitti",
4167
- errorGeneralButton: "KAPALI",
4168
- PlayerSessionIsNotValid: "Hesabınızla ilgili oturum geçersiz veya süresi dolmuş görünüyor. Lütfen tekrar giriş yapınız",
4169
- VendorCommunicationError: "Özür dileriz, ancak ödeme sağlayıcınız teknik hata nedeniyle işlemi yapmayı reddetti. Lütfen daha sonra deneyin veya daha fazla yardım için ödeme çözümü sağlayıcınızla iletişime geçin. Hata Kodu 21297",
4170
- PaymentMethodNotAllowed: "Özür dileriz, ancak bu ödeme yöntemi şu anda kullanılamıyor. Daha fazla yardım için lütfen Müşteri Desteğiyle iletişime geçin. Hata Kodu 11402",
4171
- InvalidPaymentDetails: "Özür dileriz, ancak ödeme bilgileriniz geçerli değil. Lütfen tüm ödeme ayrıntılarını doğru girdiğinizden emin olun ve tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 13555",
4172
- MerchantUserHasWithdrawBlockRole: "Sevgili Oyuncu! Şu anda oyuncu hesabınızdan para çekme işlemi başlatmanıza izin verilmediğini lütfen unutmayın. Hata Kodu: 21122",
4173
- MerchantUserHasDepositBlockRole: "Değerli Oyuncumuz, Şu anda hesabınız üzerinden para yatırma işlemi yapmanıza izin verilmemektedir. Hata Kodu: 21123",
4174
- JwtTokenError: "IDX12741: JWT must have three segments (JWS) or five segments (JWE).",
4175
- TransactionIsBlockedDueToNotCompletedKyc: "İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. ",
4176
- InsufficientCasinoFunds: "Çekmek istediğiniz tutar, mevcut bakiyenizin üzerindedir. Lütfen çekim tutarınızı belirlemek için bakiyenizi kontrol ediniz",
4177
- DepositWageringLimit: "Para çekim işleminizi gerçekleştirebilmek için ana para çevriminizi tamamlamanız gerekmektedir. Ana para çevrimi hakkında bilgi almak için sitemiz genel şartlar ve kurallar bölümünü ziyaret edebilir ya da destek kanallarımız üzerinden bilgi alabilirsiniz.",
4178
- AmountMinLimitExceeded: "Tutar, Ödeme Yöntemi minimum sınırından daha küçük",
4179
- AmountMaxLimitExceeded: "Tutar, Ödeme Yöntemi maksimum sınırından daha büyük",
4180
- AmountIsMissing: "Tutar eksik",
4181
- MaxCustomerTransactionsCountReached: "İşlem denemelerinin sıklık sınırına ulaştınız. Sunucunun yanıt vermesi çok uzun sürüyor. Lütfen biraz bekleyin ve bir süre sonra tekrar deneyin.",
4182
- VendorTechnicalError: "Özür dileriz, fakat bir teknik hata nedeniyle işleminiz sağlayıcı tarafından reddedildi. Lütfen daha sonra tekrar deneyin veya servis sağlayıcınızla iletişime geçin. Hata kodu 21298",
4183
- MerchantUserAccountIsInactive: "Tüccar tarafından reddedildi kullanıcı hesabı etkin değil",
4184
- MerchantUserHasDepositDenyRole: "Sevgili Oyuncu! Şu anda hesabınıza para yatırmanıza izin verilmediğini lütfen unutmayın. Hata Kodu: 21123",
4185
- TransactionCodeIsInvalid: "Transaction code is invalid",
4186
- InvalidSession: "Beklenmedik bir hata oluştu, lütfen tekrar deneyin.",
4187
- TwoFactorAuthRequired: "İki faktörlü kimlik doğrulama gereklidi",
4188
- DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
4189
- }
4190
- };
4191
- function Fi(e) {
4192
- xr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{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:125%;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)}.CashierErrorContent ui-image img{width:300px}");
4193
- }
4194
- const ji = (e) => ({}), It = (e) => ({}), zi = (e) => ({}), Nt = (e) => ({}), Vi = (e) => ({}), Mt = (e) => ({}), Xi = (e) => ({}), Lt = (e) => ({ class: "CashierErrorIcon" });
4195
- function $t(e) {
4196
- let t, r;
4197
- return {
4198
- c() {
4199
- t = A("ui-image"), dt(t.src, r = `${/*assetsurl*/
4200
- e[0]}/error-general-icon.png`) || de(t, "src", r), de(t, "width", "300px"), de(t, "alt", "error");
4201
- },
4202
- m(n, i) {
4203
- U(n, t, i);
4204
- },
4205
- p(n, i) {
4206
- i & /*assetsurl*/
4207
- 1 && !dt(t.src, r = `${/*assetsurl*/
4208
- n[0]}/error-general-icon.png`) && de(t, "src", r);
4209
- },
4210
- d(n) {
4211
- n && N(t);
4212
- }
4213
- };
4214
- }
4215
- function Wi(e) {
4216
- let t, r = (
4217
- /*assetsurl*/
4218
- e[0] && $t(e)
4219
- );
4220
- return {
4221
- c() {
4222
- r && r.c(), t = wr();
4223
- },
4224
- m(n, i) {
4225
- r && r.m(n, i), U(n, t, i);
4226
- },
4227
- p(n, i) {
4228
- /*assetsurl*/
4229
- n[0] ? r ? r.p(n, i) : (r = $t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4230
- },
4231
- d(n) {
4232
- n && N(t), r && r.d(n);
4233
- }
4234
- };
4235
- }
4236
- function Zi(e) {
4237
- let t, r = (
4238
- /*$_*/
4239
- e[4]("errorGeneralTitle") + ""
4240
- ), n;
4241
- return {
4242
- c() {
4243
- t = A("span"), n = he(r), k(t, "class", "CashierErrorTitle");
4244
- },
4245
- m(i, s) {
4246
- U(i, t, s), C(t, n);
4247
- },
4248
- p(i, s) {
4249
- s & /*$_*/
4250
- 16 && r !== (r = /*$_*/
4251
- i[4]("errorGeneralTitle") + "") && at(n, r);
4252
- },
4253
- d(i) {
4254
- i && N(t);
4255
- }
4256
- };
4257
- }
4258
- function Ji(e) {
4259
- let t, r = (
4260
- /*$_*/
4261
- e[4](`${/*errorcode*/
4262
- e[2] || "errorGeneralText"}`) + ""
4263
- ), n;
4264
- return {
4265
- c() {
4266
- t = A("span"), n = he(r), k(t, "class", "CashierErrorText");
4267
- },
4268
- m(i, s) {
4269
- U(i, t, s), C(t, n);
4270
- },
4271
- p(i, s) {
4272
- s & /*$_, errorcode*/
4273
- 20 && r !== (r = /*$_*/
4274
- i[4](`${/*errorcode*/
4275
- i[2] || "errorGeneralText"}`) + "") && at(n, r);
4276
- },
4277
- d(i) {
4278
- i && N(t);
4279
- }
4280
- };
4281
- }
4282
- function Rt(e) {
4283
- let t;
4284
- const r = (
4285
- /*#slots*/
4286
- e[12].button
4287
- ), n = be(
4288
- r,
4289
- e,
4290
- /*$$scope*/
4291
- e[11],
4292
- It
4293
- ), i = n || qi(e);
4294
- return {
4295
- c() {
4296
- i && i.c();
4297
- },
4298
- m(s, a) {
4299
- i && i.m(s, a), t = !0;
4300
- },
4301
- p(s, a) {
4302
- n ? n.p && (!t || a & /*$$scope*/
4303
- 2048) && _e(
4304
- n,
4305
- r,
4306
- s,
4307
- /*$$scope*/
4308
- s[11],
4309
- t ? ye(
4310
- r,
4311
- /*$$scope*/
4312
- s[11],
4313
- a,
4314
- ji
4315
- ) : Ee(
4316
- /*$$scope*/
4317
- s[11]
4318
- ),
4319
- It
4320
- ) : i && i.p && (!t || a & /*$_*/
4321
- 16) && i.p(s, t ? a : -1);
4322
- },
4323
- i(s) {
4324
- t || (M(i, s), t = !0);
4325
- },
4326
- o(s) {
4327
- X(i, s), t = !1;
4328
- },
4329
- d(s) {
4330
- i && i.d(s);
4331
- }
4332
- };
4333
- }
4334
- function qi(e) {
4335
- let t, r, n = (
4336
- /*$_*/
4337
- e[4]("errorGeneralButton") + ""
4338
- ), i, s, a;
4339
- return {
4340
- c() {
4341
- t = A("button"), r = A("span"), i = he(n), k(t, "class", "CashierErrorButton");
4342
- },
4343
- m(o, h) {
4344
- U(o, t, h), C(t, r), C(r, i), s || (a = Ve(
4345
- t,
4346
- "click",
4347
- /*close*/
4348
- e[5]
4349
- ), s = !0);
4350
- },
4351
- p(o, h) {
4352
- h & /*$_*/
4353
- 16 && n !== (n = /*$_*/
4354
- o[4]("errorGeneralButton") + "") && at(i, n);
4355
- },
4356
- d(o) {
4357
- o && N(t), s = !1, a();
4358
- }
4359
- };
4360
- }
4361
- function Qi(e) {
4362
- let t, r, n, i, s, a;
4363
- const o = (
4364
- /*#slots*/
4365
- e[12].icon
4366
- ), h = be(
4367
- o,
4368
- e,
4369
- /*$$scope*/
4370
- e[11],
4371
- Lt
4372
- ), u = h || Wi(e), l = (
4373
- /*#slots*/
4374
- e[12].title
4375
- ), c = be(
4376
- l,
4377
- e,
4378
- /*$$scope*/
4379
- e[11],
4380
- Mt
4381
- ), f = c || Zi(e), y = (
4382
- /*#slots*/
4383
- e[12].text
4384
- ), m = be(
4385
- y,
4386
- e,
4387
- /*$$scope*/
4388
- e[11],
4389
- Nt
4390
- ), p = m || Ji(e);
4391
- let g = (!/*hidebuttons*/
4392
- e[1] || /*hidebuttons*/
4393
- e[1] === "false") && Rt(e);
4394
- return {
4395
- c() {
4396
- t = A("div"), r = A("div"), u && u.c(), n = Re(), f && f.c(), i = Re(), p && p.c(), s = Re(), g && g.c(), k(r, "class", "CashierErrorContent"), k(t, "class", "CashierError");
4397
- },
4398
- m(d, E) {
4399
- U(d, t, E), C(t, r), u && u.m(r, null), C(r, n), f && f.m(r, null), C(r, i), p && p.m(r, null), C(r, s), g && g.m(r, null), e[13](t), a = !0;
4400
- },
4401
- p(d, [E]) {
4402
- h ? h.p && (!a || E & /*$$scope*/
4403
- 2048) && _e(
4404
- h,
4405
- o,
4406
- d,
4407
- /*$$scope*/
4408
- d[11],
4409
- a ? ye(
4410
- o,
4411
- /*$$scope*/
4412
- d[11],
4413
- E,
4414
- Xi
4415
- ) : Ee(
4416
- /*$$scope*/
4417
- d[11]
4418
- ),
4419
- Lt
4420
- ) : u && u.p && (!a || E & /*assetsurl*/
4421
- 1) && u.p(d, a ? E : -1), c ? c.p && (!a || E & /*$$scope*/
4422
- 2048) && _e(
4423
- c,
4424
- l,
4425
- d,
4426
- /*$$scope*/
4427
- d[11],
4428
- a ? ye(
4429
- l,
4430
- /*$$scope*/
4431
- d[11],
4432
- E,
4433
- Vi
4434
- ) : Ee(
4435
- /*$$scope*/
4436
- d[11]
4437
- ),
4438
- Mt
4439
- ) : f && f.p && (!a || E & /*$_*/
4440
- 16) && f.p(d, a ? E : -1), m ? m.p && (!a || E & /*$$scope*/
4441
- 2048) && _e(
4442
- m,
4443
- y,
4444
- d,
4445
- /*$$scope*/
4446
- d[11],
4447
- a ? ye(
4448
- y,
4449
- /*$$scope*/
4450
- d[11],
4451
- E,
4452
- zi
4453
- ) : Ee(
4454
- /*$$scope*/
4455
- d[11]
4456
- ),
4457
- Nt
4458
- ) : p && p.p && (!a || E & /*$_, errorcode*/
4459
- 20) && p.p(d, a ? E : -1), !/*hidebuttons*/
4460
- d[1] || /*hidebuttons*/
4461
- d[1] === "false" ? g ? (g.p(d, E), E & /*hidebuttons*/
4462
- 2 && M(g, 1)) : (g = Rt(d), g.c(), M(g, 1), g.m(r, null)) : g && (Rr(), X(g, 1, 1, () => {
4463
- g = null;
4464
- }), Dr());
4465
- },
4466
- i(d) {
4467
- a || (M(u, d), M(f, d), M(p, d), M(g), a = !0);
4468
- },
4469
- o(d) {
4470
- X(u, d), X(f, d), X(p, d), X(g), a = !1;
4471
- },
4472
- d(d) {
4473
- d && N(t), u && u.d(d), f && f.d(d), p && p.d(d), g && g.d(), e[13](null);
4474
- }
4475
- };
4476
- }
4477
- function Yi(e, t, r) {
4478
- let n;
4479
- vr(e, Ri, (b) => r(4, n = b));
4480
- let { $$slots: i = {}, $$scope: s } = t, { assetsurl: a = "" } = t, { lang: o = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: f = "" } = t, { mbsource: y = "" } = t, m;
4481
- const p = () => {
4482
- Gi(o);
4483
- }, g = () => {
4484
- fetch(f).then((w) => w.json()).then((w) => {
4485
- Object.keys(w).forEach((H) => {
4486
- Ot(H, w[H]);
4487
- });
4488
- }).catch((w) => {
4489
- console.error(w);
4490
- });
4491
- };
4492
- Object.keys(Ct).forEach((b) => {
4493
- Ot(b, Ct[b]);
4494
- });
4495
- const d = () => {
4496
- window.postMessage({ type: "ErrorClose" }, window.location.href);
4497
- };
4498
- Ir(() => () => {
4499
- });
4500
- function E(b) {
4501
- Xe[b ? "unshift" : "push"](() => {
4502
- m = b, r(3, m);
4503
- });
4504
- }
4505
- return e.$$set = (b) => {
4506
- "assetsurl" in b && r(0, a = b.assetsurl), "lang" in b && r(6, o = b.lang), "hidebuttons" in b && r(1, h = b.hidebuttons), "errorcode" in b && r(2, u = b.errorcode), "clientstyling" in b && r(7, l = b.clientstyling), "clientstylingurl" in b && r(8, c = b.clientstylingurl), "translationurl" in b && r(9, f = b.translationurl), "mbsource" in b && r(10, y = b.mbsource), "$$scope" in b && r(11, s = b.$$scope);
4507
- }, e.$$.update = () => {
4508
- e.$$.dirty & /*lang*/
4509
- 64 && o && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4510
- 136 && l && m && Di(m, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4511
- 264 && c && m && ki(m, c), e.$$.dirty & /*mbsource, customStylingContainer*/
4512
- 1032 && y && m && Ui(m, `${y}.Style`), e.$$.dirty & /*translationurl*/
4513
- 512 && f && g();
4514
- }, [
4515
- a,
4516
- h,
4517
- u,
4518
- m,
4519
- n,
4520
- d,
4521
- o,
4522
- l,
4523
- c,
4524
- f,
4525
- y,
4526
- s,
4527
- i,
4528
- E
4529
- ];
4530
- }
4531
- class yr extends zr {
4532
- constructor(t) {
4533
- super(), Fr(
4534
- this,
4535
- t,
4536
- Yi,
4537
- Qi,
4538
- kt,
4539
- {
4540
- assetsurl: 0,
4541
- lang: 6,
4542
- hidebuttons: 1,
4543
- errorcode: 2,
4544
- clientstyling: 7,
4545
- clientstylingurl: 8,
4546
- translationurl: 9,
4547
- mbsource: 10
4548
- },
4549
- Fi
4550
- );
4551
- }
4552
- get assetsurl() {
4553
- return this.$$.ctx[0];
4554
- }
4555
- set assetsurl(t) {
4556
- this.$$set({ assetsurl: t }), P();
4557
- }
4558
- get lang() {
4559
- return this.$$.ctx[6];
4560
- }
4561
- set lang(t) {
4562
- this.$$set({ lang: t }), P();
4563
- }
4564
- get hidebuttons() {
4565
- return this.$$.ctx[1];
4566
- }
4567
- set hidebuttons(t) {
4568
- this.$$set({ hidebuttons: t }), P();
4569
- }
4570
- get errorcode() {
4571
- return this.$$.ctx[2];
4572
- }
4573
- set errorcode(t) {
4574
- this.$$set({ errorcode: t }), P();
4575
- }
4576
- get clientstyling() {
4577
- return this.$$.ctx[7];
4578
- }
4579
- set clientstyling(t) {
4580
- this.$$set({ clientstyling: t }), P();
4581
- }
4582
- get clientstylingurl() {
4583
- return this.$$.ctx[8];
4584
- }
4585
- set clientstylingurl(t) {
4586
- this.$$set({ clientstylingurl: t }), P();
4587
- }
4588
- get translationurl() {
4589
- return this.$$.ctx[9];
4590
- }
4591
- set translationurl(t) {
4592
- this.$$set({ translationurl: t }), P();
4593
- }
4594
- get mbsource() {
4595
- return this.$$.ctx[10];
4596
- }
4597
- set mbsource(t) {
4598
- this.$$set({ mbsource: t }), P();
4599
- }
4600
- }
4601
- jr(yr, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4602
- const bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4603
- __proto__: null,
4604
- default: yr
4605
- }, Symbol.toStringTag, { value: "Module" }));
4606
- export {
4607
- G as $,
4608
- Ve as A,
4609
- Ri as B,
4610
- Di as C,
4611
- ki as D,
4612
- Ui as E,
4613
- de as F,
4614
- dt as G,
4615
- Ne as H,
4616
- Wr as I,
4617
- gs as J,
4618
- J as K,
4619
- ts as L,
4620
- ss as M,
4621
- ls as N,
4622
- ds as O,
4623
- rs as P,
4624
- is as Q,
4625
- $ as R,
4626
- zr as S,
4627
- os as T,
4628
- ns as U,
4629
- as as V,
4630
- rt as W,
4631
- Rr as X,
4632
- Dr as Y,
4633
- ms as Z,
4634
- us as _,
4635
- mr as a,
4636
- hs as a0,
4637
- fs as a1,
4638
- cs as a2,
4639
- es as a3,
4640
- Ur as a4,
4641
- kr as a5,
4642
- ps as a6,
4643
- bs as a7,
4644
- Fr as b,
4645
- jr as c,
4646
- xr as d,
4647
- be as e,
4648
- P as f,
4649
- N as g,
4650
- M as h,
4651
- pi as i,
4652
- Ee as j,
4653
- ye as k,
4654
- U as l,
4655
- C as m,
4656
- A as n,
4657
- Re as o,
4658
- k as p,
4659
- vr as q,
4660
- Ir as r,
4661
- kt as s,
4662
- X as t,
4663
- _e as u,
4664
- wr as v,
4665
- at as w,
4666
- he as x,
4667
- Xe as y,
4668
- B as z
4669
- };