@everymatrix/cashier-method-details 1.76.3 → 1.76.4

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