@everymatrix/qr-session-generator 0.2.2 → 1.92.5

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,17 +1,17 @@
1
- var Jn = Object.defineProperty, Wn = Object.defineProperties;
2
- var Yn = Object.getOwnPropertyDescriptors;
3
- var Ht = Object.getOwnPropertySymbols;
4
- var qn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable;
5
- var Xe = (e, t, n) => t in e ? Jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, It = (e, t) => {
1
+ var Zn = Object.defineProperty, Kn = Object.defineProperties;
2
+ var er = Object.getOwnPropertyDescriptors;
3
+ var Ot = Object.getOwnPropertySymbols;
4
+ var tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
+ var Ze = (e, t, n) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ut = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- qn.call(t, n) && Xe(e, n, t[n]);
8
- if (Ht)
9
- for (var n of Ht(t))
10
- Zn.call(t, n) && Xe(e, n, t[n]);
7
+ tr.call(t, n) && Ze(e, n, t[n]);
8
+ if (Ot)
9
+ for (var n of Ot(t))
10
+ nr.call(t, n) && Ze(e, n, t[n]);
11
11
  return e;
12
- }, Lt = (e, t) => Wn(e, Yn(t));
13
- var M = (e, t, n) => (Xe(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Qe = (e, t, n) => new Promise((r, i) => {
12
+ }, Dt = (e, t) => Kn(e, er(t));
13
+ var M = (e, t, n) => (Ze(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Q = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (u) => {
16
16
  try {
17
17
  a(n.next(u));
@@ -29,29 +29,29 @@ var Qe = (e, t, n) => new Promise((r, i) => {
29
29
  });
30
30
  function R() {
31
31
  }
32
- function nn(e) {
32
+ function un(e) {
33
33
  return e();
34
34
  }
35
- function Mt() {
35
+ function Ft() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function Ee(e) {
39
- e.forEach(nn);
38
+ function ve(e) {
39
+ e.forEach(un);
40
40
  }
41
- function xt(e) {
41
+ function Ct(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function rn(e, t) {
44
+ function ln(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let Se;
48
- function Rt(e, t) {
49
- return e === t ? !0 : (Se || (Se = document.createElement("a")), Se.href = t, e === Se.href);
47
+ let Ce;
48
+ function Gt(e, t) {
49
+ return e === t ? !0 : (Ce || (Ce = document.createElement("a")), Ce.href = t, e === Ce.href);
50
50
  }
51
- function Kn(e) {
51
+ function rr(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function on(e, ...t) {
54
+ function hn(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const r of t)
57
57
  r(void 0);
@@ -60,20 +60,20 @@ function on(e, ...t) {
60
60
  const n = e.subscribe(...t);
61
61
  return n.unsubscribe ? () => n.unsubscribe() : n;
62
62
  }
63
- function er(e, t, n) {
64
- e.$$.on_destroy.push(on(t, n));
63
+ function ir(e, t, n) {
64
+ e.$$.on_destroy.push(hn(t, n));
65
65
  }
66
- function U(e, t) {
66
+ function O(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function tr(e, t, n) {
70
- const r = nr(e);
69
+ function or(e, t, n) {
70
+ const r = sr(e);
71
71
  if (!r.getElementById(t)) {
72
- const i = G("style");
73
- i.id = t, i.textContent = n, rr(r, i);
72
+ const i = F("style");
73
+ i.id = t, i.textContent = n, ar(r, i);
74
74
  }
75
75
  }
76
- function nr(e) {
76
+ function sr(e) {
77
77
  if (!e)
78
78
  return document;
79
79
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -83,42 +83,42 @@ function nr(e) {
83
83
  t
84
84
  ) : e.ownerDocument;
85
85
  }
86
- function rr(e, t) {
87
- return U(
86
+ function ar(e, t) {
87
+ return O(
88
88
  /** @type {Document} */
89
89
  e.head || e,
90
90
  t
91
91
  ), t.sheet;
92
92
  }
93
- function _e(e, t, n) {
93
+ function xe(e, t, n) {
94
94
  e.insertBefore(t, n || null);
95
95
  }
96
96
  function ae(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function G(e) {
99
+ function F(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function He(e) {
102
+ function Oe(e) {
103
103
  return document.createTextNode(e);
104
104
  }
105
- function Ot() {
106
- return He(" ");
105
+ function $t() {
106
+ return Oe(" ");
107
107
  }
108
- function ir(e, t, n, r) {
108
+ function ur(e, t, n, r) {
109
109
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
110
110
  }
111
- function D(e, t, n) {
111
+ function U(e, t, n) {
112
112
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
113
113
  }
114
- function or(e) {
114
+ function lr(e) {
115
115
  return Array.from(e.childNodes);
116
116
  }
117
- function st(e, t) {
117
+ function ct(e, t) {
118
118
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
119
119
  t);
120
120
  }
121
- function sr(e) {
121
+ function hr(e) {
122
122
  const t = {};
123
123
  return e.childNodes.forEach(
124
124
  /** @param {Element} node */
@@ -127,90 +127,87 @@ function sr(e) {
127
127
  }
128
128
  ), t;
129
129
  }
130
- let me;
131
- function de(e) {
132
- me = e;
130
+ let ye;
131
+ function pe(e) {
132
+ ye = e;
133
133
  }
134
- function sn() {
135
- if (!me)
134
+ function cr() {
135
+ if (!ye)
136
136
  throw new Error("Function called outside component initialization");
137
- return me;
138
- }
139
- function ar(e) {
140
- sn().$$.on_mount.push(e);
137
+ return ye;
141
138
  }
142
- function ur(e) {
143
- sn().$$.on_destroy.push(e);
139
+ function fr(e) {
140
+ cr().$$.on_destroy.push(e);
144
141
  }
145
- const Y = [], at = [];
142
+ const Y = [], ft = [];
146
143
  let Z = [];
147
- const Ut = [], lr = /* @__PURE__ */ Promise.resolve();
148
- let ut = !1;
149
- function hr() {
150
- ut || (ut = !0, lr.then(k));
144
+ const kt = [], dr = /* @__PURE__ */ Promise.resolve();
145
+ let dt = !1;
146
+ function gr() {
147
+ dt || (dt = !0, dr.then($));
151
148
  }
152
- function lt(e) {
149
+ function gt(e) {
153
150
  Z.push(e);
154
151
  }
155
- const Je = /* @__PURE__ */ new Set();
152
+ const Ke = /* @__PURE__ */ new Set();
156
153
  let J = 0;
157
- function k() {
154
+ function $() {
158
155
  if (J !== 0)
159
156
  return;
160
- const e = me;
157
+ const e = ye;
161
158
  do {
162
159
  try {
163
160
  for (; J < Y.length; ) {
164
161
  const t = Y[J];
165
- J++, de(t), cr(t.$$);
162
+ J++, pe(t), mr(t.$$);
166
163
  }
167
164
  } catch (t) {
168
165
  throw Y.length = 0, J = 0, t;
169
166
  }
170
- for (de(null), Y.length = 0, J = 0; at.length; )
171
- at.pop()();
167
+ for (pe(null), Y.length = 0, J = 0; ft.length; )
168
+ ft.pop()();
172
169
  for (let t = 0; t < Z.length; t += 1) {
173
170
  const n = Z[t];
174
- Je.has(n) || (Je.add(n), n());
171
+ Ke.has(n) || (Ke.add(n), n());
175
172
  }
176
173
  Z.length = 0;
177
174
  } while (Y.length);
178
- for (; Ut.length; )
179
- Ut.pop()();
180
- ut = !1, Je.clear(), de(e);
175
+ for (; kt.length; )
176
+ kt.pop()();
177
+ dt = !1, Ke.clear(), pe(e);
181
178
  }
182
- function cr(e) {
179
+ function mr(e) {
183
180
  if (e.fragment !== null) {
184
- e.update(), Ee(e.before_update);
181
+ e.update(), ve(e.before_update);
185
182
  const t = e.dirty;
186
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
183
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(gt);
187
184
  }
188
185
  }
189
- function fr(e) {
186
+ function pr(e) {
190
187
  const t = [], n = [];
191
188
  Z.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Z = t;
192
189
  }
193
- const dr = /* @__PURE__ */ new Set();
194
- function gr(e, t) {
195
- e && e.i && (dr.delete(e), e.i(t));
190
+ const br = /* @__PURE__ */ new Set();
191
+ function yr(e, t) {
192
+ e && e.i && (br.delete(e), e.i(t));
196
193
  }
197
- function mr(e, t, n) {
194
+ function Er(e, t, n) {
198
195
  const { fragment: r, after_update: i } = e.$$;
199
- r && r.m(t, n), lt(() => {
200
- const o = e.$$.on_mount.map(nn).filter(xt);
201
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ee(o), e.$$.on_mount = [];
202
- }), i.forEach(lt);
196
+ r && r.m(t, n), gt(() => {
197
+ const o = e.$$.on_mount.map(un).filter(Ct);
198
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ve(o), e.$$.on_mount = [];
199
+ }), i.forEach(gt);
203
200
  }
204
- function pr(e, t) {
201
+ function _r(e, t) {
205
202
  const n = e.$$;
206
- n.fragment !== null && (fr(n.after_update), Ee(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
203
+ n.fragment !== null && (pr(n.after_update), ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
207
204
  }
208
- function br(e, t) {
209
- e.$$.dirty[0] === -1 && (Y.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
205
+ function wr(e, t) {
206
+ e.$$.dirty[0] === -1 && (Y.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
210
207
  }
211
- function yr(e, t, n, r, i, o, s = null, a = [-1]) {
212
- const u = me;
213
- de(e);
208
+ function vr(e, t, n, r, i, o, s = null, a = [-1]) {
209
+ const u = ye;
210
+ pe(e);
214
211
  const l = e.$$ = {
215
212
  fragment: null,
216
213
  ctx: [],
@@ -218,7 +215,7 @@ function yr(e, t, n, r, i, o, s = null, a = [-1]) {
218
215
  props: o,
219
216
  update: R,
220
217
  not_equal: i,
221
- bound: Mt(),
218
+ bound: Ft(),
222
219
  // lifecycle
223
220
  on_mount: [],
224
221
  on_destroy: [],
@@ -227,7 +224,7 @@ function yr(e, t, n, r, i, o, s = null, a = [-1]) {
227
224
  after_update: [],
228
225
  context: new Map(t.context || (u ? u.$$.context : [])),
229
226
  // everything else
230
- callbacks: Mt(),
227
+ callbacks: Ft(),
231
228
  dirty: a,
232
229
  skip_bound: !1,
233
230
  root: t.target || u.$$.root
@@ -236,19 +233,19 @@ function yr(e, t, n, r, i, o, s = null, a = [-1]) {
236
233
  let h = !1;
237
234
  if (l.ctx = n ? n(e, t.props || {}, (f, c, ...d) => {
238
235
  const m = d.length ? d[0] : c;
239
- return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), h && br(e, f)), c;
240
- }) : [], l.update(), h = !0, Ee(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
236
+ return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), h && wr(e, f)), c;
237
+ }) : [], l.update(), h = !0, ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
241
238
  if (t.hydrate) {
242
- const f = or(t.target);
239
+ const f = lr(t.target);
243
240
  l.fragment && l.fragment.l(f), f.forEach(ae);
244
241
  } else
245
242
  l.fragment && l.fragment.c();
246
- t.intro && gr(e.$$.fragment), mr(e, t.target, t.anchor), k();
243
+ t.intro && yr(e.$$.fragment), Er(e, t.target, t.anchor), $();
247
244
  }
248
- de(u);
245
+ pe(u);
249
246
  }
250
- let an;
251
- typeof HTMLElement == "function" && (an = class extends HTMLElement {
247
+ let cn;
248
+ typeof HTMLElement == "function" && (cn = class extends HTMLElement {
252
249
  constructor(t, n, r) {
253
250
  super();
254
251
  /** The Svelte component constructor */
@@ -285,21 +282,21 @@ typeof HTMLElement == "function" && (an = class extends HTMLElement {
285
282
  }
286
283
  }
287
284
  connectedCallback() {
288
- return Qe(this, null, function* () {
285
+ return Q(this, null, function* () {
289
286
  if (this.$$cn = !0, !this.$$c) {
290
287
  let t = function(o) {
291
288
  return () => {
292
289
  let s;
293
290
  return {
294
291
  c: function() {
295
- s = G("slot"), o !== "default" && D(s, "name", o);
292
+ s = F("slot"), o !== "default" && U(s, "name", o);
296
293
  },
297
294
  /**
298
295
  * @param {HTMLElement} target
299
296
  * @param {HTMLElement} [anchor]
300
297
  */
301
298
  m: function(l, h) {
302
- _e(l, s, h);
299
+ xe(l, s, h);
303
300
  },
304
301
  d: function(l) {
305
302
  l && ae(s);
@@ -309,18 +306,18 @@ typeof HTMLElement == "function" && (an = class extends HTMLElement {
309
306
  };
310
307
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
311
308
  return;
312
- const n = {}, r = sr(this);
309
+ const n = {}, r = hr(this);
313
310
  for (const o of this.$$s)
314
311
  o in r && (n[o] = [t(o)]);
315
312
  for (const o of this.attributes) {
316
313
  const s = this.$$g_p(o.name);
317
- s in this.$$d || (this.$$d[s] = Ce(s, o.value, this.$$p_d, "toProp"));
314
+ s in this.$$d || (this.$$d[s] = Ie(s, o.value, this.$$p_d, "toProp"));
318
315
  }
319
316
  for (const o in this.$$p_d)
320
317
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
321
318
  this.$$c = new this.$$ctor({
322
319
  target: this.shadowRoot || this,
323
- props: Lt(It({}, this.$$d), {
320
+ props: Dt(Ut({}, this.$$d), {
324
321
  $$slots: n,
325
322
  $$scope: {
326
323
  ctx: []
@@ -331,7 +328,7 @@ typeof HTMLElement == "function" && (an = class extends HTMLElement {
331
328
  this.$$r = !0;
332
329
  for (const o in this.$$p_d)
333
330
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
334
- const s = Ce(
331
+ const s = Ie(
335
332
  o,
336
333
  this.$$d[o],
337
334
  this.$$p_d,
@@ -355,7 +352,7 @@ typeof HTMLElement == "function" && (an = class extends HTMLElement {
355
352
  // and setting attributes through setAttribute etc, this is helpful
356
353
  attributeChangedCallback(t, n, r) {
357
354
  var i;
358
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ce(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
355
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ie(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
359
356
  }
360
357
  disconnectedCallback() {
361
358
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -368,7 +365,7 @@ typeof HTMLElement == "function" && (an = class extends HTMLElement {
368
365
  ) || t;
369
366
  }
370
367
  });
371
- function Ce(e, t, n, r) {
368
+ function Ie(e, t, n, r) {
372
369
  var o;
373
370
  const i = (o = n[e]) == null ? void 0 : o.type;
374
371
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -398,8 +395,8 @@ function Ce(e, t, n, r) {
398
395
  return t;
399
396
  }
400
397
  }
401
- function Er(e, t, n, r, i, o) {
402
- let s = class extends an {
398
+ function xr(e, t, n, r, i, o) {
399
+ let s = class extends cn {
403
400
  constructor() {
404
401
  super(e, n, i), this.$$p_d = t;
405
402
  }
@@ -416,7 +413,7 @@ function Er(e, t, n, r, i, o) {
416
413
  },
417
414
  set(u) {
418
415
  var l;
419
- u = Ce(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
416
+ u = Ie(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
420
417
  }
421
418
  });
422
419
  }), r.forEach((a) => {
@@ -429,7 +426,7 @@ function Er(e, t, n, r, i, o) {
429
426
  }), e.element = /** @type {any} */
430
427
  s, s;
431
428
  }
432
- class _r {
429
+ class Sr {
433
430
  constructor() {
434
431
  /**
435
432
  * ### PRIVATE API
@@ -450,7 +447,7 @@ class _r {
450
447
  }
451
448
  /** @returns {void} */
452
449
  $destroy() {
453
- pr(this, 1), this.$destroy = R;
450
+ _r(this, 1), this.$destroy = R;
454
451
  }
455
452
  /**
456
453
  * @template {Extract<keyof Events, string>} K
@@ -459,7 +456,7 @@ class _r {
459
456
  * @returns {() => void}
460
457
  */
461
458
  $on(t, n) {
462
- if (!xt(n))
459
+ if (!Ct(n))
463
460
  return R;
464
461
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
465
462
  return r.push(n), () => {
@@ -472,22 +469,22 @@ class _r {
472
469
  * @returns {void}
473
470
  */
474
471
  $set(t) {
475
- this.$$set && !Kn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
472
+ this.$$set && !rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
476
473
  }
477
474
  }
478
- const wr = "4";
479
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
475
+ const Br = "4";
476
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
480
477
  const W = [];
481
- function vr(e, t) {
478
+ function Tr(e, t) {
482
479
  return {
483
- subscribe: Ue(e, t).subscribe
480
+ subscribe: ke(e, t).subscribe
484
481
  };
485
482
  }
486
- function Ue(e, t = R) {
483
+ function ke(e, t = R) {
487
484
  let n;
488
485
  const r = /* @__PURE__ */ new Set();
489
486
  function i(a) {
490
- if (rn(e, a) && (e = a, n)) {
487
+ if (ln(e, a) && (e = a, n)) {
491
488
  const u = !W.length;
492
489
  for (const l of r)
493
490
  l[1](), W.push(l, e);
@@ -514,7 +511,7 @@ function ue(e, t, n) {
514
511
  if (!i.every(Boolean))
515
512
  throw new Error("derived() expects stores as input, got a falsy value");
516
513
  const o = t.length < 2;
517
- return vr(n, (s, a) => {
514
+ return Tr(n, (s, a) => {
518
515
  let u = !1;
519
516
  const l = [];
520
517
  let h = 0, f = R;
@@ -523,9 +520,9 @@ function ue(e, t, n) {
523
520
  return;
524
521
  f();
525
522
  const m = t(r ? l[0] : l, s, a);
526
- o ? s(m) : f = xt(m) ? m : R;
523
+ o ? s(m) : f = Ct(m) ? m : R;
527
524
  }, d = i.map(
528
- (m, p) => on(
525
+ (m, p) => hn(
529
526
  m,
530
527
  (_) => {
531
528
  l[p] = _, h &= ~(1 << p), u && c();
@@ -536,74 +533,74 @@ function ue(e, t, n) {
536
533
  )
537
534
  );
538
535
  return u = !0, c(), function() {
539
- Ee(d), f(), u = !1;
536
+ ve(d), f(), u = !1;
540
537
  };
541
538
  });
542
539
  }
543
- function xr(e) {
540
+ function Ar(e) {
544
541
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
545
542
  }
546
- var Sr = function(t) {
547
- return Br(t) && !Tr(t);
543
+ var Cr = function(t) {
544
+ return Nr(t) && !Pr(t);
548
545
  };
549
- function Br(e) {
546
+ function Nr(e) {
550
547
  return !!e && typeof e == "object";
551
548
  }
552
- function Tr(e) {
549
+ function Pr(e) {
553
550
  var t = Object.prototype.toString.call(e);
554
- return t === "[object RegExp]" || t === "[object Date]" || Nr(e);
551
+ return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
555
552
  }
556
- var Ar = typeof Symbol == "function" && Symbol.for, Cr = Ar ? Symbol.for("react.element") : 60103;
557
- function Nr(e) {
558
- return e.$$typeof === Cr;
553
+ var Hr = typeof Symbol == "function" && Symbol.for, Ir = Hr ? Symbol.for("react.element") : 60103;
554
+ function Lr(e) {
555
+ return e.$$typeof === Ir;
559
556
  }
560
- function Pr(e) {
557
+ function Mr(e) {
561
558
  return Array.isArray(e) ? [] : {};
562
559
  }
563
- function pe(e, t) {
564
- return t.clone !== !1 && t.isMergeableObject(e) ? K(Pr(e), e, t) : e;
560
+ function Ee(e, t) {
561
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(Mr(e), e, t) : e;
565
562
  }
566
- function Hr(e, t, n) {
563
+ function Rr(e, t, n) {
567
564
  return e.concat(t).map(function(r) {
568
- return pe(r, n);
565
+ return Ee(r, n);
569
566
  });
570
567
  }
571
- function Ir(e, t) {
568
+ function Or(e, t) {
572
569
  if (!t.customMerge)
573
570
  return K;
574
571
  var n = t.customMerge(e);
575
572
  return typeof n == "function" ? n : K;
576
573
  }
577
- function Lr(e) {
574
+ function Ur(e) {
578
575
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
579
576
  return Object.propertyIsEnumerable.call(e, t);
580
577
  }) : [];
581
578
  }
582
- function Dt(e) {
583
- return Object.keys(e).concat(Lr(e));
579
+ function jt(e) {
580
+ return Object.keys(e).concat(Ur(e));
584
581
  }
585
- function un(e, t) {
582
+ function fn(e, t) {
586
583
  try {
587
584
  return t in e;
588
585
  } catch (n) {
589
586
  return !1;
590
587
  }
591
588
  }
592
- function Mr(e, t) {
593
- return un(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
589
+ function Dr(e, t) {
590
+ return fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
594
591
  }
595
- function Rr(e, t, n) {
592
+ function Fr(e, t, n) {
596
593
  var r = {};
597
- return n.isMergeableObject(e) && Dt(e).forEach(function(i) {
598
- r[i] = pe(e[i], n);
599
- }), Dt(t).forEach(function(i) {
600
- Mr(e, i) || (un(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ir(i, n)(e[i], t[i], n) : r[i] = pe(t[i], n));
594
+ return n.isMergeableObject(e) && jt(e).forEach(function(i) {
595
+ r[i] = Ee(e[i], n);
596
+ }), jt(t).forEach(function(i) {
597
+ Dr(e, i) || (fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Or(i, n)(e[i], t[i], n) : r[i] = Ee(t[i], n));
601
598
  }), r;
602
599
  }
603
600
  function K(e, t, n) {
604
- n = n || {}, n.arrayMerge = n.arrayMerge || Hr, n.isMergeableObject = n.isMergeableObject || Sr, n.cloneUnlessOtherwiseSpecified = pe;
601
+ n = n || {}, n.arrayMerge = n.arrayMerge || Rr, n.isMergeableObject = n.isMergeableObject || Cr, n.cloneUnlessOtherwiseSpecified = Ee;
605
602
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
606
- return o ? r ? n.arrayMerge(e, t, n) : Rr(e, t, n) : pe(t, n);
603
+ return o ? r ? n.arrayMerge(e, t, n) : Fr(e, t, n) : Ee(t, n);
607
604
  }
608
605
  K.all = function(t, n) {
609
606
  if (!Array.isArray(t))
@@ -612,36 +609,36 @@ K.all = function(t, n) {
612
609
  return K(r, i, n);
613
610
  }, {});
614
611
  };
615
- var Or = K, Ur = Or;
616
- const Dr = /* @__PURE__ */ xr(Ur);
617
- var ht = function(e, t) {
618
- return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
612
+ var Gr = K, $r = Gr;
613
+ const kr = /* @__PURE__ */ Ar($r);
614
+ var mt = function(e, t) {
615
+ return mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
619
616
  n.__proto__ = r;
620
617
  } || function(n, r) {
621
618
  for (var i in r)
622
619
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
623
- }, ht(e, t);
620
+ }, mt(e, t);
624
621
  };
625
- function De(e, t) {
622
+ function je(e, t) {
626
623
  if (typeof t != "function" && t !== null)
627
624
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
628
- ht(e, t);
625
+ mt(e, t);
629
626
  function n() {
630
627
  this.constructor = e;
631
628
  }
632
629
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
633
630
  }
634
- var F = function() {
635
- return F = Object.assign || function(t) {
631
+ var D = function() {
632
+ return D = Object.assign || function(t) {
636
633
  for (var n, r = 1, i = arguments.length; r < i; r++) {
637
634
  n = arguments[r];
638
635
  for (var o in n)
639
636
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
640
637
  }
641
638
  return t;
642
- }, F.apply(this, arguments);
639
+ }, D.apply(this, arguments);
643
640
  };
644
- function Fr(e, t) {
641
+ function jr(e, t) {
645
642
  var n = {};
646
643
  for (var r in e)
647
644
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -650,43 +647,43 @@ function Fr(e, t) {
650
647
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
651
648
  return n;
652
649
  }
653
- function We(e, t, n) {
650
+ function et(e, t, n) {
654
651
  if (n || arguments.length === 2)
655
652
  for (var r = 0, i = t.length, o; r < i; r++)
656
653
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
657
654
  return e.concat(o || Array.prototype.slice.call(t));
658
655
  }
659
- function Ye(e, t) {
660
- var n = t && t.cache ? t.cache : Xr, r = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : kr;
656
+ function tt(e, t) {
657
+ var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Xr;
661
658
  return i(e, {
662
659
  cache: n,
663
660
  serializer: r
664
661
  });
665
662
  }
666
- function Gr(e) {
663
+ function Vr(e) {
667
664
  return e == null || typeof e == "number" || typeof e == "boolean";
668
665
  }
669
- function $r(e, t, n, r) {
670
- var i = Gr(r) ? r : n(r), o = t.get(i);
666
+ function zr(e, t, n, r) {
667
+ var i = Vr(r) ? r : n(r), o = t.get(i);
671
668
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
672
669
  }
673
- function ln(e, t, n) {
670
+ function dn(e, t, n) {
674
671
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
675
672
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
676
673
  }
677
- function hn(e, t, n, r, i) {
674
+ function gn(e, t, n, r, i) {
678
675
  return n.bind(t, e, r, i);
679
676
  }
680
- function kr(e, t) {
681
- var n = e.length === 1 ? $r : ln;
682
- return hn(e, this, n, t.cache.create(), t.serializer);
677
+ function Xr(e, t) {
678
+ var n = e.length === 1 ? zr : dn;
679
+ return gn(e, this, n, t.cache.create(), t.serializer);
683
680
  }
684
- function jr(e, t) {
685
- return hn(e, this, ln, t.cache.create(), t.serializer);
681
+ function Qr(e, t) {
682
+ return gn(e, this, dn, t.cache.create(), t.serializer);
686
683
  }
687
- var Vr = function() {
684
+ var Jr = function() {
688
685
  return JSON.stringify(arguments);
689
- }, zr = (
686
+ }, Wr = (
690
687
  /** @class */
691
688
  function() {
692
689
  function e() {
@@ -698,71 +695,71 @@ var Vr = function() {
698
695
  this.cache[t] = n;
699
696
  }, e;
700
697
  }()
701
- ), Xr = {
698
+ ), Yr = {
702
699
  create: function() {
703
- return new zr();
700
+ return new Wr();
704
701
  }
705
- }, qe = {
706
- variadic: jr
707
- }, Ie = function() {
708
- return Ie = Object.assign || function(t) {
702
+ }, nt = {
703
+ variadic: Qr
704
+ }, Ue = function() {
705
+ return Ue = Object.assign || function(t) {
709
706
  for (var n, r = 1, i = arguments.length; r < i; r++) {
710
707
  n = arguments[r];
711
708
  for (var o in n)
712
709
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
713
710
  }
714
711
  return t;
715
- }, Ie.apply(this, arguments);
712
+ }, Ue.apply(this, arguments);
716
713
  };
717
- var v;
714
+ var x;
718
715
  (function(e) {
719
716
  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";
720
- })(v || (v = {}));
721
- var A;
717
+ })(x || (x = {}));
718
+ var T;
722
719
  (function(e) {
723
720
  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";
724
- })(A || (A = {}));
721
+ })(T || (T = {}));
725
722
  var ee;
726
723
  (function(e) {
727
724
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
728
725
  })(ee || (ee = {}));
729
- function Ft(e) {
730
- return e.type === A.literal;
726
+ function Vt(e) {
727
+ return e.type === T.literal;
731
728
  }
732
- function Qr(e) {
733
- return e.type === A.argument;
729
+ function qr(e) {
730
+ return e.type === T.argument;
734
731
  }
735
- function cn(e) {
736
- return e.type === A.number;
732
+ function mn(e) {
733
+ return e.type === T.number;
737
734
  }
738
- function fn(e) {
739
- return e.type === A.date;
735
+ function pn(e) {
736
+ return e.type === T.date;
740
737
  }
741
- function dn(e) {
742
- return e.type === A.time;
738
+ function bn(e) {
739
+ return e.type === T.time;
743
740
  }
744
- function gn(e) {
745
- return e.type === A.select;
741
+ function yn(e) {
742
+ return e.type === T.select;
746
743
  }
747
- function mn(e) {
748
- return e.type === A.plural;
744
+ function En(e) {
745
+ return e.type === T.plural;
749
746
  }
750
- function Jr(e) {
751
- return e.type === A.pound;
747
+ function Zr(e) {
748
+ return e.type === T.pound;
752
749
  }
753
- function pn(e) {
754
- return e.type === A.tag;
750
+ function _n(e) {
751
+ return e.type === T.tag;
755
752
  }
756
- function bn(e) {
753
+ function wn(e) {
757
754
  return !!(e && typeof e == "object" && e.type === ee.number);
758
755
  }
759
- function ct(e) {
756
+ function pt(e) {
760
757
  return !!(e && typeof e == "object" && e.type === ee.dateTime);
761
758
  }
762
- var yn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wr = /(?:[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;
763
- function Yr(e) {
759
+ var vn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[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;
760
+ function ei(e) {
764
761
  var t = {};
765
- return e.replace(Wr, function(n) {
762
+ return e.replace(Kr, function(n) {
766
763
  var r = n.length;
767
764
  switch (n[0]) {
768
765
  case "G":
@@ -861,11 +858,11 @@ var C = function() {
861
858
  return t;
862
859
  }, C.apply(this, arguments);
863
860
  };
864
- var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
865
- function Zr(e) {
861
+ var ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
862
+ function ni(e) {
866
863
  if (e.length === 0)
867
864
  throw new Error("Number skeleton cannot be empty");
868
- for (var t = e.split(qr).filter(function(c) {
865
+ for (var t = e.split(ti).filter(function(c) {
869
866
  return c.length > 0;
870
867
  }), n = [], r = 0, i = t; r < i.length; r++) {
871
868
  var o = i[r], s = o.split("/");
@@ -880,17 +877,17 @@ function Zr(e) {
880
877
  }
881
878
  return n;
882
879
  }
883
- function Kr(e) {
880
+ function ri(e) {
884
881
  return e.replace(/^(.*?)-/, "");
885
882
  }
886
- var Gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, En = /^(@+)?(\+|#+)?[rs]?$/g, ei = /(\*)(0+)|(#+)(0+)|(0+)/g, _n = /^(0+)$/;
887
- function $t(e) {
883
+ var zt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xn = /^(@+)?(\+|#+)?[rs]?$/g, ii = /(\*)(0+)|(#+)(0+)|(0+)/g, Sn = /^(0+)$/;
884
+ function Xt(e) {
888
885
  var t = {};
889
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(En, function(n, r, i) {
886
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xn, function(n, r, i) {
890
887
  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)), "";
891
888
  }), t;
892
889
  }
893
- function wn(e) {
890
+ function Bn(e) {
894
891
  switch (e) {
895
892
  case "sign-auto":
896
893
  return {
@@ -930,7 +927,7 @@ function wn(e) {
930
927
  };
931
928
  }
932
929
  }
933
- function ti(e) {
930
+ function oi(e) {
934
931
  var t;
935
932
  if (e[0] === "E" && e[1] === "E" ? (t = {
936
933
  notation: "engineering"
@@ -938,17 +935,17 @@ function ti(e) {
938
935
  notation: "scientific"
939
936
  }, e = e.slice(1)), t) {
940
937
  var n = e.slice(0, 2);
941
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_n.test(e))
938
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Sn.test(e))
942
939
  throw new Error("Malformed concise eng/scientific notation");
943
940
  t.minimumIntegerDigits = e.length;
944
941
  }
945
942
  return t;
946
943
  }
947
- function kt(e) {
948
- var t = {}, n = wn(e);
944
+ function Qt(e) {
945
+ var t = {}, n = Bn(e);
949
946
  return n || t;
950
947
  }
951
- function ni(e) {
948
+ function si(e) {
952
949
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
953
950
  var i = r[n];
954
951
  switch (i.stem) {
@@ -972,7 +969,7 @@ function ni(e) {
972
969
  continue;
973
970
  case "measure-unit":
974
971
  case "unit":
975
- t.style = "unit", t.unit = Kr(i.options[0]);
972
+ t.style = "unit", t.unit = ri(i.options[0]);
976
973
  continue;
977
974
  case "compact-short":
978
975
  case "K":
@@ -984,12 +981,12 @@ function ni(e) {
984
981
  continue;
985
982
  case "scientific":
986
983
  t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
987
- return C(C({}, u), kt(l));
984
+ return C(C({}, u), Qt(l));
988
985
  }, {}));
989
986
  continue;
990
987
  case "engineering":
991
988
  t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
992
- return C(C({}, u), kt(l));
989
+ return C(C({}, u), Qt(l));
993
990
  }, {}));
994
991
  continue;
995
992
  case "notation-simple":
@@ -1034,7 +1031,7 @@ function ni(e) {
1034
1031
  case "integer-width":
1035
1032
  if (i.options.length > 1)
1036
1033
  throw new RangeError("integer-width stems only accept a single optional option");
1037
- i.options[0].replace(ei, function(u, l, h, f, c, d) {
1034
+ i.options[0].replace(ii, function(u, l, h, f, c, d) {
1038
1035
  if (l)
1039
1036
  t.minimumIntegerDigits = h.length;
1040
1037
  else {
@@ -1047,32 +1044,32 @@ function ni(e) {
1047
1044
  });
1048
1045
  continue;
1049
1046
  }
1050
- if (_n.test(i.stem)) {
1047
+ if (Sn.test(i.stem)) {
1051
1048
  t.minimumIntegerDigits = i.stem.length;
1052
1049
  continue;
1053
1050
  }
1054
- if (Gt.test(i.stem)) {
1051
+ if (zt.test(i.stem)) {
1055
1052
  if (i.options.length > 1)
1056
1053
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1057
- i.stem.replace(Gt, function(u, l, h, f, c, d) {
1054
+ i.stem.replace(zt, function(u, l, h, f, c, d) {
1058
1055
  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), "";
1059
1056
  });
1060
1057
  var o = i.options[0];
1061
- o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), $t(o)));
1058
+ o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Xt(o)));
1062
1059
  continue;
1063
1060
  }
1064
- if (En.test(i.stem)) {
1065
- t = C(C({}, t), $t(i.stem));
1061
+ if (xn.test(i.stem)) {
1062
+ t = C(C({}, t), Xt(i.stem));
1066
1063
  continue;
1067
1064
  }
1068
- var s = wn(i.stem);
1065
+ var s = Bn(i.stem);
1069
1066
  s && (t = C(C({}, t), s));
1070
- var a = ti(i.stem);
1067
+ var a = oi(i.stem);
1071
1068
  a && (t = C(C({}, t), a));
1072
1069
  }
1073
1070
  return t;
1074
1071
  }
1075
- var Be = {
1072
+ var Ne = {
1076
1073
  "001": [
1077
1074
  "H",
1078
1075
  "h"
@@ -2487,13 +2484,13 @@ var Be = {
2487
2484
  "h"
2488
2485
  ]
2489
2486
  };
2490
- function ri(e, t) {
2487
+ function ai(e, t) {
2491
2488
  for (var n = "", r = 0; r < e.length; r++) {
2492
2489
  var i = e.charAt(r);
2493
2490
  if (i === "j") {
2494
2491
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2495
2492
  o++, r++;
2496
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ii(t);
2493
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ui(t);
2497
2494
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2498
2495
  n += u;
2499
2496
  for (; s-- > 0; )
@@ -2503,7 +2500,7 @@ function ri(e, t) {
2503
2500
  }
2504
2501
  return n;
2505
2502
  }
2506
- function ii(e) {
2503
+ function ui(e) {
2507
2504
  var t = e.hourCycle;
2508
2505
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2509
2506
  e.hourCycles && // @ts-ignore
@@ -2522,23 +2519,23 @@ function ii(e) {
2522
2519
  }
2523
2520
  var n = e.language, r;
2524
2521
  n !== "root" && (r = e.maximize().region);
2525
- var i = Be[r || ""] || Be[n || ""] || Be["".concat(n, "-001")] || Be["001"];
2522
+ var i = Ne[r || ""] || Ne[n || ""] || Ne["".concat(n, "-001")] || Ne["001"];
2526
2523
  return i[0];
2527
2524
  }
2528
- var Ze, oi = new RegExp("^".concat(yn.source, "*")), si = new RegExp("".concat(yn.source, "*$"));
2525
+ var rt, li = new RegExp("^".concat(vn.source, "*")), hi = new RegExp("".concat(vn.source, "*$"));
2529
2526
  function S(e, t) {
2530
2527
  return { start: e, end: t };
2531
2528
  }
2532
- var ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), ui = !!String.fromCodePoint, li = !!Object.fromEntries, hi = !!String.prototype.codePointAt, ci = !!String.prototype.trimStart, fi = !!String.prototype.trimEnd, di = !!Number.isSafeInteger, gi = di ? Number.isSafeInteger : function(e) {
2529
+ var ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), fi = !!String.fromCodePoint, di = !!Object.fromEntries, gi = !!String.prototype.codePointAt, mi = !!String.prototype.trimStart, pi = !!String.prototype.trimEnd, bi = !!Number.isSafeInteger, yi = bi ? Number.isSafeInteger : function(e) {
2533
2530
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2534
- }, ft = !0;
2531
+ }, bt = !0;
2535
2532
  try {
2536
- var mi = xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2537
- ft = ((Ze = mi.exec("a")) === null || Ze === void 0 ? void 0 : Ze[0]) === "a";
2533
+ var Ei = An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2534
+ bt = ((rt = Ei.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
2538
2535
  } catch (e) {
2539
- ft = !1;
2536
+ bt = !1;
2540
2537
  }
2541
- var jt = ai ? (
2538
+ var Jt = ci ? (
2542
2539
  // Native
2543
2540
  function(t, n, r) {
2544
2541
  return t.startsWith(n, r);
@@ -2548,7 +2545,7 @@ var jt = ai ? (
2548
2545
  function(t, n, r) {
2549
2546
  return t.slice(r, r + n.length) === n;
2550
2547
  }
2551
- ), dt = ui ? String.fromCodePoint : (
2548
+ ), yt = fi ? String.fromCodePoint : (
2552
2549
  // IE11
2553
2550
  function() {
2554
2551
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2560,9 +2557,9 @@ var jt = ai ? (
2560
2557
  }
2561
2558
  return r;
2562
2559
  }
2563
- ), Vt = (
2560
+ ), Wt = (
2564
2561
  // native
2565
- li ? Object.fromEntries : (
2562
+ di ? Object.fromEntries : (
2566
2563
  // Ponyfill
2567
2564
  function(t) {
2568
2565
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2572,7 +2569,7 @@ var jt = ai ? (
2572
2569
  return n;
2573
2570
  }
2574
2571
  )
2575
- ), vn = hi ? (
2572
+ ), Tn = gi ? (
2576
2573
  // Native
2577
2574
  function(t, n) {
2578
2575
  return t.codePointAt(n);
@@ -2586,7 +2583,7 @@ var jt = ai ? (
2586
2583
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2587
2584
  }
2588
2585
  }
2589
- ), pi = ci ? (
2586
+ ), _i = mi ? (
2590
2587
  // Native
2591
2588
  function(t) {
2592
2589
  return t.trimStart();
@@ -2594,9 +2591,9 @@ var jt = ai ? (
2594
2591
  ) : (
2595
2592
  // Ponyfill
2596
2593
  function(t) {
2597
- return t.replace(oi, "");
2594
+ return t.replace(li, "");
2598
2595
  }
2599
- ), bi = fi ? (
2596
+ ), wi = pi ? (
2600
2597
  // Native
2601
2598
  function(t) {
2602
2599
  return t.trimEnd();
@@ -2604,32 +2601,32 @@ var jt = ai ? (
2604
2601
  ) : (
2605
2602
  // Ponyfill
2606
2603
  function(t) {
2607
- return t.replace(si, "");
2604
+ return t.replace(hi, "");
2608
2605
  }
2609
2606
  );
2610
- function xn(e, t) {
2607
+ function An(e, t) {
2611
2608
  return new RegExp(e, t);
2612
2609
  }
2613
- var gt;
2614
- if (ft) {
2615
- var zt = xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2616
- gt = function(t, n) {
2610
+ var Et;
2611
+ if (bt) {
2612
+ var Yt = An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2613
+ Et = function(t, n) {
2617
2614
  var r;
2618
- zt.lastIndex = n;
2619
- var i = zt.exec(t);
2615
+ Yt.lastIndex = n;
2616
+ var i = Yt.exec(t);
2620
2617
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2621
2618
  };
2622
2619
  } else
2623
- gt = function(t, n) {
2620
+ Et = function(t, n) {
2624
2621
  for (var r = []; ; ) {
2625
- var i = vn(t, n);
2626
- if (i === void 0 || Sn(i) || wi(i))
2622
+ var i = Tn(t, n);
2623
+ if (i === void 0 || Cn(i) || Bi(i))
2627
2624
  break;
2628
2625
  r.push(i), n += i >= 65536 ? 2 : 1;
2629
2626
  }
2630
- return dt.apply(void 0, r);
2627
+ return yt.apply(void 0, r);
2631
2628
  };
2632
- var yi = (
2629
+ var vi = (
2633
2630
  /** @class */
2634
2631
  function() {
2635
2632
  function e(t, n) {
@@ -2653,14 +2650,14 @@ var yi = (
2653
2650
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2654
2651
  var a = this.clonePosition();
2655
2652
  this.bump(), i.push({
2656
- type: A.pound,
2653
+ type: T.pound,
2657
2654
  location: S(a, this.clonePosition())
2658
2655
  });
2659
2656
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2660
2657
  if (r)
2661
2658
  break;
2662
- return this.error(v.UNMATCHED_CLOSING_TAG, S(this.clonePosition(), this.clonePosition()));
2663
- } else if (o === 60 && !this.ignoreTag && mt(this.peek() || 0)) {
2659
+ return this.error(x.UNMATCHED_CLOSING_TAG, S(this.clonePosition(), this.clonePosition()));
2660
+ } else if (o === 60 && !this.ignoreTag && _t(this.peek() || 0)) {
2664
2661
  var s = this.parseTag(t, n);
2665
2662
  if (s.err)
2666
2663
  return s;
@@ -2681,7 +2678,7 @@ var yi = (
2681
2678
  if (this.bumpSpace(), this.bumpIf("/>"))
2682
2679
  return {
2683
2680
  val: {
2684
- type: A.literal,
2681
+ type: T.literal,
2685
2682
  value: "<".concat(i, "/>"),
2686
2683
  location: S(r, this.clonePosition())
2687
2684
  },
@@ -2693,25 +2690,25 @@ var yi = (
2693
2690
  return o;
2694
2691
  var s = o.val, a = this.clonePosition();
2695
2692
  if (this.bumpIf("</")) {
2696
- if (this.isEOF() || !mt(this.char()))
2697
- return this.error(v.INVALID_TAG, S(a, this.clonePosition()));
2693
+ if (this.isEOF() || !_t(this.char()))
2694
+ return this.error(x.INVALID_TAG, S(a, this.clonePosition()));
2698
2695
  var u = this.clonePosition(), l = this.parseTagName();
2699
- return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, S(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2696
+ return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG, S(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2700
2697
  val: {
2701
- type: A.tag,
2698
+ type: T.tag,
2702
2699
  value: i,
2703
2700
  children: s,
2704
2701
  location: S(r, this.clonePosition())
2705
2702
  },
2706
2703
  err: null
2707
- } : this.error(v.INVALID_TAG, S(a, this.clonePosition())));
2704
+ } : this.error(x.INVALID_TAG, S(a, this.clonePosition())));
2708
2705
  } else
2709
- return this.error(v.UNCLOSED_TAG, S(r, this.clonePosition()));
2706
+ return this.error(x.UNCLOSED_TAG, S(r, this.clonePosition()));
2710
2707
  } else
2711
- return this.error(v.INVALID_TAG, S(r, this.clonePosition()));
2708
+ return this.error(x.INVALID_TAG, S(r, this.clonePosition()));
2712
2709
  }, e.prototype.parseTagName = function() {
2713
2710
  var t = this.offset();
2714
- for (this.bump(); !this.isEOF() && _i(this.char()); )
2711
+ for (this.bump(); !this.isEOF() && Si(this.char()); )
2715
2712
  this.bump();
2716
2713
  return this.message.slice(t, this.offset());
2717
2714
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2735,12 +2732,12 @@ var yi = (
2735
2732
  }
2736
2733
  var u = S(r, this.clonePosition());
2737
2734
  return {
2738
- val: { type: A.literal, value: i, location: u },
2735
+ val: { type: T.literal, value: i, location: u },
2739
2736
  err: null
2740
2737
  };
2741
2738
  }, e.prototype.tryParseLeftAngleBracket = function() {
2742
2739
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2743
- !Ei(this.peek() || 0)) ? (this.bump(), "<") : null;
2740
+ !xi(this.peek() || 0)) ? (this.bump(), "<") : null;
2744
2741
  }, e.prototype.tryParseQuote = function(t) {
2745
2742
  if (this.isEOF() || this.char() !== 39)
2746
2743
  return null;
@@ -2774,28 +2771,28 @@ var yi = (
2774
2771
  n.push(r);
2775
2772
  this.bump();
2776
2773
  }
2777
- return dt.apply(void 0, n);
2774
+ return yt.apply(void 0, n);
2778
2775
  }, e.prototype.tryParseUnquoted = function(t, n) {
2779
2776
  if (this.isEOF())
2780
2777
  return null;
2781
2778
  var r = this.char();
2782
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), dt(r));
2779
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), yt(r));
2783
2780
  }, e.prototype.parseArgument = function(t, n) {
2784
2781
  var r = this.clonePosition();
2785
2782
  if (this.bump(), this.bumpSpace(), this.isEOF())
2786
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2783
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2787
2784
  if (this.char() === 125)
2788
- return this.bump(), this.error(v.EMPTY_ARGUMENT, S(r, this.clonePosition()));
2785
+ return this.bump(), this.error(x.EMPTY_ARGUMENT, S(r, this.clonePosition()));
2789
2786
  var i = this.parseIdentifierIfPossible().value;
2790
2787
  if (!i)
2791
- return this.error(v.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2788
+ return this.error(x.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2792
2789
  if (this.bumpSpace(), this.isEOF())
2793
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2790
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition()));
2794
2791
  switch (this.char()) {
2795
2792
  case 125:
2796
2793
  return this.bump(), {
2797
2794
  val: {
2798
- type: A.argument,
2795
+ type: T.argument,
2799
2796
  // value does not include the opening and closing braces.
2800
2797
  value: i,
2801
2798
  location: S(r, this.clonePosition())
@@ -2803,12 +2800,12 @@ var yi = (
2803
2800
  err: null
2804
2801
  };
2805
2802
  case 44:
2806
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2803
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2807
2804
  default:
2808
- return this.error(v.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2805
+ return this.error(x.MALFORMED_ARGUMENT, S(r, this.clonePosition()));
2809
2806
  }
2810
2807
  }, e.prototype.parseIdentifierIfPossible = function() {
2811
- var t = this.clonePosition(), n = this.offset(), r = gt(this.message, n), i = n + r.length;
2808
+ var t = this.clonePosition(), n = this.offset(), r = Et(this.message, n), i = n + r.length;
2812
2809
  this.bumpTo(i);
2813
2810
  var o = this.clonePosition(), s = S(t, o);
2814
2811
  return { value: r, location: s };
@@ -2816,7 +2813,7 @@ var yi = (
2816
2813
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2817
2814
  switch (a) {
2818
2815
  case "":
2819
- return this.error(v.EXPECT_ARGUMENT_TYPE, S(s, u));
2816
+ return this.error(x.EXPECT_ARGUMENT_TYPE, S(s, u));
2820
2817
  case "number":
2821
2818
  case "date":
2822
2819
  case "time": {
@@ -2827,9 +2824,9 @@ var yi = (
2827
2824
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2828
2825
  if (f.err)
2829
2826
  return f;
2830
- var c = bi(f.val);
2827
+ var c = wi(f.val);
2831
2828
  if (c.length === 0)
2832
- return this.error(v.EXPECT_ARGUMENT_STYLE, S(this.clonePosition(), this.clonePosition()));
2829
+ return this.error(x.EXPECT_ARGUMENT_STYLE, S(this.clonePosition(), this.clonePosition()));
2833
2830
  var d = S(h, this.clonePosition());
2834
2831
  l = { style: c, styleLocation: d };
2835
2832
  }
@@ -2837,25 +2834,25 @@ var yi = (
2837
2834
  if (m.err)
2838
2835
  return m;
2839
2836
  var p = S(i, this.clonePosition());
2840
- if (l && jt(l == null ? void 0 : l.style, "::", 0)) {
2841
- var _ = pi(l.style.slice(2));
2837
+ if (l && Jt(l == null ? void 0 : l.style, "::", 0)) {
2838
+ var _ = _i(l.style.slice(2));
2842
2839
  if (a === "number") {
2843
2840
  var f = this.parseNumberSkeletonFromString(_, l.styleLocation);
2844
2841
  return f.err ? f : {
2845
- val: { type: A.number, value: r, location: p, style: f.val },
2842
+ val: { type: T.number, value: r, location: p, style: f.val },
2846
2843
  err: null
2847
2844
  };
2848
2845
  } else {
2849
2846
  if (_.length === 0)
2850
- return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
2847
+ return this.error(x.EXPECT_DATE_TIME_SKELETON, p);
2851
2848
  var g = _;
2852
- this.locale && (g = ri(_, this.locale));
2849
+ this.locale && (g = ai(_, this.locale));
2853
2850
  var c = {
2854
2851
  type: ee.dateTime,
2855
2852
  pattern: g,
2856
2853
  location: l.styleLocation,
2857
- parsedOptions: this.shouldParseSkeletons ? Yr(g) : {}
2858
- }, y = a === "date" ? A.date : A.time;
2854
+ parsedOptions: this.shouldParseSkeletons ? ei(g) : {}
2855
+ }, y = a === "date" ? T.date : T.time;
2859
2856
  return {
2860
2857
  val: { type: y, value: r, location: p, style: c },
2861
2858
  err: null
@@ -2864,7 +2861,7 @@ var yi = (
2864
2861
  }
2865
2862
  return {
2866
2863
  val: {
2867
- type: a === "number" ? A.number : a === "date" ? A.date : A.time,
2864
+ type: a === "number" ? T.number : a === "date" ? T.date : T.time,
2868
2865
  value: r,
2869
2866
  location: p,
2870
2867
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
@@ -2877,17 +2874,17 @@ var yi = (
2877
2874
  case "select": {
2878
2875
  var b = this.clonePosition();
2879
2876
  if (this.bumpSpace(), !this.bumpIf(","))
2880
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, S(b, Ie({}, b)));
2877
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, S(b, Ue({}, b)));
2881
2878
  this.bumpSpace();
2882
- var E = this.parseIdentifierIfPossible(), w = 0;
2879
+ var E = this.parseIdentifierIfPossible(), v = 0;
2883
2880
  if (a !== "select" && E.value === "offset") {
2884
2881
  if (!this.bumpIf(":"))
2885
- return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S(this.clonePosition(), this.clonePosition()));
2882
+ return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S(this.clonePosition(), this.clonePosition()));
2886
2883
  this.bumpSpace();
2887
- var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2884
+ var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2888
2885
  if (f.err)
2889
2886
  return f;
2890
- this.bumpSpace(), E = this.parseIdentifierIfPossible(), w = f.val;
2887
+ this.bumpSpace(), E = this.parseIdentifierIfPossible(), v = f.val;
2891
2888
  }
2892
2889
  var B = this.tryParsePluralOrSelectOptions(t, a, n, E);
2893
2890
  if (B.err)
@@ -2895,32 +2892,32 @@ var yi = (
2895
2892
  var m = this.tryParseArgumentClose(i);
2896
2893
  if (m.err)
2897
2894
  return m;
2898
- var T = S(i, this.clonePosition());
2895
+ var A = S(i, this.clonePosition());
2899
2896
  return a === "select" ? {
2900
2897
  val: {
2901
- type: A.select,
2898
+ type: T.select,
2902
2899
  value: r,
2903
- options: Vt(B.val),
2904
- location: T
2900
+ options: Wt(B.val),
2901
+ location: A
2905
2902
  },
2906
2903
  err: null
2907
2904
  } : {
2908
2905
  val: {
2909
- type: A.plural,
2906
+ type: T.plural,
2910
2907
  value: r,
2911
- options: Vt(B.val),
2912
- offset: w,
2908
+ options: Wt(B.val),
2909
+ offset: v,
2913
2910
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2914
- location: T
2911
+ location: A
2915
2912
  },
2916
2913
  err: null
2917
2914
  };
2918
2915
  }
2919
2916
  default:
2920
- return this.error(v.INVALID_ARGUMENT_TYPE, S(s, u));
2917
+ return this.error(x.INVALID_ARGUMENT_TYPE, S(s, u));
2921
2918
  }
2922
2919
  }, e.prototype.tryParseArgumentClose = function(t) {
2923
- return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, S(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2920
+ return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, S(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2924
2921
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2925
2922
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2926
2923
  var r = this.char();
@@ -2929,7 +2926,7 @@ var yi = (
2929
2926
  this.bump();
2930
2927
  var i = this.clonePosition();
2931
2928
  if (!this.bumpUntil("'"))
2932
- return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, S(i, this.clonePosition()));
2929
+ return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, S(i, this.clonePosition()));
2933
2930
  this.bump();
2934
2931
  break;
2935
2932
  }
@@ -2959,16 +2956,16 @@ var yi = (
2959
2956
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2960
2957
  var r = [];
2961
2958
  try {
2962
- r = Zr(t);
2959
+ r = ni(t);
2963
2960
  } catch (i) {
2964
- return this.error(v.INVALID_NUMBER_SKELETON, n);
2961
+ return this.error(x.INVALID_NUMBER_SKELETON, n);
2965
2962
  }
2966
2963
  return {
2967
2964
  val: {
2968
2965
  type: ee.number,
2969
2966
  tokens: r,
2970
2967
  location: n,
2971
- parsedOptions: this.shouldParseSkeletons ? ni(r) : {}
2968
+ parsedOptions: this.shouldParseSkeletons ? si(r) : {}
2972
2969
  },
2973
2970
  err: null
2974
2971
  };
@@ -2977,7 +2974,7 @@ var yi = (
2977
2974
  if (l.length === 0) {
2978
2975
  var f = this.clonePosition();
2979
2976
  if (n !== "select" && this.bumpIf("=")) {
2980
- var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
2977
+ var c = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
2981
2978
  if (c.err)
2982
2979
  return c;
2983
2980
  h = S(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
@@ -2985,11 +2982,11 @@ var yi = (
2985
2982
  break;
2986
2983
  }
2987
2984
  if (u.has(l))
2988
- return this.error(n === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2985
+ return this.error(n === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2989
2986
  l === "other" && (s = !0), this.bumpSpace();
2990
2987
  var d = this.clonePosition();
2991
2988
  if (!this.bumpIf("{"))
2992
- return this.error(n === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, S(this.clonePosition(), this.clonePosition()));
2989
+ return this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, S(this.clonePosition(), this.clonePosition()));
2993
2990
  var m = this.parseMessage(t + 1, n, r);
2994
2991
  if (m.err)
2995
2992
  return m;
@@ -3004,7 +3001,7 @@ var yi = (
3004
3001
  }
3005
3002
  ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
3006
3003
  }
3007
- 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 };
3004
+ 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 };
3008
3005
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3009
3006
  var r = 1, i = this.clonePosition();
3010
3007
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3016,7 +3013,7 @@ var yi = (
3016
3013
  break;
3017
3014
  }
3018
3015
  var u = S(i, this.clonePosition());
3019
- return o ? (s *= r, gi(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3016
+ return o ? (s *= r, yi(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3020
3017
  }, e.prototype.offset = function() {
3021
3018
  return this.position.offset;
3022
3019
  }, e.prototype.isEOF = function() {
@@ -3031,7 +3028,7 @@ var yi = (
3031
3028
  var t = this.position.offset;
3032
3029
  if (t >= this.message.length)
3033
3030
  throw Error("out of bound");
3034
- var n = vn(this.message, t);
3031
+ var n = Tn(this.message, t);
3035
3032
  if (n === void 0)
3036
3033
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3037
3034
  return n;
@@ -3050,7 +3047,7 @@ var yi = (
3050
3047
  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);
3051
3048
  }
3052
3049
  }, e.prototype.bumpIf = function(t) {
3053
- if (jt(this.message, t, this.offset())) {
3050
+ if (Jt(this.message, t, this.offset())) {
3054
3051
  for (var n = 0; n < t.length; n++)
3055
3052
  this.bump();
3056
3053
  return !0;
@@ -3072,7 +3069,7 @@ var yi = (
3072
3069
  break;
3073
3070
  }
3074
3071
  }, e.prototype.bumpSpace = function() {
3075
- for (; !this.isEOF() && Sn(this.char()); )
3072
+ for (; !this.isEOF() && Cn(this.char()); )
3076
3073
  this.bump();
3077
3074
  }, e.prototype.peek = function() {
3078
3075
  if (this.isEOF())
@@ -3082,47 +3079,47 @@ var yi = (
3082
3079
  }, e;
3083
3080
  }()
3084
3081
  );
3085
- function mt(e) {
3082
+ function _t(e) {
3086
3083
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3087
3084
  }
3088
- function Ei(e) {
3089
- return mt(e) || e === 47;
3085
+ function xi(e) {
3086
+ return _t(e) || e === 47;
3090
3087
  }
3091
- function _i(e) {
3088
+ function Si(e) {
3092
3089
  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;
3093
3090
  }
3094
- function Sn(e) {
3091
+ function Cn(e) {
3095
3092
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3096
3093
  }
3097
- function wi(e) {
3094
+ function Bi(e) {
3098
3095
  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;
3099
3096
  }
3100
- function pt(e) {
3097
+ function wt(e) {
3101
3098
  e.forEach(function(t) {
3102
- if (delete t.location, gn(t) || mn(t))
3099
+ if (delete t.location, yn(t) || En(t))
3103
3100
  for (var n in t.options)
3104
- delete t.options[n].location, pt(t.options[n].value);
3101
+ delete t.options[n].location, wt(t.options[n].value);
3105
3102
  else
3106
- cn(t) && bn(t.style) || (fn(t) || dn(t)) && ct(t.style) ? delete t.style.location : pn(t) && pt(t.children);
3103
+ mn(t) && wn(t.style) || (pn(t) || bn(t)) && pt(t.style) ? delete t.style.location : _n(t) && wt(t.children);
3107
3104
  });
3108
3105
  }
3109
- function vi(e, t) {
3110
- t === void 0 && (t = {}), t = Ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3111
- var n = new yi(e, t).parse();
3106
+ function Ti(e, t) {
3107
+ t === void 0 && (t = {}), t = Ue({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3108
+ var n = new vi(e, t).parse();
3112
3109
  if (n.err) {
3113
- var r = SyntaxError(v[n.err.kind]);
3110
+ var r = SyntaxError(x[n.err.kind]);
3114
3111
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3115
3112
  }
3116
- return t != null && t.captureLocation || pt(n.val), n.val;
3113
+ return t != null && t.captureLocation || wt(n.val), n.val;
3117
3114
  }
3118
3115
  var te;
3119
3116
  (function(e) {
3120
3117
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3121
3118
  })(te || (te = {}));
3122
- var Fe = (
3119
+ var Ve = (
3123
3120
  /** @class */
3124
3121
  function(e) {
3125
- De(t, e);
3122
+ je(t, e);
3126
3123
  function t(n, r, i) {
3127
3124
  var o = e.call(this, n) || this;
3128
3125
  return o.code = r, o.originalMessage = i, o;
@@ -3131,155 +3128,155 @@ var Fe = (
3131
3128
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3132
3129
  }, t;
3133
3130
  }(Error)
3134
- ), Xt = (
3131
+ ), qt = (
3135
3132
  /** @class */
3136
3133
  function(e) {
3137
- De(t, e);
3134
+ je(t, e);
3138
3135
  function t(n, r, i, o) {
3139
3136
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
3140
3137
  }
3141
3138
  return t;
3142
- }(Fe)
3143
- ), xi = (
3139
+ }(Ve)
3140
+ ), Ai = (
3144
3141
  /** @class */
3145
3142
  function(e) {
3146
- De(t, e);
3143
+ je(t, e);
3147
3144
  function t(n, r, i) {
3148
3145
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), te.INVALID_VALUE, i) || this;
3149
3146
  }
3150
3147
  return t;
3151
- }(Fe)
3152
- ), Si = (
3148
+ }(Ve)
3149
+ ), Ci = (
3153
3150
  /** @class */
3154
3151
  function(e) {
3155
- De(t, e);
3152
+ je(t, e);
3156
3153
  function t(n, r) {
3157
3154
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), te.MISSING_VALUE, r) || this;
3158
3155
  }
3159
3156
  return t;
3160
- }(Fe)
3161
- ), P;
3157
+ }(Ve)
3158
+ ), N;
3162
3159
  (function(e) {
3163
3160
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3164
- })(P || (P = {}));
3165
- function Bi(e) {
3161
+ })(N || (N = {}));
3162
+ function Ni(e) {
3166
3163
  return e.length < 2 ? e : e.reduce(function(t, n) {
3167
3164
  var r = t[t.length - 1];
3168
- return !r || r.type !== P.literal || n.type !== P.literal ? t.push(n) : r.value += n.value, t;
3165
+ return !r || r.type !== N.literal || n.type !== N.literal ? t.push(n) : r.value += n.value, t;
3169
3166
  }, []);
3170
3167
  }
3171
- function Ti(e) {
3168
+ function Pi(e) {
3172
3169
  return typeof e == "function";
3173
3170
  }
3174
- function Ne(e, t, n, r, i, o, s) {
3175
- if (e.length === 1 && Ft(e[0]))
3171
+ function Le(e, t, n, r, i, o, s) {
3172
+ if (e.length === 1 && Vt(e[0]))
3176
3173
  return [
3177
3174
  {
3178
- type: P.literal,
3175
+ type: N.literal,
3179
3176
  value: e[0].value
3180
3177
  }
3181
3178
  ];
3182
3179
  for (var a = [], u = 0, l = e; u < l.length; u++) {
3183
3180
  var h = l[u];
3184
- if (Ft(h)) {
3181
+ if (Vt(h)) {
3185
3182
  a.push({
3186
- type: P.literal,
3183
+ type: N.literal,
3187
3184
  value: h.value
3188
3185
  });
3189
3186
  continue;
3190
3187
  }
3191
- if (Jr(h)) {
3188
+ if (Zr(h)) {
3192
3189
  typeof o == "number" && a.push({
3193
- type: P.literal,
3190
+ type: N.literal,
3194
3191
  value: n.getNumberFormat(t).format(o)
3195
3192
  });
3196
3193
  continue;
3197
3194
  }
3198
3195
  var f = h.value;
3199
3196
  if (!(i && f in i))
3200
- throw new Si(f, s);
3197
+ throw new Ci(f, s);
3201
3198
  var c = i[f];
3202
- if (Qr(h)) {
3199
+ if (qr(h)) {
3203
3200
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3204
- type: typeof c == "string" ? P.literal : P.object,
3201
+ type: typeof c == "string" ? N.literal : N.object,
3205
3202
  value: c
3206
3203
  });
3207
3204
  continue;
3208
3205
  }
3209
- if (fn(h)) {
3210
- var d = typeof h.style == "string" ? r.date[h.style] : ct(h.style) ? h.style.parsedOptions : void 0;
3206
+ if (pn(h)) {
3207
+ var d = typeof h.style == "string" ? r.date[h.style] : pt(h.style) ? h.style.parsedOptions : void 0;
3211
3208
  a.push({
3212
- type: P.literal,
3209
+ type: N.literal,
3213
3210
  value: n.getDateTimeFormat(t, d).format(c)
3214
3211
  });
3215
3212
  continue;
3216
3213
  }
3217
- if (dn(h)) {
3218
- var d = typeof h.style == "string" ? r.time[h.style] : ct(h.style) ? h.style.parsedOptions : r.time.medium;
3214
+ if (bn(h)) {
3215
+ var d = typeof h.style == "string" ? r.time[h.style] : pt(h.style) ? h.style.parsedOptions : r.time.medium;
3219
3216
  a.push({
3220
- type: P.literal,
3217
+ type: N.literal,
3221
3218
  value: n.getDateTimeFormat(t, d).format(c)
3222
3219
  });
3223
3220
  continue;
3224
3221
  }
3225
- if (cn(h)) {
3226
- var d = typeof h.style == "string" ? r.number[h.style] : bn(h.style) ? h.style.parsedOptions : void 0;
3222
+ if (mn(h)) {
3223
+ var d = typeof h.style == "string" ? r.number[h.style] : wn(h.style) ? h.style.parsedOptions : void 0;
3227
3224
  d && d.scale && (c = c * (d.scale || 1)), a.push({
3228
- type: P.literal,
3225
+ type: N.literal,
3229
3226
  value: n.getNumberFormat(t, d).format(c)
3230
3227
  });
3231
3228
  continue;
3232
3229
  }
3233
- if (pn(h)) {
3230
+ if (_n(h)) {
3234
3231
  var m = h.children, p = h.value, _ = i[p];
3235
- if (!Ti(_))
3236
- throw new xi(p, "function", s);
3237
- var g = Ne(m, t, n, r, i, o), y = _(g.map(function(w) {
3238
- return w.value;
3232
+ if (!Pi(_))
3233
+ throw new Ai(p, "function", s);
3234
+ var g = Le(m, t, n, r, i, o), y = _(g.map(function(v) {
3235
+ return v.value;
3239
3236
  }));
3240
- Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(w) {
3237
+ Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(v) {
3241
3238
  return {
3242
- type: typeof w == "string" ? P.literal : P.object,
3243
- value: w
3239
+ type: typeof v == "string" ? N.literal : N.object,
3240
+ value: v
3244
3241
  };
3245
3242
  }));
3246
3243
  }
3247
- if (gn(h)) {
3244
+ if (yn(h)) {
3248
3245
  var b = h.options[c] || h.options.other;
3249
3246
  if (!b)
3250
- throw new Xt(h.value, c, Object.keys(h.options), s);
3251
- a.push.apply(a, Ne(b.value, t, n, r, i));
3247
+ throw new qt(h.value, c, Object.keys(h.options), s);
3248
+ a.push.apply(a, Le(b.value, t, n, r, i));
3252
3249
  continue;
3253
3250
  }
3254
- if (mn(h)) {
3251
+ if (En(h)) {
3255
3252
  var b = h.options["=".concat(c)];
3256
3253
  if (!b) {
3257
3254
  if (!Intl.PluralRules)
3258
- throw new Fe(`Intl.PluralRules is not available in this environment.
3255
+ throw new Ve(`Intl.PluralRules is not available in this environment.
3259
3256
  Try polyfilling it using "@formatjs/intl-pluralrules"
3260
3257
  `, te.MISSING_INTL_API, s);
3261
3258
  var E = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3262
3259
  b = h.options[E] || h.options.other;
3263
3260
  }
3264
3261
  if (!b)
3265
- throw new Xt(h.value, c, Object.keys(h.options), s);
3266
- a.push.apply(a, Ne(b.value, t, n, r, i, c - (h.offset || 0)));
3262
+ throw new qt(h.value, c, Object.keys(h.options), s);
3263
+ a.push.apply(a, Le(b.value, t, n, r, i, c - (h.offset || 0)));
3267
3264
  continue;
3268
3265
  }
3269
3266
  }
3270
- return Bi(a);
3267
+ return Ni(a);
3271
3268
  }
3272
- function Ai(e, t) {
3273
- return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3274
- return n[r] = F(F({}, e[r]), t[r] || {}), n;
3269
+ function Hi(e, t) {
3270
+ return t ? D(D(D({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3271
+ return n[r] = D(D({}, e[r]), t[r] || {}), n;
3275
3272
  }, {})) : e;
3276
3273
  }
3277
- function Ci(e, t) {
3274
+ function Ii(e, t) {
3278
3275
  return t ? Object.keys(e).reduce(function(n, r) {
3279
- return n[r] = Ai(e[r], t[r]), n;
3280
- }, F({}, e)) : e;
3276
+ return n[r] = Hi(e[r], t[r]), n;
3277
+ }, D({}, e)) : e;
3281
3278
  }
3282
- function Ke(e) {
3279
+ function it(e) {
3283
3280
  return {
3284
3281
  create: function() {
3285
3282
  return {
@@ -3293,39 +3290,39 @@ function Ke(e) {
3293
3290
  }
3294
3291
  };
3295
3292
  }
3296
- function Ni(e) {
3293
+ function Li(e) {
3297
3294
  return e === void 0 && (e = {
3298
3295
  number: {},
3299
3296
  dateTime: {},
3300
3297
  pluralRules: {}
3301
3298
  }), {
3302
- getNumberFormat: Ye(function() {
3299
+ getNumberFormat: tt(function() {
3303
3300
  for (var t, n = [], r = 0; r < arguments.length; r++)
3304
3301
  n[r] = arguments[r];
3305
- return new ((t = Intl.NumberFormat).bind.apply(t, We([void 0], n, !1)))();
3302
+ return new ((t = Intl.NumberFormat).bind.apply(t, et([void 0], n, !1)))();
3306
3303
  }, {
3307
- cache: Ke(e.number),
3308
- strategy: qe.variadic
3304
+ cache: it(e.number),
3305
+ strategy: nt.variadic
3309
3306
  }),
3310
- getDateTimeFormat: Ye(function() {
3307
+ getDateTimeFormat: tt(function() {
3311
3308
  for (var t, n = [], r = 0; r < arguments.length; r++)
3312
3309
  n[r] = arguments[r];
3313
- return new ((t = Intl.DateTimeFormat).bind.apply(t, We([void 0], n, !1)))();
3310
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, et([void 0], n, !1)))();
3314
3311
  }, {
3315
- cache: Ke(e.dateTime),
3316
- strategy: qe.variadic
3312
+ cache: it(e.dateTime),
3313
+ strategy: nt.variadic
3317
3314
  }),
3318
- getPluralRules: Ye(function() {
3315
+ getPluralRules: tt(function() {
3319
3316
  for (var t, n = [], r = 0; r < arguments.length; r++)
3320
3317
  n[r] = arguments[r];
3321
- return new ((t = Intl.PluralRules).bind.apply(t, We([void 0], n, !1)))();
3318
+ return new ((t = Intl.PluralRules).bind.apply(t, et([void 0], n, !1)))();
3322
3319
  }, {
3323
- cache: Ke(e.pluralRules),
3324
- strategy: qe.variadic
3320
+ cache: it(e.pluralRules),
3321
+ strategy: nt.variadic
3325
3322
  })
3326
3323
  };
3327
3324
  }
3328
- var Pi = (
3325
+ var Mi = (
3329
3326
  /** @class */
3330
3327
  function() {
3331
3328
  function e(t, n, r, i) {
@@ -3340,11 +3337,11 @@ var Pi = (
3340
3337
  if (l.length === 1)
3341
3338
  return l[0].value;
3342
3339
  var h = l.reduce(function(f, c) {
3343
- return !f.length || c.type !== P.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3340
+ return !f.length || c.type !== N.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3344
3341
  }, []);
3345
3342
  return h.length <= 1 ? h[0] || "" : h;
3346
3343
  }, this.formatToParts = function(u) {
3347
- return Ne(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3344
+ return Le(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3348
3345
  }, this.resolvedOptions = function() {
3349
3346
  var u;
3350
3347
  return {
@@ -3357,13 +3354,13 @@ var Pi = (
3357
3354
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3358
3355
  var s = i || {};
3359
3356
  s.formatters;
3360
- var a = Fr(s, ["formatters"]);
3361
- this.ast = e.__parse(t, F(F({}, a), { locale: this.resolvedLocale }));
3357
+ var a = jr(s, ["formatters"]);
3358
+ this.ast = e.__parse(t, D(D({}, a), { locale: this.resolvedLocale }));
3362
3359
  } else
3363
3360
  this.ast = t;
3364
3361
  if (!Array.isArray(this.ast))
3365
3362
  throw new TypeError("A message must be provided as a String or AST.");
3366
- this.formats = Ci(e.formats, r), this.formatters = i && i.formatters || Ni(this.formatterCache);
3363
+ this.formats = Ii(e.formats, r), this.formatters = i && i.formatters || Li(this.formatterCache);
3367
3364
  }
3368
3365
  return Object.defineProperty(e, "defaultLocale", {
3369
3366
  get: function() {
@@ -3376,7 +3373,7 @@ var Pi = (
3376
3373
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3377
3374
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3378
3375
  }
3379
- }, e.__parse = vi, e.formats = {
3376
+ }, e.__parse = Ti, e.formats = {
3380
3377
  number: {
3381
3378
  integer: {
3382
3379
  maximumFractionDigits: 0
@@ -3437,7 +3434,7 @@ var Pi = (
3437
3434
  }, e;
3438
3435
  }()
3439
3436
  );
3440
- function Hi(e, t) {
3437
+ function Ri(e, t) {
3441
3438
  if (t == null)
3442
3439
  return;
3443
3440
  if (t in e)
@@ -3458,92 +3455,92 @@ function Hi(e, t) {
3458
3455
  r = void 0;
3459
3456
  return r;
3460
3457
  }
3461
- const j = {}, Ii = (e, t, n) => n && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = n), n), Bn = (e, t) => {
3458
+ const j = {}, Oi = (e, t, n) => n && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = n), n), Nn = (e, t) => {
3462
3459
  if (t == null)
3463
3460
  return;
3464
3461
  if (t in j && e in j[t])
3465
3462
  return j[t][e];
3466
- const n = Ge(t);
3463
+ const n = ze(t);
3467
3464
  for (let r = 0; r < n.length; r++) {
3468
- const i = n[r], o = Mi(i, e);
3465
+ const i = n[r], o = Di(i, e);
3469
3466
  if (o)
3470
- return Ii(e, t, o);
3467
+ return Oi(e, t, o);
3471
3468
  }
3472
3469
  };
3473
- let St;
3474
- const we = Ue({});
3475
- function Li(e) {
3476
- return St[e] || null;
3470
+ let Nt;
3471
+ const Se = ke({});
3472
+ function Ui(e) {
3473
+ return Nt[e] || null;
3477
3474
  }
3478
- function Tn(e) {
3479
- return e in St;
3475
+ function Pn(e) {
3476
+ return e in Nt;
3480
3477
  }
3481
- function Mi(e, t) {
3482
- if (!Tn(e))
3478
+ function Di(e, t) {
3479
+ if (!Pn(e))
3483
3480
  return null;
3484
- const n = Li(e);
3485
- return Hi(n, t);
3481
+ const n = Ui(e);
3482
+ return Ri(n, t);
3486
3483
  }
3487
- function Ri(e) {
3484
+ function Fi(e) {
3488
3485
  if (e == null)
3489
3486
  return;
3490
- const t = Ge(e);
3487
+ const t = ze(e);
3491
3488
  for (let n = 0; n < t.length; n++) {
3492
3489
  const r = t[n];
3493
- if (Tn(r))
3490
+ if (Pn(r))
3494
3491
  return r;
3495
3492
  }
3496
3493
  }
3497
- function An(e, ...t) {
3498
- delete j[e], we.update((n) => (n[e] = Dr.all([n[e] || {}, ...t]), n));
3494
+ function Hn(e, ...t) {
3495
+ delete j[e], Se.update((n) => (n[e] = kr.all([n[e] || {}, ...t]), n));
3499
3496
  }
3500
3497
  ue(
3501
- [we],
3498
+ [Se],
3502
3499
  ([e]) => Object.keys(e)
3503
3500
  );
3504
- we.subscribe((e) => St = e);
3505
- const Pe = {};
3506
- function Oi(e, t) {
3507
- Pe[e].delete(t), Pe[e].size === 0 && delete Pe[e];
3501
+ Se.subscribe((e) => Nt = e);
3502
+ const Me = {};
3503
+ function Gi(e, t) {
3504
+ Me[e].delete(t), Me[e].size === 0 && delete Me[e];
3508
3505
  }
3509
- function Cn(e) {
3510
- return Pe[e];
3506
+ function In(e) {
3507
+ return Me[e];
3511
3508
  }
3512
- function Ui(e) {
3513
- return Ge(e).map((t) => {
3514
- const n = Cn(t);
3509
+ function $i(e) {
3510
+ return ze(e).map((t) => {
3511
+ const n = In(t);
3515
3512
  return [t, n ? [...n] : []];
3516
3513
  }).filter(([, t]) => t.length > 0);
3517
3514
  }
3518
- function bt(e) {
3519
- return e == null ? !1 : Ge(e).some(
3515
+ function vt(e) {
3516
+ return e == null ? !1 : ze(e).some(
3520
3517
  (t) => {
3521
3518
  var n;
3522
- return (n = Cn(t)) == null ? void 0 : n.size;
3519
+ return (n = In(t)) == null ? void 0 : n.size;
3523
3520
  }
3524
3521
  );
3525
3522
  }
3526
- function Di(e, t) {
3523
+ function ki(e, t) {
3527
3524
  return Promise.all(
3528
- t.map((r) => (Oi(e, r), r().then((i) => i.default || i)))
3529
- ).then((r) => An(e, ...r));
3530
- }
3531
- const fe = {};
3532
- function Nn(e) {
3533
- if (!bt(e))
3534
- return e in fe ? fe[e] : Promise.resolve();
3535
- const t = Ui(e);
3536
- return fe[e] = Promise.all(
3525
+ t.map((r) => (Gi(e, r), r().then((i) => i.default || i)))
3526
+ ).then((r) => Hn(e, ...r));
3527
+ }
3528
+ const me = {};
3529
+ function Ln(e) {
3530
+ if (!vt(e))
3531
+ return e in me ? me[e] : Promise.resolve();
3532
+ const t = $i(e);
3533
+ return me[e] = Promise.all(
3537
3534
  t.map(
3538
- ([n, r]) => Di(n, r)
3535
+ ([n, r]) => ki(n, r)
3539
3536
  )
3540
3537
  ).then(() => {
3541
- if (bt(e))
3542
- return Nn(e);
3543
- delete fe[e];
3544
- }), fe[e];
3538
+ if (vt(e))
3539
+ return Ln(e);
3540
+ delete me[e];
3541
+ }), me[e];
3545
3542
  }
3546
- const Fi = {
3543
+ const ji = {
3547
3544
  number: {
3548
3545
  scientific: { notation: "scientific" },
3549
3546
  engineering: { notation: "engineering" },
@@ -3572,148 +3569,148 @@ const Fi = {
3572
3569
  timeZoneName: "short"
3573
3570
  }
3574
3571
  }
3575
- }, Gi = {
3572
+ }, Vi = {
3576
3573
  fallbackLocale: null,
3577
3574
  loadingDelay: 200,
3578
- formats: Fi,
3575
+ formats: ji,
3579
3576
  warnOnMissingMessages: !0,
3580
3577
  handleMissingMessage: void 0,
3581
3578
  ignoreTag: !0
3582
- }, $i = Gi;
3579
+ }, zi = Vi;
3583
3580
  function ne() {
3584
- return $i;
3581
+ return zi;
3585
3582
  }
3586
- const et = Ue(!1);
3587
- var ki = Object.defineProperty, ji = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, zi = Object.prototype.hasOwnProperty, Xi = Object.prototype.propertyIsEnumerable, Jt = (e, t, n) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Qi = (e, t) => {
3583
+ const ot = ke(!1);
3584
+ var Xi = Object.defineProperty, Qi = Object.defineProperties, Ji = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, qi = (e, t) => {
3588
3585
  for (var n in t || (t = {}))
3589
- zi.call(t, n) && Jt(e, n, t[n]);
3590
- if (Qt)
3591
- for (var n of Qt(t))
3592
- Xi.call(t, n) && Jt(e, n, t[n]);
3586
+ Wi.call(t, n) && Kt(e, n, t[n]);
3587
+ if (Zt)
3588
+ for (var n of Zt(t))
3589
+ Yi.call(t, n) && Kt(e, n, t[n]);
3593
3590
  return e;
3594
- }, Ji = (e, t) => ji(e, Vi(t));
3595
- let yt;
3596
- const Le = Ue(null);
3597
- function Wt(e) {
3591
+ }, Zi = (e, t) => Qi(e, Ji(t));
3592
+ let xt;
3593
+ const De = ke(null);
3594
+ function en(e) {
3598
3595
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3599
3596
  }
3600
- function Ge(e, t = ne().fallbackLocale) {
3601
- const n = Wt(e);
3602
- return t ? [.../* @__PURE__ */ new Set([...n, ...Wt(t)])] : n;
3597
+ function ze(e, t = ne().fallbackLocale) {
3598
+ const n = en(e);
3599
+ return t ? [.../* @__PURE__ */ new Set([...n, ...en(t)])] : n;
3603
3600
  }
3604
- function Q() {
3605
- return yt != null ? yt : void 0;
3601
+ function X() {
3602
+ return xt != null ? xt : void 0;
3606
3603
  }
3607
- Le.subscribe((e) => {
3608
- yt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3604
+ De.subscribe((e) => {
3605
+ xt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3609
3606
  });
3610
- const Wi = (e) => {
3611
- if (e && Ri(e) && bt(e)) {
3607
+ const Ki = (e) => {
3608
+ if (e && Fi(e) && vt(e)) {
3612
3609
  const { loadingDelay: t } = ne();
3613
3610
  let n;
3614
- return typeof window != "undefined" && Q() != null && t ? n = window.setTimeout(
3615
- () => et.set(!0),
3611
+ return typeof window != "undefined" && X() != null && t ? n = window.setTimeout(
3612
+ () => ot.set(!0),
3616
3613
  t
3617
- ) : et.set(!0), Nn(e).then(() => {
3618
- Le.set(e);
3614
+ ) : ot.set(!0), Ln(e).then(() => {
3615
+ De.set(e);
3619
3616
  }).finally(() => {
3620
- clearTimeout(n), et.set(!1);
3617
+ clearTimeout(n), ot.set(!1);
3621
3618
  });
3622
3619
  }
3623
- return Le.set(e);
3624
- }, le = Ji(Qi({}, Le), {
3625
- set: Wi
3626
- }), $e = (e) => {
3620
+ return De.set(e);
3621
+ }, le = Zi(qi({}, De), {
3622
+ set: Ki
3623
+ }), Xe = (e) => {
3627
3624
  const t = /* @__PURE__ */ Object.create(null);
3628
3625
  return (r) => {
3629
3626
  const i = JSON.stringify(r);
3630
3627
  return i in t ? t[i] : t[i] = e(r);
3631
3628
  };
3632
3629
  };
3633
- var Yi = Object.defineProperty, Me = Object.getOwnPropertySymbols, Pn = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, Yt = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bt = (e, t) => {
3630
+ var eo = Object.defineProperty, Fe = Object.getOwnPropertySymbols, Mn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, tn = (e, t, n) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t) => {
3634
3631
  for (var n in t || (t = {}))
3635
- Pn.call(t, n) && Yt(e, n, t[n]);
3636
- if (Me)
3637
- for (var n of Me(t))
3638
- Hn.call(t, n) && Yt(e, n, t[n]);
3632
+ Mn.call(t, n) && tn(e, n, t[n]);
3633
+ if (Fe)
3634
+ for (var n of Fe(t))
3635
+ Rn.call(t, n) && tn(e, n, t[n]);
3639
3636
  return e;
3640
3637
  }, he = (e, t) => {
3641
3638
  var n = {};
3642
3639
  for (var r in e)
3643
- Pn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3644
- if (e != null && Me)
3645
- for (var r of Me(e))
3646
- t.indexOf(r) < 0 && Hn.call(e, r) && (n[r] = e[r]);
3640
+ Mn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3641
+ if (e != null && Fe)
3642
+ for (var r of Fe(e))
3643
+ t.indexOf(r) < 0 && Rn.call(e, r) && (n[r] = e[r]);
3647
3644
  return n;
3648
3645
  };
3649
- const be = (e, t) => {
3646
+ const _e = (e, t) => {
3650
3647
  const { formats: n } = ne();
3651
3648
  if (e in n && t in n[e])
3652
3649
  return n[e][t];
3653
3650
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3654
- }, qi = $e(
3651
+ }, to = Xe(
3655
3652
  (e) => {
3656
3653
  var t = e, { locale: n, format: r } = t, i = he(t, ["locale", "format"]);
3657
3654
  if (n == null)
3658
3655
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3659
- return r && (i = be("number", r)), new Intl.NumberFormat(n, i);
3656
+ return r && (i = _e("number", r)), new Intl.NumberFormat(n, i);
3660
3657
  }
3661
- ), Zi = $e(
3658
+ ), no = Xe(
3662
3659
  (e) => {
3663
3660
  var t = e, { locale: n, format: r } = t, i = he(t, ["locale", "format"]);
3664
3661
  if (n == null)
3665
3662
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3666
- return r ? i = be("date", r) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(n, i);
3663
+ return r ? i = _e("date", r) : Object.keys(i).length === 0 && (i = _e("date", "short")), new Intl.DateTimeFormat(n, i);
3667
3664
  }
3668
- ), Ki = $e(
3665
+ ), ro = Xe(
3669
3666
  (e) => {
3670
3667
  var t = e, { locale: n, format: r } = t, i = he(t, ["locale", "format"]);
3671
3668
  if (n == null)
3672
3669
  throw new Error(
3673
3670
  '[svelte-i18n] A "locale" must be set to format time values'
3674
3671
  );
3675
- return r ? i = be("time", r) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(n, i);
3672
+ return r ? i = _e("time", r) : Object.keys(i).length === 0 && (i = _e("time", "short")), new Intl.DateTimeFormat(n, i);
3676
3673
  }
3677
- ), eo = (e = {}) => {
3674
+ ), io = (e = {}) => {
3678
3675
  var t = e, {
3679
- locale: n = Q()
3676
+ locale: n = X()
3680
3677
  } = t, r = he(t, [
3681
3678
  "locale"
3682
3679
  ]);
3683
- return qi(Bt({ locale: n }, r));
3684
- }, to = (e = {}) => {
3680
+ return to(Pt({ locale: n }, r));
3681
+ }, oo = (e = {}) => {
3685
3682
  var t = e, {
3686
- locale: n = Q()
3683
+ locale: n = X()
3687
3684
  } = t, r = he(t, [
3688
3685
  "locale"
3689
3686
  ]);
3690
- return Zi(Bt({ locale: n }, r));
3691
- }, no = (e = {}) => {
3687
+ return no(Pt({ locale: n }, r));
3688
+ }, so = (e = {}) => {
3692
3689
  var t = e, {
3693
- locale: n = Q()
3690
+ locale: n = X()
3694
3691
  } = t, r = he(t, [
3695
3692
  "locale"
3696
3693
  ]);
3697
- return Ki(Bt({ locale: n }, r));
3698
- }, ro = $e(
3694
+ return ro(Pt({ locale: n }, r));
3695
+ }, ao = Xe(
3699
3696
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3700
- (e, t = Q()) => new Pi(e, t, ne().formats, {
3697
+ (e, t = X()) => new Mi(e, t, ne().formats, {
3701
3698
  ignoreTag: ne().ignoreTag
3702
3699
  })
3703
- ), io = (e, t = {}) => {
3700
+ ), uo = (e, t = {}) => {
3704
3701
  var n, r, i, o;
3705
3702
  let s = t;
3706
3703
  typeof e == "object" && (s = e, e = s.id);
3707
3704
  const {
3708
3705
  values: a,
3709
- locale: u = Q(),
3706
+ locale: u = X(),
3710
3707
  default: l
3711
3708
  } = s;
3712
3709
  if (u == null)
3713
3710
  throw new Error(
3714
3711
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3715
3712
  );
3716
- let h = Bn(e, u);
3713
+ let h = Nn(e, u);
3717
3714
  if (!h)
3718
3715
  h = (o = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3719
3716
  else if (typeof h != "string")
@@ -3724,7 +3721,7 @@ const be = (e, t) => {
3724
3721
  return h;
3725
3722
  let f = h;
3726
3723
  try {
3727
- f = ro(h, u).format(a);
3724
+ f = ao(h, u).format(a);
3728
3725
  } catch (c) {
3729
3726
  c instanceof Error && console.warn(
3730
3727
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3732,40 +3729,42 @@ const be = (e, t) => {
3732
3729
  );
3733
3730
  }
3734
3731
  return f;
3735
- }, oo = (e, t) => no(t).format(e), so = (e, t) => to(t).format(e), ao = (e, t) => eo(t).format(e), uo = (e, t = Q()) => Bn(e, t), lo = ue([le, we], () => io);
3736
- ue([le], () => oo);
3737
- ue([le], () => so);
3738
- ue([le], () => ao);
3739
- ue([le, we], () => uo);
3740
- function qt(e, t) {
3741
- An(e, t);
3742
- }
3743
- function ho(e) {
3732
+ }, lo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t = X()) => Nn(e, t), go = ue([le, Se], () => uo);
3733
+ ue([le], () => lo);
3734
+ ue([le], () => ho);
3735
+ ue([le], () => co);
3736
+ ue([le, Se], () => fo);
3737
+ function nn(e, t) {
3738
+ Hn(e, t);
3739
+ }
3740
+ function mo(e) {
3744
3741
  le.set(e);
3745
3742
  }
3746
- const Zt = {
3743
+ const rn = {
3747
3744
  en: {
3748
3745
  titleQRSessionGenerator: "Scan the QR Code to access your account on retail devices.",
3749
3746
  generateQRButton: "Generate QR",
3750
3747
  unauthorized: "Authentication failed.",
3751
3748
  failedToFetch: "Cannot generate QR, Please try again.",
3752
- unexpectedError: "Unexpected error occurred. Please try again later."
3749
+ unexpectedError: "Unexpected error occurred. Please try again later.",
3750
+ second: "s"
3753
3751
  },
3754
3752
  fr: {
3755
3753
  titleQRSessionGenerator: "Scannez le code QR pour accéder à votre compte sur les appareils en magasin.",
3756
3754
  generateQRButton: "Générer des QR",
3757
3755
  unauthorized: "L'authentification a échoué.",
3758
3756
  failedToFetch: "Impossible de générer le code QR, veuillez réessayer.",
3759
- unexpectedError: "Une erreur inattendue s'est produite. Veuillez réessayer plus tard."
3757
+ unexpectedError: "Une erreur inattendue s'est produite. Veuillez réessayer plus tard.",
3758
+ second: "s"
3760
3759
  }
3761
3760
  }, q = "__WIDGET_GLOBAL_STYLE_CACHE__";
3762
- function co(e, t) {
3761
+ function po(e, t) {
3763
3762
  if (e) {
3764
3763
  const n = document.createElement("style");
3765
3764
  n.innerHTML = t, e.appendChild(n);
3766
3765
  }
3767
3766
  }
3768
- function fo(e, t) {
3767
+ function bo(e, t) {
3769
3768
  if (!e || !t)
3770
3769
  return;
3771
3770
  const n = new URL(t);
@@ -3776,12 +3775,12 @@ function fo(e, t) {
3776
3775
  console.error("There was an error while trying to load client styling from URL", r);
3777
3776
  });
3778
3777
  }
3779
- function go(e, t, n, r = !1) {
3778
+ function yo(e, t, n, r = !1) {
3780
3779
  if (!window.emMessageBus)
3781
3780
  return;
3782
3781
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
3783
- return n = mo(e, t), n;
3784
- window[q] || (window[q] = {}), n = po(e, t);
3782
+ return n = Eo(e, t), n;
3783
+ window[q] || (window[q] = {}), n = _o(e, t);
3785
3784
  const o = n.unsubscribe.bind(n), s = () => {
3786
3785
  if (window[q][t]) {
3787
3786
  const a = window[q][t];
@@ -3791,13 +3790,13 @@ function go(e, t, n, r = !1) {
3791
3790
  };
3792
3791
  return n.unsubscribe = s, n;
3793
3792
  }
3794
- function mo(e, t) {
3793
+ function Eo(e, t) {
3795
3794
  const n = document.createElement("style");
3796
3795
  return window.emMessageBus.subscribe(t, (r) => {
3797
3796
  e && (n.innerHTML = r, e.appendChild(n));
3798
3797
  });
3799
3798
  }
3800
- function po(e, t) {
3799
+ function _o(e, t) {
3801
3800
  return window.emMessageBus.subscribe(t, (n) => {
3802
3801
  if (!e)
3803
3802
  return;
@@ -3811,11 +3810,11 @@ function po(e, t) {
3811
3810
  s.includes(o) || (r.adoptedStyleSheets = [...s, o]);
3812
3811
  });
3813
3812
  }
3814
- var ve = {}, bo = function() {
3813
+ var Be = {}, wo = function() {
3815
3814
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
3816
- }, In = {}, I = {};
3817
- let Tt;
3818
- const yo = [
3815
+ }, On = {}, H = {};
3816
+ let Ht;
3817
+ const vo = [
3819
3818
  0,
3820
3819
  // Not used
3821
3820
  26,
@@ -3859,34 +3858,34 @@ const yo = [
3859
3858
  3532,
3860
3859
  3706
3861
3860
  ];
3862
- I.getSymbolSize = function(t) {
3861
+ H.getSymbolSize = function(t) {
3863
3862
  if (!t)
3864
3863
  throw new Error('"version" cannot be null or undefined');
3865
3864
  if (t < 1 || t > 40)
3866
3865
  throw new Error('"version" should be in range from 1 to 40');
3867
3866
  return t * 4 + 17;
3868
3867
  };
3869
- I.getSymbolTotalCodewords = function(t) {
3870
- return yo[t];
3868
+ H.getSymbolTotalCodewords = function(t) {
3869
+ return vo[t];
3871
3870
  };
3872
- I.getBCHDigit = function(e) {
3871
+ H.getBCHDigit = function(e) {
3873
3872
  let t = 0;
3874
3873
  for (; e !== 0; )
3875
3874
  t++, e >>>= 1;
3876
3875
  return t;
3877
3876
  };
3878
- I.setToSJISFunction = function(t) {
3877
+ H.setToSJISFunction = function(t) {
3879
3878
  if (typeof t != "function")
3880
3879
  throw new Error('"toSJISFunc" is not a valid function.');
3881
- Tt = t;
3880
+ Ht = t;
3882
3881
  };
3883
- I.isKanjiModeEnabled = function() {
3884
- return typeof Tt != "undefined";
3882
+ H.isKanjiModeEnabled = function() {
3883
+ return typeof Ht != "undefined";
3885
3884
  };
3886
- I.toSJIS = function(t) {
3887
- return Tt(t);
3885
+ H.toSJIS = function(t) {
3886
+ return Ht(t);
3888
3887
  };
3889
- var ke = {};
3888
+ var Qe = {};
3890
3889
  (function(e) {
3891
3890
  e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
3892
3891
  function t(n) {
@@ -3920,11 +3919,11 @@ var ke = {};
3920
3919
  return i;
3921
3920
  }
3922
3921
  };
3923
- })(ke);
3924
- function Ln() {
3922
+ })(Qe);
3923
+ function Un() {
3925
3924
  this.buffer = [], this.length = 0;
3926
3925
  }
3927
- Ln.prototype = {
3926
+ Un.prototype = {
3928
3927
  get: function(e) {
3929
3928
  const t = Math.floor(e / 8);
3930
3929
  return (this.buffer[t] >>> 7 - e % 8 & 1) === 1;
@@ -3941,28 +3940,28 @@ Ln.prototype = {
3941
3940
  this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
3942
3941
  }
3943
3942
  };
3944
- var Eo = Ln;
3945
- function xe(e) {
3943
+ var xo = Un;
3944
+ function Te(e) {
3946
3945
  if (!e || e < 1)
3947
3946
  throw new Error("BitMatrix size must be defined and greater than 0");
3948
3947
  this.size = e, this.data = new Uint8Array(e * e), this.reservedBit = new Uint8Array(e * e);
3949
3948
  }
3950
- xe.prototype.set = function(e, t, n, r) {
3949
+ Te.prototype.set = function(e, t, n, r) {
3951
3950
  const i = e * this.size + t;
3952
3951
  this.data[i] = n, r && (this.reservedBit[i] = !0);
3953
3952
  };
3954
- xe.prototype.get = function(e, t) {
3953
+ Te.prototype.get = function(e, t) {
3955
3954
  return this.data[e * this.size + t];
3956
3955
  };
3957
- xe.prototype.xor = function(e, t, n) {
3956
+ Te.prototype.xor = function(e, t, n) {
3958
3957
  this.data[e * this.size + t] ^= n;
3959
3958
  };
3960
- xe.prototype.isReserved = function(e, t) {
3959
+ Te.prototype.isReserved = function(e, t) {
3961
3960
  return this.reservedBit[e * this.size + t];
3962
3961
  };
3963
- var _o = xe, Mn = {};
3962
+ var So = Te, Dn = {};
3964
3963
  (function(e) {
3965
- const t = I.getSymbolSize;
3964
+ const t = H.getSymbolSize;
3966
3965
  e.getRowColCoords = function(r) {
3967
3966
  if (r === 1)
3968
3967
  return [];
@@ -3979,21 +3978,21 @@ var _o = xe, Mn = {};
3979
3978
  a === s - 1 && u === 0 || i.push([o[a], o[u]]);
3980
3979
  return i;
3981
3980
  };
3982
- })(Mn);
3983
- var Rn = {};
3984
- const wo = I.getSymbolSize, Kt = 7;
3985
- Rn.getPositions = function(t) {
3986
- const n = wo(t);
3981
+ })(Dn);
3982
+ var Fn = {};
3983
+ const Bo = H.getSymbolSize, on = 7;
3984
+ Fn.getPositions = function(t) {
3985
+ const n = Bo(t);
3987
3986
  return [
3988
3987
  // top-left
3989
3988
  [0, 0],
3990
3989
  // top-right
3991
- [n - Kt, 0],
3990
+ [n - on, 0],
3992
3991
  // bottom-left
3993
- [0, n - Kt]
3992
+ [0, n - on]
3994
3993
  ];
3995
3994
  };
3996
- var On = {};
3995
+ var Gn = {};
3997
3996
  (function(e) {
3998
3997
  e.Patterns = {
3999
3998
  PATTERN000: 0,
@@ -4089,9 +4088,9 @@ var On = {};
4089
4088
  }
4090
4089
  return a;
4091
4090
  };
4092
- })(On);
4093
- var je = {};
4094
- const V = ke, Te = [
4091
+ })(Gn);
4092
+ var Je = {};
4093
+ const V = Qe, Pe = [
4095
4094
  // L M Q H
4096
4095
  1,
4097
4096
  1,
@@ -4253,7 +4252,7 @@ const V = ke, Te = [
4253
4252
  49,
4254
4253
  68,
4255
4254
  81
4256
- ], Ae = [
4255
+ ], He = [
4257
4256
  // L M Q H
4258
4257
  7,
4259
4258
  10,
@@ -4416,56 +4415,56 @@ const V = ke, Te = [
4416
4415
  2040,
4417
4416
  2430
4418
4417
  ];
4419
- je.getBlocksCount = function(t, n) {
4418
+ Je.getBlocksCount = function(t, n) {
4420
4419
  switch (n) {
4421
4420
  case V.L:
4422
- return Te[(t - 1) * 4 + 0];
4421
+ return Pe[(t - 1) * 4 + 0];
4423
4422
  case V.M:
4424
- return Te[(t - 1) * 4 + 1];
4423
+ return Pe[(t - 1) * 4 + 1];
4425
4424
  case V.Q:
4426
- return Te[(t - 1) * 4 + 2];
4425
+ return Pe[(t - 1) * 4 + 2];
4427
4426
  case V.H:
4428
- return Te[(t - 1) * 4 + 3];
4427
+ return Pe[(t - 1) * 4 + 3];
4429
4428
  default:
4430
4429
  return;
4431
4430
  }
4432
4431
  };
4433
- je.getTotalCodewordsCount = function(t, n) {
4432
+ Je.getTotalCodewordsCount = function(t, n) {
4434
4433
  switch (n) {
4435
4434
  case V.L:
4436
- return Ae[(t - 1) * 4 + 0];
4435
+ return He[(t - 1) * 4 + 0];
4437
4436
  case V.M:
4438
- return Ae[(t - 1) * 4 + 1];
4437
+ return He[(t - 1) * 4 + 1];
4439
4438
  case V.Q:
4440
- return Ae[(t - 1) * 4 + 2];
4439
+ return He[(t - 1) * 4 + 2];
4441
4440
  case V.H:
4442
- return Ae[(t - 1) * 4 + 3];
4441
+ return He[(t - 1) * 4 + 3];
4443
4442
  default:
4444
4443
  return;
4445
4444
  }
4446
4445
  };
4447
- var Un = {}, Ve = {};
4448
- const ge = new Uint8Array(512), Re = new Uint8Array(256);
4446
+ var $n = {}, We = {};
4447
+ const be = new Uint8Array(512), Ge = new Uint8Array(256);
4449
4448
  (function() {
4450
4449
  let t = 1;
4451
4450
  for (let n = 0; n < 255; n++)
4452
- ge[n] = t, Re[t] = n, t <<= 1, t & 256 && (t ^= 285);
4451
+ be[n] = t, Ge[t] = n, t <<= 1, t & 256 && (t ^= 285);
4453
4452
  for (let n = 255; n < 512; n++)
4454
- ge[n] = ge[n - 255];
4453
+ be[n] = be[n - 255];
4455
4454
  })();
4456
- Ve.log = function(t) {
4455
+ We.log = function(t) {
4457
4456
  if (t < 1)
4458
4457
  throw new Error("log(" + t + ")");
4459
- return Re[t];
4458
+ return Ge[t];
4460
4459
  };
4461
- Ve.exp = function(t) {
4462
- return ge[t];
4460
+ We.exp = function(t) {
4461
+ return be[t];
4463
4462
  };
4464
- Ve.mul = function(t, n) {
4465
- return t === 0 || n === 0 ? 0 : ge[Re[t] + Re[n]];
4463
+ We.mul = function(t, n) {
4464
+ return t === 0 || n === 0 ? 0 : be[Ge[t] + Ge[n]];
4466
4465
  };
4467
4466
  (function(e) {
4468
- const t = Ve;
4467
+ const t = We;
4469
4468
  e.mul = function(r, i) {
4470
4469
  const o = new Uint8Array(r.length + i.length - 1);
4471
4470
  for (let s = 0; s < r.length; s++)
@@ -4490,53 +4489,53 @@ Ve.mul = function(t, n) {
4490
4489
  i = e.mul(i, new Uint8Array([1, t.exp(o)]));
4491
4490
  return i;
4492
4491
  };
4493
- })(Un);
4494
- const Dn = Un;
4495
- function At(e) {
4492
+ })($n);
4493
+ const kn = $n;
4494
+ function It(e) {
4496
4495
  this.genPoly = void 0, this.degree = e, this.degree && this.initialize(this.degree);
4497
4496
  }
4498
- At.prototype.initialize = function(t) {
4499
- this.degree = t, this.genPoly = Dn.generateECPolynomial(this.degree);
4497
+ It.prototype.initialize = function(t) {
4498
+ this.degree = t, this.genPoly = kn.generateECPolynomial(this.degree);
4500
4499
  };
4501
- At.prototype.encode = function(t) {
4500
+ It.prototype.encode = function(t) {
4502
4501
  if (!this.genPoly)
4503
4502
  throw new Error("Encoder not initialized");
4504
4503
  const n = new Uint8Array(t.length + this.degree);
4505
4504
  n.set(t);
4506
- const r = Dn.mod(n, this.genPoly), i = this.degree - r.length;
4505
+ const r = kn.mod(n, this.genPoly), i = this.degree - r.length;
4507
4506
  if (i > 0) {
4508
4507
  const o = new Uint8Array(this.degree);
4509
4508
  return o.set(r, i), o;
4510
4509
  }
4511
4510
  return r;
4512
4511
  };
4513
- var vo = At, Fn = {}, z = {}, Ct = {};
4514
- Ct.isValid = function(t) {
4512
+ var To = It, jn = {}, z = {}, Lt = {};
4513
+ Lt.isValid = function(t) {
4515
4514
  return !isNaN(t) && t >= 1 && t <= 40;
4516
4515
  };
4517
- var $ = {};
4518
- const Gn = "[0-9]+", xo = "[A-Z $%*+\\-./:]+";
4519
- let ye = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
4520
- ye = ye.replace(/u/g, "\\u");
4521
- const So = "(?:(?![A-Z0-9 $%*+\\-./:]|" + ye + `)(?:.|[\r
4516
+ var G = {};
4517
+ const Vn = "[0-9]+", Ao = "[A-Z $%*+\\-./:]+";
4518
+ let we = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
4519
+ we = we.replace(/u/g, "\\u");
4520
+ const Co = "(?:(?![A-Z0-9 $%*+\\-./:]|" + we + `)(?:.|[\r
4522
4521
  ]))+`;
4523
- $.KANJI = new RegExp(ye, "g");
4524
- $.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
4525
- $.BYTE = new RegExp(So, "g");
4526
- $.NUMERIC = new RegExp(Gn, "g");
4527
- $.ALPHANUMERIC = new RegExp(xo, "g");
4528
- const Bo = new RegExp("^" + ye + "$"), To = new RegExp("^" + Gn + "$"), Ao = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
4529
- $.testKanji = function(t) {
4530
- return Bo.test(t);
4522
+ G.KANJI = new RegExp(we, "g");
4523
+ G.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
4524
+ G.BYTE = new RegExp(Co, "g");
4525
+ G.NUMERIC = new RegExp(Vn, "g");
4526
+ G.ALPHANUMERIC = new RegExp(Ao, "g");
4527
+ const No = new RegExp("^" + we + "$"), Po = new RegExp("^" + Vn + "$"), Ho = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
4528
+ G.testKanji = function(t) {
4529
+ return No.test(t);
4531
4530
  };
4532
- $.testNumeric = function(t) {
4533
- return To.test(t);
4531
+ G.testNumeric = function(t) {
4532
+ return Po.test(t);
4534
4533
  };
4535
- $.testAlphanumeric = function(t) {
4536
- return Ao.test(t);
4534
+ G.testAlphanumeric = function(t) {
4535
+ return Ho.test(t);
4537
4536
  };
4538
4537
  (function(e) {
4539
- const t = Ct, n = $;
4538
+ const t = Lt, n = G;
4540
4539
  e.NUMERIC = {
4541
4540
  id: "Numeric",
4542
4541
  bit: 1,
@@ -4597,7 +4596,7 @@ $.testAlphanumeric = function(t) {
4597
4596
  };
4598
4597
  })(z);
4599
4598
  (function(e) {
4600
- const t = I, n = je, r = ke, i = z, o = Ct, s = 7973, a = t.getBCHDigit(s);
4599
+ const t = H, n = Je, r = Qe, i = z, o = Lt, s = 7973, a = t.getBCHDigit(s);
4601
4600
  function u(c, d, m) {
4602
4601
  for (let p = 1; p <= 40; p++)
4603
4602
  if (d <= e.getCapacity(p, m, c))
@@ -4659,20 +4658,20 @@ $.testAlphanumeric = function(t) {
4659
4658
  m ^= s << t.getBCHDigit(m) - a;
4660
4659
  return d << 12 | m;
4661
4660
  };
4662
- })(Fn);
4663
- var $n = {};
4664
- const Et = I, kn = 1335, Co = 21522, en = Et.getBCHDigit(kn);
4665
- $n.getEncodedBits = function(t, n) {
4661
+ })(jn);
4662
+ var zn = {};
4663
+ const St = H, Xn = 1335, Io = 21522, sn = St.getBCHDigit(Xn);
4664
+ zn.getEncodedBits = function(t, n) {
4666
4665
  const r = t.bit << 3 | n;
4667
4666
  let i = r << 10;
4668
- for (; Et.getBCHDigit(i) - en >= 0; )
4669
- i ^= kn << Et.getBCHDigit(i) - en;
4670
- return (r << 10 | i) ^ Co;
4667
+ for (; St.getBCHDigit(i) - sn >= 0; )
4668
+ i ^= Xn << St.getBCHDigit(i) - sn;
4669
+ return (r << 10 | i) ^ Io;
4671
4670
  };
4672
- var jn = {};
4673
- const No = z;
4671
+ var Qn = {};
4672
+ const Lo = z;
4674
4673
  function re(e) {
4675
- this.mode = No.NUMERIC, this.data = e.toString();
4674
+ this.mode = Lo.NUMERIC, this.data = e.toString();
4676
4675
  }
4677
4676
  re.getBitsLength = function(t) {
4678
4677
  return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0);
@@ -4690,8 +4689,8 @@ re.prototype.write = function(t) {
4690
4689
  const o = this.data.length - n;
4691
4690
  o > 0 && (r = this.data.substr(n), i = parseInt(r, 10), t.put(i, o * 3 + 1));
4692
4691
  };
4693
- var Po = re;
4694
- const Ho = z, tt = [
4692
+ var Mo = re;
4693
+ const Ro = z, st = [
4695
4694
  "0",
4696
4695
  "1",
4697
4696
  "2",
@@ -4739,7 +4738,7 @@ const Ho = z, tt = [
4739
4738
  ":"
4740
4739
  ];
4741
4740
  function ie(e) {
4742
- this.mode = Ho.ALPHANUMERIC, this.data = e;
4741
+ this.mode = Ro.ALPHANUMERIC, this.data = e;
4743
4742
  }
4744
4743
  ie.getBitsLength = function(t) {
4745
4744
  return 11 * Math.floor(t / 2) + 6 * (t % 2);
@@ -4753,15 +4752,15 @@ ie.prototype.getBitsLength = function() {
4753
4752
  ie.prototype.write = function(t) {
4754
4753
  let n;
4755
4754
  for (n = 0; n + 2 <= this.data.length; n += 2) {
4756
- let r = tt.indexOf(this.data[n]) * 45;
4757
- r += tt.indexOf(this.data[n + 1]), t.put(r, 11);
4755
+ let r = st.indexOf(this.data[n]) * 45;
4756
+ r += st.indexOf(this.data[n + 1]), t.put(r, 11);
4758
4757
  }
4759
- this.data.length % 2 && t.put(tt.indexOf(this.data[n]), 6);
4758
+ this.data.length % 2 && t.put(st.indexOf(this.data[n]), 6);
4760
4759
  };
4761
- var Io = ie;
4762
- const Lo = z;
4760
+ var Oo = ie;
4761
+ const Uo = z;
4763
4762
  function oe(e) {
4764
- this.mode = Lo.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
4763
+ this.mode = Uo.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
4765
4764
  }
4766
4765
  oe.getBitsLength = function(t) {
4767
4766
  return t * 8;
@@ -4776,10 +4775,10 @@ oe.prototype.write = function(e) {
4776
4775
  for (let t = 0, n = this.data.length; t < n; t++)
4777
4776
  e.put(this.data[t], 8);
4778
4777
  };
4779
- var Mo = oe;
4780
- const Ro = z, Oo = I;
4778
+ var Do = oe;
4779
+ const Fo = z, Go = H;
4781
4780
  function se(e) {
4782
- this.mode = Ro.KANJI, this.data = e;
4781
+ this.mode = Fo.KANJI, this.data = e;
4783
4782
  }
4784
4783
  se.getBitsLength = function(t) {
4785
4784
  return t * 13;
@@ -4793,7 +4792,7 @@ se.prototype.getBitsLength = function() {
4793
4792
  se.prototype.write = function(e) {
4794
4793
  let t;
4795
4794
  for (t = 0; t < this.data.length; t++) {
4796
- let n = Oo.toSJIS(this.data[t]);
4795
+ let n = Go.toSJIS(this.data[t]);
4797
4796
  if (n >= 33088 && n <= 40956)
4798
4797
  n -= 33088;
4799
4798
  else if (n >= 57408 && n <= 60351)
@@ -4806,7 +4805,7 @@ Make sure your charset is UTF-8`
4806
4805
  n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
4807
4806
  }
4808
4807
  };
4809
- var Uo = se, Vn = { exports: {} };
4808
+ var $o = se, Jn = { exports: {} };
4810
4809
  (function(e) {
4811
4810
  var t = {
4812
4811
  single_source_shortest_paths: function(n, r, i) {
@@ -4871,35 +4870,35 @@ var Uo = se, Vn = { exports: {} };
4871
4870
  }
4872
4871
  };
4873
4872
  e.exports = t;
4874
- })(Vn);
4875
- var Do = Vn.exports;
4873
+ })(Jn);
4874
+ var ko = Jn.exports;
4876
4875
  (function(e) {
4877
- const t = z, n = Po, r = Io, i = Mo, o = Uo, s = $, a = I, u = Do;
4876
+ const t = z, n = Mo, r = Oo, i = Do, o = $o, s = G, a = H, u = ko;
4878
4877
  function l(g) {
4879
4878
  return unescape(encodeURIComponent(g)).length;
4880
4879
  }
4881
4880
  function h(g, y, b) {
4882
4881
  const E = [];
4883
- let w;
4884
- for (; (w = g.exec(b)) !== null; )
4882
+ let v;
4883
+ for (; (v = g.exec(b)) !== null; )
4885
4884
  E.push({
4886
- data: w[0],
4887
- index: w.index,
4885
+ data: v[0],
4886
+ index: v.index,
4888
4887
  mode: y,
4889
- length: w[0].length
4888
+ length: v[0].length
4890
4889
  });
4891
4890
  return E;
4892
4891
  }
4893
4892
  function f(g) {
4894
4893
  const y = h(s.NUMERIC, t.NUMERIC, g), b = h(s.ALPHANUMERIC, t.ALPHANUMERIC, g);
4895
- let E, w;
4896
- 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, H) {
4897
- return T.index - H.index;
4898
- }).map(function(T) {
4894
+ let E, v;
4895
+ 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) {
4896
+ return A.index - P.index;
4897
+ }).map(function(A) {
4899
4898
  return {
4900
- data: T.data,
4901
- mode: T.mode,
4902
- length: T.length
4899
+ data: A.data,
4900
+ mode: A.mode,
4901
+ length: A.length
4903
4902
  };
4904
4903
  });
4905
4904
  }
@@ -4955,21 +4954,21 @@ var Do = Vn.exports;
4955
4954
  }
4956
4955
  function p(g, y) {
4957
4956
  const b = {}, E = { start: {} };
4958
- let w = ["start"];
4957
+ let v = ["start"];
4959
4958
  for (let B = 0; B < g.length; B++) {
4960
- const T = g[B], H = [];
4961
- for (let x = 0; x < T.length; x++) {
4962
- const N = T[x], O = "" + B + x;
4963
- H.push(O), b[O] = { node: N, lastCount: 0 }, E[O] = {};
4964
- for (let X = 0; X < w.length; X++) {
4965
- const L = w[X];
4966
- b[L] && b[L].node.mode === N.mode ? (E[L][O] = c(b[L].lastCount + N.length, N.mode) - c(b[L].lastCount, N.mode), b[L].lastCount += N.length) : (b[L] && (b[L].lastCount = N.length), E[L][O] = c(N.length, N.mode) + 4 + t.getCharCountIndicator(N.mode, y));
4959
+ const A = g[B], P = [];
4960
+ for (let I = 0; I < A.length; I++) {
4961
+ const L = A[I], k = "" + B + I;
4962
+ P.push(k), b[k] = { node: L, lastCount: 0 }, E[k] = {};
4963
+ for (let ce = 0; ce < v.length; ce++) {
4964
+ const w = v[ce];
4965
+ b[w] && b[w].node.mode === L.mode ? (E[w][k] = 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][k] = c(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode, y));
4967
4966
  }
4968
4967
  }
4969
- w = H;
4968
+ v = P;
4970
4969
  }
4971
- for (let B = 0; B < w.length; B++)
4972
- E[w[B]].end = 0;
4970
+ for (let B = 0; B < v.length; B++)
4971
+ E[v[B]].end = 0;
4973
4972
  return { map: E, table: b };
4974
4973
  }
4975
4974
  function _(g, y) {
@@ -4994,19 +4993,19 @@ var Do = Vn.exports;
4994
4993
  return typeof E == "string" ? b.push(_(E, null)) : E.data && b.push(_(E.data, E.mode)), b;
4995
4994
  }, []);
4996
4995
  }, e.fromString = function(y, b) {
4997
- const E = f(y, a.isKanjiModeEnabled()), w = m(E), B = p(w, b), T = u.find_path(B.map, "start", "end"), H = [];
4998
- for (let x = 1; x < T.length - 1; x++)
4999
- H.push(B.table[T[x]].node);
5000
- return e.fromArray(d(H));
4996
+ const E = f(y, a.isKanjiModeEnabled()), v = m(E), B = p(v, b), A = u.find_path(B.map, "start", "end"), P = [];
4997
+ for (let I = 1; I < A.length - 1; I++)
4998
+ P.push(B.table[A[I]].node);
4999
+ return e.fromArray(d(P));
5001
5000
  }, e.rawSplit = function(y) {
5002
5001
  return e.fromArray(
5003
5002
  f(y, a.isKanjiModeEnabled())
5004
5003
  );
5005
5004
  };
5006
- })(jn);
5007
- const ze = I, nt = ke, Fo = Eo, Go = _o, $o = Mn, ko = Rn, _t = On, wt = je, jo = vo, Oe = Fn, Vo = $n, zo = z, rt = jn;
5008
- function Xo(e, t) {
5009
- const n = e.size, r = ko.getPositions(t);
5005
+ })(Qn);
5006
+ const Ye = H, at = Qe, jo = xo, Vo = So, zo = Dn, Xo = Fn, Bt = Gn, Tt = Je, Qo = To, $e = jn, Jo = zn, Wo = z, ut = Qn;
5007
+ function Yo(e, t) {
5008
+ const n = e.size, r = Xo.getPositions(t);
5010
5009
  for (let i = 0; i < r.length; i++) {
5011
5010
  const o = r[i][0], s = r[i][1];
5012
5011
  for (let a = -1; a <= 7; a++)
@@ -5015,15 +5014,15 @@ function Xo(e, t) {
5015
5014
  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));
5016
5015
  }
5017
5016
  }
5018
- function Qo(e) {
5017
+ function qo(e) {
5019
5018
  const t = e.size;
5020
5019
  for (let n = 8; n < t - 8; n++) {
5021
5020
  const r = n % 2 === 0;
5022
5021
  e.set(n, 6, r, !0), e.set(6, n, r, !0);
5023
5022
  }
5024
5023
  }
5025
- function Jo(e, t) {
5026
- const n = $o.getPositions(t);
5024
+ function Zo(e, t) {
5025
+ const n = zo.getPositions(t);
5027
5026
  for (let r = 0; r < n.length; r++) {
5028
5027
  const i = n[r][0], o = n[r][1];
5029
5028
  for (let s = -2; s <= 2; s++)
@@ -5031,20 +5030,20 @@ function Jo(e, t) {
5031
5030
  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);
5032
5031
  }
5033
5032
  }
5034
- function Wo(e, t) {
5035
- const n = e.size, r = Oe.getEncodedBits(t);
5033
+ function Ko(e, t) {
5034
+ const n = e.size, r = $e.getEncodedBits(t);
5036
5035
  let i, o, s;
5037
5036
  for (let a = 0; a < 18; a++)
5038
5037
  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);
5039
5038
  }
5040
- function it(e, t, n) {
5041
- const r = e.size, i = Vo.getEncodedBits(t, n);
5039
+ function lt(e, t, n) {
5040
+ const r = e.size, i = Jo.getEncodedBits(t, n);
5042
5041
  let o, s;
5043
5042
  for (o = 0; o < 15; o++)
5044
5043
  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);
5045
5044
  e.set(r - 8, 8, 1, !0);
5046
5045
  }
5047
- function Yo(e, t) {
5046
+ function es(e, t) {
5048
5047
  const n = e.size;
5049
5048
  let r = -1, i = n - 1, o = 7, s = 0;
5050
5049
  for (let a = n - 1; a > 0; a -= 2)
@@ -5060,53 +5059,53 @@ function Yo(e, t) {
5060
5059
  }
5061
5060
  }
5062
5061
  }
5063
- function qo(e, t, n) {
5064
- const r = new Fo();
5062
+ function ts(e, t, n) {
5063
+ const r = new jo();
5065
5064
  n.forEach(function(u) {
5066
- r.put(u.mode.bit, 4), r.put(u.getLength(), zo.getCharCountIndicator(u.mode, e)), u.write(r);
5065
+ r.put(u.mode.bit, 4), r.put(u.getLength(), Wo.getCharCountIndicator(u.mode, e)), u.write(r);
5067
5066
  });
5068
- const i = ze.getSymbolTotalCodewords(e), o = wt.getTotalCodewordsCount(e, t), s = (i - o) * 8;
5067
+ const i = Ye.getSymbolTotalCodewords(e), o = Tt.getTotalCodewordsCount(e, t), s = (i - o) * 8;
5069
5068
  for (r.getLengthInBits() + 4 <= s && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
5070
5069
  r.putBit(0);
5071
5070
  const a = (s - r.getLengthInBits()) / 8;
5072
5071
  for (let u = 0; u < a; u++)
5073
5072
  r.put(u % 2 ? 17 : 236, 8);
5074
- return Zo(r, e, t);
5073
+ return ns(r, e, t);
5075
5074
  }
5076
- function Zo(e, t, n) {
5077
- const r = ze.getSymbolTotalCodewords(t), i = wt.getTotalCodewordsCount(t, n), o = r - i, s = wt.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 jo(c);
5075
+ function ns(e, t, n) {
5076
+ const r = Ye.getSymbolTotalCodewords(t), i = Tt.getTotalCodewordsCount(t, n), o = r - i, s = Tt.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 Qo(c);
5078
5077
  let m = 0;
5079
5078
  const p = new Array(s), _ = new Array(s);
5080
5079
  let g = 0;
5081
5080
  const y = new Uint8Array(e.buffer);
5082
- for (let T = 0; T < s; T++) {
5083
- const H = T < u ? h : f;
5084
- p[T] = y.slice(m, m + H), _[T] = d.encode(p[T]), m += H, g = Math.max(g, H);
5081
+ for (let A = 0; A < s; A++) {
5082
+ const P = A < u ? h : f;
5083
+ p[A] = y.slice(m, m + P), _[A] = d.encode(p[A]), m += P, g = Math.max(g, P);
5085
5084
  }
5086
5085
  const b = new Uint8Array(r);
5087
- let E = 0, w, B;
5088
- for (w = 0; w < g; w++)
5086
+ let E = 0, v, B;
5087
+ for (v = 0; v < g; v++)
5089
5088
  for (B = 0; B < s; B++)
5090
- w < p[B].length && (b[E++] = p[B][w]);
5091
- for (w = 0; w < c; w++)
5089
+ v < p[B].length && (b[E++] = p[B][v]);
5090
+ for (v = 0; v < c; v++)
5092
5091
  for (B = 0; B < s; B++)
5093
- b[E++] = _[B][w];
5092
+ b[E++] = _[B][v];
5094
5093
  return b;
5095
5094
  }
5096
- function Ko(e, t, n, r) {
5095
+ function rs(e, t, n, r) {
5097
5096
  let i;
5098
5097
  if (Array.isArray(e))
5099
- i = rt.fromArray(e);
5098
+ i = ut.fromArray(e);
5100
5099
  else if (typeof e == "string") {
5101
5100
  let l = t;
5102
5101
  if (!l) {
5103
- const h = rt.rawSplit(e);
5104
- l = Oe.getBestVersionForData(h, n);
5102
+ const h = ut.rawSplit(e);
5103
+ l = $e.getBestVersionForData(h, n);
5105
5104
  }
5106
- i = rt.fromString(e, l || 40);
5105
+ i = ut.fromString(e, l || 40);
5107
5106
  } else
5108
5107
  throw new Error("Invalid data");
5109
- const o = Oe.getBestVersionForData(i, n);
5108
+ const o = $e.getBestVersionForData(i, n);
5110
5109
  if (!o)
5111
5110
  throw new Error("The amount of data is too big to be stored in a QR Code");
5112
5111
  if (!t)
@@ -5118,11 +5117,11 @@ The chosen QR Code version cannot contain this amount of data.
5118
5117
  Minimum version required to store current data is: ` + o + `.
5119
5118
  `
5120
5119
  );
5121
- const s = qo(t, n, i), a = ze.getSymbolSize(t), u = new Go(a);
5122
- return Xo(u, t), Qo(u), Jo(u, t), it(u, n, 0), t >= 7 && Wo(u, t), Yo(u, s), isNaN(r) && (r = _t.getBestMask(
5120
+ const s = ts(t, n, i), a = Ye.getSymbolSize(t), u = new Vo(a);
5121
+ return Yo(u, t), qo(u), Zo(u, t), lt(u, n, 0), t >= 7 && Ko(u, t), es(u, s), isNaN(r) && (r = Bt.getBestMask(
5123
5122
  u,
5124
- it.bind(null, u, n)
5125
- )), _t.applyMask(r, u), it(u, n, r), {
5123
+ lt.bind(null, u, n)
5124
+ )), Bt.applyMask(r, u), lt(u, n, r), {
5126
5125
  modules: u,
5127
5126
  version: t,
5128
5127
  errorCorrectionLevel: n,
@@ -5130,13 +5129,13 @@ Minimum version required to store current data is: ` + o + `.
5130
5129
  segments: i
5131
5130
  };
5132
5131
  }
5133
- In.create = function(t, n) {
5132
+ On.create = function(t, n) {
5134
5133
  if (typeof t == "undefined" || t === "")
5135
5134
  throw new Error("No input text");
5136
- let r = nt.M, i, o;
5137
- return typeof n != "undefined" && (r = nt.from(n.errorCorrectionLevel, nt.M), i = Oe.from(n.version), o = _t.from(n.maskPattern), n.toSJISFunc && ze.setToSJISFunction(n.toSJISFunc)), Ko(t, i, r, o);
5135
+ let r = at.M, i, o;
5136
+ return typeof n != "undefined" && (r = at.from(n.errorCorrectionLevel, at.M), i = $e.from(n.version), o = Bt.from(n.maskPattern), n.toSJISFunc && Ye.setToSJISFunction(n.toSJISFunc)), rs(t, i, r, o);
5138
5137
  };
5139
- var zn = {}, Nt = {};
5138
+ var Wn = {}, Mt = {};
5140
5139
  (function(e) {
5141
5140
  function t(n) {
5142
5141
  if (typeof n == "number" && (n = n.toString()), typeof n != "string")
@@ -5187,9 +5186,9 @@ var zn = {}, Nt = {};
5187
5186
  r[m++] = p.r, r[m++] = p.g, r[m++] = p.b, r[m] = p.a;
5188
5187
  }
5189
5188
  };
5190
- })(Nt);
5189
+ })(Mt);
5191
5190
  (function(e) {
5192
- const t = Nt;
5191
+ const t = Mt;
5193
5192
  function n(i, o, s) {
5194
5193
  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";
5195
5194
  }
@@ -5211,34 +5210,34 @@ var zn = {}, Nt = {};
5211
5210
  const l = e.render(o, s, u), h = u.type || "image/png", f = u.rendererOpts || {};
5212
5211
  return l.toDataURL(h, f.quality);
5213
5212
  };
5214
- })(zn);
5215
- var Xn = {};
5216
- const es = Nt;
5217
- function tn(e, t) {
5213
+ })(Wn);
5214
+ var Yn = {};
5215
+ const is = Mt;
5216
+ function an(e, t) {
5218
5217
  const n = e.a / 255, r = t + '="' + e.hex + '"';
5219
5218
  return n < 1 ? r + " " + t + '-opacity="' + n.toFixed(2).slice(1) + '"' : r;
5220
5219
  }
5221
- function ot(e, t, n) {
5220
+ function ht(e, t, n) {
5222
5221
  let r = e + t;
5223
5222
  return typeof n != "undefined" && (r += " " + n), r;
5224
5223
  }
5225
- function ts(e, t, n) {
5224
+ function os(e, t, n) {
5226
5225
  let r = "", i = 0, o = !1, s = 0;
5227
5226
  for (let a = 0; a < e.length; a++) {
5228
5227
  const u = Math.floor(a % t), l = Math.floor(a / t);
5229
- !u && !o && (o = !0), e[a] ? (s++, a > 0 && u > 0 && e[a - 1] || (r += o ? ot("M", u + n, 0.5 + l + n) : ot("m", i, 0), i = 0, o = !1), u + 1 < t && e[a + 1] || (r += ot("h", s), s = 0)) : i++;
5228
+ !u && !o && (o = !0), e[a] ? (s++, a > 0 && u > 0 && e[a - 1] || (r += o ? ht("M", u + n, 0.5 + l + n) : ht("m", i, 0), i = 0, o = !1), u + 1 < t && e[a + 1] || (r += ht("h", s), s = 0)) : i++;
5230
5229
  }
5231
5230
  return r;
5232
5231
  }
5233
- Xn.render = function(t, n, r) {
5234
- const i = es.getOptions(n), o = t.modules.size, s = t.modules.data, a = o + i.margin * 2, u = i.color.light.a ? "<path " + tn(i.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", l = "<path " + tn(i.color.dark, "stroke") + ' d="' + ts(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>
5232
+ Yn.render = function(t, n, r) {
5233
+ const i = is.getOptions(n), o = t.modules.size, s = t.modules.data, a = o + i.margin * 2, u = i.color.light.a ? "<path " + an(i.color.light, "fill") + ' d="M0 0h' + a + "v" + a + 'H0z"/>' : "", l = "<path " + an(i.color.dark, "stroke") + ' d="' + os(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>
5235
5234
  `;
5236
5235
  return typeof r == "function" && r(null, c), c;
5237
5236
  };
5238
- const ns = bo, vt = In, Qn = zn, rs = Xn;
5239
- function Pt(e, t, n, r, i) {
5237
+ const ss = wo, At = On, qn = Wn, as = Yn;
5238
+ function Rt(e, t, n, r, i) {
5240
5239
  const o = [].slice.call(arguments, 1), s = o.length, a = typeof o[s - 1] == "function";
5241
- if (!a && !ns())
5240
+ if (!a && !ss())
5242
5241
  throw new Error("Callback required as last argument");
5243
5242
  if (a) {
5244
5243
  if (s < 2)
@@ -5249,7 +5248,7 @@ function Pt(e, t, n, r, i) {
5249
5248
  throw new Error("Too few arguments provided");
5250
5249
  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) {
5251
5250
  try {
5252
- const h = vt.create(n, r);
5251
+ const h = At.create(n, r);
5253
5252
  u(e(h, t, r));
5254
5253
  } catch (h) {
5255
5254
  l(h);
@@ -5257,49 +5256,50 @@ function Pt(e, t, n, r, i) {
5257
5256
  });
5258
5257
  }
5259
5258
  try {
5260
- const u = vt.create(n, r);
5259
+ const u = At.create(n, r);
5261
5260
  i(null, e(u, t, r));
5262
5261
  } catch (u) {
5263
5262
  i(u);
5264
5263
  }
5265
5264
  }
5266
- ve.create = vt.create;
5267
- ve.toCanvas = Pt.bind(null, Qn.render);
5268
- ve.toDataURL = Pt.bind(null, Qn.renderToDataURL);
5269
- ve.toString = Pt.bind(null, function(e, t, n) {
5270
- return rs.render(e, n);
5265
+ Be.create = At.create;
5266
+ Be.toCanvas = Rt.bind(null, qn.render);
5267
+ Be.toDataURL = Rt.bind(null, qn.renderToDataURL);
5268
+ Be.toString = Rt.bind(null, function(e, t, n) {
5269
+ return as.render(e, n);
5271
5270
  });
5272
- function is(e) {
5273
- tr(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)}}');
5271
+ var Re = /* @__PURE__ */ ((e) => (e.unauthorizedError = "unauthorized", e.unexpectedError = "unexpectedError", e.failedToFetch = "failedToFetch", e))(Re || {});
5272
+ function us(e) {
5273
+ or(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)}}');
5274
5274
  }
5275
- function os(e) {
5275
+ function ls(e) {
5276
5276
  let t, n, r;
5277
5277
  return {
5278
5278
  c() {
5279
- t = G("div"), n = G("img"), D(n, "class", "qr-image"), Rt(n.src, r = /*qrImageUrl*/
5280
- e[3]) || D(n, "src", r), D(n, "alt", "qr-session-login"), D(t, "class", "qr-section");
5279
+ t = F("div"), n = F("img"), U(n, "class", "qr-image"), Gt(n.src, r = /*qrImageUrl*/
5280
+ e[3]) || U(n, "src", r), U(n, "alt", "qr-session-login"), U(t, "class", "qr-section");
5281
5281
  },
5282
5282
  m(i, o) {
5283
- _e(i, t, o), U(t, n);
5283
+ xe(i, t, o), O(t, n);
5284
5284
  },
5285
5285
  p(i, o) {
5286
5286
  o & /*qrImageUrl*/
5287
- 8 && !Rt(n.src, r = /*qrImageUrl*/
5288
- i[3]) && D(n, "src", r);
5287
+ 8 && !Gt(n.src, r = /*qrImageUrl*/
5288
+ i[3]) && U(n, "src", r);
5289
5289
  },
5290
5290
  d(i) {
5291
5291
  i && ae(t);
5292
5292
  }
5293
5293
  };
5294
5294
  }
5295
- function ss(e) {
5295
+ function hs(e) {
5296
5296
  let t;
5297
5297
  return {
5298
5298
  c() {
5299
- t = G("div"), D(t, "class", "LoadingSpinner");
5299
+ t = F("div"), U(t, "class", "LoadingSpinner");
5300
5300
  },
5301
5301
  m(n, r) {
5302
- _e(n, t, r);
5302
+ xe(n, t, r);
5303
5303
  },
5304
5304
  p: R,
5305
5305
  d(n) {
@@ -5307,7 +5307,7 @@ function ss(e) {
5307
5307
  }
5308
5308
  };
5309
5309
  }
5310
- function as(e) {
5310
+ function cs(e) {
5311
5311
  let t, n = (
5312
5312
  /*$_*/
5313
5313
  e[5](
@@ -5317,10 +5317,10 @@ function as(e) {
5317
5317
  ), r;
5318
5318
  return {
5319
5319
  c() {
5320
- t = G("p"), r = He(n), D(t, "class", "generate-qr-error-message");
5320
+ t = F("p"), r = Oe(n), U(t, "class", "generate-qr-error-message");
5321
5321
  },
5322
5322
  m(i, o) {
5323
- _e(i, t, o), U(t, r);
5323
+ xe(i, t, o), O(t, r);
5324
5324
  },
5325
5325
  p(i, o) {
5326
5326
  o & /*$_, errorCode*/
@@ -5328,21 +5328,22 @@ function as(e) {
5328
5328
  i[5](
5329
5329
  /*errorCode*/
5330
5330
  i[4]
5331
- ) + "") && st(r, n);
5331
+ ) + "") && ct(r, n);
5332
5332
  },
5333
5333
  d(i) {
5334
5334
  i && ae(t);
5335
5335
  }
5336
5336
  };
5337
5337
  }
5338
- function us(e) {
5338
+ function fs(e) {
5339
5339
  let t, n, r, i = (
5340
5340
  /*$_*/
5341
5341
  e[5]("titleQRSessionGenerator") + ""
5342
5342
  ), o, s, a, u = (
5343
5343
  /*remaining*/
5344
5344
  (e[1] > 0 ? `${/*remaining*/
5345
- e[1]}s` : (
5345
+ e[1]}${/*$_*/
5346
+ e[5]("second")}` : (
5346
5347
  /*$_*/
5347
5348
  e[5]("generateQRButton")
5348
5349
  )) + ""
@@ -5352,27 +5353,27 @@ function us(e) {
5352
5353
  /*errorCode*/
5353
5354
  g[4]
5354
5355
  )
5355
- return as;
5356
+ return cs;
5356
5357
  if (
5357
5358
  /*isGenerating*/
5358
5359
  g[2]
5359
5360
  )
5360
- return ss;
5361
+ return hs;
5361
5362
  if (
5362
5363
  /*qrImageUrl*/
5363
5364
  g[3]
5364
5365
  )
5365
- return os;
5366
+ return ls;
5366
5367
  }
5367
5368
  let p = m(e), _ = p && p(e);
5368
5369
  return {
5369
5370
  c() {
5370
- t = G("div"), n = G("div"), r = G("p"), o = He(i), s = Ot(), a = G("button"), l = He(u), f = Ot(), _ && _.c(), D(a, "class", "generate-qr-btn"), a.disabled = h = /*isGenerating*/
5371
+ t = F("div"), n = F("div"), r = F("p"), o = Oe(i), s = $t(), a = F("button"), l = Oe(u), f = $t(), _ && _.c(), U(a, "class", "generate-qr-btn"), a.disabled = h = /*isGenerating*/
5371
5372
  e[2] || /*remaining*/
5372
- e[1] > 0, D(n, "class", "qr-session-generator");
5373
+ e[1] > 0, U(n, "class", "qr-session-generator");
5373
5374
  },
5374
5375
  m(g, y) {
5375
- _e(g, t, y), U(t, n), U(n, r), U(r, o), U(n, s), U(n, a), U(a, l), U(n, f), _ && _.m(n, null), e[14](t), c || (d = ir(
5376
+ xe(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 = ur(
5376
5377
  a,
5377
5378
  "click",
5378
5379
  /*onGenerateQRClick*/
@@ -5382,13 +5383,14 @@ function us(e) {
5382
5383
  p(g, [y]) {
5383
5384
  y & /*$_*/
5384
5385
  32 && i !== (i = /*$_*/
5385
- g[5]("titleQRSessionGenerator") + "") && st(o, i), y & /*remaining, $_*/
5386
+ g[5]("titleQRSessionGenerator") + "") && ct(o, i), y & /*remaining, $_*/
5386
5387
  34 && u !== (u = /*remaining*/
5387
5388
  (g[1] > 0 ? `${/*remaining*/
5388
- g[1]}s` : (
5389
+ g[1]}${/*$_*/
5390
+ g[5]("second")}` : (
5389
5391
  /*$_*/
5390
5392
  g[5]("generateQRButton")
5391
- )) + "") && st(l, u), y & /*isGenerating, remaining*/
5393
+ )) + "") && ct(l, u), y & /*isGenerating, remaining*/
5392
5394
  6 && h !== (h = /*isGenerating*/
5393
5395
  g[2] || /*remaining*/
5394
5396
  g[1] > 0) && (a.disabled = h), p === (p = m(g)) && _ ? _.p(g, y) : (_ && _.d(1), _ = p && p(g), _ && (_.c(), _.m(n, null)));
@@ -5400,81 +5402,86 @@ function us(e) {
5400
5402
  }
5401
5403
  };
5402
5404
  }
5403
- const ls = 60;
5404
- function hs(e, t, n) {
5405
+ const ds = 60, gs = 1e3;
5406
+ function ms(e, t, n) {
5405
5407
  let r;
5406
- er(e, lo, (x) => n(5, r = x));
5408
+ ir(e, go, (w) => n(5, r = w));
5407
5409
  let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { lang: a = "en" } = t, { endpoint: u = "" } = t, { sessionid: l } = t, { translationurl: h } = t;
5408
5410
  const f = {
5409
- "gm.norway.unauthorized": "unauthorizedError"
5411
+ "gm.norway.unauthorized": Re.unauthorizedError
5410
5412
  };
5411
5413
  let c, d, m = 0, p = !1, _ = null, g = null, y = null;
5412
- ar(() => () => {
5413
- });
5414
- const b = () => {
5415
- fetch(h).then((N) => N.json()).then((N) => {
5416
- Object.keys(N).forEach((O) => {
5417
- qt(O, N[O]);
5414
+ const b = () => Q(this, null, function* () {
5415
+ const w = h;
5416
+ try {
5417
+ const Ae = yield (yield fetch(w)).json();
5418
+ Object.keys(Ae).forEach((de) => {
5419
+ nn(de, Ae[de]);
5418
5420
  });
5419
- }).catch((N) => {
5420
- console.error(N);
5421
- });
5422
- };
5423
- Object.keys(Zt).forEach((x) => {
5424
- qt(x, Zt[x]);
5421
+ } catch (fe) {
5422
+ console.error(fe);
5423
+ }
5424
+ });
5425
+ Object.keys(rn).forEach((w) => {
5426
+ nn(w, rn[w]);
5425
5427
  });
5426
5428
  const E = () => {
5427
- ho(a);
5428
- }, w = () => Qe(this, null, function* () {
5429
- var L;
5430
- if (p || m > 0)
5431
- return;
5432
- n(2, p = !0), n(4, y = null), n(3, g = null), n(1, m = ls), B();
5433
- const x = new URL(`${u}/api/pam/v1/qr/authenticate`), N = new Headers();
5434
- N.append("X-SessionID", l);
5435
- const O = { method: "POST", headers: N };
5436
- n(4, y = null);
5437
- const X = yield fetch(x.href, O);
5429
+ mo(a);
5430
+ }, v = (w) => Q(this, null, function* () {
5431
+ n(3, g = yield Be.toDataURL(w));
5432
+ }), B = (w) => {
5433
+ n(4, y = w), k();
5434
+ }, A = () => Q(this, null, function* () {
5435
+ var de;
5436
+ const w = new URL(`${u}/api/pam/v1/qr/authenticate`), fe = new Headers();
5437
+ fe.append("X-SessionID", l);
5438
+ const Ae = { method: "POST", headers: fe };
5438
5439
  try {
5439
- if (X.ok) {
5440
- const ce = yield X.json();
5441
- n(3, g = yield ve.toDataURL(JSON.stringify(ce)));
5440
+ const ge = yield fetch(w.href, Ae);
5441
+ if (ge.ok) {
5442
+ const qe = yield ge.json();
5443
+ yield v(JSON.stringify(qe));
5442
5444
  } else {
5443
- const ce = yield X.json();
5444
- n(4, y = (L = f[ce.Code]) != null ? L : "unexpectedError"), T();
5445
+ const qe = yield ge.json();
5446
+ B((de = f[qe.Code]) != null ? de : Re.unexpectedError);
5445
5447
  }
5446
- } catch (ce) {
5447
- console.error(ce), n(4, y = "failedToFetch"), T();
5448
+ } catch (ge) {
5449
+ console.error(ge), B(Re.failedToFetch);
5448
5450
  } finally {
5449
5451
  n(2, p = !1);
5450
5452
  }
5453
+ }), P = () => Q(this, null, function* () {
5454
+ p || m > 0 || (n(2, p = !0), n(4, y = null), n(3, g = null), n(1, m = ds), L(), yield A());
5451
5455
  });
5452
- function B() {
5453
- _ !== null && clearInterval(_), _ = setInterval(
5456
+ function I() {
5457
+ _ !== null && clearInterval(_);
5458
+ }
5459
+ function L() {
5460
+ I(), _ = setInterval(
5454
5461
  () => {
5455
- m > 1 ? n(1, m -= 1) : (n(1, m = 0), n(2, p = !1), n(3, g = null), T());
5462
+ m > 1 ? n(1, m -= 1) : (n(1, m = 0), n(2, p = !1), n(3, g = null), k());
5456
5463
  },
5457
- 1e3
5464
+ gs
5458
5465
  );
5459
5466
  }
5460
- function T() {
5461
- _ !== null && (clearInterval(_), _ = null), n(1, m = 0);
5467
+ function k() {
5468
+ I(), _ = null, n(1, m = 0);
5462
5469
  }
5463
- ur(() => {
5464
- _ !== null && clearInterval(_);
5470
+ fr(() => {
5471
+ I();
5465
5472
  });
5466
- function H(x) {
5467
- at[x ? "unshift" : "push"](() => {
5468
- c = x, n(0, c);
5473
+ function ce(w) {
5474
+ ft[w ? "unshift" : "push"](() => {
5475
+ c = w, n(0, c);
5469
5476
  });
5470
5477
  }
5471
- return e.$$set = (x) => {
5472
- "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);
5478
+ return e.$$set = (w) => {
5479
+ "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);
5473
5480
  }, e.$$.update = () => {
5474
5481
  e.$$.dirty & /*clientstyling, customStylingContainer*/
5475
- 129 && i && c && co(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5476
- 257 && o && c && fo(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
5477
- 513 && s && c && go(c, `${s}.Style`, d), e.$$.dirty & /*lang*/
5482
+ 129 && i && c && po(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5483
+ 257 && o && c && bo(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
5484
+ 513 && s && c && yo(c, `${s}.Style`, d), e.$$.dirty & /*lang*/
5478
5485
  1024 && a && E(), e.$$.dirty & /*translationurl*/
5479
5486
  8192 && h && b();
5480
5487
  }, [
@@ -5484,7 +5491,7 @@ function hs(e, t, n) {
5484
5491
  g,
5485
5492
  y,
5486
5493
  r,
5487
- w,
5494
+ P,
5488
5495
  i,
5489
5496
  o,
5490
5497
  s,
@@ -5492,17 +5499,17 @@ function hs(e, t, n) {
5492
5499
  u,
5493
5500
  l,
5494
5501
  h,
5495
- H
5502
+ ce
5496
5503
  ];
5497
5504
  }
5498
- class cs extends _r {
5505
+ class ps extends Sr {
5499
5506
  constructor(t) {
5500
- super(), yr(
5507
+ super(), vr(
5501
5508
  this,
5502
5509
  t,
5503
- hs,
5504
- us,
5505
- rn,
5510
+ ms,
5511
+ fs,
5512
+ ln,
5506
5513
  {
5507
5514
  clientstyling: 7,
5508
5515
  clientstylingurl: 8,
@@ -5512,53 +5519,53 @@ class cs extends _r {
5512
5519
  sessionid: 12,
5513
5520
  translationurl: 13
5514
5521
  },
5515
- is
5522
+ us
5516
5523
  );
5517
5524
  }
5518
5525
  get clientstyling() {
5519
5526
  return this.$$.ctx[7];
5520
5527
  }
5521
5528
  set clientstyling(t) {
5522
- this.$$set({ clientstyling: t }), k();
5529
+ this.$$set({ clientstyling: t }), $();
5523
5530
  }
5524
5531
  get clientstylingurl() {
5525
5532
  return this.$$.ctx[8];
5526
5533
  }
5527
5534
  set clientstylingurl(t) {
5528
- this.$$set({ clientstylingurl: t }), k();
5535
+ this.$$set({ clientstylingurl: t }), $();
5529
5536
  }
5530
5537
  get mbsource() {
5531
5538
  return this.$$.ctx[9];
5532
5539
  }
5533
5540
  set mbsource(t) {
5534
- this.$$set({ mbsource: t }), k();
5541
+ this.$$set({ mbsource: t }), $();
5535
5542
  }
5536
5543
  get lang() {
5537
5544
  return this.$$.ctx[10];
5538
5545
  }
5539
5546
  set lang(t) {
5540
- this.$$set({ lang: t }), k();
5547
+ this.$$set({ lang: t }), $();
5541
5548
  }
5542
5549
  get endpoint() {
5543
5550
  return this.$$.ctx[11];
5544
5551
  }
5545
5552
  set endpoint(t) {
5546
- this.$$set({ endpoint: t }), k();
5553
+ this.$$set({ endpoint: t }), $();
5547
5554
  }
5548
5555
  get sessionid() {
5549
5556
  return this.$$.ctx[12];
5550
5557
  }
5551
5558
  set sessionid(t) {
5552
- this.$$set({ sessionid: t }), k();
5559
+ this.$$set({ sessionid: t }), $();
5553
5560
  }
5554
5561
  get translationurl() {
5555
5562
  return this.$$.ctx[13];
5556
5563
  }
5557
5564
  set translationurl(t) {
5558
- this.$$set({ translationurl: t }), k();
5565
+ this.$$set({ translationurl: t }), $();
5559
5566
  }
5560
5567
  }
5561
- Er(cs, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, sessionid: {}, translationurl: {} }, [], [], !0);
5568
+ xr(ps, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, sessionid: {}, translationurl: {} }, [], [], !0);
5562
5569
  export {
5563
- cs as default
5570
+ ps as default
5564
5571
  };