@everymatrix/player-account-self-exclusion-nd 1.87.26 → 1.87.27

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