@everymatrix/qr-session-generator 0.2.2 → 1.92.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
1
  function M() {
2
2
  }
3
- function Wt(e) {
3
+ function en(e) {
4
4
  return e();
5
5
  }
6
- function At() {
6
+ function It() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function be(e) {
10
- e.forEach(Wt);
9
+ function Ee(e) {
10
+ e.forEach(en);
11
11
  }
12
- function Et(e) {
12
+ function St(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Yt(e, t) {
15
+ function tn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- let ve;
19
- function Ct(e, t) {
20
- return e === t ? !0 : (ve || (ve = document.createElement("a")), ve.href = t, e === ve.href);
18
+ let Be;
19
+ function Lt(e, t) {
20
+ return e === t ? !0 : (Be || (Be = document.createElement("a")), Be.href = t, e === Be.href);
21
21
  }
22
- function $n(e) {
22
+ function zn(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function qt(e, ...t) {
25
+ function nn(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const r of t)
28
28
  r(void 0);
@@ -31,20 +31,20 @@ function qt(e, ...t) {
31
31
  const n = e.subscribe(...t);
32
32
  return n.unsubscribe ? () => n.unsubscribe() : n;
33
33
  }
34
- function kn(e, t, n) {
35
- e.$$.on_destroy.push(qt(t, n));
34
+ function Xn(e, t, n) {
35
+ e.$$.on_destroy.push(nn(t, n));
36
36
  }
37
- function O(e, t) {
37
+ function R(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function jn(e, t, n) {
41
- const r = Vn(e);
40
+ function Qn(e, t, n) {
41
+ const r = Jn(e);
42
42
  if (!r.getElementById(t)) {
43
- const i = F("style");
44
- i.id = t, i.textContent = n, zn(r, i);
43
+ const i = D("style");
44
+ i.id = t, i.textContent = n, Wn(r, i);
45
45
  }
46
46
  }
47
- function Vn(e) {
47
+ function Jn(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,42 +54,42 @@ function Vn(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function zn(e, t) {
58
- return O(
57
+ function Wn(e, t) {
58
+ return R(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function ye(e, t, n) {
64
+ function _e(e, t, n) {
65
65
  e.insertBefore(t, n || null);
66
66
  }
67
67
  function se(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function F(e) {
70
+ function D(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function Ne(e) {
73
+ function Le(e) {
74
74
  return document.createTextNode(e);
75
75
  }
76
- function Nt() {
77
- return Ne(" ");
76
+ function Mt() {
77
+ return Le(" ");
78
78
  }
79
- function Xn(e, t, n, r) {
79
+ function Yn(e, t, n, r) {
80
80
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
81
81
  }
82
- function U(e, t, n) {
82
+ function O(e, t, n) {
83
83
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
84
84
  }
85
- function Qn(e) {
85
+ function qn(e) {
86
86
  return Array.from(e.childNodes);
87
87
  }
88
- function nt(e, t) {
88
+ function at(e, t) {
89
89
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
90
90
  t);
91
91
  }
92
- function Jn(e) {
92
+ function Zn(e) {
93
93
  const t = {};
94
94
  return e.childNodes.forEach(
95
95
  /** @param {Element} node */
@@ -98,90 +98,87 @@ function Jn(e) {
98
98
  }
99
99
  ), t;
100
100
  }
101
- let de;
102
- function ce(e) {
103
- de = e;
101
+ let me;
102
+ function de(e) {
103
+ me = e;
104
104
  }
105
- function Zt() {
106
- if (!de)
105
+ function Kn() {
106
+ if (!me)
107
107
  throw new Error("Function called outside component initialization");
108
- return de;
109
- }
110
- function Wn(e) {
111
- Zt().$$.on_mount.push(e);
108
+ return me;
112
109
  }
113
- function Yn(e) {
114
- Zt().$$.on_destroy.push(e);
110
+ function er(e) {
111
+ Kn().$$.on_destroy.push(e);
115
112
  }
116
- const W = [], rt = [];
113
+ const W = [], ut = [];
117
114
  let q = [];
118
- const Pt = [], qn = /* @__PURE__ */ Promise.resolve();
119
- let it = !1;
120
- function Zn() {
121
- it || (it = !0, qn.then($));
115
+ const Rt = [], tr = /* @__PURE__ */ Promise.resolve();
116
+ let lt = !1;
117
+ function nr() {
118
+ lt || (lt = !0, tr.then(G));
122
119
  }
123
- function ot(e) {
120
+ function ht(e) {
124
121
  q.push(e);
125
122
  }
126
- const Ve = /* @__PURE__ */ new Set();
123
+ const We = /* @__PURE__ */ new Set();
127
124
  let Q = 0;
128
- function $() {
125
+ function G() {
129
126
  if (Q !== 0)
130
127
  return;
131
- const e = de;
128
+ const e = me;
132
129
  do {
133
130
  try {
134
131
  for (; Q < W.length; ) {
135
132
  const t = W[Q];
136
- Q++, ce(t), Kn(t.$$);
133
+ Q++, de(t), rr(t.$$);
137
134
  }
138
135
  } catch (t) {
139
136
  throw W.length = 0, Q = 0, t;
140
137
  }
141
- for (ce(null), W.length = 0, Q = 0; rt.length; )
142
- rt.pop()();
138
+ for (de(null), W.length = 0, Q = 0; ut.length; )
139
+ ut.pop()();
143
140
  for (let t = 0; t < q.length; t += 1) {
144
141
  const n = q[t];
145
- Ve.has(n) || (Ve.add(n), n());
142
+ We.has(n) || (We.add(n), n());
146
143
  }
147
144
  q.length = 0;
148
145
  } while (W.length);
149
- for (; Pt.length; )
150
- Pt.pop()();
151
- it = !1, Ve.clear(), ce(e);
146
+ for (; Rt.length; )
147
+ Rt.pop()();
148
+ lt = !1, We.clear(), de(e);
152
149
  }
153
- function Kn(e) {
150
+ function rr(e) {
154
151
  if (e.fragment !== null) {
155
- e.update(), be(e.before_update);
152
+ e.update(), Ee(e.before_update);
156
153
  const t = e.dirty;
157
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ot);
154
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ht);
158
155
  }
159
156
  }
160
- function er(e) {
157
+ function ir(e) {
161
158
  const t = [], n = [];
162
159
  q.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), q = t;
163
160
  }
164
- const tr = /* @__PURE__ */ new Set();
165
- function nr(e, t) {
166
- e && e.i && (tr.delete(e), e.i(t));
161
+ const or = /* @__PURE__ */ new Set();
162
+ function sr(e, t) {
163
+ e && e.i && (or.delete(e), e.i(t));
167
164
  }
168
- function rr(e, t, n) {
165
+ function ar(e, t, n) {
169
166
  const { fragment: r, after_update: i } = e.$$;
170
- r && r.m(t, n), ot(() => {
171
- const o = e.$$.on_mount.map(Wt).filter(Et);
172
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : be(o), e.$$.on_mount = [];
173
- }), i.forEach(ot);
167
+ r && r.m(t, n), ht(() => {
168
+ const o = e.$$.on_mount.map(en).filter(St);
169
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ee(o), e.$$.on_mount = [];
170
+ }), i.forEach(ht);
174
171
  }
175
- function ir(e, t) {
172
+ function ur(e, t) {
176
173
  const n = e.$$;
177
- n.fragment !== null && (er(n.after_update), be(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
174
+ n.fragment !== null && (ir(n.after_update), Ee(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
178
175
  }
179
- function or(e, t) {
180
- e.$$.dirty[0] === -1 && (W.push(e), Zn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
176
+ function lr(e, t) {
177
+ e.$$.dirty[0] === -1 && (W.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
181
178
  }
182
- function sr(e, t, n, r, i, o, s = null, a = [-1]) {
183
- const u = de;
184
- ce(e);
179
+ function hr(e, t, n, r, i, o, s = null, a = [-1]) {
180
+ const u = me;
181
+ de(e);
185
182
  const l = e.$$ = {
186
183
  fragment: null,
187
184
  ctx: [],
@@ -189,7 +186,7 @@ function sr(e, t, n, r, i, o, s = null, a = [-1]) {
189
186
  props: o,
190
187
  update: M,
191
188
  not_equal: i,
192
- bound: At(),
189
+ bound: It(),
193
190
  // lifecycle
194
191
  on_mount: [],
195
192
  on_destroy: [],
@@ -198,7 +195,7 @@ function sr(e, t, n, r, i, o, s = null, a = [-1]) {
198
195
  after_update: [],
199
196
  context: new Map(t.context || (u ? u.$$.context : [])),
200
197
  // everything else
201
- callbacks: At(),
198
+ callbacks: It(),
202
199
  dirty: a,
203
200
  skip_bound: !1,
204
201
  root: t.target || u.$$.root
@@ -207,19 +204,19 @@ function sr(e, t, n, r, i, o, s = null, a = [-1]) {
207
204
  let h = !1;
208
205
  if (l.ctx = n ? n(e, t.props || {}, (f, c, ...d) => {
209
206
  const m = d.length ? d[0] : c;
210
- return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), h && or(e, f)), c;
211
- }) : [], l.update(), h = !0, be(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
207
+ return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), h && lr(e, f)), c;
208
+ }) : [], l.update(), h = !0, Ee(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
212
209
  if (t.hydrate) {
213
- const f = Qn(t.target);
210
+ const f = qn(t.target);
214
211
  l.fragment && l.fragment.l(f), f.forEach(se);
215
212
  } else
216
213
  l.fragment && l.fragment.c();
217
- t.intro && nr(e.$$.fragment), rr(e, t.target, t.anchor), $();
214
+ t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), G();
218
215
  }
219
- ce(u);
216
+ de(u);
220
217
  }
221
- let Kt;
222
- typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
218
+ let rn;
219
+ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
223
220
  /** The Svelte component constructor */
224
221
  $$ctor;
225
222
  /** Slots */
@@ -261,14 +258,14 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
261
258
  let o;
262
259
  return {
263
260
  c: function() {
264
- o = F("slot"), i !== "default" && U(o, "name", i);
261
+ o = D("slot"), i !== "default" && O(o, "name", i);
265
262
  },
266
263
  /**
267
264
  * @param {HTMLElement} target
268
265
  * @param {HTMLElement} [anchor]
269
266
  */
270
267
  m: function(u, l) {
271
- ye(u, o, l);
268
+ _e(u, o, l);
272
269
  },
273
270
  d: function(u) {
274
271
  u && se(o);
@@ -278,12 +275,12 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
278
275
  };
279
276
  if (await Promise.resolve(), !this.$$cn || this.$$c)
280
277
  return;
281
- const t = {}, n = Jn(this);
278
+ const t = {}, n = Zn(this);
282
279
  for (const i of this.$$s)
283
280
  i in n && (t[i] = [e(i)]);
284
281
  for (const i of this.attributes) {
285
282
  const o = this.$$g_p(i.name);
286
- o in this.$$d || (this.$$d[o] = Te(o, i.value, this.$$p_d, "toProp"));
283
+ o in this.$$d || (this.$$d[o] = Ne(o, i.value, this.$$p_d, "toProp"));
287
284
  }
288
285
  for (const i in this.$$p_d)
289
286
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -301,7 +298,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
301
298
  this.$$r = !0;
302
299
  for (const i in this.$$p_d)
303
300
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
304
- const o = Te(
301
+ const o = Ne(
305
302
  i,
306
303
  this.$$d[i],
307
304
  this.$$p_d,
@@ -323,7 +320,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
323
320
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
324
321
  // and setting attributes through setAttribute etc, this is helpful
325
322
  attributeChangedCallback(e, t, n) {
326
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Te(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
323
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ne(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
327
324
  }
328
325
  disconnectedCallback() {
329
326
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -336,7 +333,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
336
333
  ) || e;
337
334
  }
338
335
  });
339
- function Te(e, t, n, r) {
336
+ function Ne(e, t, n, r) {
340
337
  const i = n[e]?.type;
341
338
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
342
339
  return t;
@@ -365,8 +362,8 @@ function Te(e, t, n, r) {
365
362
  return t;
366
363
  }
367
364
  }
368
- function ar(e, t, n, r, i, o) {
369
- let s = class extends Kt {
365
+ function cr(e, t, n, r, i, o) {
366
+ let s = class extends rn {
370
367
  constructor() {
371
368
  super(e, n, i), this.$$p_d = t;
372
369
  }
@@ -382,7 +379,7 @@ function ar(e, t, n, r, i, o) {
382
379
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
383
380
  },
384
381
  set(u) {
385
- u = Te(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
382
+ u = Ne(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
386
383
  }
387
384
  });
388
385
  }), r.forEach((a) => {
@@ -394,7 +391,7 @@ function ar(e, t, n, r, i, o) {
394
391
  }), e.element = /** @type {any} */
395
392
  s, s;
396
393
  }
397
- class ur {
394
+ class fr {
398
395
  /**
399
396
  * ### PRIVATE API
400
397
  *
@@ -413,7 +410,7 @@ class ur {
413
410
  $$set = void 0;
414
411
  /** @returns {void} */
415
412
  $destroy() {
416
- ir(this, 1), this.$destroy = M;
413
+ ur(this, 1), this.$destroy = M;
417
414
  }
418
415
  /**
419
416
  * @template {Extract<keyof Events, string>} K
@@ -422,7 +419,7 @@ class ur {
422
419
  * @returns {() => void}
423
420
  */
424
421
  $on(t, n) {
425
- if (!Et(n))
422
+ if (!St(n))
426
423
  return M;
427
424
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
428
425
  return r.push(n), () => {
@@ -435,22 +432,22 @@ class ur {
435
432
  * @returns {void}
436
433
  */
437
434
  $set(t) {
438
- this.$$set && !$n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
435
+ this.$$set && !zn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
439
436
  }
440
437
  }
441
- const lr = "4";
442
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lr);
438
+ const dr = "4";
439
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
443
440
  const J = [];
444
- function hr(e, t) {
441
+ function gr(e, t) {
445
442
  return {
446
- subscribe: Re(e, t).subscribe
443
+ subscribe: Fe(e, t).subscribe
447
444
  };
448
445
  }
449
- function Re(e, t = M) {
446
+ function Fe(e, t = M) {
450
447
  let n;
451
448
  const r = /* @__PURE__ */ new Set();
452
449
  function i(a) {
453
- if (Yt(e, a) && (e = a, n)) {
450
+ if (tn(e, a) && (e = a, n)) {
454
451
  const u = !J.length;
455
452
  for (const l of r)
456
453
  l[1](), J.push(l, e);
@@ -477,7 +474,7 @@ function ae(e, t, n) {
477
474
  if (!i.every(Boolean))
478
475
  throw new Error("derived() expects stores as input, got a falsy value");
479
476
  const o = t.length < 2;
480
- return hr(n, (s, a) => {
477
+ return gr(n, (s, a) => {
481
478
  let u = !1;
482
479
  const l = [];
483
480
  let h = 0, f = M;
@@ -486,9 +483,9 @@ function ae(e, t, n) {
486
483
  return;
487
484
  f();
488
485
  const m = t(r ? l[0] : l, s, a);
489
- o ? s(m) : f = Et(m) ? m : M;
486
+ o ? s(m) : f = St(m) ? m : M;
490
487
  }, d = i.map(
491
- (m, p) => qt(
488
+ (m, p) => nn(
492
489
  m,
493
490
  (_) => {
494
491
  l[p] = _, h &= ~(1 << p), u && c();
@@ -499,74 +496,74 @@ function ae(e, t, n) {
499
496
  )
500
497
  );
501
498
  return u = !0, c(), function() {
502
- be(d), f(), u = !1;
499
+ Ee(d), f(), u = !1;
503
500
  };
504
501
  });
505
502
  }
506
- function cr(e) {
503
+ function mr(e) {
507
504
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
508
505
  }
509
- var fr = function(t) {
510
- return dr(t) && !gr(t);
506
+ var pr = function(t) {
507
+ return br(t) && !yr(t);
511
508
  };
512
- function dr(e) {
509
+ function br(e) {
513
510
  return !!e && typeof e == "object";
514
511
  }
515
- function gr(e) {
512
+ function yr(e) {
516
513
  var t = Object.prototype.toString.call(e);
517
- return t === "[object RegExp]" || t === "[object Date]" || br(e);
514
+ return t === "[object RegExp]" || t === "[object Date]" || wr(e);
518
515
  }
519
- var mr = typeof Symbol == "function" && Symbol.for, pr = mr ? Symbol.for("react.element") : 60103;
520
- function br(e) {
521
- return e.$$typeof === pr;
516
+ var Er = typeof Symbol == "function" && Symbol.for, _r = Er ? Symbol.for("react.element") : 60103;
517
+ function wr(e) {
518
+ return e.$$typeof === _r;
522
519
  }
523
- function yr(e) {
520
+ function vr(e) {
524
521
  return Array.isArray(e) ? [] : {};
525
522
  }
526
- function ge(e, t) {
527
- return t.clone !== !1 && t.isMergeableObject(e) ? Z(yr(e), e, t) : e;
523
+ function pe(e, t) {
524
+ return t.clone !== !1 && t.isMergeableObject(e) ? Z(vr(e), e, t) : e;
528
525
  }
529
- function Er(e, t, n) {
526
+ function xr(e, t, n) {
530
527
  return e.concat(t).map(function(r) {
531
- return ge(r, n);
528
+ return pe(r, n);
532
529
  });
533
530
  }
534
- function _r(e, t) {
531
+ function Sr(e, t) {
535
532
  if (!t.customMerge)
536
533
  return Z;
537
534
  var n = t.customMerge(e);
538
535
  return typeof n == "function" ? n : Z;
539
536
  }
540
- function wr(e) {
537
+ function Br(e) {
541
538
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
542
539
  return Object.propertyIsEnumerable.call(e, t);
543
540
  }) : [];
544
541
  }
545
- function Ht(e) {
546
- return Object.keys(e).concat(wr(e));
542
+ function Ot(e) {
543
+ return Object.keys(e).concat(Br(e));
547
544
  }
548
- function en(e, t) {
545
+ function on(e, t) {
549
546
  try {
550
547
  return t in e;
551
548
  } catch {
552
549
  return !1;
553
550
  }
554
551
  }
555
- function vr(e, t) {
556
- return en(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
552
+ function Tr(e, t) {
553
+ return on(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
557
554
  }
558
- function xr(e, t, n) {
555
+ function Ar(e, t, n) {
559
556
  var r = {};
560
- return n.isMergeableObject(e) && Ht(e).forEach(function(i) {
561
- r[i] = ge(e[i], n);
562
- }), Ht(t).forEach(function(i) {
563
- vr(e, i) || (en(e, i) && n.isMergeableObject(t[i]) ? r[i] = _r(i, n)(e[i], t[i], n) : r[i] = ge(t[i], n));
557
+ return n.isMergeableObject(e) && Ot(e).forEach(function(i) {
558
+ r[i] = pe(e[i], n);
559
+ }), Ot(t).forEach(function(i) {
560
+ Tr(e, i) || (on(e, i) && n.isMergeableObject(t[i]) ? r[i] = Sr(i, n)(e[i], t[i], n) : r[i] = pe(t[i], n));
564
561
  }), r;
565
562
  }
566
563
  function Z(e, t, n) {
567
- n = n || {}, n.arrayMerge = n.arrayMerge || Er, n.isMergeableObject = n.isMergeableObject || fr, n.cloneUnlessOtherwiseSpecified = ge;
564
+ n = n || {}, n.arrayMerge = n.arrayMerge || xr, n.isMergeableObject = n.isMergeableObject || pr, n.cloneUnlessOtherwiseSpecified = pe;
568
565
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
569
- return o ? r ? n.arrayMerge(e, t, n) : xr(e, t, n) : ge(t, n);
566
+ return o ? r ? n.arrayMerge(e, t, n) : Ar(e, t, n) : pe(t, n);
570
567
  }
571
568
  Z.all = function(t, n) {
572
569
  if (!Array.isArray(t))
@@ -575,36 +572,36 @@ Z.all = function(t, n) {
575
572
  return Z(r, i, n);
576
573
  }, {});
577
574
  };
578
- var Sr = Z, Br = Sr;
579
- const Tr = /* @__PURE__ */ cr(Br);
580
- var st = function(e, t) {
581
- return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
575
+ var Cr = Z, Nr = Cr;
576
+ const Pr = /* @__PURE__ */ mr(Nr);
577
+ var ct = function(e, t) {
578
+ return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
582
579
  n.__proto__ = r;
583
580
  } || function(n, r) {
584
581
  for (var i in r)
585
582
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
586
- }, st(e, t);
583
+ }, ct(e, t);
587
584
  };
588
- function Oe(e, t) {
585
+ function Ge(e, t) {
589
586
  if (typeof t != "function" && t !== null)
590
587
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
591
- st(e, t);
588
+ ct(e, t);
592
589
  function n() {
593
590
  this.constructor = e;
594
591
  }
595
592
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
596
593
  }
597
- var D = function() {
598
- return D = Object.assign || function(t) {
594
+ var U = function() {
595
+ return U = Object.assign || function(t) {
599
596
  for (var n, r = 1, i = arguments.length; r < i; r++) {
600
597
  n = arguments[r];
601
598
  for (var o in n)
602
599
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
603
600
  }
604
601
  return t;
605
- }, D.apply(this, arguments);
602
+ }, U.apply(this, arguments);
606
603
  };
607
- function Ar(e, t) {
604
+ function Hr(e, t) {
608
605
  var n = {};
609
606
  for (var r in e)
610
607
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -613,43 +610,43 @@ function Ar(e, t) {
613
610
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
614
611
  return n;
615
612
  }
616
- function ze(e, t, n) {
613
+ function Ye(e, t, n) {
617
614
  if (n || arguments.length === 2)
618
615
  for (var r = 0, i = t.length, o; r < i; r++)
619
616
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
620
617
  return e.concat(o || Array.prototype.slice.call(t));
621
618
  }
622
- function Xe(e, t) {
623
- var n = t && t.cache ? t.cache : Mr, r = t && t.serializer ? t.serializer : Ir, i = t && t.strategy ? t.strategy : Pr;
619
+ function qe(e, t) {
620
+ var n = t && t.cache ? t.cache : Dr, r = t && t.serializer ? t.serializer : Or, i = t && t.strategy ? t.strategy : Mr;
624
621
  return i(e, {
625
622
  cache: n,
626
623
  serializer: r
627
624
  });
628
625
  }
629
- function Cr(e) {
626
+ function Ir(e) {
630
627
  return e == null || typeof e == "number" || typeof e == "boolean";
631
628
  }
632
- function Nr(e, t, n, r) {
633
- var i = Cr(r) ? r : n(r), o = t.get(i);
629
+ function Lr(e, t, n, r) {
630
+ var i = Ir(r) ? r : n(r), o = t.get(i);
634
631
  return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
635
632
  }
636
- function tn(e, t, n) {
633
+ function sn(e, t, n) {
637
634
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
638
635
  return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
639
636
  }
640
- function nn(e, t, n, r, i) {
637
+ function an(e, t, n, r, i) {
641
638
  return n.bind(t, e, r, i);
642
639
  }
643
- function Pr(e, t) {
644
- var n = e.length === 1 ? Nr : tn;
645
- return nn(e, this, n, t.cache.create(), t.serializer);
640
+ function Mr(e, t) {
641
+ var n = e.length === 1 ? Lr : sn;
642
+ return an(e, this, n, t.cache.create(), t.serializer);
646
643
  }
647
- function Hr(e, t) {
648
- return nn(e, this, tn, t.cache.create(), t.serializer);
644
+ function Rr(e, t) {
645
+ return an(e, this, sn, t.cache.create(), t.serializer);
649
646
  }
650
- var Ir = function() {
647
+ var Or = function() {
651
648
  return JSON.stringify(arguments);
652
- }, Lr = (
649
+ }, Ur = (
653
650
  /** @class */
654
651
  function() {
655
652
  function e() {
@@ -661,71 +658,71 @@ var Ir = function() {
661
658
  this.cache[t] = n;
662
659
  }, e;
663
660
  }()
664
- ), Mr = {
661
+ ), Dr = {
665
662
  create: function() {
666
- return new Lr();
663
+ return new Ur();
667
664
  }
668
- }, Qe = {
669
- variadic: Hr
670
- }, Pe = function() {
671
- return Pe = Object.assign || function(t) {
665
+ }, Ze = {
666
+ variadic: Rr
667
+ }, Me = function() {
668
+ return Me = Object.assign || function(t) {
672
669
  for (var n, r = 1, i = arguments.length; r < i; r++) {
673
670
  n = arguments[r];
674
671
  for (var o in n)
675
672
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
676
673
  }
677
674
  return t;
678
- }, Pe.apply(this, arguments);
675
+ }, Me.apply(this, arguments);
679
676
  };
680
- var v;
677
+ var x;
681
678
  (function(e) {
682
679
  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";
683
- })(v || (v = {}));
684
- var A;
680
+ })(x || (x = {}));
681
+ var T;
685
682
  (function(e) {
686
683
  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";
687
- })(A || (A = {}));
684
+ })(T || (T = {}));
688
685
  var K;
689
686
  (function(e) {
690
687
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
691
688
  })(K || (K = {}));
692
- function It(e) {
693
- return e.type === A.literal;
689
+ function Ut(e) {
690
+ return e.type === T.literal;
694
691
  }
695
- function Rr(e) {
696
- return e.type === A.argument;
692
+ function Fr(e) {
693
+ return e.type === T.argument;
697
694
  }
698
- function rn(e) {
699
- return e.type === A.number;
695
+ function un(e) {
696
+ return e.type === T.number;
700
697
  }
701
- function on(e) {
702
- return e.type === A.date;
698
+ function ln(e) {
699
+ return e.type === T.date;
703
700
  }
704
- function sn(e) {
705
- return e.type === A.time;
701
+ function hn(e) {
702
+ return e.type === T.time;
706
703
  }
707
- function an(e) {
708
- return e.type === A.select;
704
+ function cn(e) {
705
+ return e.type === T.select;
709
706
  }
710
- function un(e) {
711
- return e.type === A.plural;
707
+ function fn(e) {
708
+ return e.type === T.plural;
712
709
  }
713
- function Or(e) {
714
- return e.type === A.pound;
710
+ function Gr(e) {
711
+ return e.type === T.pound;
715
712
  }
716
- function ln(e) {
717
- return e.type === A.tag;
713
+ function dn(e) {
714
+ return e.type === T.tag;
718
715
  }
719
- function hn(e) {
716
+ function gn(e) {
720
717
  return !!(e && typeof e == "object" && e.type === K.number);
721
718
  }
722
- function at(e) {
719
+ function ft(e) {
723
720
  return !!(e && typeof e == "object" && e.type === K.dateTime);
724
721
  }
725
- var cn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ur = /(?:[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;
726
- function Dr(e) {
722
+ var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $r = /(?:[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;
723
+ function kr(e) {
727
724
  var t = {};
728
- return e.replace(Ur, function(n) {
725
+ return e.replace($r, function(n) {
729
726
  var r = n.length;
730
727
  switch (n[0]) {
731
728
  case "G":
@@ -824,11 +821,11 @@ var C = function() {
824
821
  return t;
825
822
  }, C.apply(this, arguments);
826
823
  };
827
- var Fr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
828
- function Gr(e) {
824
+ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
825
+ function Vr(e) {
829
826
  if (e.length === 0)
830
827
  throw new Error("Number skeleton cannot be empty");
831
- for (var t = e.split(Fr).filter(function(c) {
828
+ for (var t = e.split(jr).filter(function(c) {
832
829
  return c.length > 0;
833
830
  }), n = [], r = 0, i = t; r < i.length; r++) {
834
831
  var o = i[r], s = o.split("/");
@@ -843,17 +840,17 @@ function Gr(e) {
843
840
  }
844
841
  return n;
845
842
  }
846
- function $r(e) {
843
+ function zr(e) {
847
844
  return e.replace(/^(.*?)-/, "");
848
845
  }
849
- var Lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fn = /^(@+)?(\+|#+)?[rs]?$/g, kr = /(\*)(0+)|(#+)(0+)|(0+)/g, dn = /^(0+)$/;
850
- function Mt(e) {
846
+ var Dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pn = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, bn = /^(0+)$/;
847
+ function Ft(e) {
851
848
  var t = {};
852
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fn, function(n, r, i) {
849
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pn, function(n, r, i) {
853
850
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
854
851
  }), t;
855
852
  }
856
- function gn(e) {
853
+ function yn(e) {
857
854
  switch (e) {
858
855
  case "sign-auto":
859
856
  return {
@@ -893,7 +890,7 @@ function gn(e) {
893
890
  };
894
891
  }
895
892
  }
896
- function jr(e) {
893
+ function Qr(e) {
897
894
  var t;
898
895
  if (e[0] === "E" && e[1] === "E" ? (t = {
899
896
  notation: "engineering"
@@ -901,17 +898,17 @@ function jr(e) {
901
898
  notation: "scientific"
902
899
  }, e = e.slice(1)), t) {
903
900
  var n = e.slice(0, 2);
904
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dn.test(e))
901
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !bn.test(e))
905
902
  throw new Error("Malformed concise eng/scientific notation");
906
903
  t.minimumIntegerDigits = e.length;
907
904
  }
908
905
  return t;
909
906
  }
910
- function Rt(e) {
911
- var t = {}, n = gn(e);
907
+ function Gt(e) {
908
+ var t = {}, n = yn(e);
912
909
  return n || t;
913
910
  }
914
- function Vr(e) {
911
+ function Jr(e) {
915
912
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
916
913
  var i = r[n];
917
914
  switch (i.stem) {
@@ -935,7 +932,7 @@ function Vr(e) {
935
932
  continue;
936
933
  case "measure-unit":
937
934
  case "unit":
938
- t.style = "unit", t.unit = $r(i.options[0]);
935
+ t.style = "unit", t.unit = zr(i.options[0]);
939
936
  continue;
940
937
  case "compact-short":
941
938
  case "K":
@@ -947,12 +944,12 @@ function Vr(e) {
947
944
  continue;
948
945
  case "scientific":
949
946
  t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
950
- return C(C({}, u), Rt(l));
947
+ return C(C({}, u), Gt(l));
951
948
  }, {}));
952
949
  continue;
953
950
  case "engineering":
954
951
  t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
955
- return C(C({}, u), Rt(l));
952
+ return C(C({}, u), Gt(l));
956
953
  }, {}));
957
954
  continue;
958
955
  case "notation-simple":
@@ -997,7 +994,7 @@ function Vr(e) {
997
994
  case "integer-width":
998
995
  if (i.options.length > 1)
999
996
  throw new RangeError("integer-width stems only accept a single optional option");
1000
- i.options[0].replace(kr, function(u, l, h, f, c, d) {
997
+ i.options[0].replace(Xr, function(u, l, h, f, c, d) {
1001
998
  if (l)
1002
999
  t.minimumIntegerDigits = h.length;
1003
1000
  else {
@@ -1010,32 +1007,32 @@ function Vr(e) {
1010
1007
  });
1011
1008
  continue;
1012
1009
  }
1013
- if (dn.test(i.stem)) {
1010
+ if (bn.test(i.stem)) {
1014
1011
  t.minimumIntegerDigits = i.stem.length;
1015
1012
  continue;
1016
1013
  }
1017
- if (Lt.test(i.stem)) {
1014
+ if (Dt.test(i.stem)) {
1018
1015
  if (i.options.length > 1)
1019
1016
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1020
- i.stem.replace(Lt, function(u, l, h, f, c, d) {
1017
+ i.stem.replace(Dt, function(u, l, h, f, c, d) {
1021
1018
  return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1022
1019
  });
1023
1020
  var o = i.options[0];
1024
- o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Mt(o)));
1021
+ o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Ft(o)));
1025
1022
  continue;
1026
1023
  }
1027
- if (fn.test(i.stem)) {
1028
- t = C(C({}, t), Mt(i.stem));
1024
+ if (pn.test(i.stem)) {
1025
+ t = C(C({}, t), Ft(i.stem));
1029
1026
  continue;
1030
1027
  }
1031
- var s = gn(i.stem);
1028
+ var s = yn(i.stem);
1032
1029
  s && (t = C(C({}, t), s));
1033
- var a = jr(i.stem);
1030
+ var a = Qr(i.stem);
1034
1031
  a && (t = C(C({}, t), a));
1035
1032
  }
1036
1033
  return t;
1037
1034
  }
1038
- var xe = {
1035
+ var Te = {
1039
1036
  "001": [
1040
1037
  "H",
1041
1038
  "h"
@@ -2450,13 +2447,13 @@ var xe = {
2450
2447
  "h"
2451
2448
  ]
2452
2449
  };
2453
- function zr(e, t) {
2450
+ function Wr(e, t) {
2454
2451
  for (var n = "", r = 0; r < e.length; r++) {
2455
2452
  var i = e.charAt(r);
2456
2453
  if (i === "j") {
2457
2454
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2458
2455
  o++, r++;
2459
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Xr(t);
2456
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Yr(t);
2460
2457
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2461
2458
  n += u;
2462
2459
  for (; s-- > 0; )
@@ -2466,7 +2463,7 @@ function zr(e, t) {
2466
2463
  }
2467
2464
  return n;
2468
2465
  }
2469
- function Xr(e) {
2466
+ function Yr(e) {
2470
2467
  var t = e.hourCycle;
2471
2468
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2472
2469
  e.hourCycles && // @ts-ignore
@@ -2485,23 +2482,23 @@ function Xr(e) {
2485
2482
  }
2486
2483
  var n = e.language, r;
2487
2484
  n !== "root" && (r = e.maximize().region);
2488
- var i = xe[r || ""] || xe[n || ""] || xe["".concat(n, "-001")] || xe["001"];
2485
+ var i = Te[r || ""] || Te[n || ""] || Te["".concat(n, "-001")] || Te["001"];
2489
2486
  return i[0];
2490
2487
  }
2491
- var Je, Qr = new RegExp("^".concat(cn.source, "*")), Jr = new RegExp("".concat(cn.source, "*$"));
2488
+ var Ke, qr = new RegExp("^".concat(mn.source, "*")), Zr = new RegExp("".concat(mn.source, "*$"));
2492
2489
  function S(e, t) {
2493
2490
  return { start: e, end: t };
2494
2491
  }
2495
- var Wr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, qr = !!Object.fromEntries, Zr = !!String.prototype.codePointAt, Kr = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ni = ti ? Number.isSafeInteger : function(e) {
2492
+ var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, si = oi ? Number.isSafeInteger : function(e) {
2496
2493
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2497
- }, ut = !0;
2494
+ }, dt = !0;
2498
2495
  try {
2499
- var ri = pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2500
- ut = ((Je = ri.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
2496
+ var ai = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2497
+ dt = ((Ke = ai.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
2501
2498
  } catch {
2502
- ut = !1;
2499
+ dt = !1;
2503
2500
  }
2504
- var Ot = Wr ? (
2501
+ var $t = Kr ? (
2505
2502
  // Native
2506
2503
  function(t, n, r) {
2507
2504
  return t.startsWith(n, r);
@@ -2511,7 +2508,7 @@ var Ot = Wr ? (
2511
2508
  function(t, n, r) {
2512
2509
  return t.slice(r, r + n.length) === n;
2513
2510
  }
2514
- ), lt = Yr ? String.fromCodePoint : (
2511
+ ), gt = ei ? String.fromCodePoint : (
2515
2512
  // IE11
2516
2513
  function() {
2517
2514
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2523,9 +2520,9 @@ var Ot = Wr ? (
2523
2520
  }
2524
2521
  return r;
2525
2522
  }
2526
- ), Ut = (
2523
+ ), kt = (
2527
2524
  // native
2528
- qr ? Object.fromEntries : (
2525
+ ti ? Object.fromEntries : (
2529
2526
  // Ponyfill
2530
2527
  function(t) {
2531
2528
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2535,7 +2532,7 @@ var Ot = Wr ? (
2535
2532
  return n;
2536
2533
  }
2537
2534
  )
2538
- ), mn = Zr ? (
2535
+ ), En = ni ? (
2539
2536
  // Native
2540
2537
  function(t, n) {
2541
2538
  return t.codePointAt(n);
@@ -2549,7 +2546,7 @@ var Ot = Wr ? (
2549
2546
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2550
2547
  }
2551
2548
  }
2552
- ), ii = Kr ? (
2549
+ ), ui = ri ? (
2553
2550
  // Native
2554
2551
  function(t) {
2555
2552
  return t.trimStart();
@@ -2557,9 +2554,9 @@ var Ot = Wr ? (
2557
2554
  ) : (
2558
2555
  // Ponyfill
2559
2556
  function(t) {
2560
- return t.replace(Qr, "");
2557
+ return t.replace(qr, "");
2561
2558
  }
2562
- ), oi = ei ? (
2559
+ ), li = ii ? (
2563
2560
  // Native
2564
2561
  function(t) {
2565
2562
  return t.trimEnd();
@@ -2567,32 +2564,32 @@ var Ot = Wr ? (
2567
2564
  ) : (
2568
2565
  // Ponyfill
2569
2566
  function(t) {
2570
- return t.replace(Jr, "");
2567
+ return t.replace(Zr, "");
2571
2568
  }
2572
2569
  );
2573
- function pn(e, t) {
2570
+ function _n(e, t) {
2574
2571
  return new RegExp(e, t);
2575
2572
  }
2576
- var ht;
2577
- if (ut) {
2578
- var Dt = pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2579
- ht = function(t, n) {
2573
+ var mt;
2574
+ if (dt) {
2575
+ var jt = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2576
+ mt = function(t, n) {
2580
2577
  var r;
2581
- Dt.lastIndex = n;
2582
- var i = Dt.exec(t);
2578
+ jt.lastIndex = n;
2579
+ var i = jt.exec(t);
2583
2580
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2584
2581
  };
2585
2582
  } else
2586
- ht = function(t, n) {
2583
+ mt = function(t, n) {
2587
2584
  for (var r = []; ; ) {
2588
- var i = mn(t, n);
2589
- if (i === void 0 || bn(i) || li(i))
2585
+ var i = En(t, n);
2586
+ if (i === void 0 || wn(i) || di(i))
2590
2587
  break;
2591
2588
  r.push(i), n += i >= 65536 ? 2 : 1;
2592
2589
  }
2593
- return lt.apply(void 0, r);
2590
+ return gt.apply(void 0, r);
2594
2591
  };
2595
- var si = (
2592
+ var hi = (
2596
2593
  /** @class */
2597
2594
  function() {
2598
2595
  function e(t, n) {
@@ -2616,14 +2613,14 @@ var si = (
2616
2613
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2617
2614
  var a = this.clonePosition();
2618
2615
  this.bump(), i.push({
2619
- type: A.pound,
2616
+ type: T.pound,
2620
2617
  location: S(a, this.clonePosition())
2621
2618
  });
2622
2619
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2623
2620
  if (r)
2624
2621
  break;
2625
- return this.error(v.UNMATCHED_CLOSING_TAG, S(this.clonePosition(), this.clonePosition()));
2626
- } else if (o === 60 && !this.ignoreTag && ct(this.peek() || 0)) {
2622
+ return this.error(x.UNMATCHED_CLOSING_TAG, S(this.clonePosition(), this.clonePosition()));
2623
+ } else if (o === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
2627
2624
  var s = this.parseTag(t, n);
2628
2625
  if (s.err)
2629
2626
  return s;
@@ -2644,7 +2641,7 @@ var si = (
2644
2641
  if (this.bumpSpace(), this.bumpIf("/>"))
2645
2642
  return {
2646
2643
  val: {
2647
- type: A.literal,
2644
+ type: T.literal,
2648
2645
  value: "<".concat(i, "/>"),
2649
2646
  location: S(r, this.clonePosition())
2650
2647
  },
@@ -2656,25 +2653,25 @@ var si = (
2656
2653
  return o;
2657
2654
  var s = o.val, a = this.clonePosition();
2658
2655
  if (this.bumpIf("</")) {
2659
- if (this.isEOF() || !ct(this.char()))
2660
- return this.error(v.INVALID_TAG, S(a, this.clonePosition()));
2656
+ if (this.isEOF() || !pt(this.char()))
2657
+ return this.error(x.INVALID_TAG, S(a, this.clonePosition()));
2661
2658
  var u = this.clonePosition(), l = this.parseTagName();
2662
- return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, S(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2659
+ return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG, S(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2663
2660
  val: {
2664
- type: A.tag,
2661
+ type: T.tag,
2665
2662
  value: i,
2666
2663
  children: s,
2667
2664
  location: S(r, this.clonePosition())
2668
2665
  },
2669
2666
  err: null
2670
- } : this.error(v.INVALID_TAG, S(a, this.clonePosition())));
2667
+ } : this.error(x.INVALID_TAG, S(a, this.clonePosition())));
2671
2668
  } else
2672
- return this.error(v.UNCLOSED_TAG, S(r, this.clonePosition()));
2669
+ return this.error(x.UNCLOSED_TAG, S(r, this.clonePosition()));
2673
2670
  } else
2674
- return this.error(v.INVALID_TAG, S(r, this.clonePosition()));
2671
+ return this.error(x.INVALID_TAG, S(r, this.clonePosition()));
2675
2672
  }, e.prototype.parseTagName = function() {
2676
2673
  var t = this.offset();
2677
- for (this.bump(); !this.isEOF() && ui(this.char()); )
2674
+ for (this.bump(); !this.isEOF() && fi(this.char()); )
2678
2675
  this.bump();
2679
2676
  return this.message.slice(t, this.offset());
2680
2677
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2698,12 +2695,12 @@ var si = (
2698
2695
  }
2699
2696
  var u = S(r, this.clonePosition());
2700
2697
  return {
2701
- val: { type: A.literal, value: i, location: u },
2698
+ val: { type: T.literal, value: i, location: u },
2702
2699
  err: null
2703
2700
  };
2704
2701
  }, e.prototype.tryParseLeftAngleBracket = function() {
2705
2702
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2706
- !ai(this.peek() || 0)) ? (this.bump(), "<") : null;
2703
+ !ci(this.peek() || 0)) ? (this.bump(), "<") : null;
2707
2704
  }, e.prototype.tryParseQuote = function(t) {
2708
2705
  if (this.isEOF() || this.char() !== 39)
2709
2706
  return null;
@@ -2737,28 +2734,28 @@ var si = (
2737
2734
  n.push(r);
2738
2735
  this.bump();
2739
2736
  }
2740
- return lt.apply(void 0, n);
2737
+ return gt.apply(void 0, n);
2741
2738
  }, e.prototype.tryParseUnquoted = function(t, n) {
2742
2739
  if (this.isEOF())
2743
2740
  return null;
2744
2741
  var r = this.char();
2745
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), lt(r));
2742
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), gt(r));
2746
2743
  }, e.prototype.parseArgument = function(t, n) {
2747
2744
  var r = this.clonePosition();
2748
2745
  if (this.bump(), this.bumpSpace(), this.isEOF())
2749
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2746
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2750
2747
  if (this.char() === 125)
2751
- return this.bump(), this.error(v.EMPTY_ARGUMENT, S(r, this.clonePosition()));
2748
+ return this.bump(), this.error(x.EMPTY_ARGUMENT, S(r, this.clonePosition()));
2752
2749
  var i = this.parseIdentifierIfPossible().value;
2753
2750
  if (!i)
2754
- return this.error(v.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2751
+ return this.error(x.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2755
2752
  if (this.bumpSpace(), this.isEOF())
2756
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2753
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2757
2754
  switch (this.char()) {
2758
2755
  case 125:
2759
2756
  return this.bump(), {
2760
2757
  val: {
2761
- type: A.argument,
2758
+ type: T.argument,
2762
2759
  // value does not include the opening and closing braces.
2763
2760
  value: i,
2764
2761
  location: S(r, this.clonePosition())
@@ -2766,12 +2763,12 @@ var si = (
2766
2763
  err: null
2767
2764
  };
2768
2765
  case 44:
2769
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2766
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2770
2767
  default:
2771
- return this.error(v.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2768
+ return this.error(x.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2772
2769
  }
2773
2770
  }, e.prototype.parseIdentifierIfPossible = function() {
2774
- var t = this.clonePosition(), n = this.offset(), r = ht(this.message, n), i = n + r.length;
2771
+ var t = this.clonePosition(), n = this.offset(), r = mt(this.message, n), i = n + r.length;
2775
2772
  this.bumpTo(i);
2776
2773
  var o = this.clonePosition(), s = S(t, o);
2777
2774
  return { value: r, location: s };
@@ -2779,7 +2776,7 @@ var si = (
2779
2776
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2780
2777
  switch (a) {
2781
2778
  case "":
2782
- return this.error(v.EXPECT_ARGUMENT_TYPE, S(s, u));
2779
+ return this.error(x.EXPECT_ARGUMENT_TYPE, S(s, u));
2783
2780
  case "number":
2784
2781
  case "date":
2785
2782
  case "time": {
@@ -2790,9 +2787,9 @@ var si = (
2790
2787
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2791
2788
  if (f.err)
2792
2789
  return f;
2793
- var c = oi(f.val);
2790
+ var c = li(f.val);
2794
2791
  if (c.length === 0)
2795
- return this.error(v.EXPECT_ARGUMENT_STYLE, S(this.clonePosition(), this.clonePosition()));
2792
+ return this.error(x.EXPECT_ARGUMENT_STYLE, S(this.clonePosition(), this.clonePosition()));
2796
2793
  var d = S(h, this.clonePosition());
2797
2794
  l = { style: c, styleLocation: d };
2798
2795
  }
@@ -2800,25 +2797,25 @@ var si = (
2800
2797
  if (m.err)
2801
2798
  return m;
2802
2799
  var p = S(i, this.clonePosition());
2803
- if (l && Ot(l?.style, "::", 0)) {
2804
- var _ = ii(l.style.slice(2));
2800
+ if (l && $t(l?.style, "::", 0)) {
2801
+ var _ = ui(l.style.slice(2));
2805
2802
  if (a === "number") {
2806
2803
  var f = this.parseNumberSkeletonFromString(_, l.styleLocation);
2807
2804
  return f.err ? f : {
2808
- val: { type: A.number, value: r, location: p, style: f.val },
2805
+ val: { type: T.number, value: r, location: p, style: f.val },
2809
2806
  err: null
2810
2807
  };
2811
2808
  } else {
2812
2809
  if (_.length === 0)
2813
- return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
2810
+ return this.error(x.EXPECT_DATE_TIME_SKELETON, p);
2814
2811
  var g = _;
2815
- this.locale && (g = zr(_, this.locale));
2812
+ this.locale && (g = Wr(_, this.locale));
2816
2813
  var c = {
2817
2814
  type: K.dateTime,
2818
2815
  pattern: g,
2819
2816
  location: l.styleLocation,
2820
- parsedOptions: this.shouldParseSkeletons ? Dr(g) : {}
2821
- }, y = a === "date" ? A.date : A.time;
2817
+ parsedOptions: this.shouldParseSkeletons ? kr(g) : {}
2818
+ }, y = a === "date" ? T.date : T.time;
2822
2819
  return {
2823
2820
  val: { type: y, value: r, location: p, style: c },
2824
2821
  err: null
@@ -2827,7 +2824,7 @@ var si = (
2827
2824
  }
2828
2825
  return {
2829
2826
  val: {
2830
- type: a === "number" ? A.number : a === "date" ? A.date : A.time,
2827
+ type: a === "number" ? T.number : a === "date" ? T.date : T.time,
2831
2828
  value: r,
2832
2829
  location: p,
2833
2830
  style: (o = l?.style) !== null && o !== void 0 ? o : null
@@ -2840,17 +2837,17 @@ var si = (
2840
2837
  case "select": {
2841
2838
  var b = this.clonePosition();
2842
2839
  if (this.bumpSpace(), !this.bumpIf(","))
2843
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, S(b, Pe({}, b)));
2840
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, S(b, Me({}, b)));
2844
2841
  this.bumpSpace();
2845
- var E = this.parseIdentifierIfPossible(), w = 0;
2842
+ var E = this.parseIdentifierIfPossible(), v = 0;
2846
2843
  if (a !== "select" && E.value === "offset") {
2847
2844
  if (!this.bumpIf(":"))
2848
- return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S(this.clonePosition(), this.clonePosition()));
2845
+ return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S(this.clonePosition(), this.clonePosition()));
2849
2846
  this.bumpSpace();
2850
- var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2847
+ var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2851
2848
  if (f.err)
2852
2849
  return f;
2853
- this.bumpSpace(), E = this.parseIdentifierIfPossible(), w = f.val;
2850
+ this.bumpSpace(), E = this.parseIdentifierIfPossible(), v = f.val;
2854
2851
  }
2855
2852
  var B = this.tryParsePluralOrSelectOptions(t, a, n, E);
2856
2853
  if (B.err)
@@ -2858,32 +2855,32 @@ var si = (
2858
2855
  var m = this.tryParseArgumentClose(i);
2859
2856
  if (m.err)
2860
2857
  return m;
2861
- var T = S(i, this.clonePosition());
2858
+ var A = S(i, this.clonePosition());
2862
2859
  return a === "select" ? {
2863
2860
  val: {
2864
- type: A.select,
2861
+ type: T.select,
2865
2862
  value: r,
2866
- options: Ut(B.val),
2867
- location: T
2863
+ options: kt(B.val),
2864
+ location: A
2868
2865
  },
2869
2866
  err: null
2870
2867
  } : {
2871
2868
  val: {
2872
- type: A.plural,
2869
+ type: T.plural,
2873
2870
  value: r,
2874
- options: Ut(B.val),
2875
- offset: w,
2871
+ options: kt(B.val),
2872
+ offset: v,
2876
2873
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2877
- location: T
2874
+ location: A
2878
2875
  },
2879
2876
  err: null
2880
2877
  };
2881
2878
  }
2882
2879
  default:
2883
- return this.error(v.INVALID_ARGUMENT_TYPE, S(s, u));
2880
+ return this.error(x.INVALID_ARGUMENT_TYPE, S(s, u));
2884
2881
  }
2885
2882
  }, e.prototype.tryParseArgumentClose = function(t) {
2886
- return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2883
+ return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2887
2884
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2888
2885
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2889
2886
  var r = this.char();
@@ -2892,7 +2889,7 @@ var si = (
2892
2889
  this.bump();
2893
2890
  var i = this.clonePosition();
2894
2891
  if (!this.bumpUntil("'"))
2895
- return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, S(i, this.clonePosition()));
2892
+ return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, S(i, this.clonePosition()));
2896
2893
  this.bump();
2897
2894
  break;
2898
2895
  }
@@ -2922,16 +2919,16 @@ var si = (
2922
2919
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2923
2920
  var r = [];
2924
2921
  try {
2925
- r = Gr(t);
2922
+ r = Vr(t);
2926
2923
  } catch {
2927
- return this.error(v.INVALID_NUMBER_SKELETON, n);
2924
+ return this.error(x.INVALID_NUMBER_SKELETON, n);
2928
2925
  }
2929
2926
  return {
2930
2927
  val: {
2931
2928
  type: K.number,
2932
2929
  tokens: r,
2933
2930
  location: n,
2934
- parsedOptions: this.shouldParseSkeletons ? Vr(r) : {}
2931
+ parsedOptions: this.shouldParseSkeletons ? Jr(r) : {}
2935
2932
  },
2936
2933
  err: null
2937
2934
  };
@@ -2940,7 +2937,7 @@ var si = (
2940
2937
  if (l.length === 0) {
2941
2938
  var f = this.clonePosition();
2942
2939
  if (n !== "select" && this.bumpIf("=")) {
2943
- var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
2940
+ var c = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
2944
2941
  if (c.err)
2945
2942
  return c;
2946
2943
  h = S(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
@@ -2948,11 +2945,11 @@ var si = (
2948
2945
  break;
2949
2946
  }
2950
2947
  if (u.has(l))
2951
- return this.error(n === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2948
+ return this.error(n === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2952
2949
  l === "other" && (s = !0), this.bumpSpace();
2953
2950
  var d = this.clonePosition();
2954
2951
  if (!this.bumpIf("{"))
2955
- return this.error(n === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, S(this.clonePosition(), this.clonePosition()));
2952
+ return this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, S(this.clonePosition(), this.clonePosition()));
2956
2953
  var m = this.parseMessage(t + 1, n, r);
2957
2954
  if (m.err)
2958
2955
  return m;
@@ -2967,7 +2964,7 @@ var si = (
2967
2964
  }
2968
2965
  ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
2969
2966
  }
2970
- return a.length === 0 ? this.error(n === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, S(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, S(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2967
+ return a.length === 0 ? this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, S(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, S(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2971
2968
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2972
2969
  var r = 1, i = this.clonePosition();
2973
2970
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -2979,7 +2976,7 @@ var si = (
2979
2976
  break;
2980
2977
  }
2981
2978
  var u = S(i, this.clonePosition());
2982
- return o ? (s *= r, ni(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
2979
+ return o ? (s *= r, si(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
2983
2980
  }, e.prototype.offset = function() {
2984
2981
  return this.position.offset;
2985
2982
  }, e.prototype.isEOF = function() {
@@ -2994,7 +2991,7 @@ var si = (
2994
2991
  var t = this.position.offset;
2995
2992
  if (t >= this.message.length)
2996
2993
  throw Error("out of bound");
2997
- var n = mn(this.message, t);
2994
+ var n = En(this.message, t);
2998
2995
  if (n === void 0)
2999
2996
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3000
2997
  return n;
@@ -3013,7 +3010,7 @@ var si = (
3013
3010
  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);
3014
3011
  }
3015
3012
  }, e.prototype.bumpIf = function(t) {
3016
- if (Ot(this.message, t, this.offset())) {
3013
+ if ($t(this.message, t, this.offset())) {
3017
3014
  for (var n = 0; n < t.length; n++)
3018
3015
  this.bump();
3019
3016
  return !0;
@@ -3035,7 +3032,7 @@ var si = (
3035
3032
  break;
3036
3033
  }
3037
3034
  }, e.prototype.bumpSpace = function() {
3038
- for (; !this.isEOF() && bn(this.char()); )
3035
+ for (; !this.isEOF() && wn(this.char()); )
3039
3036
  this.bump();
3040
3037
  }, e.prototype.peek = function() {
3041
3038
  if (this.isEOF())
@@ -3045,47 +3042,47 @@ var si = (
3045
3042
  }, e;
3046
3043
  }()
3047
3044
  );
3048
- function ct(e) {
3045
+ function pt(e) {
3049
3046
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3050
3047
  }
3051
- function ai(e) {
3052
- return ct(e) || e === 47;
3048
+ function ci(e) {
3049
+ return pt(e) || e === 47;
3053
3050
  }
3054
- function ui(e) {
3051
+ function fi(e) {
3055
3052
  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;
3056
3053
  }
3057
- function bn(e) {
3054
+ function wn(e) {
3058
3055
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3059
3056
  }
3060
- function li(e) {
3057
+ function di(e) {
3061
3058
  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;
3062
3059
  }
3063
- function ft(e) {
3060
+ function bt(e) {
3064
3061
  e.forEach(function(t) {
3065
- if (delete t.location, an(t) || un(t))
3062
+ if (delete t.location, cn(t) || fn(t))
3066
3063
  for (var n in t.options)
3067
- delete t.options[n].location, ft(t.options[n].value);
3064
+ delete t.options[n].location, bt(t.options[n].value);
3068
3065
  else
3069
- rn(t) && hn(t.style) || (on(t) || sn(t)) && at(t.style) ? delete t.style.location : ln(t) && ft(t.children);
3066
+ un(t) && gn(t.style) || (ln(t) || hn(t)) && ft(t.style) ? delete t.style.location : dn(t) && bt(t.children);
3070
3067
  });
3071
3068
  }
3072
- function hi(e, t) {
3073
- t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3074
- var n = new si(e, t).parse();
3069
+ function gi(e, t) {
3070
+ t === void 0 && (t = {}), t = Me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3071
+ var n = new hi(e, t).parse();
3075
3072
  if (n.err) {
3076
- var r = SyntaxError(v[n.err.kind]);
3073
+ var r = SyntaxError(x[n.err.kind]);
3077
3074
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3078
3075
  }
3079
- return t?.captureLocation || ft(n.val), n.val;
3076
+ return t?.captureLocation || bt(n.val), n.val;
3080
3077
  }
3081
3078
  var ee;
3082
3079
  (function(e) {
3083
3080
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3084
3081
  })(ee || (ee = {}));
3085
- var Ue = (
3082
+ var $e = (
3086
3083
  /** @class */
3087
3084
  function(e) {
3088
- Oe(t, e);
3085
+ Ge(t, e);
3089
3086
  function t(n, r, i) {
3090
3087
  var o = e.call(this, n) || this;
3091
3088
  return o.code = r, o.originalMessage = i, o;
@@ -3094,155 +3091,155 @@ var Ue = (
3094
3091
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3095
3092
  }, t;
3096
3093
  }(Error)
3097
- ), Ft = (
3094
+ ), Vt = (
3098
3095
  /** @class */
3099
3096
  function(e) {
3100
- Oe(t, e);
3097
+ Ge(t, e);
3101
3098
  function t(n, r, i, o) {
3102
3099
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3103
3100
  }
3104
3101
  return t;
3105
- }(Ue)
3106
- ), ci = (
3102
+ }($e)
3103
+ ), mi = (
3107
3104
  /** @class */
3108
3105
  function(e) {
3109
- Oe(t, e);
3106
+ Ge(t, e);
3110
3107
  function t(n, r, i) {
3111
3108
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ee.INVALID_VALUE, i) || this;
3112
3109
  }
3113
3110
  return t;
3114
- }(Ue)
3115
- ), fi = (
3111
+ }($e)
3112
+ ), pi = (
3116
3113
  /** @class */
3117
3114
  function(e) {
3118
- Oe(t, e);
3115
+ Ge(t, e);
3119
3116
  function t(n, r) {
3120
3117
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ee.MISSING_VALUE, r) || this;
3121
3118
  }
3122
3119
  return t;
3123
- }(Ue)
3124
- ), H;
3120
+ }($e)
3121
+ ), N;
3125
3122
  (function(e) {
3126
3123
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3127
- })(H || (H = {}));
3128
- function di(e) {
3124
+ })(N || (N = {}));
3125
+ function bi(e) {
3129
3126
  return e.length < 2 ? e : e.reduce(function(t, n) {
3130
3127
  var r = t[t.length - 1];
3131
- return !r || r.type !== H.literal || n.type !== H.literal ? t.push(n) : r.value += n.value, t;
3128
+ return !r || r.type !== N.literal || n.type !== N.literal ? t.push(n) : r.value += n.value, t;
3132
3129
  }, []);
3133
3130
  }
3134
- function gi(e) {
3131
+ function yi(e) {
3135
3132
  return typeof e == "function";
3136
3133
  }
3137
- function Ae(e, t, n, r, i, o, s) {
3138
- if (e.length === 1 && It(e[0]))
3134
+ function Pe(e, t, n, r, i, o, s) {
3135
+ if (e.length === 1 && Ut(e[0]))
3139
3136
  return [
3140
3137
  {
3141
- type: H.literal,
3138
+ type: N.literal,
3142
3139
  value: e[0].value
3143
3140
  }
3144
3141
  ];
3145
3142
  for (var a = [], u = 0, l = e; u < l.length; u++) {
3146
3143
  var h = l[u];
3147
- if (It(h)) {
3144
+ if (Ut(h)) {
3148
3145
  a.push({
3149
- type: H.literal,
3146
+ type: N.literal,
3150
3147
  value: h.value
3151
3148
  });
3152
3149
  continue;
3153
3150
  }
3154
- if (Or(h)) {
3151
+ if (Gr(h)) {
3155
3152
  typeof o == "number" && a.push({
3156
- type: H.literal,
3153
+ type: N.literal,
3157
3154
  value: n.getNumberFormat(t).format(o)
3158
3155
  });
3159
3156
  continue;
3160
3157
  }
3161
3158
  var f = h.value;
3162
3159
  if (!(i && f in i))
3163
- throw new fi(f, s);
3160
+ throw new pi(f, s);
3164
3161
  var c = i[f];
3165
- if (Rr(h)) {
3162
+ if (Fr(h)) {
3166
3163
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3167
- type: typeof c == "string" ? H.literal : H.object,
3164
+ type: typeof c == "string" ? N.literal : N.object,
3168
3165
  value: c
3169
3166
  });
3170
3167
  continue;
3171
3168
  }
3172
- if (on(h)) {
3173
- var d = typeof h.style == "string" ? r.date[h.style] : at(h.style) ? h.style.parsedOptions : void 0;
3169
+ if (ln(h)) {
3170
+ var d = typeof h.style == "string" ? r.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
3174
3171
  a.push({
3175
- type: H.literal,
3172
+ type: N.literal,
3176
3173
  value: n.getDateTimeFormat(t, d).format(c)
3177
3174
  });
3178
3175
  continue;
3179
3176
  }
3180
- if (sn(h)) {
3181
- var d = typeof h.style == "string" ? r.time[h.style] : at(h.style) ? h.style.parsedOptions : r.time.medium;
3177
+ if (hn(h)) {
3178
+ var d = typeof h.style == "string" ? r.time[h.style] : ft(h.style) ? h.style.parsedOptions : r.time.medium;
3182
3179
  a.push({
3183
- type: H.literal,
3180
+ type: N.literal,
3184
3181
  value: n.getDateTimeFormat(t, d).format(c)
3185
3182
  });
3186
3183
  continue;
3187
3184
  }
3188
- if (rn(h)) {
3189
- var d = typeof h.style == "string" ? r.number[h.style] : hn(h.style) ? h.style.parsedOptions : void 0;
3185
+ if (un(h)) {
3186
+ var d = typeof h.style == "string" ? r.number[h.style] : gn(h.style) ? h.style.parsedOptions : void 0;
3190
3187
  d && d.scale && (c = c * (d.scale || 1)), a.push({
3191
- type: H.literal,
3188
+ type: N.literal,
3192
3189
  value: n.getNumberFormat(t, d).format(c)
3193
3190
  });
3194
3191
  continue;
3195
3192
  }
3196
- if (ln(h)) {
3193
+ if (dn(h)) {
3197
3194
  var m = h.children, p = h.value, _ = i[p];
3198
- if (!gi(_))
3199
- throw new ci(p, "function", s);
3200
- var g = Ae(m, t, n, r, i, o), y = _(g.map(function(w) {
3201
- return w.value;
3195
+ if (!yi(_))
3196
+ throw new mi(p, "function", s);
3197
+ var g = Pe(m, t, n, r, i, o), y = _(g.map(function(v) {
3198
+ return v.value;
3202
3199
  }));
3203
- Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(w) {
3200
+ Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(v) {
3204
3201
  return {
3205
- type: typeof w == "string" ? H.literal : H.object,
3206
- value: w
3202
+ type: typeof v == "string" ? N.literal : N.object,
3203
+ value: v
3207
3204
  };
3208
3205
  }));
3209
3206
  }
3210
- if (an(h)) {
3207
+ if (cn(h)) {
3211
3208
  var b = h.options[c] || h.options.other;
3212
3209
  if (!b)
3213
- throw new Ft(h.value, c, Object.keys(h.options), s);
3214
- a.push.apply(a, Ae(b.value, t, n, r, i));
3210
+ throw new Vt(h.value, c, Object.keys(h.options), s);
3211
+ a.push.apply(a, Pe(b.value, t, n, r, i));
3215
3212
  continue;
3216
3213
  }
3217
- if (un(h)) {
3214
+ if (fn(h)) {
3218
3215
  var b = h.options["=".concat(c)];
3219
3216
  if (!b) {
3220
3217
  if (!Intl.PluralRules)
3221
- throw new Ue(`Intl.PluralRules is not available in this environment.
3218
+ throw new $e(`Intl.PluralRules is not available in this environment.
3222
3219
  Try polyfilling it using "@formatjs/intl-pluralrules"
3223
3220
  `, ee.MISSING_INTL_API, s);
3224
3221
  var E = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3225
3222
  b = h.options[E] || h.options.other;
3226
3223
  }
3227
3224
  if (!b)
3228
- throw new Ft(h.value, c, Object.keys(h.options), s);
3229
- a.push.apply(a, Ae(b.value, t, n, r, i, c - (h.offset || 0)));
3225
+ throw new Vt(h.value, c, Object.keys(h.options), s);
3226
+ a.push.apply(a, Pe(b.value, t, n, r, i, c - (h.offset || 0)));
3230
3227
  continue;
3231
3228
  }
3232
3229
  }
3233
- return di(a);
3230
+ return bi(a);
3234
3231
  }
3235
- function mi(e, t) {
3236
- return t ? D(D(D({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3237
- return n[r] = D(D({}, e[r]), t[r] || {}), n;
3232
+ function Ei(e, t) {
3233
+ return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3234
+ return n[r] = U(U({}, e[r]), t[r] || {}), n;
3238
3235
  }, {})) : e;
3239
3236
  }
3240
- function pi(e, t) {
3237
+ function _i(e, t) {
3241
3238
  return t ? Object.keys(e).reduce(function(n, r) {
3242
- return n[r] = mi(e[r], t[r]), n;
3243
- }, D({}, e)) : e;
3239
+ return n[r] = Ei(e[r], t[r]), n;
3240
+ }, U({}, e)) : e;
3244
3241
  }
3245
- function We(e) {
3242
+ function et(e) {
3246
3243
  return {
3247
3244
  create: function() {
3248
3245
  return {
@@ -3256,39 +3253,39 @@ function We(e) {
3256
3253
  }
3257
3254
  };
3258
3255
  }
3259
- function bi(e) {
3256
+ function wi(e) {
3260
3257
  return e === void 0 && (e = {
3261
3258
  number: {},
3262
3259
  dateTime: {},
3263
3260
  pluralRules: {}
3264
3261
  }), {
3265
- getNumberFormat: Xe(function() {
3262
+ getNumberFormat: qe(function() {
3266
3263
  for (var t, n = [], r = 0; r < arguments.length; r++)
3267
3264
  n[r] = arguments[r];
3268
- return new ((t = Intl.NumberFormat).bind.apply(t, ze([void 0], n, !1)))();
3265
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ye([void 0], n, !1)))();
3269
3266
  }, {
3270
- cache: We(e.number),
3271
- strategy: Qe.variadic
3267
+ cache: et(e.number),
3268
+ strategy: Ze.variadic
3272
3269
  }),
3273
- getDateTimeFormat: Xe(function() {
3270
+ getDateTimeFormat: qe(function() {
3274
3271
  for (var t, n = [], r = 0; r < arguments.length; r++)
3275
3272
  n[r] = arguments[r];
3276
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ze([void 0], n, !1)))();
3273
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ye([void 0], n, !1)))();
3277
3274
  }, {
3278
- cache: We(e.dateTime),
3279
- strategy: Qe.variadic
3275
+ cache: et(e.dateTime),
3276
+ strategy: Ze.variadic
3280
3277
  }),
3281
- getPluralRules: Xe(function() {
3278
+ getPluralRules: qe(function() {
3282
3279
  for (var t, n = [], r = 0; r < arguments.length; r++)
3283
3280
  n[r] = arguments[r];
3284
- return new ((t = Intl.PluralRules).bind.apply(t, ze([void 0], n, !1)))();
3281
+ return new ((t = Intl.PluralRules).bind.apply(t, Ye([void 0], n, !1)))();
3285
3282
  }, {
3286
- cache: We(e.pluralRules),
3287
- strategy: Qe.variadic
3283
+ cache: et(e.pluralRules),
3284
+ strategy: Ze.variadic
3288
3285
  })
3289
3286
  };
3290
3287
  }
3291
- var yi = (
3288
+ var vi = (
3292
3289
  /** @class */
3293
3290
  function() {
3294
3291
  function e(t, n, r, i) {
@@ -3303,11 +3300,11 @@ var yi = (
3303
3300
  if (l.length === 1)
3304
3301
  return l[0].value;
3305
3302
  var h = l.reduce(function(f, c) {
3306
- return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3303
+ return !f.length || c.type !== N.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3307
3304
  }, []);
3308
3305
  return h.length <= 1 ? h[0] || "" : h;
3309
3306
  }, this.formatToParts = function(u) {
3310
- return Ae(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3307
+ return Pe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3311
3308
  }, this.resolvedOptions = function() {
3312
3309
  var u;
3313
3310
  return {
@@ -3320,13 +3317,13 @@ var yi = (
3320
3317
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3321
3318
  var s = i || {};
3322
3319
  s.formatters;
3323
- var a = Ar(s, ["formatters"]);
3324
- this.ast = e.__parse(t, D(D({}, a), { locale: this.resolvedLocale }));
3320
+ var a = Hr(s, ["formatters"]);
3321
+ this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
3325
3322
  } else
3326
3323
  this.ast = t;
3327
3324
  if (!Array.isArray(this.ast))
3328
3325
  throw new TypeError("A message must be provided as a String or AST.");
3329
- this.formats = pi(e.formats, r), this.formatters = i && i.formatters || bi(this.formatterCache);
3326
+ this.formats = _i(e.formats, r), this.formatters = i && i.formatters || wi(this.formatterCache);
3330
3327
  }
3331
3328
  return Object.defineProperty(e, "defaultLocale", {
3332
3329
  get: function() {
@@ -3339,7 +3336,7 @@ var yi = (
3339
3336
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3340
3337
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3341
3338
  }
3342
- }, e.__parse = hi, e.formats = {
3339
+ }, e.__parse = gi, e.formats = {
3343
3340
  number: {
3344
3341
  integer: {
3345
3342
  maximumFractionDigits: 0
@@ -3400,7 +3397,7 @@ var yi = (
3400
3397
  }, e;
3401
3398
  }()
3402
3399
  );
3403
- function Ei(e, t) {
3400
+ function xi(e, t) {
3404
3401
  if (t == null)
3405
3402
  return;
3406
3403
  if (t in e)
@@ -3421,92 +3418,92 @@ function Ei(e, t) {
3421
3418
  r = void 0;
3422
3419
  return r;
3423
3420
  }
3424
- const k = {}, _i = (e, t, n) => n && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = n), n), yn = (e, t) => {
3421
+ const j = {}, Si = (e, t, n) => n && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = n), n), vn = (e, t) => {
3425
3422
  if (t == null)
3426
3423
  return;
3427
- if (t in k && e in k[t])
3428
- return k[t][e];
3429
- const n = De(t);
3424
+ if (t in j && e in j[t])
3425
+ return j[t][e];
3426
+ const n = ke(t);
3430
3427
  for (let r = 0; r < n.length; r++) {
3431
- const i = n[r], o = vi(i, e);
3428
+ const i = n[r], o = Ti(i, e);
3432
3429
  if (o)
3433
- return _i(e, t, o);
3430
+ return Si(e, t, o);
3434
3431
  }
3435
3432
  };
3436
- let _t;
3437
- const Ee = Re({});
3438
- function wi(e) {
3439
- return _t[e] || null;
3433
+ let Bt;
3434
+ const we = Fe({});
3435
+ function Bi(e) {
3436
+ return Bt[e] || null;
3440
3437
  }
3441
- function En(e) {
3442
- return e in _t;
3438
+ function xn(e) {
3439
+ return e in Bt;
3443
3440
  }
3444
- function vi(e, t) {
3445
- if (!En(e))
3441
+ function Ti(e, t) {
3442
+ if (!xn(e))
3446
3443
  return null;
3447
- const n = wi(e);
3448
- return Ei(n, t);
3444
+ const n = Bi(e);
3445
+ return xi(n, t);
3449
3446
  }
3450
- function xi(e) {
3447
+ function Ai(e) {
3451
3448
  if (e == null)
3452
3449
  return;
3453
- const t = De(e);
3450
+ const t = ke(e);
3454
3451
  for (let n = 0; n < t.length; n++) {
3455
3452
  const r = t[n];
3456
- if (En(r))
3453
+ if (xn(r))
3457
3454
  return r;
3458
3455
  }
3459
3456
  }
3460
- function _n(e, ...t) {
3461
- delete k[e], Ee.update((n) => (n[e] = Tr.all([n[e] || {}, ...t]), n));
3457
+ function Sn(e, ...t) {
3458
+ delete j[e], we.update((n) => (n[e] = Pr.all([n[e] || {}, ...t]), n));
3462
3459
  }
3463
3460
  ae(
3464
- [Ee],
3461
+ [we],
3465
3462
  ([e]) => Object.keys(e)
3466
3463
  );
3467
- Ee.subscribe((e) => _t = e);
3468
- const Ce = {};
3469
- function Si(e, t) {
3470
- Ce[e].delete(t), Ce[e].size === 0 && delete Ce[e];
3464
+ we.subscribe((e) => Bt = e);
3465
+ const He = {};
3466
+ function Ci(e, t) {
3467
+ He[e].delete(t), He[e].size === 0 && delete He[e];
3471
3468
  }
3472
- function wn(e) {
3473
- return Ce[e];
3469
+ function Bn(e) {
3470
+ return He[e];
3474
3471
  }
3475
- function Bi(e) {
3476
- return De(e).map((t) => {
3477
- const n = wn(t);
3472
+ function Ni(e) {
3473
+ return ke(e).map((t) => {
3474
+ const n = Bn(t);
3478
3475
  return [t, n ? [...n] : []];
3479
3476
  }).filter(([, t]) => t.length > 0);
3480
3477
  }
3481
- function dt(e) {
3482
- return e == null ? !1 : De(e).some(
3478
+ function yt(e) {
3479
+ return e == null ? !1 : ke(e).some(
3483
3480
  (t) => {
3484
3481
  var n;
3485
- return (n = wn(t)) == null ? void 0 : n.size;
3482
+ return (n = Bn(t)) == null ? void 0 : n.size;
3486
3483
  }
3487
3484
  );
3488
3485
  }
3489
- function Ti(e, t) {
3486
+ function Pi(e, t) {
3490
3487
  return Promise.all(
3491
- t.map((r) => (Si(e, r), r().then((i) => i.default || i)))
3492
- ).then((r) => _n(e, ...r));
3493
- }
3494
- const he = {};
3495
- function vn(e) {
3496
- if (!dt(e))
3497
- return e in he ? he[e] : Promise.resolve();
3498
- const t = Bi(e);
3499
- return he[e] = Promise.all(
3488
+ t.map((r) => (Ci(e, r), r().then((i) => i.default || i)))
3489
+ ).then((r) => Sn(e, ...r));
3490
+ }
3491
+ const fe = {};
3492
+ function Tn(e) {
3493
+ if (!yt(e))
3494
+ return e in fe ? fe[e] : Promise.resolve();
3495
+ const t = Ni(e);
3496
+ return fe[e] = Promise.all(
3500
3497
  t.map(
3501
- ([n, r]) => Ti(n, r)
3498
+ ([n, r]) => Pi(n, r)
3502
3499
  )
3503
3500
  ).then(() => {
3504
- if (dt(e))
3505
- return vn(e);
3506
- delete he[e];
3507
- }), he[e];
3501
+ if (yt(e))
3502
+ return Tn(e);
3503
+ delete fe[e];
3504
+ }), fe[e];
3508
3505
  }
3509
- const Ai = {
3506
+ const Hi = {
3510
3507
  number: {
3511
3508
  scientific: { notation: "scientific" },
3512
3509
  engineering: { notation: "engineering" },
@@ -3535,135 +3532,135 @@ const Ai = {
3535
3532
  timeZoneName: "short"
3536
3533
  }
3537
3534
  }
3538
- }, Ci = {
3535
+ }, Ii = {
3539
3536
  fallbackLocale: null,
3540
3537
  loadingDelay: 200,
3541
- formats: Ai,
3538
+ formats: Hi,
3542
3539
  warnOnMissingMessages: !0,
3543
3540
  handleMissingMessage: void 0,
3544
3541
  ignoreTag: !0
3545
- }, Ni = Ci;
3542
+ }, Li = Ii;
3546
3543
  function te() {
3547
- return Ni;
3544
+ return Li;
3548
3545
  }
3549
- const Ye = Re(!1);
3550
- var Pi = Object.defineProperty, Hi = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, $t = (e, t, n) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ri = (e, t) => {
3546
+ const tt = Fe(!1);
3547
+ var Mi = Object.defineProperty, Ri = Object.defineProperties, Oi = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, Xt = (e, t, n) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => {
3551
3548
  for (var n in t || (t = {}))
3552
- Li.call(t, n) && $t(e, n, t[n]);
3553
- if (Gt)
3554
- for (var n of Gt(t))
3555
- Mi.call(t, n) && $t(e, n, t[n]);
3549
+ Ui.call(t, n) && Xt(e, n, t[n]);
3550
+ if (zt)
3551
+ for (var n of zt(t))
3552
+ Di.call(t, n) && Xt(e, n, t[n]);
3556
3553
  return e;
3557
- }, Oi = (e, t) => Hi(e, Ii(t));
3558
- let gt;
3559
- const He = Re(null);
3560
- function kt(e) {
3554
+ }, Gi = (e, t) => Ri(e, Oi(t));
3555
+ let Et;
3556
+ const Re = Fe(null);
3557
+ function Qt(e) {
3561
3558
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3562
3559
  }
3563
- function De(e, t = te().fallbackLocale) {
3564
- const n = kt(e);
3565
- return t ? [.../* @__PURE__ */ new Set([...n, ...kt(t)])] : n;
3560
+ function ke(e, t = te().fallbackLocale) {
3561
+ const n = Qt(e);
3562
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Qt(t)])] : n;
3566
3563
  }
3567
3564
  function X() {
3568
- return gt ?? void 0;
3565
+ return Et ?? void 0;
3569
3566
  }
3570
- He.subscribe((e) => {
3571
- gt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3567
+ Re.subscribe((e) => {
3568
+ Et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3572
3569
  });
3573
- const Ui = (e) => {
3574
- if (e && xi(e) && dt(e)) {
3570
+ const $i = (e) => {
3571
+ if (e && Ai(e) && yt(e)) {
3575
3572
  const { loadingDelay: t } = te();
3576
3573
  let n;
3577
3574
  return typeof window < "u" && X() != null && t ? n = window.setTimeout(
3578
- () => Ye.set(!0),
3575
+ () => tt.set(!0),
3579
3576
  t
3580
- ) : Ye.set(!0), vn(e).then(() => {
3581
- He.set(e);
3577
+ ) : tt.set(!0), Tn(e).then(() => {
3578
+ Re.set(e);
3582
3579
  }).finally(() => {
3583
- clearTimeout(n), Ye.set(!1);
3580
+ clearTimeout(n), tt.set(!1);
3584
3581
  });
3585
3582
  }
3586
- return He.set(e);
3587
- }, ue = Oi(Ri({}, He), {
3588
- set: Ui
3589
- }), Fe = (e) => {
3583
+ return Re.set(e);
3584
+ }, ue = Gi(Fi({}, Re), {
3585
+ set: $i
3586
+ }), je = (e) => {
3590
3587
  const t = /* @__PURE__ */ Object.create(null);
3591
3588
  return (r) => {
3592
3589
  const i = JSON.stringify(r);
3593
3590
  return i in t ? t[i] : t[i] = e(r);
3594
3591
  };
3595
3592
  };
3596
- var Di = Object.defineProperty, Ie = Object.getOwnPropertySymbols, xn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, jt = (e, t, n) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, wt = (e, t) => {
3593
+ var ki = Object.defineProperty, Oe = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, Jt = (e, t, n) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Tt = (e, t) => {
3597
3594
  for (var n in t || (t = {}))
3598
- xn.call(t, n) && jt(e, n, t[n]);
3599
- if (Ie)
3600
- for (var n of Ie(t))
3601
- Sn.call(t, n) && jt(e, n, t[n]);
3595
+ An.call(t, n) && Jt(e, n, t[n]);
3596
+ if (Oe)
3597
+ for (var n of Oe(t))
3598
+ Cn.call(t, n) && Jt(e, n, t[n]);
3602
3599
  return e;
3603
3600
  }, le = (e, t) => {
3604
3601
  var n = {};
3605
3602
  for (var r in e)
3606
- xn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3607
- if (e != null && Ie)
3608
- for (var r of Ie(e))
3609
- t.indexOf(r) < 0 && Sn.call(e, r) && (n[r] = e[r]);
3603
+ An.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3604
+ if (e != null && Oe)
3605
+ for (var r of Oe(e))
3606
+ t.indexOf(r) < 0 && Cn.call(e, r) && (n[r] = e[r]);
3610
3607
  return n;
3611
3608
  };
3612
- const me = (e, t) => {
3609
+ const be = (e, t) => {
3613
3610
  const { formats: n } = te();
3614
3611
  if (e in n && t in n[e])
3615
3612
  return n[e][t];
3616
3613
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3617
- }, Fi = Fe(
3614
+ }, ji = je(
3618
3615
  (e) => {
3619
3616
  var t = e, { locale: n, format: r } = t, i = le(t, ["locale", "format"]);
3620
3617
  if (n == null)
3621
3618
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3622
- return r && (i = me("number", r)), new Intl.NumberFormat(n, i);
3619
+ return r && (i = be("number", r)), new Intl.NumberFormat(n, i);
3623
3620
  }
3624
- ), Gi = Fe(
3621
+ ), Vi = je(
3625
3622
  (e) => {
3626
3623
  var t = e, { locale: n, format: r } = t, i = le(t, ["locale", "format"]);
3627
3624
  if (n == null)
3628
3625
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3629
- return r ? i = me("date", r) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(n, i);
3626
+ return r ? i = be("date", r) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(n, i);
3630
3627
  }
3631
- ), $i = Fe(
3628
+ ), zi = je(
3632
3629
  (e) => {
3633
3630
  var t = e, { locale: n, format: r } = t, i = le(t, ["locale", "format"]);
3634
3631
  if (n == null)
3635
3632
  throw new Error(
3636
3633
  '[svelte-i18n] A "locale" must be set to format time values'
3637
3634
  );
3638
- return r ? i = me("time", r) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(n, i);
3635
+ return r ? i = be("time", r) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(n, i);
3639
3636
  }
3640
- ), ki = (e = {}) => {
3637
+ ), Xi = (e = {}) => {
3641
3638
  var t = e, {
3642
3639
  locale: n = X()
3643
3640
  } = t, r = le(t, [
3644
3641
  "locale"
3645
3642
  ]);
3646
- return Fi(wt({ locale: n }, r));
3647
- }, ji = (e = {}) => {
3643
+ return ji(Tt({ locale: n }, r));
3644
+ }, Qi = (e = {}) => {
3648
3645
  var t = e, {
3649
3646
  locale: n = X()
3650
3647
  } = t, r = le(t, [
3651
3648
  "locale"
3652
3649
  ]);
3653
- return Gi(wt({ locale: n }, r));
3654
- }, Vi = (e = {}) => {
3650
+ return Vi(Tt({ locale: n }, r));
3651
+ }, Ji = (e = {}) => {
3655
3652
  var t = e, {
3656
3653
  locale: n = X()
3657
3654
  } = t, r = le(t, [
3658
3655
  "locale"
3659
3656
  ]);
3660
- return $i(wt({ locale: n }, r));
3661
- }, zi = Fe(
3657
+ return zi(Tt({ locale: n }, r));
3658
+ }, Wi = je(
3662
3659
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3663
- (e, t = X()) => new yi(e, t, te().formats, {
3660
+ (e, t = X()) => new vi(e, t, te().formats, {
3664
3661
  ignoreTag: te().ignoreTag
3665
3662
  })
3666
- ), Xi = (e, t = {}) => {
3663
+ ), Yi = (e, t = {}) => {
3667
3664
  var n, r, i, o;
3668
3665
  let s = t;
3669
3666
  typeof e == "object" && (s = e, e = s.id);
@@ -3676,7 +3673,7 @@ const me = (e, t) => {
3676
3673
  throw new Error(
3677
3674
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3678
3675
  );
3679
- let h = yn(e, u);
3676
+ let h = vn(e, u);
3680
3677
  if (!h)
3681
3678
  h = (o = (i = (r = (n = te()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3682
3679
  else if (typeof h != "string")
@@ -3687,7 +3684,7 @@ const me = (e, t) => {
3687
3684
  return h;
3688
3685
  let f = h;
3689
3686
  try {
3690
- f = zi(h, u).format(a);
3687
+ f = Wi(h, u).format(a);
3691
3688
  } catch (c) {
3692
3689
  c instanceof Error && console.warn(
3693
3690
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3695,40 +3692,42 @@ const me = (e, t) => {
3695
3692
  );
3696
3693
  }
3697
3694
  return f;
3698
- }, Qi = (e, t) => Vi(t).format(e), Ji = (e, t) => ji(t).format(e), Wi = (e, t) => ki(t).format(e), Yi = (e, t = X()) => yn(e, t), qi = ae([ue, Ee], () => Xi);
3699
- ae([ue], () => Qi);
3700
- ae([ue], () => Ji);
3701
- ae([ue], () => Wi);
3702
- ae([ue, Ee], () => Yi);
3703
- function Vt(e, t) {
3704
- _n(e, t);
3705
- }
3706
- function Zi(e) {
3695
+ }, qi = (e, t) => Ji(t).format(e), Zi = (e, t) => Qi(t).format(e), Ki = (e, t) => Xi(t).format(e), eo = (e, t = X()) => vn(e, t), to = ae([ue, we], () => Yi);
3696
+ ae([ue], () => qi);
3697
+ ae([ue], () => Zi);
3698
+ ae([ue], () => Ki);
3699
+ ae([ue, we], () => eo);
3700
+ function Wt(e, t) {
3701
+ Sn(e, t);
3702
+ }
3703
+ function no(e) {
3707
3704
  ue.set(e);
3708
3705
  }
3709
- const zt = {
3706
+ const Yt = {
3710
3707
  en: {
3711
3708
  titleQRSessionGenerator: "Scan the QR Code to access your account on retail devices.",
3712
3709
  generateQRButton: "Generate QR",
3713
3710
  unauthorized: "Authentication failed.",
3714
3711
  failedToFetch: "Cannot generate QR, Please try again.",
3715
- unexpectedError: "Unexpected error occurred. Please try again later."
3712
+ unexpectedError: "Unexpected error occurred. Please try again later.",
3713
+ second: "s"
3716
3714
  },
3717
3715
  fr: {
3718
3716
  titleQRSessionGenerator: "Scannez le code QR pour accéder à votre compte sur les appareils en magasin.",
3719
3717
  generateQRButton: "Générer des QR",
3720
3718
  unauthorized: "L'authentification a échoué.",
3721
3719
  failedToFetch: "Impossible de générer le code QR, veuillez réessayer.",
3722
- unexpectedError: "Une erreur inattendue s'est produite. Veuillez réessayer plus tard."
3720
+ unexpectedError: "Une erreur inattendue s'est produite. Veuillez réessayer plus tard.",
3721
+ second: "s"
3723
3722
  }
3724
3723
  }, Y = "__WIDGET_GLOBAL_STYLE_CACHE__";
3725
- function Ki(e, t) {
3724
+ function ro(e, t) {
3726
3725
  if (e) {
3727
3726
  const n = document.createElement("style");
3728
3727
  n.innerHTML = t, e.appendChild(n);
3729
3728
  }
3730
3729
  }
3731
- function eo(e, t) {
3730
+ function io(e, t) {
3732
3731
  if (!e || !t)
3733
3732
  return;
3734
3733
  const n = new URL(t);
@@ -3739,12 +3738,12 @@ function eo(e, t) {
3739
3738
  console.error("There was an error while trying to load client styling from URL", r);
3740
3739
  });
3741
3740
  }
3742
- function to(e, t, n, r = !1) {
3741
+ function oo(e, t, n, r = !1) {
3743
3742
  if (!window.emMessageBus)
3744
3743
  return;
3745
3744
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
3746
- return n = no(e, t), n;
3747
- window[Y] || (window[Y] = {}), n = ro(e, t);
3745
+ return n = so(e, t), n;
3746
+ window[Y] || (window[Y] = {}), n = ao(e, t);
3748
3747
  const o = n.unsubscribe.bind(n), s = () => {
3749
3748
  if (window[Y][t]) {
3750
3749
  const a = window[Y][t];
@@ -3754,13 +3753,13 @@ function to(e, t, n, r = !1) {
3754
3753
  };
3755
3754
  return n.unsubscribe = s, n;
3756
3755
  }
3757
- function no(e, t) {
3756
+ function so(e, t) {
3758
3757
  const n = document.createElement("style");
3759
3758
  return window.emMessageBus.subscribe(t, (r) => {
3760
3759
  e && (n.innerHTML = r, e.appendChild(n));
3761
3760
  });
3762
3761
  }
3763
- function ro(e, t) {
3762
+ function ao(e, t) {
3764
3763
  return window.emMessageBus.subscribe(t, (n) => {
3765
3764
  if (!e)
3766
3765
  return;
@@ -3774,11 +3773,11 @@ function ro(e, t) {
3774
3773
  s.includes(o) || (r.adoptedStyleSheets = [...s, o]);
3775
3774
  });
3776
3775
  }
3777
- var _e = {}, io = function() {
3776
+ var ve = {}, uo = function() {
3778
3777
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
3779
- }, Bn = {}, L = {};
3780
- let vt;
3781
- const oo = [
3778
+ }, Nn = {}, H = {};
3779
+ let At;
3780
+ const lo = [
3782
3781
  0,
3783
3782
  // Not used
3784
3783
  26,
@@ -3822,34 +3821,34 @@ const oo = [
3822
3821
  3532,
3823
3822
  3706
3824
3823
  ];
3825
- L.getSymbolSize = function(t) {
3824
+ H.getSymbolSize = function(t) {
3826
3825
  if (!t)
3827
3826
  throw new Error('"version" cannot be null or undefined');
3828
3827
  if (t < 1 || t > 40)
3829
3828
  throw new Error('"version" should be in range from 1 to 40');
3830
3829
  return t * 4 + 17;
3831
3830
  };
3832
- L.getSymbolTotalCodewords = function(t) {
3833
- return oo[t];
3831
+ H.getSymbolTotalCodewords = function(t) {
3832
+ return lo[t];
3834
3833
  };
3835
- L.getBCHDigit = function(e) {
3834
+ H.getBCHDigit = function(e) {
3836
3835
  let t = 0;
3837
3836
  for (; e !== 0; )
3838
3837
  t++, e >>>= 1;
3839
3838
  return t;
3840
3839
  };
3841
- L.setToSJISFunction = function(t) {
3840
+ H.setToSJISFunction = function(t) {
3842
3841
  if (typeof t != "function")
3843
3842
  throw new Error('"toSJISFunc" is not a valid function.');
3844
- vt = t;
3843
+ At = t;
3845
3844
  };
3846
- L.isKanjiModeEnabled = function() {
3847
- return typeof vt < "u";
3845
+ H.isKanjiModeEnabled = function() {
3846
+ return typeof At < "u";
3848
3847
  };
3849
- L.toSJIS = function(t) {
3850
- return vt(t);
3848
+ H.toSJIS = function(t) {
3849
+ return At(t);
3851
3850
  };
3852
- var Ge = {};
3851
+ var Ve = {};
3853
3852
  (function(e) {
3854
3853
  e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
3855
3854
  function t(n) {
@@ -3883,11 +3882,11 @@ var Ge = {};
3883
3882
  return i;
3884
3883
  }
3885
3884
  };
3886
- })(Ge);
3887
- function Tn() {
3885
+ })(Ve);
3886
+ function Pn() {
3888
3887
  this.buffer = [], this.length = 0;
3889
3888
  }
3890
- Tn.prototype = {
3889
+ Pn.prototype = {
3891
3890
  get: function(e) {
3892
3891
  const t = Math.floor(e / 8);
3893
3892
  return (this.buffer[t] >>> 7 - e % 8 & 1) === 1;
@@ -3904,28 +3903,28 @@ Tn.prototype = {
3904
3903
  this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
3905
3904
  }
3906
3905
  };
3907
- var so = Tn;
3908
- function we(e) {
3906
+ var ho = Pn;
3907
+ function xe(e) {
3909
3908
  if (!e || e < 1)
3910
3909
  throw new Error("BitMatrix size must be defined and greater than 0");
3911
3910
  this.size = e, this.data = new Uint8Array(e * e), this.reservedBit = new Uint8Array(e * e);
3912
3911
  }
3913
- we.prototype.set = function(e, t, n, r) {
3912
+ xe.prototype.set = function(e, t, n, r) {
3914
3913
  const i = e * this.size + t;
3915
3914
  this.data[i] = n, r && (this.reservedBit[i] = !0);
3916
3915
  };
3917
- we.prototype.get = function(e, t) {
3916
+ xe.prototype.get = function(e, t) {
3918
3917
  return this.data[e * this.size + t];
3919
3918
  };
3920
- we.prototype.xor = function(e, t, n) {
3919
+ xe.prototype.xor = function(e, t, n) {
3921
3920
  this.data[e * this.size + t] ^= n;
3922
3921
  };
3923
- we.prototype.isReserved = function(e, t) {
3922
+ xe.prototype.isReserved = function(e, t) {
3924
3923
  return this.reservedBit[e * this.size + t];
3925
3924
  };
3926
- var ao = we, An = {};
3925
+ var co = xe, Hn = {};
3927
3926
  (function(e) {
3928
- const t = L.getSymbolSize;
3927
+ const t = H.getSymbolSize;
3929
3928
  e.getRowColCoords = function(r) {
3930
3929
  if (r === 1)
3931
3930
  return [];
@@ -3942,21 +3941,21 @@ var ao = we, An = {};
3942
3941
  a === s - 1 && u === 0 || i.push([o[a], o[u]]);
3943
3942
  return i;
3944
3943
  };
3945
- })(An);
3946
- var Cn = {};
3947
- const uo = L.getSymbolSize, Xt = 7;
3948
- Cn.getPositions = function(t) {
3949
- const n = uo(t);
3944
+ })(Hn);
3945
+ var In = {};
3946
+ const fo = H.getSymbolSize, qt = 7;
3947
+ In.getPositions = function(t) {
3948
+ const n = fo(t);
3950
3949
  return [
3951
3950
  // top-left
3952
3951
  [0, 0],
3953
3952
  // top-right
3954
- [n - Xt, 0],
3953
+ [n - qt, 0],
3955
3954
  // bottom-left
3956
- [0, n - Xt]
3955
+ [0, n - qt]
3957
3956
  ];
3958
3957
  };
3959
- var Nn = {};
3958
+ var Ln = {};
3960
3959
  (function(e) {
3961
3960
  e.Patterns = {
3962
3961
  PATTERN000: 0,
@@ -4052,9 +4051,9 @@ var Nn = {};
4052
4051
  }
4053
4052
  return a;
4054
4053
  };
4055
- })(Nn);
4056
- var $e = {};
4057
- const j = Ge, Se = [
4054
+ })(Ln);
4055
+ var ze = {};
4056
+ const V = Ve, Ae = [
4058
4057
  // L M Q H
4059
4058
  1,
4060
4059
  1,
@@ -4216,7 +4215,7 @@ const j = Ge, Se = [
4216
4215
  49,
4217
4216
  68,
4218
4217
  81
4219
- ], Be = [
4218
+ ], Ce = [
4220
4219
  // L M Q H
4221
4220
  7,
4222
4221
  10,
@@ -4379,56 +4378,56 @@ const j = Ge, Se = [
4379
4378
  2040,
4380
4379
  2430
4381
4380
  ];
4382
- $e.getBlocksCount = function(t, n) {
4381
+ ze.getBlocksCount = function(t, n) {
4383
4382
  switch (n) {
4384
- case j.L:
4385
- return Se[(t - 1) * 4 + 0];
4386
- case j.M:
4387
- return Se[(t - 1) * 4 + 1];
4388
- case j.Q:
4389
- return Se[(t - 1) * 4 + 2];
4390
- case j.H:
4391
- return Se[(t - 1) * 4 + 3];
4383
+ case V.L:
4384
+ return Ae[(t - 1) * 4 + 0];
4385
+ case V.M:
4386
+ return Ae[(t - 1) * 4 + 1];
4387
+ case V.Q:
4388
+ return Ae[(t - 1) * 4 + 2];
4389
+ case V.H:
4390
+ return Ae[(t - 1) * 4 + 3];
4392
4391
  default:
4393
4392
  return;
4394
4393
  }
4395
4394
  };
4396
- $e.getTotalCodewordsCount = function(t, n) {
4395
+ ze.getTotalCodewordsCount = function(t, n) {
4397
4396
  switch (n) {
4398
- case j.L:
4399
- return Be[(t - 1) * 4 + 0];
4400
- case j.M:
4401
- return Be[(t - 1) * 4 + 1];
4402
- case j.Q:
4403
- return Be[(t - 1) * 4 + 2];
4404
- case j.H:
4405
- return Be[(t - 1) * 4 + 3];
4397
+ case V.L:
4398
+ return Ce[(t - 1) * 4 + 0];
4399
+ case V.M:
4400
+ return Ce[(t - 1) * 4 + 1];
4401
+ case V.Q:
4402
+ return Ce[(t - 1) * 4 + 2];
4403
+ case V.H:
4404
+ return Ce[(t - 1) * 4 + 3];
4406
4405
  default:
4407
4406
  return;
4408
4407
  }
4409
4408
  };
4410
- var Pn = {}, ke = {};
4411
- const fe = new Uint8Array(512), Le = new Uint8Array(256);
4409
+ var Mn = {}, Xe = {};
4410
+ const ge = new Uint8Array(512), Ue = new Uint8Array(256);
4412
4411
  (function() {
4413
4412
  let t = 1;
4414
4413
  for (let n = 0; n < 255; n++)
4415
- fe[n] = t, Le[t] = n, t <<= 1, t & 256 && (t ^= 285);
4414
+ ge[n] = t, Ue[t] = n, t <<= 1, t & 256 && (t ^= 285);
4416
4415
  for (let n = 255; n < 512; n++)
4417
- fe[n] = fe[n - 255];
4416
+ ge[n] = ge[n - 255];
4418
4417
  })();
4419
- ke.log = function(t) {
4418
+ Xe.log = function(t) {
4420
4419
  if (t < 1)
4421
4420
  throw new Error("log(" + t + ")");
4422
- return Le[t];
4421
+ return Ue[t];
4423
4422
  };
4424
- ke.exp = function(t) {
4425
- return fe[t];
4423
+ Xe.exp = function(t) {
4424
+ return ge[t];
4426
4425
  };
4427
- ke.mul = function(t, n) {
4428
- return t === 0 || n === 0 ? 0 : fe[Le[t] + Le[n]];
4426
+ Xe.mul = function(t, n) {
4427
+ return t === 0 || n === 0 ? 0 : ge[Ue[t] + Ue[n]];
4429
4428
  };
4430
4429
  (function(e) {
4431
- const t = ke;
4430
+ const t = Xe;
4432
4431
  e.mul = function(r, i) {
4433
4432
  const o = new Uint8Array(r.length + i.length - 1);
4434
4433
  for (let s = 0; s < r.length; s++)
@@ -4453,53 +4452,53 @@ ke.mul = function(t, n) {
4453
4452
  i = e.mul(i, new Uint8Array([1, t.exp(o)]));
4454
4453
  return i;
4455
4454
  };
4456
- })(Pn);
4457
- const Hn = Pn;
4458
- function xt(e) {
4455
+ })(Mn);
4456
+ const Rn = Mn;
4457
+ function Ct(e) {
4459
4458
  this.genPoly = void 0, this.degree = e, this.degree && this.initialize(this.degree);
4460
4459
  }
4461
- xt.prototype.initialize = function(t) {
4462
- this.degree = t, this.genPoly = Hn.generateECPolynomial(this.degree);
4460
+ Ct.prototype.initialize = function(t) {
4461
+ this.degree = t, this.genPoly = Rn.generateECPolynomial(this.degree);
4463
4462
  };
4464
- xt.prototype.encode = function(t) {
4463
+ Ct.prototype.encode = function(t) {
4465
4464
  if (!this.genPoly)
4466
4465
  throw new Error("Encoder not initialized");
4467
4466
  const n = new Uint8Array(t.length + this.degree);
4468
4467
  n.set(t);
4469
- const r = Hn.mod(n, this.genPoly), i = this.degree - r.length;
4468
+ const r = Rn.mod(n, this.genPoly), i = this.degree - r.length;
4470
4469
  if (i > 0) {
4471
4470
  const o = new Uint8Array(this.degree);
4472
4471
  return o.set(r, i), o;
4473
4472
  }
4474
4473
  return r;
4475
4474
  };
4476
- var lo = xt, In = {}, V = {}, St = {};
4477
- St.isValid = function(t) {
4475
+ var go = Ct, On = {}, z = {}, Nt = {};
4476
+ Nt.isValid = function(t) {
4478
4477
  return !isNaN(t) && t >= 1 && t <= 40;
4479
4478
  };
4480
- var G = {};
4481
- const Ln = "[0-9]+", ho = "[A-Z $%*+\\-./:]+";
4482
- let pe = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
4483
- pe = pe.replace(/u/g, "\\u");
4484
- const co = "(?:(?![A-Z0-9 $%*+\\-./:]|" + pe + `)(?:.|[\r
4479
+ var F = {};
4480
+ const Un = "[0-9]+", mo = "[A-Z $%*+\\-./:]+";
4481
+ let ye = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
4482
+ ye = ye.replace(/u/g, "\\u");
4483
+ const po = "(?:(?![A-Z0-9 $%*+\\-./:]|" + ye + `)(?:.|[\r
4485
4484
  ]))+`;
4486
- G.KANJI = new RegExp(pe, "g");
4487
- G.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
4488
- G.BYTE = new RegExp(co, "g");
4489
- G.NUMERIC = new RegExp(Ln, "g");
4490
- G.ALPHANUMERIC = new RegExp(ho, "g");
4491
- const fo = new RegExp("^" + pe + "$"), go = new RegExp("^" + Ln + "$"), mo = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
4492
- G.testKanji = function(t) {
4493
- return fo.test(t);
4485
+ F.KANJI = new RegExp(ye, "g");
4486
+ F.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
4487
+ F.BYTE = new RegExp(po, "g");
4488
+ F.NUMERIC = new RegExp(Un, "g");
4489
+ F.ALPHANUMERIC = new RegExp(mo, "g");
4490
+ const bo = new RegExp("^" + ye + "$"), yo = new RegExp("^" + Un + "$"), Eo = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
4491
+ F.testKanji = function(t) {
4492
+ return bo.test(t);
4494
4493
  };
4495
- G.testNumeric = function(t) {
4496
- return go.test(t);
4494
+ F.testNumeric = function(t) {
4495
+ return yo.test(t);
4497
4496
  };
4498
- G.testAlphanumeric = function(t) {
4499
- return mo.test(t);
4497
+ F.testAlphanumeric = function(t) {
4498
+ return Eo.test(t);
4500
4499
  };
4501
4500
  (function(e) {
4502
- const t = St, n = G;
4501
+ const t = Nt, n = F;
4503
4502
  e.NUMERIC = {
4504
4503
  id: "Numeric",
4505
4504
  bit: 1,
@@ -4558,9 +4557,9 @@ G.testAlphanumeric = function(t) {
4558
4557
  return s;
4559
4558
  }
4560
4559
  };
4561
- })(V);
4560
+ })(z);
4562
4561
  (function(e) {
4563
- const t = L, n = $e, r = Ge, i = V, o = St, s = 7973, a = t.getBCHDigit(s);
4562
+ const t = H, n = ze, r = Ve, i = z, o = Nt, s = 7973, a = t.getBCHDigit(s);
4564
4563
  function u(c, d, m) {
4565
4564
  for (let p = 1; p <= 40; p++)
4566
4565
  if (d <= e.getCapacity(p, m, c))
@@ -4622,20 +4621,20 @@ G.testAlphanumeric = function(t) {
4622
4621
  m ^= s << t.getBCHDigit(m) - a;
4623
4622
  return d << 12 | m;
4624
4623
  };
4625
- })(In);
4626
- var Mn = {};
4627
- const mt = L, Rn = 1335, po = 21522, Qt = mt.getBCHDigit(Rn);
4628
- Mn.getEncodedBits = function(t, n) {
4624
+ })(On);
4625
+ var Dn = {};
4626
+ const _t = H, Fn = 1335, _o = 21522, Zt = _t.getBCHDigit(Fn);
4627
+ Dn.getEncodedBits = function(t, n) {
4629
4628
  const r = t.bit << 3 | n;
4630
4629
  let i = r << 10;
4631
- for (; mt.getBCHDigit(i) - Qt >= 0; )
4632
- i ^= Rn << mt.getBCHDigit(i) - Qt;
4633
- return (r << 10 | i) ^ po;
4630
+ for (; _t.getBCHDigit(i) - Zt >= 0; )
4631
+ i ^= Fn << _t.getBCHDigit(i) - Zt;
4632
+ return (r << 10 | i) ^ _o;
4634
4633
  };
4635
- var On = {};
4636
- const bo = V;
4634
+ var Gn = {};
4635
+ const wo = z;
4637
4636
  function ne(e) {
4638
- this.mode = bo.NUMERIC, this.data = e.toString();
4637
+ this.mode = wo.NUMERIC, this.data = e.toString();
4639
4638
  }
4640
4639
  ne.getBitsLength = function(t) {
4641
4640
  return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0);
@@ -4653,8 +4652,8 @@ ne.prototype.write = function(t) {
4653
4652
  const o = this.data.length - n;
4654
4653
  o > 0 && (r = this.data.substr(n), i = parseInt(r, 10), t.put(i, o * 3 + 1));
4655
4654
  };
4656
- var yo = ne;
4657
- const Eo = V, qe = [
4655
+ var vo = ne;
4656
+ const xo = z, nt = [
4658
4657
  "0",
4659
4658
  "1",
4660
4659
  "2",
@@ -4702,7 +4701,7 @@ const Eo = V, qe = [
4702
4701
  ":"
4703
4702
  ];
4704
4703
  function re(e) {
4705
- this.mode = Eo.ALPHANUMERIC, this.data = e;
4704
+ this.mode = xo.ALPHANUMERIC, this.data = e;
4706
4705
  }
4707
4706
  re.getBitsLength = function(t) {
4708
4707
  return 11 * Math.floor(t / 2) + 6 * (t % 2);
@@ -4716,15 +4715,15 @@ re.prototype.getBitsLength = function() {
4716
4715
  re.prototype.write = function(t) {
4717
4716
  let n;
4718
4717
  for (n = 0; n + 2 <= this.data.length; n += 2) {
4719
- let r = qe.indexOf(this.data[n]) * 45;
4720
- r += qe.indexOf(this.data[n + 1]), t.put(r, 11);
4718
+ let r = nt.indexOf(this.data[n]) * 45;
4719
+ r += nt.indexOf(this.data[n + 1]), t.put(r, 11);
4721
4720
  }
4722
- this.data.length % 2 && t.put(qe.indexOf(this.data[n]), 6);
4721
+ this.data.length % 2 && t.put(nt.indexOf(this.data[n]), 6);
4723
4722
  };
4724
- var _o = re;
4725
- const wo = V;
4723
+ var So = re;
4724
+ const Bo = z;
4726
4725
  function ie(e) {
4727
- this.mode = wo.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
4726
+ this.mode = Bo.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
4728
4727
  }
4729
4728
  ie.getBitsLength = function(t) {
4730
4729
  return t * 8;
@@ -4739,10 +4738,10 @@ ie.prototype.write = function(e) {
4739
4738
  for (let t = 0, n = this.data.length; t < n; t++)
4740
4739
  e.put(this.data[t], 8);
4741
4740
  };
4742
- var vo = ie;
4743
- const xo = V, So = L;
4741
+ var To = ie;
4742
+ const Ao = z, Co = H;
4744
4743
  function oe(e) {
4745
- this.mode = xo.KANJI, this.data = e;
4744
+ this.mode = Ao.KANJI, this.data = e;
4746
4745
  }
4747
4746
  oe.getBitsLength = function(t) {
4748
4747
  return t * 13;
@@ -4756,7 +4755,7 @@ oe.prototype.getBitsLength = function() {
4756
4755
  oe.prototype.write = function(e) {
4757
4756
  let t;
4758
4757
  for (t = 0; t < this.data.length; t++) {
4759
- let n = So.toSJIS(this.data[t]);
4758
+ let n = Co.toSJIS(this.data[t]);
4760
4759
  if (n >= 33088 && n <= 40956)
4761
4760
  n -= 33088;
4762
4761
  else if (n >= 57408 && n <= 60351)
@@ -4769,7 +4768,7 @@ Make sure your charset is UTF-8`
4769
4768
  n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
4770
4769
  }
4771
4770
  };
4772
- var Bo = oe, Un = { exports: {} };
4771
+ var No = oe, $n = { exports: {} };
4773
4772
  (function(e) {
4774
4773
  var t = {
4775
4774
  single_source_shortest_paths: function(n, r, i) {
@@ -4834,35 +4833,35 @@ var Bo = oe, Un = { exports: {} };
4834
4833
  }
4835
4834
  };
4836
4835
  e.exports = t;
4837
- })(Un);
4838
- var To = Un.exports;
4836
+ })($n);
4837
+ var Po = $n.exports;
4839
4838
  (function(e) {
4840
- const t = V, n = yo, r = _o, i = vo, o = Bo, s = G, a = L, u = To;
4839
+ const t = z, n = vo, r = So, i = To, o = No, s = F, a = H, u = Po;
4841
4840
  function l(g) {
4842
4841
  return unescape(encodeURIComponent(g)).length;
4843
4842
  }
4844
4843
  function h(g, y, b) {
4845
4844
  const E = [];
4846
- let w;
4847
- for (; (w = g.exec(b)) !== null; )
4845
+ let v;
4846
+ for (; (v = g.exec(b)) !== null; )
4848
4847
  E.push({
4849
- data: w[0],
4850
- index: w.index,
4848
+ data: v[0],
4849
+ index: v.index,
4851
4850
  mode: y,
4852
- length: w[0].length
4851
+ length: v[0].length
4853
4852
  });
4854
4853
  return E;
4855
4854
  }
4856
4855
  function f(g) {
4857
4856
  const y = h(s.NUMERIC, t.NUMERIC, g), b = h(s.ALPHANUMERIC, t.ALPHANUMERIC, g);
4858
- let E, w;
4859
- return a.isKanjiModeEnabled() ? (E = h(s.BYTE, t.BYTE, g), w = h(s.KANJI, t.KANJI, g)) : (E = h(s.BYTE_KANJI, t.BYTE, g), w = []), y.concat(b, E, w).sort(function(T, I) {
4860
- return T.index - I.index;
4861
- }).map(function(T) {
4857
+ let E, v;
4858
+ return a.isKanjiModeEnabled() ? (E = h(s.BYTE, t.BYTE, g), v = h(s.KANJI, t.KANJI, g)) : (E = h(s.BYTE_KANJI, t.BYTE, g), v = []), y.concat(b, E, v).sort(function(A, P) {
4859
+ return A.index - P.index;
4860
+ }).map(function(A) {
4862
4861
  return {
4863
- data: T.data,
4864
- mode: T.mode,
4865
- length: T.length
4862
+ data: A.data,
4863
+ mode: A.mode,
4864
+ length: A.length
4866
4865
  };
4867
4866
  });
4868
4867
  }
@@ -4918,21 +4917,21 @@ var To = Un.exports;
4918
4917
  }
4919
4918
  function p(g, y) {
4920
4919
  const b = {}, E = { start: {} };
4921
- let w = ["start"];
4920
+ let v = ["start"];
4922
4921
  for (let B = 0; B < g.length; B++) {
4923
- const T = g[B], I = [];
4924
- for (let x = 0; x < T.length; x++) {
4925
- const N = T[x], R = "" + B + x;
4926
- I.push(R), b[R] = { node: N, lastCount: 0 }, E[R] = {};
4927
- for (let z = 0; z < w.length; z++) {
4928
- const P = w[z];
4929
- b[P] && b[P].node.mode === N.mode ? (E[P][R] = c(b[P].lastCount + N.length, N.mode) - c(b[P].lastCount, N.mode), b[P].lastCount += N.length) : (b[P] && (b[P].lastCount = N.length), E[P][R] = c(N.length, N.mode) + 4 + t.getCharCountIndicator(N.mode, y));
4922
+ const A = g[B], P = [];
4923
+ for (let I = 0; I < A.length; I++) {
4924
+ const L = A[I], $ = "" + B + I;
4925
+ P.push($), b[$] = { node: L, lastCount: 0 }, E[$] = {};
4926
+ for (let he = 0; he < v.length; he++) {
4927
+ const w = v[he];
4928
+ b[w] && b[w].node.mode === L.mode ? (E[w][$] = c(b[w].lastCount + L.length, L.mode) - c(b[w].lastCount, L.mode), b[w].lastCount += L.length) : (b[w] && (b[w].lastCount = L.length), E[w][$] = c(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode, y));
4930
4929
  }
4931
4930
  }
4932
- w = I;
4931
+ v = P;
4933
4932
  }
4934
- for (let B = 0; B < w.length; B++)
4935
- E[w[B]].end = 0;
4933
+ for (let B = 0; B < v.length; B++)
4934
+ E[v[B]].end = 0;
4936
4935
  return { map: E, table: b };
4937
4936
  }
4938
4937
  function _(g, y) {
@@ -4957,19 +4956,19 @@ var To = Un.exports;
4957
4956
  return typeof E == "string" ? b.push(_(E, null)) : E.data && b.push(_(E.data, E.mode)), b;
4958
4957
  }, []);
4959
4958
  }, e.fromString = function(y, b) {
4960
- const E = f(y, a.isKanjiModeEnabled()), w = m(E), B = p(w, b), T = u.find_path(B.map, "start", "end"), I = [];
4961
- for (let x = 1; x < T.length - 1; x++)
4962
- I.push(B.table[T[x]].node);
4963
- return e.fromArray(d(I));
4959
+ const E = f(y, a.isKanjiModeEnabled()), v = m(E), B = p(v, b), A = u.find_path(B.map, "start", "end"), P = [];
4960
+ for (let I = 1; I < A.length - 1; I++)
4961
+ P.push(B.table[A[I]].node);
4962
+ return e.fromArray(d(P));
4964
4963
  }, e.rawSplit = function(y) {
4965
4964
  return e.fromArray(
4966
4965
  f(y, a.isKanjiModeEnabled())
4967
4966
  );
4968
4967
  };
4969
- })(On);
4970
- const je = L, Ze = Ge, Ao = so, Co = ao, No = An, Po = Cn, pt = Nn, bt = $e, Ho = lo, Me = In, Io = Mn, Lo = V, Ke = On;
4971
- function Mo(e, t) {
4972
- const n = e.size, r = Po.getPositions(t);
4968
+ })(Gn);
4969
+ const Qe = H, rt = Ve, Ho = ho, Io = co, Lo = Hn, Mo = In, wt = Ln, vt = ze, Ro = go, De = On, Oo = Dn, Uo = z, it = Gn;
4970
+ function Do(e, t) {
4971
+ const n = e.size, r = Mo.getPositions(t);
4973
4972
  for (let i = 0; i < r.length; i++) {
4974
4973
  const o = r[i][0], s = r[i][1];
4975
4974
  for (let a = -1; a <= 7; a++)
@@ -4978,15 +4977,15 @@ function Mo(e, t) {
4978
4977
  s + u <= -1 || n <= s + u || (a >= 0 && a <= 6 && (u === 0 || u === 6) || u >= 0 && u <= 6 && (a === 0 || a === 6) || a >= 2 && a <= 4 && u >= 2 && u <= 4 ? e.set(o + a, s + u, !0, !0) : e.set(o + a, s + u, !1, !0));
4979
4978
  }
4980
4979
  }
4981
- function Ro(e) {
4980
+ function Fo(e) {
4982
4981
  const t = e.size;
4983
4982
  for (let n = 8; n < t - 8; n++) {
4984
4983
  const r = n % 2 === 0;
4985
4984
  e.set(n, 6, r, !0), e.set(6, n, r, !0);
4986
4985
  }
4987
4986
  }
4988
- function Oo(e, t) {
4989
- const n = No.getPositions(t);
4987
+ function Go(e, t) {
4988
+ const n = Lo.getPositions(t);
4990
4989
  for (let r = 0; r < n.length; r++) {
4991
4990
  const i = n[r][0], o = n[r][1];
4992
4991
  for (let s = -2; s <= 2; s++)
@@ -4994,20 +4993,20 @@ function Oo(e, t) {
4994
4993
  s === -2 || s === 2 || a === -2 || a === 2 || s === 0 && a === 0 ? e.set(i + s, o + a, !0, !0) : e.set(i + s, o + a, !1, !0);
4995
4994
  }
4996
4995
  }
4997
- function Uo(e, t) {
4998
- const n = e.size, r = Me.getEncodedBits(t);
4996
+ function $o(e, t) {
4997
+ const n = e.size, r = De.getEncodedBits(t);
4999
4998
  let i, o, s;
5000
4999
  for (let a = 0; a < 18; a++)
5001
5000
  i = Math.floor(a / 3), o = a % 3 + n - 8 - 3, s = (r >> a & 1) === 1, e.set(i, o, s, !0), e.set(o, i, s, !0);
5002
5001
  }
5003
- function et(e, t, n) {
5004
- const r = e.size, i = Io.getEncodedBits(t, n);
5002
+ function ot(e, t, n) {
5003
+ const r = e.size, i = Oo.getEncodedBits(t, n);
5005
5004
  let o, s;
5006
5005
  for (o = 0; o < 15; o++)
5007
5006
  s = (i >> o & 1) === 1, o < 6 ? e.set(o, 8, s, !0) : o < 8 ? e.set(o + 1, 8, s, !0) : e.set(r - 15 + o, 8, s, !0), o < 8 ? e.set(8, r - o - 1, s, !0) : o < 9 ? e.set(8, 15 - o - 1 + 1, s, !0) : e.set(8, 15 - o - 1, s, !0);
5008
5007
  e.set(r - 8, 8, 1, !0);
5009
5008
  }
5010
- function Do(e, t) {
5009
+ function ko(e, t) {
5011
5010
  const n = e.size;
5012
5011
  let r = -1, i = n - 1, o = 7, s = 0;
5013
5012
  for (let a = n - 1; a > 0; a -= 2)
@@ -5023,53 +5022,53 @@ function Do(e, t) {
5023
5022
  }
5024
5023
  }
5025
5024
  }
5026
- function Fo(e, t, n) {
5027
- const r = new Ao();
5025
+ function jo(e, t, n) {
5026
+ const r = new Ho();
5028
5027
  n.forEach(function(u) {
5029
- r.put(u.mode.bit, 4), r.put(u.getLength(), Lo.getCharCountIndicator(u.mode, e)), u.write(r);
5028
+ r.put(u.mode.bit, 4), r.put(u.getLength(), Uo.getCharCountIndicator(u.mode, e)), u.write(r);
5030
5029
  });
5031
- const i = je.getSymbolTotalCodewords(e), o = bt.getTotalCodewordsCount(e, t), s = (i - o) * 8;
5030
+ const i = Qe.getSymbolTotalCodewords(e), o = vt.getTotalCodewordsCount(e, t), s = (i - o) * 8;
5032
5031
  for (r.getLengthInBits() + 4 <= s && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
5033
5032
  r.putBit(0);
5034
5033
  const a = (s - r.getLengthInBits()) / 8;
5035
5034
  for (let u = 0; u < a; u++)
5036
5035
  r.put(u % 2 ? 17 : 236, 8);
5037
- return Go(r, e, t);
5036
+ return Vo(r, e, t);
5038
5037
  }
5039
- function Go(e, t, n) {
5040
- const r = je.getSymbolTotalCodewords(t), i = bt.getTotalCodewordsCount(t, n), o = r - i, s = bt.getBlocksCount(t, n), a = r % s, u = s - a, l = Math.floor(r / s), h = Math.floor(o / s), f = h + 1, c = l - h, d = new Ho(c);
5038
+ function Vo(e, t, n) {
5039
+ const r = Qe.getSymbolTotalCodewords(t), i = vt.getTotalCodewordsCount(t, n), o = r - i, s = vt.getBlocksCount(t, n), a = r % s, u = s - a, l = Math.floor(r / s), h = Math.floor(o / s), f = h + 1, c = l - h, d = new Ro(c);
5041
5040
  let m = 0;
5042
5041
  const p = new Array(s), _ = new Array(s);
5043
5042
  let g = 0;
5044
5043
  const y = new Uint8Array(e.buffer);
5045
- for (let T = 0; T < s; T++) {
5046
- const I = T < u ? h : f;
5047
- p[T] = y.slice(m, m + I), _[T] = d.encode(p[T]), m += I, g = Math.max(g, I);
5044
+ for (let A = 0; A < s; A++) {
5045
+ const P = A < u ? h : f;
5046
+ p[A] = y.slice(m, m + P), _[A] = d.encode(p[A]), m += P, g = Math.max(g, P);
5048
5047
  }
5049
5048
  const b = new Uint8Array(r);
5050
- let E = 0, w, B;
5051
- for (w = 0; w < g; w++)
5049
+ let E = 0, v, B;
5050
+ for (v = 0; v < g; v++)
5052
5051
  for (B = 0; B < s; B++)
5053
- w < p[B].length && (b[E++] = p[B][w]);
5054
- for (w = 0; w < c; w++)
5052
+ v < p[B].length && (b[E++] = p[B][v]);
5053
+ for (v = 0; v < c; v++)
5055
5054
  for (B = 0; B < s; B++)
5056
- b[E++] = _[B][w];
5055
+ b[E++] = _[B][v];
5057
5056
  return b;
5058
5057
  }
5059
- function $o(e, t, n, r) {
5058
+ function zo(e, t, n, r) {
5060
5059
  let i;
5061
5060
  if (Array.isArray(e))
5062
- i = Ke.fromArray(e);
5061
+ i = it.fromArray(e);
5063
5062
  else if (typeof e == "string") {
5064
5063
  let l = t;
5065
5064
  if (!l) {
5066
- const h = Ke.rawSplit(e);
5067
- l = Me.getBestVersionForData(h, n);
5065
+ const h = it.rawSplit(e);
5066
+ l = De.getBestVersionForData(h, n);
5068
5067
  }
5069
- i = Ke.fromString(e, l || 40);
5068
+ i = it.fromString(e, l || 40);
5070
5069
  } else
5071
5070
  throw new Error("Invalid data");
5072
- const o = Me.getBestVersionForData(i, n);
5071
+ const o = De.getBestVersionForData(i, n);
5073
5072
  if (!o)
5074
5073
  throw new Error("The amount of data is too big to be stored in a QR Code");
5075
5074
  if (!t)
@@ -5081,11 +5080,11 @@ The chosen QR Code version cannot contain this amount of data.
5081
5080
  Minimum version required to store current data is: ` + o + `.
5082
5081
  `
5083
5082
  );
5084
- const s = Fo(t, n, i), a = je.getSymbolSize(t), u = new Co(a);
5085
- return Mo(u, t), Ro(u), Oo(u, t), et(u, n, 0), t >= 7 && Uo(u, t), Do(u, s), isNaN(r) && (r = pt.getBestMask(
5083
+ const s = jo(t, n, i), a = Qe.getSymbolSize(t), u = new Io(a);
5084
+ return Do(u, t), Fo(u), Go(u, t), ot(u, n, 0), t >= 7 && $o(u, t), ko(u, s), isNaN(r) && (r = wt.getBestMask(
5086
5085
  u,
5087
- et.bind(null, u, n)
5088
- )), pt.applyMask(r, u), et(u, n, r), {
5086
+ ot.bind(null, u, n)
5087
+ )), wt.applyMask(r, u), ot(u, n, r), {
5089
5088
  modules: u,
5090
5089
  version: t,
5091
5090
  errorCorrectionLevel: n,
@@ -5093,13 +5092,13 @@ Minimum version required to store current data is: ` + o + `.
5093
5092
  segments: i
5094
5093
  };
5095
5094
  }
5096
- Bn.create = function(t, n) {
5095
+ Nn.create = function(t, n) {
5097
5096
  if (typeof t > "u" || t === "")
5098
5097
  throw new Error("No input text");
5099
- let r = Ze.M, i, o;
5100
- return typeof n < "u" && (r = Ze.from(n.errorCorrectionLevel, Ze.M), i = Me.from(n.version), o = pt.from(n.maskPattern), n.toSJISFunc && je.setToSJISFunction(n.toSJISFunc)), $o(t, i, r, o);
5098
+ let r = rt.M, i, o;
5099
+ return typeof n < "u" && (r = rt.from(n.errorCorrectionLevel, rt.M), i = De.from(n.version), o = wt.from(n.maskPattern), n.toSJISFunc && Qe.setToSJISFunction(n.toSJISFunc)), zo(t, i, r, o);
5101
5100
  };
5102
- var Dn = {}, Bt = {};
5101
+ var kn = {}, Pt = {};
5103
5102
  (function(e) {
5104
5103
  function t(n) {
5105
5104
  if (typeof n == "number" && (n = n.toString()), typeof n != "string")
@@ -5150,9 +5149,9 @@ var Dn = {}, Bt = {};
5150
5149
  r[m++] = p.r, r[m++] = p.g, r[m++] = p.b, r[m] = p.a;
5151
5150
  }
5152
5151
  };
5153
- })(Bt);
5152
+ })(Pt);
5154
5153
  (function(e) {
5155
- const t = Bt;
5154
+ const t = Pt;
5156
5155
  function n(i, o, s) {
5157
5156
  i.clearRect(0, 0, o.width, o.height), o.style || (o.style = {}), o.height = s, o.width = s, o.style.height = s + "px", o.style.width = s + "px";
5158
5157
  }
@@ -5174,34 +5173,34 @@ var Dn = {}, Bt = {};
5174
5173
  const l = e.render(o, s, u), h = u.type || "image/png", f = u.rendererOpts || {};
5175
5174
  return l.toDataURL(h, f.quality);
5176
5175
  };
5177
- })(Dn);
5178
- var Fn = {};
5179
- const ko = Bt;
5180
- function Jt(e, t) {
5176
+ })(kn);
5177
+ var jn = {};
5178
+ const Xo = Pt;
5179
+ function Kt(e, t) {
5181
5180
  const n = e.a / 255, r = t + '="' + e.hex + '"';
5182
5181
  return n < 1 ? r + " " + t + '-opacity="' + n.toFixed(2).slice(1) + '"' : r;
5183
5182
  }
5184
- function tt(e, t, n) {
5183
+ function st(e, t, n) {
5185
5184
  let r = e + t;
5186
5185
  return typeof n < "u" && (r += " " + n), r;
5187
5186
  }
5188
- function jo(e, t, n) {
5187
+ function Qo(e, t, n) {
5189
5188
  let r = "", i = 0, o = !1, s = 0;
5190
5189
  for (let a = 0; a < e.length; a++) {
5191
5190
  const u = Math.floor(a % t), l = Math.floor(a / t);
5192
- !u && !o && (o = !0), e[a] ? (s++, a > 0 && u > 0 && e[a - 1] || (r += o ? tt("M", u + n, 0.5 + l + n) : tt("m", i, 0), i = 0, o = !1), u + 1 < t && e[a + 1] || (r += tt("h", s), s = 0)) : i++;
5191
+ !u && !o && (o = !0), e[a] ? (s++, a > 0 && u > 0 && e[a - 1] || (r += o ? st("M", u + n, 0.5 + l + n) : st("m", i, 0), i = 0, o = !1), u + 1 < t && e[a + 1] || (r += st("h", s), s = 0)) : i++;
5193
5192
  }
5194
5193
  return r;
5195
5194
  }
5196
- Fn.render = function(t, n, r) {
5197
- const i = ko.getOptions(n), o = t.modules.size, s = t.modules.data, a = o + i.margin * 2, u = i.color.light.a ? "<path " + Jt(i.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", l = "<path " + Jt(i.color.dark, "stroke") + ' d="' + jo(s, o, i.margin) + '"/>', h = 'viewBox="0 0 ' + a + " " + a + '"', c = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + h + ' shape-rendering="crispEdges">' + u + l + `</svg>
5195
+ jn.render = function(t, n, r) {
5196
+ const i = Xo.getOptions(n), o = t.modules.size, s = t.modules.data, a = o + i.margin * 2, u = i.color.light.a ? "<path " + Kt(i.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", l = "<path " + Kt(i.color.dark, "stroke") + ' d="' + Qo(s, o, i.margin) + '"/>', h = 'viewBox="0 0 ' + a + " " + a + '"', c = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + h + ' shape-rendering="crispEdges">' + u + l + `</svg>
5198
5197
  `;
5199
5198
  return typeof r == "function" && r(null, c), c;
5200
5199
  };
5201
- const Vo = io, yt = Bn, Gn = Dn, zo = Fn;
5202
- function Tt(e, t, n, r, i) {
5200
+ const Jo = uo, xt = Nn, Vn = kn, Wo = jn;
5201
+ function Ht(e, t, n, r, i) {
5203
5202
  const o = [].slice.call(arguments, 1), s = o.length, a = typeof o[s - 1] == "function";
5204
- if (!a && !Vo())
5203
+ if (!a && !Jo())
5205
5204
  throw new Error("Callback required as last argument");
5206
5205
  if (a) {
5207
5206
  if (s < 2)
@@ -5212,7 +5211,7 @@ function Tt(e, t, n, r, i) {
5212
5211
  throw new Error("Too few arguments provided");
5213
5212
  return s === 1 ? (n = t, t = r = void 0) : s === 2 && !t.getContext && (r = n, n = t, t = void 0), new Promise(function(u, l) {
5214
5213
  try {
5215
- const h = yt.create(n, r);
5214
+ const h = xt.create(n, r);
5216
5215
  u(e(h, t, r));
5217
5216
  } catch (h) {
5218
5217
  l(h);
@@ -5220,49 +5219,50 @@ function Tt(e, t, n, r, i) {
5220
5219
  });
5221
5220
  }
5222
5221
  try {
5223
- const u = yt.create(n, r);
5222
+ const u = xt.create(n, r);
5224
5223
  i(null, e(u, t, r));
5225
5224
  } catch (u) {
5226
5225
  i(u);
5227
5226
  }
5228
5227
  }
5229
- _e.create = yt.create;
5230
- _e.toCanvas = Tt.bind(null, Gn.render);
5231
- _e.toDataURL = Tt.bind(null, Gn.renderToDataURL);
5232
- _e.toString = Tt.bind(null, function(e, t, n) {
5233
- return zo.render(e, n);
5228
+ ve.create = xt.create;
5229
+ ve.toCanvas = Ht.bind(null, Vn.render);
5230
+ ve.toDataURL = Ht.bind(null, Vn.renderToDataURL);
5231
+ ve.toString = Ht.bind(null, function(e, t, n) {
5232
+ return Wo.render(e, n);
5234
5233
  });
5235
- function Xo(e) {
5236
- jn(e, "svelte-ty0b2n", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto 0 0}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22b04e));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22b04e)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22b04e)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
5234
+ var Ie = /* @__PURE__ */ ((e) => (e.unauthorizedError = "unauthorized", e.unexpectedError = "unexpectedError", e.failedToFetch = "failedToFetch", e))(Ie || {});
5235
+ function Yo(e) {
5236
+ Qn(e, "svelte-ty0b2n", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto 0 0}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22b04e));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22b04e)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22b04e)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
5237
5237
  }
5238
- function Qo(e) {
5238
+ function qo(e) {
5239
5239
  let t, n, r;
5240
5240
  return {
5241
5241
  c() {
5242
- t = F("div"), n = F("img"), U(n, "class", "qr-image"), Ct(n.src, r = /*qrImageUrl*/
5243
- e[3]) || U(n, "src", r), U(n, "alt", "qr-session-login"), U(t, "class", "qr-section");
5242
+ t = D("div"), n = D("img"), O(n, "class", "qr-image"), Lt(n.src, r = /*qrImageUrl*/
5243
+ e[3]) || O(n, "src", r), O(n, "alt", "qr-session-login"), O(t, "class", "qr-section");
5244
5244
  },
5245
5245
  m(i, o) {
5246
- ye(i, t, o), O(t, n);
5246
+ _e(i, t, o), R(t, n);
5247
5247
  },
5248
5248
  p(i, o) {
5249
5249
  o & /*qrImageUrl*/
5250
- 8 && !Ct(n.src, r = /*qrImageUrl*/
5251
- i[3]) && U(n, "src", r);
5250
+ 8 && !Lt(n.src, r = /*qrImageUrl*/
5251
+ i[3]) && O(n, "src", r);
5252
5252
  },
5253
5253
  d(i) {
5254
5254
  i && se(t);
5255
5255
  }
5256
5256
  };
5257
5257
  }
5258
- function Jo(e) {
5258
+ function Zo(e) {
5259
5259
  let t;
5260
5260
  return {
5261
5261
  c() {
5262
- t = F("div"), U(t, "class", "LoadingSpinner");
5262
+ t = D("div"), O(t, "class", "LoadingSpinner");
5263
5263
  },
5264
5264
  m(n, r) {
5265
- ye(n, t, r);
5265
+ _e(n, t, r);
5266
5266
  },
5267
5267
  p: M,
5268
5268
  d(n) {
@@ -5270,7 +5270,7 @@ function Jo(e) {
5270
5270
  }
5271
5271
  };
5272
5272
  }
5273
- function Wo(e) {
5273
+ function Ko(e) {
5274
5274
  let t, n = (
5275
5275
  /*$_*/
5276
5276
  e[5](
@@ -5280,10 +5280,10 @@ function Wo(e) {
5280
5280
  ), r;
5281
5281
  return {
5282
5282
  c() {
5283
- t = F("p"), r = Ne(n), U(t, "class", "generate-qr-error-message");
5283
+ t = D("p"), r = Le(n), O(t, "class", "generate-qr-error-message");
5284
5284
  },
5285
5285
  m(i, o) {
5286
- ye(i, t, o), O(t, r);
5286
+ _e(i, t, o), R(t, r);
5287
5287
  },
5288
5288
  p(i, o) {
5289
5289
  o & /*$_, errorCode*/
@@ -5291,21 +5291,22 @@ function Wo(e) {
5291
5291
  i[5](
5292
5292
  /*errorCode*/
5293
5293
  i[4]
5294
- ) + "") && nt(r, n);
5294
+ ) + "") && at(r, n);
5295
5295
  },
5296
5296
  d(i) {
5297
5297
  i && se(t);
5298
5298
  }
5299
5299
  };
5300
5300
  }
5301
- function Yo(e) {
5301
+ function es(e) {
5302
5302
  let t, n, r, i = (
5303
5303
  /*$_*/
5304
5304
  e[5]("titleQRSessionGenerator") + ""
5305
5305
  ), o, s, a, u = (
5306
5306
  /*remaining*/
5307
5307
  (e[1] > 0 ? `${/*remaining*/
5308
- e[1]}s` : (
5308
+ e[1]}${/*$_*/
5309
+ e[5]("second")}` : (
5309
5310
  /*$_*/
5310
5311
  e[5]("generateQRButton")
5311
5312
  )) + ""
@@ -5315,27 +5316,27 @@ function Yo(e) {
5315
5316
  /*errorCode*/
5316
5317
  g[4]
5317
5318
  )
5318
- return Wo;
5319
+ return Ko;
5319
5320
  if (
5320
5321
  /*isGenerating*/
5321
5322
  g[2]
5322
5323
  )
5323
- return Jo;
5324
+ return Zo;
5324
5325
  if (
5325
5326
  /*qrImageUrl*/
5326
5327
  g[3]
5327
5328
  )
5328
- return Qo;
5329
+ return qo;
5329
5330
  }
5330
5331
  let p = m(e), _ = p && p(e);
5331
5332
  return {
5332
5333
  c() {
5333
- t = F("div"), n = F("div"), r = F("p"), o = Ne(i), s = Nt(), a = F("button"), l = Ne(u), f = Nt(), _ && _.c(), U(a, "class", "generate-qr-btn"), a.disabled = h = /*isGenerating*/
5334
+ t = D("div"), n = D("div"), r = D("p"), o = Le(i), s = Mt(), a = D("button"), l = Le(u), f = Mt(), _ && _.c(), O(a, "class", "generate-qr-btn"), a.disabled = h = /*isGenerating*/
5334
5335
  e[2] || /*remaining*/
5335
- e[1] > 0, U(n, "class", "qr-session-generator");
5336
+ e[1] > 0, O(n, "class", "qr-session-generator");
5336
5337
  },
5337
5338
  m(g, y) {
5338
- ye(g, t, y), O(t, n), O(n, r), O(r, o), O(n, s), O(n, a), O(a, l), O(n, f), _ && _.m(n, null), e[14](t), c || (d = Xn(
5339
+ _e(g, t, y), R(t, n), R(n, r), R(r, o), R(n, s), R(n, a), R(a, l), R(n, f), _ && _.m(n, null), e[14](t), c || (d = Yn(
5339
5340
  a,
5340
5341
  "click",
5341
5342
  /*onGenerateQRClick*/
@@ -5345,13 +5346,14 @@ function Yo(e) {
5345
5346
  p(g, [y]) {
5346
5347
  y & /*$_*/
5347
5348
  32 && i !== (i = /*$_*/
5348
- g[5]("titleQRSessionGenerator") + "") && nt(o, i), y & /*remaining, $_*/
5349
+ g[5]("titleQRSessionGenerator") + "") && at(o, i), y & /*remaining, $_*/
5349
5350
  34 && u !== (u = /*remaining*/
5350
5351
  (g[1] > 0 ? `${/*remaining*/
5351
- g[1]}s` : (
5352
+ g[1]}${/*$_*/
5353
+ g[5]("second")}` : (
5352
5354
  /*$_*/
5353
5355
  g[5]("generateQRButton")
5354
- )) + "") && nt(l, u), y & /*isGenerating, remaining*/
5356
+ )) + "") && at(l, u), y & /*isGenerating, remaining*/
5355
5357
  6 && h !== (h = /*isGenerating*/
5356
5358
  g[2] || /*remaining*/
5357
5359
  g[1] > 0) && (a.disabled = h), p === (p = m(g)) && _ ? _.p(g, y) : (_ && _.d(1), _ = p && p(g), _ && (_.c(), _.m(n, null)));
@@ -5363,80 +5365,85 @@ function Yo(e) {
5363
5365
  }
5364
5366
  };
5365
5367
  }
5366
- const qo = 60;
5367
- function Zo(e, t, n) {
5368
+ const ts = 60, ns = 1e3;
5369
+ function rs(e, t, n) {
5368
5370
  let r;
5369
- kn(e, qi, (x) => n(5, r = x));
5371
+ Xn(e, to, (w) => n(5, r = w));
5370
5372
  let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { lang: a = "en" } = t, { endpoint: u = "" } = t, { sessionid: l } = t, { translationurl: h } = t;
5371
5373
  const f = {
5372
- "gm.norway.unauthorized": "unauthorizedError"
5374
+ "gm.norway.unauthorized": Ie.unauthorizedError
5373
5375
  };
5374
5376
  let c, d, m = 0, p = !1, _ = null, g = null, y = null;
5375
- Wn(() => () => {
5376
- });
5377
- const b = () => {
5378
- fetch(h).then((N) => N.json()).then((N) => {
5379
- Object.keys(N).forEach((R) => {
5380
- Vt(R, N[R]);
5377
+ const b = async () => {
5378
+ const w = h;
5379
+ try {
5380
+ const Se = await (await fetch(w)).json();
5381
+ Object.keys(Se).forEach((k) => {
5382
+ Wt(k, Se[k]);
5381
5383
  });
5382
- }).catch((N) => {
5383
- console.error(N);
5384
- });
5384
+ } catch (ce) {
5385
+ console.error(ce);
5386
+ }
5385
5387
  };
5386
- Object.keys(zt).forEach((x) => {
5387
- Vt(x, zt[x]);
5388
+ Object.keys(Yt).forEach((w) => {
5389
+ Wt(w, Yt[w]);
5388
5390
  });
5389
5391
  const E = () => {
5390
- Zi(a);
5391
- }, w = async () => {
5392
- if (p || m > 0)
5393
- return;
5394
- n(2, p = !0), n(4, y = null), n(3, g = null), n(1, m = qo), B();
5395
- const x = new URL(`${u}/api/pam/v1/qr/authenticate`), N = new Headers();
5396
- N.append("X-SessionID", l);
5397
- const R = { method: "POST", headers: N };
5398
- n(4, y = null);
5399
- const z = await fetch(x.href, R);
5392
+ no(a);
5393
+ }, v = async (w) => {
5394
+ n(3, g = await ve.toDataURL(w));
5395
+ }, B = (w) => {
5396
+ n(4, y = w), $();
5397
+ }, A = async () => {
5398
+ const w = new URL(`${u}/api/pam/v1/qr/authenticate`), ce = new Headers();
5399
+ ce.append("X-SessionID", l);
5400
+ const Se = { method: "POST", headers: ce };
5400
5401
  try {
5401
- if (z.ok) {
5402
- const P = await z.json();
5403
- n(3, g = await _e.toDataURL(JSON.stringify(P)));
5402
+ const k = await fetch(w.href, Se);
5403
+ if (k.ok) {
5404
+ const Je = await k.json();
5405
+ await v(JSON.stringify(Je));
5404
5406
  } else {
5405
- const P = await z.json();
5406
- n(4, y = f[P.Code] ?? "unexpectedError"), T();
5407
+ const Je = await k.json();
5408
+ B(f[Je.Code] ?? Ie.unexpectedError);
5407
5409
  }
5408
- } catch (P) {
5409
- console.error(P), n(4, y = "failedToFetch"), T();
5410
+ } catch (k) {
5411
+ console.error(k), B(Ie.failedToFetch);
5410
5412
  } finally {
5411
5413
  n(2, p = !1);
5412
5414
  }
5415
+ }, P = async () => {
5416
+ p || m > 0 || (n(2, p = !0), n(4, y = null), n(3, g = null), n(1, m = ts), L(), await A());
5413
5417
  };
5414
- function B() {
5415
- _ !== null && clearInterval(_), _ = setInterval(
5418
+ function I() {
5419
+ _ !== null && clearInterval(_);
5420
+ }
5421
+ function L() {
5422
+ I(), _ = setInterval(
5416
5423
  () => {
5417
- m > 1 ? n(1, m -= 1) : (n(1, m = 0), n(2, p = !1), n(3, g = null), T());
5424
+ m > 1 ? n(1, m -= 1) : (n(1, m = 0), n(2, p = !1), n(3, g = null), $());
5418
5425
  },
5419
- 1e3
5426
+ ns
5420
5427
  );
5421
5428
  }
5422
- function T() {
5423
- _ !== null && (clearInterval(_), _ = null), n(1, m = 0);
5429
+ function $() {
5430
+ I(), _ = null, n(1, m = 0);
5424
5431
  }
5425
- Yn(() => {
5426
- _ !== null && clearInterval(_);
5432
+ er(() => {
5433
+ I();
5427
5434
  });
5428
- function I(x) {
5429
- rt[x ? "unshift" : "push"](() => {
5430
- c = x, n(0, c);
5435
+ function he(w) {
5436
+ ut[w ? "unshift" : "push"](() => {
5437
+ c = w, n(0, c);
5431
5438
  });
5432
5439
  }
5433
- return e.$$set = (x) => {
5434
- "clientstyling" in x && n(7, i = x.clientstyling), "clientstylingurl" in x && n(8, o = x.clientstylingurl), "mbsource" in x && n(9, s = x.mbsource), "lang" in x && n(10, a = x.lang), "endpoint" in x && n(11, u = x.endpoint), "sessionid" in x && n(12, l = x.sessionid), "translationurl" in x && n(13, h = x.translationurl);
5440
+ return e.$$set = (w) => {
5441
+ "clientstyling" in w && n(7, i = w.clientstyling), "clientstylingurl" in w && n(8, o = w.clientstylingurl), "mbsource" in w && n(9, s = w.mbsource), "lang" in w && n(10, a = w.lang), "endpoint" in w && n(11, u = w.endpoint), "sessionid" in w && n(12, l = w.sessionid), "translationurl" in w && n(13, h = w.translationurl);
5435
5442
  }, e.$$.update = () => {
5436
5443
  e.$$.dirty & /*clientstyling, customStylingContainer*/
5437
- 129 && i && c && Ki(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5438
- 257 && o && c && eo(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
5439
- 513 && s && c && to(c, `${s}.Style`, d), e.$$.dirty & /*lang*/
5444
+ 129 && i && c && ro(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5445
+ 257 && o && c && io(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
5446
+ 513 && s && c && oo(c, `${s}.Style`, d), e.$$.dirty & /*lang*/
5440
5447
  1024 && a && E(), e.$$.dirty & /*translationurl*/
5441
5448
  8192 && h && b();
5442
5449
  }, [
@@ -5446,7 +5453,7 @@ function Zo(e, t, n) {
5446
5453
  g,
5447
5454
  y,
5448
5455
  r,
5449
- w,
5456
+ P,
5450
5457
  i,
5451
5458
  o,
5452
5459
  s,
@@ -5454,17 +5461,17 @@ function Zo(e, t, n) {
5454
5461
  u,
5455
5462
  l,
5456
5463
  h,
5457
- I
5464
+ he
5458
5465
  ];
5459
5466
  }
5460
- class Ko extends ur {
5467
+ class is extends fr {
5461
5468
  constructor(t) {
5462
- super(), sr(
5469
+ super(), hr(
5463
5470
  this,
5464
5471
  t,
5465
- Zo,
5466
- Yo,
5467
- Yt,
5472
+ rs,
5473
+ es,
5474
+ tn,
5468
5475
  {
5469
5476
  clientstyling: 7,
5470
5477
  clientstylingurl: 8,
@@ -5474,53 +5481,53 @@ class Ko extends ur {
5474
5481
  sessionid: 12,
5475
5482
  translationurl: 13
5476
5483
  },
5477
- Xo
5484
+ Yo
5478
5485
  );
5479
5486
  }
5480
5487
  get clientstyling() {
5481
5488
  return this.$$.ctx[7];
5482
5489
  }
5483
5490
  set clientstyling(t) {
5484
- this.$$set({ clientstyling: t }), $();
5491
+ this.$$set({ clientstyling: t }), G();
5485
5492
  }
5486
5493
  get clientstylingurl() {
5487
5494
  return this.$$.ctx[8];
5488
5495
  }
5489
5496
  set clientstylingurl(t) {
5490
- this.$$set({ clientstylingurl: t }), $();
5497
+ this.$$set({ clientstylingurl: t }), G();
5491
5498
  }
5492
5499
  get mbsource() {
5493
5500
  return this.$$.ctx[9];
5494
5501
  }
5495
5502
  set mbsource(t) {
5496
- this.$$set({ mbsource: t }), $();
5503
+ this.$$set({ mbsource: t }), G();
5497
5504
  }
5498
5505
  get lang() {
5499
5506
  return this.$$.ctx[10];
5500
5507
  }
5501
5508
  set lang(t) {
5502
- this.$$set({ lang: t }), $();
5509
+ this.$$set({ lang: t }), G();
5503
5510
  }
5504
5511
  get endpoint() {
5505
5512
  return this.$$.ctx[11];
5506
5513
  }
5507
5514
  set endpoint(t) {
5508
- this.$$set({ endpoint: t }), $();
5515
+ this.$$set({ endpoint: t }), G();
5509
5516
  }
5510
5517
  get sessionid() {
5511
5518
  return this.$$.ctx[12];
5512
5519
  }
5513
5520
  set sessionid(t) {
5514
- this.$$set({ sessionid: t }), $();
5521
+ this.$$set({ sessionid: t }), G();
5515
5522
  }
5516
5523
  get translationurl() {
5517
5524
  return this.$$.ctx[13];
5518
5525
  }
5519
5526
  set translationurl(t) {
5520
- this.$$set({ translationurl: t }), $();
5527
+ this.$$set({ translationurl: t }), G();
5521
5528
  }
5522
5529
  }
5523
- ar(Ko, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, sessionid: {}, translationurl: {} }, [], [], !0);
5530
+ cr(is, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, sessionid: {}, translationurl: {} }, [], [], !0);
5524
5531
  export {
5525
- Ko as Q
5532
+ is as Q
5526
5533
  };