@everymatrix/qr-session-generator 1.99.57 → 1.99.60

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.
@@ -10,7 +10,7 @@ var Ze = (e, t, n) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writ
10
10
  nr.call(t, n) && Ze(e, n, t[n]);
11
11
  return e;
12
12
  }, Dt = (e, t) => Kn(e, er(t));
13
- var M = (e, t, n) => (Ze(e, typeof t != "symbol" ? t + "" : t, n), n);
13
+ var M = (e, t, n) => Ze(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var Q = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (u) => {
16
16
  try {
@@ -74,8 +74,7 @@ function or(e, t, n) {
74
74
  }
75
75
  }
76
76
  function sr(e) {
77
- if (!e)
78
- return document;
77
+ if (!e) return document;
79
78
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
80
79
  return t && /** @type {ShadowRoot} */
81
80
  t.host ? (
@@ -132,8 +131,7 @@ function pe(e) {
132
131
  ye = e;
133
132
  }
134
133
  function cr() {
135
- if (!ye)
136
- throw new Error("Function called outside component initialization");
134
+ if (!ye) throw new Error("Function called outside component initialization");
137
135
  return ye;
138
136
  }
139
137
  function fr(e) {
@@ -164,8 +162,7 @@ function G() {
164
162
  } catch (t) {
165
163
  throw Y.length = 0, J = 0, t;
166
164
  }
167
- for (pe(null), Y.length = 0, J = 0; ft.length; )
168
- ft.pop()();
165
+ for (pe(null), Y.length = 0, J = 0; ft.length; ) ft.pop()();
169
166
  for (let t = 0; t < Z.length; t += 1) {
170
167
  const n = Z[t];
171
168
  Ke.has(n) || (Ke.add(n), n());
@@ -615,8 +612,7 @@ var mt = function(e, t) {
615
612
  return mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
616
613
  n.__proto__ = r;
617
614
  } || function(n, r) {
618
- for (var i in r)
619
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
615
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
620
616
  }, mt(e, t);
621
617
  };
622
618
  function je(e, t) {
@@ -632,25 +628,22 @@ var D = function() {
632
628
  return D = Object.assign || function(t) {
633
629
  for (var n, r = 1, i = arguments.length; r < i; r++) {
634
630
  n = arguments[r];
635
- for (var o in n)
636
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
631
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
637
632
  }
638
633
  return t;
639
634
  }, D.apply(this, arguments);
640
635
  };
641
636
  function jr(e, t) {
642
637
  var n = {};
643
- for (var r in e)
644
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
638
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
645
639
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
646
640
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
647
641
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
648
642
  return n;
649
643
  }
650
644
  function et(e, t, n) {
651
- if (n || arguments.length === 2)
652
- for (var r = 0, i = t.length, o; r < i; r++)
653
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
645
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
646
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
654
647
  return e.concat(o || Array.prototype.slice.call(t));
655
648
  }
656
649
  function tt(e, t) {
@@ -705,8 +698,7 @@ var Jr = function() {
705
698
  return Ue = Object.assign || function(t) {
706
699
  for (var n, r = 1, i = arguments.length; r < i; r++) {
707
700
  n = arguments[r];
708
- for (var o in n)
709
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
701
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
710
702
  }
711
703
  return t;
712
704
  }, Ue.apply(this, arguments);
@@ -852,8 +844,7 @@ var C = function() {
852
844
  return C = Object.assign || function(t) {
853
845
  for (var n, r = 1, i = arguments.length; r < i; r++) {
854
846
  n = arguments[r];
855
- for (var o in n)
856
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
847
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
857
848
  }
858
849
  return t;
859
850
  }, C.apply(this, arguments);
@@ -2495,8 +2486,7 @@ function ai(e, t) {
2495
2486
  n += u;
2496
2487
  for (; s-- > 0; )
2497
2488
  n = l + n;
2498
- } else
2499
- i === "J" ? n += "H" : n += i;
2489
+ } else i === "J" ? n += "H" : n += i;
2500
2490
  }
2501
2491
  return n;
2502
2492
  }
@@ -3099,8 +3089,7 @@ function wt(e) {
3099
3089
  if (delete t.location, yn(t) || En(t))
3100
3090
  for (var n in t.options)
3101
3091
  delete t.options[n].location, wt(t.options[n].value);
3102
- else
3103
- mn(t) && wn(t.style) || (pn(t) || bn(t)) && pt(t.style) ? delete t.style.location : _n(t) && wt(t.children);
3092
+ else mn(t) && wn(t.style) || (pn(t) || bn(t)) && pt(t.style) ? delete t.style.location : _n(t) && wt(t.children);
3104
3093
  });
3105
3094
  }
3106
3095
  function Ti(e, t) {
@@ -3765,8 +3754,7 @@ function po(e, t) {
3765
3754
  }
3766
3755
  }
3767
3756
  function bo(e, t) {
3768
- if (!e || !t)
3769
- return;
3757
+ if (!e || !t) return;
3770
3758
  const n = new URL(t);
3771
3759
  fetch(n.href).then((r) => r.text()).then((r) => {
3772
3760
  const i = document.createElement("style");
@@ -3776,8 +3764,7 @@ function bo(e, t) {
3776
3764
  });
3777
3765
  }
3778
3766
  function yo(e, t, n, r = !1) {
3779
- if (!window.emMessageBus)
3780
- return;
3767
+ if (!window.emMessageBus) return;
3781
3768
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
3782
3769
  return n = Eo(e, t), n;
3783
3770
  window[q] || (window[q] = {}), n = _o(e, t);
@@ -3798,8 +3785,7 @@ function Eo(e, t) {
3798
3785
  }
3799
3786
  function _o(e, t) {
3800
3787
  return window.emMessageBus.subscribe(t, (n) => {
3801
- if (!e)
3802
- return;
3788
+ if (!e) return;
3803
3789
  const r = e.getRootNode(), i = window[q];
3804
3790
  let o = i[t] && i[t].sheet;
3805
3791
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(n), i[t] = {
@@ -3859,10 +3845,8 @@ const vo = [
3859
3845
  3706
3860
3846
  ];
3861
3847
  H.getSymbolSize = function(t) {
3862
- if (!t)
3863
- throw new Error('"version" cannot be null or undefined');
3864
- if (t < 1 || t > 40)
3865
- throw new Error('"version" should be in range from 1 to 40');
3848
+ if (!t) throw new Error('"version" cannot be null or undefined');
3849
+ if (t < 1 || t > 40) throw new Error('"version" should be in range from 1 to 40');
3866
3850
  return t * 4 + 17;
3867
3851
  };
3868
3852
  H.getSymbolTotalCodewords = function(t) {
@@ -3963,8 +3947,7 @@ var So = Te, Dn = {};
3963
3947
  (function(e) {
3964
3948
  const t = H.getSymbolSize;
3965
3949
  e.getRowColCoords = function(r) {
3966
- if (r === 1)
3967
- return [];
3950
+ if (r === 1) return [];
3968
3951
  const i = Math.floor(r / 7) + 2, o = t(r), s = o === 145 ? 26 : Math.ceil((o - 13) / (2 * i - 2)) * 2, a = [o - 7];
3969
3952
  for (let u = 1; u < i - 1; u++)
3970
3953
  a[u] = a[u - 1] - s;
@@ -4047,8 +4030,7 @@ var Fn = {};
4047
4030
  }, e.getPenaltyN4 = function(i) {
4048
4031
  let o = 0;
4049
4032
  const s = i.data.length;
4050
- for (let u = 0; u < s; u++)
4051
- o += i.data[u];
4033
+ for (let u = 0; u < s; u++) o += i.data[u];
4052
4034
  return Math.abs(Math.ceil(o * 100 / s / 5) - 10) * t.N4;
4053
4035
  };
4054
4036
  function n(r, i, o) {
@@ -4453,8 +4435,7 @@ const be = new Uint8Array(512), Fe = new Uint8Array(256);
4453
4435
  be[n] = be[n - 255];
4454
4436
  })();
4455
4437
  We.log = function(t) {
4456
- if (t < 1)
4457
- throw new Error("log(" + t + ")");
4438
+ if (t < 1) throw new Error("log(" + t + ")");
4458
4439
  return Fe[t];
4459
4440
  };
4460
4441
  We.exp = function(t) {
@@ -4478,8 +4459,7 @@ We.mul = function(t, n) {
4478
4459
  for (let u = 0; u < i.length; u++)
4479
4460
  o[u] ^= t.mul(i[u], s);
4480
4461
  let a = 0;
4481
- for (; a < o.length && o[a] === 0; )
4482
- a++;
4462
+ for (; a < o.length && o[a] === 0; ) a++;
4483
4463
  o = o.slice(a);
4484
4464
  }
4485
4465
  return o;
@@ -4555,16 +4535,14 @@ F.testAlphanumeric = function(t) {
4555
4535
  }, e.MIXED = {
4556
4536
  bit: -1
4557
4537
  }, e.getCharCountIndicator = function(o, s) {
4558
- if (!o.ccBits)
4559
- throw new Error("Invalid mode: " + o);
4538
+ if (!o.ccBits) throw new Error("Invalid mode: " + o);
4560
4539
  if (!t.isValid(s))
4561
4540
  throw new Error("Invalid version: " + s);
4562
4541
  return s >= 1 && s < 10 ? o.ccBits[0] : s < 27 ? o.ccBits[1] : o.ccBits[2];
4563
4542
  }, e.getBestModeForData = function(o) {
4564
4543
  return n.testNumeric(o) ? e.NUMERIC : n.testAlphanumeric(o) ? e.ALPHANUMERIC : n.testKanji(o) ? e.KANJI : e.BYTE;
4565
4544
  }, e.toString = function(o) {
4566
- if (o && o.id)
4567
- return o.id;
4545
+ if (o && o.id) return o.id;
4568
4546
  throw new Error("Invalid mode");
4569
4547
  }, e.isValid = function(o) {
4570
4548
  return o && o.bit && o.ccBits;
@@ -4624,8 +4602,7 @@ F.testAlphanumeric = function(t) {
4624
4602
  throw new Error("Invalid QR Code version");
4625
4603
  typeof p == "undefined" && (p = i.BYTE);
4626
4604
  const _ = t.getSymbolTotalCodewords(d), g = n.getTotalCodewordsCount(d, m), y = (_ - g) * 8;
4627
- if (p === i.MIXED)
4628
- return y;
4605
+ if (p === i.MIXED) return y;
4629
4606
  const b = y - l(p, d);
4630
4607
  switch (p) {
4631
4608
  case i.NUMERIC:
@@ -5352,18 +5329,15 @@ function fs(e) {
5352
5329
  if (
5353
5330
  /*errorCode*/
5354
5331
  g[4]
5355
- )
5356
- return cs;
5332
+ ) return cs;
5357
5333
  if (
5358
5334
  /*isGenerating*/
5359
5335
  g[2]
5360
- )
5361
- return hs;
5336
+ ) return hs;
5362
5337
  if (
5363
5338
  /*qrImageUrl*/
5364
5339
  g[3]
5365
- )
5366
- return ls;
5340
+ ) return ls;
5367
5341
  }
5368
5342
  let p = m(e), _ = p && p(e);
5369
5343
  return {
@@ -45,8 +45,7 @@ function Qn(e, t, n) {
45
45
  }
46
46
  }
47
47
  function Jn(e) {
48
- if (!e)
49
- return document;
48
+ if (!e) return document;
50
49
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
51
50
  return t && /** @type {ShadowRoot} */
52
51
  t.host ? (
@@ -103,8 +102,7 @@ function de(e) {
103
102
  me = e;
104
103
  }
105
104
  function Kn() {
106
- if (!me)
107
- throw new Error("Function called outside component initialization");
105
+ if (!me) throw new Error("Function called outside component initialization");
108
106
  return me;
109
107
  }
110
108
  function er(e) {
@@ -135,8 +133,7 @@ function F() {
135
133
  } catch (t) {
136
134
  throw W.length = 0, Q = 0, t;
137
135
  }
138
- for (de(null), W.length = 0, Q = 0; ut.length; )
139
- ut.pop()();
136
+ for (de(null), W.length = 0, Q = 0; ut.length; ) ut.pop()();
140
137
  for (let t = 0; t < q.length; t += 1) {
141
138
  const n = q[t];
142
139
  We.has(n) || (We.add(n), n());
@@ -578,8 +575,7 @@ var ct = function(e, t) {
578
575
  return ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
579
576
  n.__proto__ = r;
580
577
  } || function(n, r) {
581
- for (var i in r)
582
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
578
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
583
579
  }, ct(e, t);
584
580
  };
585
581
  function Fe(e, t) {
@@ -595,25 +591,22 @@ var U = function() {
595
591
  return U = Object.assign || function(t) {
596
592
  for (var n, r = 1, i = arguments.length; r < i; r++) {
597
593
  n = arguments[r];
598
- for (var o in n)
599
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
594
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
600
595
  }
601
596
  return t;
602
597
  }, U.apply(this, arguments);
603
598
  };
604
599
  function Hr(e, t) {
605
600
  var n = {};
606
- for (var r in e)
607
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
601
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
608
602
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
609
603
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
610
604
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
611
605
  return n;
612
606
  }
613
607
  function Ye(e, t, n) {
614
- if (n || arguments.length === 2)
615
- for (var r = 0, i = t.length, o; r < i; r++)
616
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
608
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
609
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
617
610
  return e.concat(o || Array.prototype.slice.call(t));
618
611
  }
619
612
  function qe(e, t) {
@@ -668,8 +661,7 @@ var Or = function() {
668
661
  return Me = Object.assign || function(t) {
669
662
  for (var n, r = 1, i = arguments.length; r < i; r++) {
670
663
  n = arguments[r];
671
- for (var o in n)
672
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
664
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
673
665
  }
674
666
  return t;
675
667
  }, Me.apply(this, arguments);
@@ -815,8 +807,7 @@ var C = function() {
815
807
  return C = Object.assign || function(t) {
816
808
  for (var n, r = 1, i = arguments.length; r < i; r++) {
817
809
  n = arguments[r];
818
- for (var o in n)
819
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
810
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
820
811
  }
821
812
  return t;
822
813
  }, C.apply(this, arguments);
@@ -2458,8 +2449,7 @@ function Wr(e, t) {
2458
2449
  n += u;
2459
2450
  for (; s-- > 0; )
2460
2451
  n = l + n;
2461
- } else
2462
- i === "J" ? n += "H" : n += i;
2452
+ } else i === "J" ? n += "H" : n += i;
2463
2453
  }
2464
2454
  return n;
2465
2455
  }
@@ -3062,8 +3052,7 @@ function bt(e) {
3062
3052
  if (delete t.location, cn(t) || fn(t))
3063
3053
  for (var n in t.options)
3064
3054
  delete t.options[n].location, bt(t.options[n].value);
3065
- else
3066
- un(t) && gn(t.style) || (ln(t) || hn(t)) && ft(t.style) ? delete t.style.location : dn(t) && bt(t.children);
3055
+ else un(t) && gn(t.style) || (ln(t) || hn(t)) && ft(t.style) ? delete t.style.location : dn(t) && bt(t.children);
3067
3056
  });
3068
3057
  }
3069
3058
  function gi(e, t) {
@@ -3728,8 +3717,7 @@ function ro(e, t) {
3728
3717
  }
3729
3718
  }
3730
3719
  function io(e, t) {
3731
- if (!e || !t)
3732
- return;
3720
+ if (!e || !t) return;
3733
3721
  const n = new URL(t);
3734
3722
  fetch(n.href).then((r) => r.text()).then((r) => {
3735
3723
  const i = document.createElement("style");
@@ -3739,8 +3727,7 @@ function io(e, t) {
3739
3727
  });
3740
3728
  }
3741
3729
  function oo(e, t, n, r = !1) {
3742
- if (!window.emMessageBus)
3743
- return;
3730
+ if (!window.emMessageBus) return;
3744
3731
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
3745
3732
  return n = so(e, t), n;
3746
3733
  window[Y] || (window[Y] = {}), n = ao(e, t);
@@ -3761,8 +3748,7 @@ function so(e, t) {
3761
3748
  }
3762
3749
  function ao(e, t) {
3763
3750
  return window.emMessageBus.subscribe(t, (n) => {
3764
- if (!e)
3765
- return;
3751
+ if (!e) return;
3766
3752
  const r = e.getRootNode(), i = window[Y];
3767
3753
  let o = i[t] && i[t].sheet;
3768
3754
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(n), i[t] = {
@@ -3822,10 +3808,8 @@ const lo = [
3822
3808
  3706
3823
3809
  ];
3824
3810
  H.getSymbolSize = function(t) {
3825
- if (!t)
3826
- throw new Error('"version" cannot be null or undefined');
3827
- if (t < 1 || t > 40)
3828
- throw new Error('"version" should be in range from 1 to 40');
3811
+ if (!t) throw new Error('"version" cannot be null or undefined');
3812
+ if (t < 1 || t > 40) throw new Error('"version" should be in range from 1 to 40');
3829
3813
  return t * 4 + 17;
3830
3814
  };
3831
3815
  H.getSymbolTotalCodewords = function(t) {
@@ -3926,8 +3910,7 @@ var co = xe, Hn = {};
3926
3910
  (function(e) {
3927
3911
  const t = H.getSymbolSize;
3928
3912
  e.getRowColCoords = function(r) {
3929
- if (r === 1)
3930
- return [];
3913
+ if (r === 1) return [];
3931
3914
  const i = Math.floor(r / 7) + 2, o = t(r), s = o === 145 ? 26 : Math.ceil((o - 13) / (2 * i - 2)) * 2, a = [o - 7];
3932
3915
  for (let u = 1; u < i - 1; u++)
3933
3916
  a[u] = a[u - 1] - s;
@@ -4010,8 +3993,7 @@ var Ln = {};
4010
3993
  }, e.getPenaltyN4 = function(i) {
4011
3994
  let o = 0;
4012
3995
  const s = i.data.length;
4013
- for (let u = 0; u < s; u++)
4014
- o += i.data[u];
3996
+ for (let u = 0; u < s; u++) o += i.data[u];
4015
3997
  return Math.abs(Math.ceil(o * 100 / s / 5) - 10) * t.N4;
4016
3998
  };
4017
3999
  function n(r, i, o) {
@@ -4416,8 +4398,7 @@ const ge = new Uint8Array(512), Ue = new Uint8Array(256);
4416
4398
  ge[n] = ge[n - 255];
4417
4399
  })();
4418
4400
  Xe.log = function(t) {
4419
- if (t < 1)
4420
- throw new Error("log(" + t + ")");
4401
+ if (t < 1) throw new Error("log(" + t + ")");
4421
4402
  return Ue[t];
4422
4403
  };
4423
4404
  Xe.exp = function(t) {
@@ -4441,8 +4422,7 @@ Xe.mul = function(t, n) {
4441
4422
  for (let u = 0; u < i.length; u++)
4442
4423
  o[u] ^= t.mul(i[u], s);
4443
4424
  let a = 0;
4444
- for (; a < o.length && o[a] === 0; )
4445
- a++;
4425
+ for (; a < o.length && o[a] === 0; ) a++;
4446
4426
  o = o.slice(a);
4447
4427
  }
4448
4428
  return o;
@@ -4518,16 +4498,14 @@ $.testAlphanumeric = function(t) {
4518
4498
  }, e.MIXED = {
4519
4499
  bit: -1
4520
4500
  }, e.getCharCountIndicator = function(o, s) {
4521
- if (!o.ccBits)
4522
- throw new Error("Invalid mode: " + o);
4501
+ if (!o.ccBits) throw new Error("Invalid mode: " + o);
4523
4502
  if (!t.isValid(s))
4524
4503
  throw new Error("Invalid version: " + s);
4525
4504
  return s >= 1 && s < 10 ? o.ccBits[0] : s < 27 ? o.ccBits[1] : o.ccBits[2];
4526
4505
  }, e.getBestModeForData = function(o) {
4527
4506
  return n.testNumeric(o) ? e.NUMERIC : n.testAlphanumeric(o) ? e.ALPHANUMERIC : n.testKanji(o) ? e.KANJI : e.BYTE;
4528
4507
  }, e.toString = function(o) {
4529
- if (o && o.id)
4530
- return o.id;
4508
+ if (o && o.id) return o.id;
4531
4509
  throw new Error("Invalid mode");
4532
4510
  }, e.isValid = function(o) {
4533
4511
  return o && o.bit && o.ccBits;
@@ -4587,8 +4565,7 @@ $.testAlphanumeric = function(t) {
4587
4565
  throw new Error("Invalid QR Code version");
4588
4566
  typeof p > "u" && (p = i.BYTE);
4589
4567
  const _ = t.getSymbolTotalCodewords(d), g = n.getTotalCodewordsCount(d, m), y = (_ - g) * 8;
4590
- if (p === i.MIXED)
4591
- return y;
4568
+ if (p === i.MIXED) return y;
4592
4569
  const b = y - l(p, d);
4593
4570
  switch (p) {
4594
4571
  case i.NUMERIC:
@@ -5315,18 +5292,15 @@ function es(e) {
5315
5292
  if (
5316
5293
  /*errorCode*/
5317
5294
  g[4]
5318
- )
5319
- return Ko;
5295
+ ) return Ko;
5320
5296
  if (
5321
5297
  /*isGenerating*/
5322
5298
  g[2]
5323
- )
5324
- return Zo;
5299
+ ) return Zo;
5325
5300
  if (
5326
5301
  /*qrImageUrl*/
5327
5302
  g[3]
5328
- )
5329
- return qo;
5303
+ ) return qo;
5330
5304
  }
5331
5305
  let p = m(e), _ = p && p(e);
5332
5306
  return {
@@ -0,0 +1,10 @@
1
+ "use strict";var Kn=Object.defineProperty,er=Object.defineProperties;var tr=Object.getOwnPropertyDescriptors;var Ot=Object.getOwnPropertySymbols;var nr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable;var Ze=(e,t,n)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))nr.call(t,n)&&Ze(e,n,t[n]);if(Ot)for(var n of Ot(t))rr.call(t,n)&&Ze(e,n,t[n]);return e},Dt=(e,t)=>er(e,tr(t));var M=(e,t,n)=>Ze(e,typeof t!="symbol"?t+"":t,n);var Q=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function R(){}function un(e){return e()}function $t(){return Object.create(null)}function ve(e){e.forEach(un)}function Ct(e){return typeof e=="function"}function ln(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ce;function Ft(e,t){return e===t?!0:(Ce||(Ce=document.createElement("a")),Ce.href=t,e===Ce.href)}function ir(e){return Object.keys(e).length===0}function hn(e,...t){if(e==null){for(const r of t)r(void 0);return R}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function or(e,t,n){e.$$.on_destroy.push(hn(t,n))}function O(e,t){e.appendChild(t)}function sr(e,t,n){const r=ar(e);if(!r.getElementById(t)){const i=$("style");i.id=t,i.textContent=n,ur(r,i)}}function ar(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ur(e,t){return O(e.head||e,t),t.sheet}function xe(e,t,n){e.insertBefore(t,n||null)}function ae(e){e.parentNode&&e.parentNode.removeChild(e)}function $(e){return document.createElement(e)}function Oe(e){return document.createTextNode(e)}function Gt(){return Oe(" ")}function lr(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function U(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function hr(e){return Array.from(e.childNodes)}function ct(e,t){t=""+t,e.data!==t&&(e.data=t)}function cr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let ye;function pe(e){ye=e}function fr(){if(!ye)throw new Error("Function called outside component initialization");return ye}function dr(e){fr().$$.on_destroy.push(e)}const Y=[],ft=[];let Z=[];const kt=[],gr=Promise.resolve();let dt=!1;function mr(){dt||(dt=!0,gr.then(G))}function gt(e){Z.push(e)}const Ke=new Set;let J=0;function G(){if(J!==0)return;const e=ye;do{try{for(;J<Y.length;){const t=Y[J];J++,pe(t),pr(t.$$)}}catch(t){throw Y.length=0,J=0,t}for(pe(null),Y.length=0,J=0;ft.length;)ft.pop()();for(let t=0;t<Z.length;t+=1){const n=Z[t];Ke.has(n)||(Ke.add(n),n())}Z.length=0}while(Y.length);for(;kt.length;)kt.pop()();dt=!1,Ke.clear(),pe(e)}function pr(e){if(e.fragment!==null){e.update(),ve(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(gt)}}function br(e){const t=[],n=[];Z.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Z=t}const yr=new Set;function Er(e,t){e&&e.i&&(yr.delete(e),e.i(t))}function _r(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),gt(()=>{const o=e.$$.on_mount.map(un).filter(Ct);e.$$.on_destroy?e.$$.on_destroy.push(...o):ve(o),e.$$.on_mount=[]}),i.forEach(gt)}function wr(e,t){const n=e.$$;n.fragment!==null&&(br(n.after_update),ve(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function vr(e,t){e.$$.dirty[0]===-1&&(Y.push(e),mr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function xr(e,t,n,r,i,o,s=null,a=[-1]){const u=ye;pe(e);const l=e.$$={fragment:null,ctx:[],props:o,update:R,not_equal:i,bound:$t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:$t(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let h=!1;if(l.ctx=n?n(e,t.props||{},(f,c,...d)=>{const m=d.length?d[0]:c;return l.ctx&&i(l.ctx[f],l.ctx[f]=m)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](m),h&&vr(e,f)),c}):[],l.update(),h=!0,ve(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=hr(t.target);l.fragment&&l.fragment.l(f),f.forEach(ae)}else l.fragment&&l.fragment.c();t.intro&&Er(e.$$.fragment),_r(e,t.target,t.anchor),G()}pe(u)}let cn;typeof HTMLElement=="function"&&(cn=class extends HTMLElement{constructor(t,n,r){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=$("slot"),o!=="default"&&U(s,"name",o)},m:function(l,h){xe(l,s,h)},d:function(l){l&&ae(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=cr(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ie(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Dt(Ut({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=Ie(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;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]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Ie(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Sr(e,t,n,r,i,o){let s=class extends cn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ie(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Br{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){wr(this,1),this.$destroy=R}$on(t,n){if(!Ct(n))return R;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!ir(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Tr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Tr);const W=[];function Ar(e,t){return{subscribe:ke(e,t).subscribe}}function ke(e,t=R){let n;const r=new Set;function i(a){if(ln(e,a)&&(e=a,n)){const u=!W.length;for(const l of r)l[1](),W.push(l,e);if(u){for(let l=0;l<W.length;l+=2)W[l][0](W[l+1]);W.length=0}}}function o(a){i(a(e))}function s(a,u=R){const l=[a,u];return r.add(l),r.size===1&&(n=t(i,o)||R),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function ue(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ar(n,(s,a)=>{let u=!1;const l=[];let h=0,f=R;const c=()=>{if(h)return;f();const m=t(r?l[0]:l,s,a);o?s(m):f=Ct(m)?m:R},d=i.map((m,p)=>hn(m,_=>{l[p]=_,h&=~(1<<p),u&&c()},()=>{h|=1<<p}));return u=!0,c(),function(){ve(d),f(),u=!1}})}function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr=function(t){return Pr(t)&&!Hr(t)};function Pr(e){return!!e&&typeof e=="object"}function Hr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mr(e)}var Ir=typeof Symbol=="function"&&Symbol.for,Lr=Ir?Symbol.for("react.element"):60103;function Mr(e){return e.$$typeof===Lr}function Rr(e){return Array.isArray(e)?[]:{}}function Ee(e,t){return t.clone!==!1&&t.isMergeableObject(e)?K(Rr(e),e,t):e}function Or(e,t,n){return e.concat(t).map(function(r){return Ee(r,n)})}function Ur(e,t){if(!t.customMerge)return K;var n=t.customMerge(e);return typeof n=="function"?n:K}function Dr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jt(e){return Object.keys(e).concat(Dr(e))}function fn(e,t){try{return t in e}catch(n){return!1}}function $r(e,t){return fn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Fr(e,t,n){var r={};return n.isMergeableObject(e)&&jt(e).forEach(function(i){r[i]=Ee(e[i],n)}),jt(t).forEach(function(i){$r(e,i)||(fn(e,i)&&n.isMergeableObject(t[i])?r[i]=Ur(i,n)(e[i],t[i],n):r[i]=Ee(t[i],n))}),r}function K(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Or,n.isMergeableObject=n.isMergeableObject||Nr,n.cloneUnlessOtherwiseSpecified=Ee;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Fr(e,t,n):Ee(t,n)}K.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return K(r,i,n)},{})};var Gr=K,kr=Gr;const jr=Cr(kr);var mt=function(e,t){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},mt(e,t)};function je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var D=function(){return D=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},D.apply(this,arguments)};function Vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function et(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function tt(e,t){var n=t&&t.cache?t.cache:qr,r=t&&t.serializer?t.serializer:Wr,i=t&&t.strategy?t.strategy:Qr;return i(e,{cache:n,serializer:r})}function zr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Xr(e,t,n,r){var i=zr(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function dn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function gn(e,t,n,r,i){return n.bind(t,e,r,i)}function Qr(e,t){var n=e.length===1?Xr:dn;return gn(e,this,n,t.cache.create(),t.serializer)}function Jr(e,t){return gn(e,this,dn,t.cache.create(),t.serializer)}var Wr=function(){return JSON.stringify(arguments)},Yr=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),qr={create:function(){return new Yr}},nt={variadic:Jr},Ue=function(){return Ue=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ue.apply(this,arguments)};var x;(function(e){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"})(x||(x={}));var T;(function(e){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"})(T||(T={}));var ee;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ee||(ee={}));function Vt(e){return e.type===T.literal}function Zr(e){return e.type===T.argument}function mn(e){return e.type===T.number}function pn(e){return e.type===T.date}function bn(e){return e.type===T.time}function yn(e){return e.type===T.select}function En(e){return e.type===T.plural}function Kr(e){return e.type===T.pound}function _n(e){return e.type===T.tag}function wn(e){return!!(e&&typeof e=="object"&&e.type===ee.number)}function pt(e){return!!(e&&typeof e=="object"&&e.type===ee.dateTime)}var vn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ei=/(?:[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;function ti(e){var t={};return e.replace(ei,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var C=function(){return C=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},C.apply(this,arguments)};var ni=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ri(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ni).filter(function(c){return c.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,h=u;l<h.length;l++){var f=h[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function ii(e){return e.replace(/^(.*?)-/,"")}var zt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xn=/^(@+)?(\+|#+)?[rs]?$/g,oi=/(\*)(0+)|(#+)(0+)|(0+)/g,Sn=/^(0+)$/;function Xt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(xn,function(n,r,i){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)),""}),t}function Bn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function si(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Sn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qt(e){var t={},n=Bn(e);return n||t}function ai(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ii(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=C(C(C({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return C(C({},u),Qt(l))},{}));continue;case"engineering":t=C(C(C({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return C(C({},u),Qt(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(oi,function(u,l,h,f,c,d){if(l)t.minimumIntegerDigits=h.length;else{if(f&&c)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(zt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(zt,function(u,l,h,f,c,d){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),""});var o=i.options[0];o==="w"?t=C(C({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=C(C({},t),Xt(o)));continue}if(xn.test(i.stem)){t=C(C({},t),Xt(i.stem));continue}var s=Bn(i.stem);s&&(t=C(C({},t),s));var a=si(i.stem);a&&(t=C(C({},t),a))}return t}var Ne={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ui(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=li(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function li(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Ne[r||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"];return i[0]}var rt,hi=new RegExp("^".concat(vn.source,"*")),ci=new RegExp("".concat(vn.source,"*$"));function S(e,t){return{start:e,end:t}}var fi=!!String.prototype.startsWith&&"_a".startsWith("a",1),di=!!String.fromCodePoint,gi=!!Object.fromEntries,mi=!!String.prototype.codePointAt,pi=!!String.prototype.trimStart,bi=!!String.prototype.trimEnd,yi=!!Number.isSafeInteger,Ei=yi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},bt=!0;try{var _i=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bt=((rt=_i.exec("a"))===null||rt===void 0?void 0:rt[0])==="a"}catch(e){bt=!1}var Jt=fi?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},yt=di?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Wt=gi?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Tn=mi?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},wi=pi?function(t){return t.trimStart()}:function(t){return t.replace(hi,"")},vi=bi?function(t){return t.trimEnd()}:function(t){return t.replace(ci,"")};function An(e,t){return new RegExp(e,t)}var Et;if(bt){var Yt=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Et=function(t,n){var r;Yt.lastIndex=n;var i=Yt.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Et=function(t,n){for(var r=[];;){var i=Tn(t,n);if(i===void 0||Cn(i)||Ti(i))break;r.push(i),n+=i>=65536?2:1}return yt.apply(void 0,r)};var xi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:T.pound,location:S(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(x.UNMATCHED_CLOSING_TAG,S(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_t(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:T.literal,value:"<".concat(i,"/>"),location:S(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_t(this.char()))return this.error(x.INVALID_TAG,S(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(x.UNMATCHED_CLOSING_TAG,S(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:T.tag,value:i,children:s,location:S(r,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,S(a,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,S(r,this.clonePosition()))}else return this.error(x.INVALID_TAG,S(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Bi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=S(r,this.clonePosition());return{val:{type:T.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Si(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return yt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),yt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,S(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(x.MALFORMED_ARGUMENT,S(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:T.argument,value:i,location:S(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(x.MALFORMED_ARGUMENT,S(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Et(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=S(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,S(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var c=vi(f.val);if(c.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,S(this.clonePosition(),this.clonePosition()));var d=S(h,this.clonePosition());l={style:c,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var p=S(i,this.clonePosition());if(l&&Jt(l==null?void 0:l.style,"::",0)){var _=wi(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(_,l.styleLocation);return f.err?f:{val:{type:T.number,value:r,location:p,style:f.val},err:null}}else{if(_.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,p);var g=_;this.locale&&(g=ui(_,this.locale));var c={type:ee.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ti(g):{}},y=a==="date"?T.date:T.time;return{val:{type:y,value:r,location:p,style:c},err:null}}}return{val:{type:a==="number"?T.number:a==="date"?T.date:T.time,value:r,location:p,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,S(b,Ue({},b)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),v=0;if(a!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),E=this.parseIdentifierIfPossible(),v=f.val}var B=this.tryParsePluralOrSelectOptions(t,a,n,E);if(B.err)return B;var m=this.tryParseArgumentClose(i);if(m.err)return m;var A=S(i,this.clonePosition());return a==="select"?{val:{type:T.select,value:r,options:Wt(B.val),location:A},err:null}:{val:{type:T.plural,value:r,options:Wt(B.val),offset:v,pluralType:a==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,S(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,S(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ri(t)}catch(i){return this.error(x.INVALID_NUMBER_SKELETON,n)}return{val:{type:ee.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ai(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=S(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(s=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,S(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var p=this.tryParseArgumentClose(d);if(p.err)return p;a.push([l,{value:m.val,location:S(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}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}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=S(i,this.clonePosition());return o?(s*=r,Ei(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Tn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();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)}},e.prototype.bumpIf=function(t){if(Jt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Cn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function _t(e){return e>=97&&e<=122||e>=65&&e<=90}function Si(e){return _t(e)||e===47}function Bi(e){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}function Cn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ti(e){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}function wt(e){e.forEach(function(t){if(delete t.location,yn(t)||En(t))for(var n in t.options)delete t.options[n].location,wt(t.options[n].value);else mn(t)&&wn(t.style)||(pn(t)||bn(t))&&pt(t.style)?delete t.style.location:_n(t)&&wt(t.children)})}function Ai(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new xi(e,t).parse();if(n.err){var r=SyntaxError(x[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||wt(n.val),n.val}var te;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(te||(te={}));var Ve=function(e){je(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),qt=function(e){je(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),te.INVALID_VALUE,o)||this}return t}(Ve),Ci=function(e){je(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),te.INVALID_VALUE,i)||this}return t}(Ve),Ni=function(e){je(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),te.MISSING_VALUE,r)||this}return t}(Ve),N;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(N||(N={}));function Pi(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==N.literal||n.type!==N.literal?t.push(n):r.value+=n.value,t},[])}function Hi(e){return typeof e=="function"}function Le(e,t,n,r,i,o,s){if(e.length===1&&Vt(e[0]))return[{type:N.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];if(Vt(h)){a.push({type:N.literal,value:h.value});continue}if(Kr(h)){typeof o=="number"&&a.push({type:N.literal,value:n.getNumberFormat(t).format(o)});continue}var f=h.value;if(!(i&&f in i))throw new Ni(f,s);var c=i[f];if(Zr(h)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?N.literal:N.object,value:c});continue}if(pn(h)){var d=typeof h.style=="string"?r.date[h.style]:pt(h.style)?h.style.parsedOptions:void 0;a.push({type:N.literal,value:n.getDateTimeFormat(t,d).format(c)});continue}if(bn(h)){var d=typeof h.style=="string"?r.time[h.style]:pt(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:N.literal,value:n.getDateTimeFormat(t,d).format(c)});continue}if(mn(h)){var d=typeof h.style=="string"?r.number[h.style]:wn(h.style)?h.style.parsedOptions:void 0;d&&d.scale&&(c=c*(d.scale||1)),a.push({type:N.literal,value:n.getNumberFormat(t,d).format(c)});continue}if(_n(h)){var m=h.children,p=h.value,_=i[p];if(!Hi(_))throw new Ci(p,"function",s);var g=Le(m,t,n,r,i,o),y=_(g.map(function(v){return v.value}));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map(function(v){return{type:typeof v=="string"?N.literal:N.object,value:v}}))}if(yn(h)){var b=h.options[c]||h.options.other;if(!b)throw new qt(h.value,c,Object.keys(h.options),s);a.push.apply(a,Le(b.value,t,n,r,i));continue}if(En(h)){var b=h.options["=".concat(c)];if(!b){if(!Intl.PluralRules)throw new Ve(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,te.MISSING_INTL_API,s);var E=n.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));b=h.options[E]||h.options.other}if(!b)throw new qt(h.value,c,Object.keys(h.options),s);a.push.apply(a,Le(b.value,t,n,r,i,c-(h.offset||0)));continue}}return Pi(a)}function Ii(e,t){return t?D(D(D({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=D(D({},e[r]),t[r]||{}),n},{})):e}function Li(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ii(e[r],t[r]),n},D({},e)):e}function it(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Mi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,et([void 0],n,!1)))},{cache:it(e.number),strategy:nt.variadic}),getDateTimeFormat:tt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,et([void 0],n,!1)))},{cache:it(e.dateTime),strategy:nt.variadic}),getPluralRules:tt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,et([void 0],n,!1)))},{cache:it(e.pluralRules),strategy:nt.variadic})}}var Ri=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(f,c){return!f.length||c.type!==N.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Le(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Vr(s,["formatters"]);this.ast=e.__parse(t,D(D({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Li(e.formats,r),this.formatters=i&&i.formatters||Mi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ai,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Oi(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const j={},Ui=(e,t,n)=>n&&(t in j||(j[t]={}),e in j[t]||(j[t][e]=n),n),Nn=(e,t)=>{if(t==null)return;if(t in j&&e in j[t])return j[t][e];const n=ze(t);for(let r=0;r<n.length;r++){const i=n[r],o=$i(i,e);if(o)return Ui(e,t,o)}};let Nt;const Se=ke({});function Di(e){return Nt[e]||null}function Pn(e){return e in Nt}function $i(e,t){if(!Pn(e))return null;const n=Di(e);return Oi(n,t)}function Fi(e){if(e==null)return;const t=ze(e);for(let n=0;n<t.length;n++){const r=t[n];if(Pn(r))return r}}function Hn(e,...t){delete j[e],Se.update(n=>(n[e]=jr.all([n[e]||{},...t]),n))}ue([Se],([e])=>Object.keys(e));Se.subscribe(e=>Nt=e);const Me={};function Gi(e,t){Me[e].delete(t),Me[e].size===0&&delete Me[e]}function In(e){return Me[e]}function ki(e){return ze(e).map(t=>{const n=In(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function vt(e){return e==null?!1:ze(e).some(t=>{var n;return(n=In(t))==null?void 0:n.size})}function ji(e,t){return Promise.all(t.map(r=>(Gi(e,r),r().then(i=>i.default||i)))).then(r=>Hn(e,...r))}const me={};function Ln(e){if(!vt(e))return e in me?me[e]:Promise.resolve();const t=ki(e);return me[e]=Promise.all(t.map(([n,r])=>ji(n,r))).then(()=>{if(vt(e))return Ln(e);delete me[e]}),me[e]}const Vi={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},zi={fallbackLocale:null,loadingDelay:200,formats:Vi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Xi=zi;function ne(){return Xi}const ot=ke(!1);var Qi=Object.defineProperty,Ji=Object.defineProperties,Wi=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Kt=(e,t,n)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zi=(e,t)=>{for(var n in t||(t={}))Yi.call(t,n)&&Kt(e,n,t[n]);if(Zt)for(var n of Zt(t))qi.call(t,n)&&Kt(e,n,t[n]);return e},Ki=(e,t)=>Ji(e,Wi(t));let xt;const De=ke(null);function en(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function ze(e,t=ne().fallbackLocale){const n=en(e);return t?[...new Set([...n,...en(t)])]:n}function X(){return xt!=null?xt:void 0}De.subscribe(e=>{xt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const eo=e=>{if(e&&Fi(e)&&vt(e)){const{loadingDelay:t}=ne();let n;return typeof window!="undefined"&&X()!=null&&t?n=window.setTimeout(()=>ot.set(!0),t):ot.set(!0),Ln(e).then(()=>{De.set(e)}).finally(()=>{clearTimeout(n),ot.set(!1)})}return De.set(e)},le=Ki(Zi({},De),{set:eo}),Xe=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var to=Object.defineProperty,$e=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,tn=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pt=(e,t)=>{for(var n in t||(t={}))Mn.call(t,n)&&tn(e,n,t[n]);if($e)for(var n of $e(t))Rn.call(t,n)&&tn(e,n,t[n]);return e},he=(e,t)=>{var n={};for(var r in e)Mn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$e)for(var r of $e(e))t.indexOf(r)<0&&Rn.call(e,r)&&(n[r]=e[r]);return n};const _e=(e,t)=>{const{formats:n}=ne();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},no=Xe(e=>{var t=e,{locale:n,format:r}=t,i=he(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=_e("number",r)),new Intl.NumberFormat(n,i)}),ro=Xe(e=>{var t=e,{locale:n,format:r}=t,i=he(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=_e("date",r):Object.keys(i).length===0&&(i=_e("date","short")),new Intl.DateTimeFormat(n,i)}),io=Xe(e=>{var t=e,{locale:n,format:r}=t,i=he(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=_e("time",r):Object.keys(i).length===0&&(i=_e("time","short")),new Intl.DateTimeFormat(n,i)}),oo=(e={})=>{var t=e,{locale:n=X()}=t,r=he(t,["locale"]);return no(Pt({locale:n},r))},so=(e={})=>{var t=e,{locale:n=X()}=t,r=he(t,["locale"]);return ro(Pt({locale:n},r))},ao=(e={})=>{var t=e,{locale:n=X()}=t,r=he(t,["locale"]);return io(Pt({locale:n},r))},uo=Xe((e,t=X())=>new Ri(e,t,ne().formats,{ignoreTag:ne().ignoreTag})),lo=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=X(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Nn(e,u);if(!h)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;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=uo(h,u).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},ho=(e,t)=>ao(t).format(e),co=(e,t)=>so(t).format(e),fo=(e,t)=>oo(t).format(e),go=(e,t=X())=>Nn(e,t),mo=ue([le,Se],()=>lo);ue([le],()=>ho);ue([le],()=>co);ue([le],()=>fo);ue([le,Se],()=>go);function nn(e,t){Hn(e,t)}function po(e){le.set(e)}const rn={en:{titleQRSessionGenerator:"Scan the QR Code to access your account on retail devices.",generateQRButton:"Generate QR",unauthorized:"Authentication failed.",failedToFetch:"Cannot generate QR, Please try again.",unexpectedError:"Unexpected error occurred. Please try again later.",second:"s"},fr:{titleQRSessionGenerator:"Scannez le code QR pour accéder à votre compte sur les appareils en magasin.",generateQRButton:"Générer des QR",unauthorized:"L'authentification a échoué.",failedToFetch:"Impossible de générer le code QR, veuillez réessayer.",unexpectedError:"Une erreur inattendue s'est produite. Veuillez réessayer plus tard.",second:"s"}},q="__WIDGET_GLOBAL_STYLE_CACHE__";function bo(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function yo(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Eo(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=_o(e,t),n;window[q]||(window[q]={}),n=wo(e,t);const o=n.unsubscribe.bind(n),s=()=>{if(window[q][t]){const a=window[q][t];a.refCount>1?a.refCount=a.refCount-1:delete window[q][t]}o()};return n.unsubscribe=s,n}function _o(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function wo(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[q];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[t]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}var Be={},vo=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},On={},H={};let Ht;const xo=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];H.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};H.getSymbolTotalCodewords=function(t){return xo[t]};H.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};H.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ht=t};H.isKanjiModeEnabled=function(){return typeof Ht!="undefined"};H.toSJIS=function(t){return Ht(t)};var Qe={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch(o){return i}}})(Qe);function Un(){this.buffer=[],this.length=0}Un.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var So=Un;function Te(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Te.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};Te.prototype.get=function(e,t){return this.data[e*this.size+t]};Te.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Te.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Bo=Te,Dn={};(function(e){const t=H.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=t(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let u=1;u<i-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},e.getPositions=function(r){const i=[],o=e.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||i.push([o[a],o[u]]);return i}})(Dn);var $n={};const To=H.getSymbolSize,on=7;$n.getPositions=function(t){const n=To(t);return[[0,0],[n-on,0],[0,n-on]]};var Fn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let s=0,a=0,u=0,l=null,h=null;for(let f=0;f<o;f++){a=u=0,l=h=null;for(let c=0;c<o;c++){let d=i.get(f,c);d===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=d,a=1),d=i.get(c,f),d===h?u++:(u>=5&&(s+=t.N1+(u-5)),h=d,u=1)}a>=5&&(s+=t.N1+(a-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(i){const o=i.size;let s=0;for(let a=0;a<o-1;a++)for(let u=0;u<o-1;u++){const l=i.get(a,u)+i.get(a,u+1)+i.get(a+1,u)+i.get(a+1,u+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const o=i.size;let s=0,a=0,u=0;for(let l=0;l<o;l++){a=u=0;for(let h=0;h<o;h++)a=a<<1&2047|i.get(l,h),h>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|i.get(h,l),h>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let u=0;u<s;u++)o+=i.data[u];return Math.abs(Math.ceil(o*100/s/5)-10)*t.N4};function n(r,i,o){switch(r){case e.Patterns.PATTERN000:return(i+o)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(i+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return i*o%2+i*o%3===0;case e.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case e.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,o){const s=o.size;for(let a=0;a<s;a++)for(let u=0;u<s;u++)o.isReserved(u,a)||o.xor(u,a,n(i,u,a))},e.getBestMask=function(i,o){const s=Object.keys(e.Patterns).length;let a=0,u=1/0;for(let l=0;l<s;l++){o(l),e.applyMask(l,i);const h=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(l,i),h<u&&(u=h,a=l)}return a}})(Fn);var Je={};const V=Qe,Pe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],He=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Je.getBlocksCount=function(t,n){switch(n){case V.L:return Pe[(t-1)*4+0];case V.M:return Pe[(t-1)*4+1];case V.Q:return Pe[(t-1)*4+2];case V.H:return Pe[(t-1)*4+3];default:return}};Je.getTotalCodewordsCount=function(t,n){switch(n){case V.L:return He[(t-1)*4+0];case V.M:return He[(t-1)*4+1];case V.Q:return He[(t-1)*4+2];case V.H:return He[(t-1)*4+3];default:return}};var Gn={},We={};const be=new Uint8Array(512),Fe=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)be[n]=t,Fe[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)be[n]=be[n-255]})();We.log=function(t){if(t<1)throw new Error("log("+t+")");return Fe[t]};We.exp=function(t){return be[t]};We.mul=function(t,n){return t===0||n===0?0:be[Fe[t]+Fe[n]]};(function(e){const t=We;e.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<i.length;a++)o[s+a]^=t.mul(r[s],i[a]);return o},e.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let u=0;u<i.length;u++)o[u]^=t.mul(i[u],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=e.mul(i,new Uint8Array([1,t.exp(o)]));return i}})(Gn);const kn=Gn;function It(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}It.prototype.initialize=function(t){this.degree=t,this.genPoly=kn.generateECPolynomial(this.degree)};It.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=kn.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const o=new Uint8Array(this.degree);return o.set(r,i),o}return r};var Ao=It,jn={},z={},Lt={};Lt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var F={};const Vn="[0-9]+",Co="[A-Z $%*+\\-./:]+";let we="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";we=we.replace(/u/g,"\\u");const No="(?:(?![A-Z0-9 $%*+\\-./:]|"+we+`)(?:.|[\r
4
+ ]))+`;F.KANJI=new RegExp(we,"g");F.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");F.BYTE=new RegExp(No,"g");F.NUMERIC=new RegExp(Vn,"g");F.ALPHANUMERIC=new RegExp(Co,"g");const Po=new RegExp("^"+we+"$"),Ho=new RegExp("^"+Vn+"$"),Io=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");F.testKanji=function(t){return Po.test(t)};F.testNumeric=function(t){return Ho.test(t)};F.testAlphanumeric=function(t){return Io.test(t)};(function(e){const t=Lt,n=F;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,s){if(e.isValid(o))return o;try{return r(o)}catch(a){return s}}})(z);(function(e){const t=H,n=Je,r=Qe,i=z,o=Lt,s=7973,a=t.getBCHDigit(s);function u(c,d,m){for(let p=1;p<=40;p++)if(d<=e.getCapacity(p,m,c))return p}function l(c,d){return i.getCharCountIndicator(c,d)+4}function h(c,d){let m=0;return c.forEach(function(p){const _=l(p.mode,d);m+=_+p.getBitsLength()}),m}function f(c,d){for(let m=1;m<=40;m++)if(h(c,m)<=e.getCapacity(m,d,i.MIXED))return m}e.from=function(d,m){return o.isValid(d)?parseInt(d,10):m},e.getCapacity=function(d,m,p){if(!o.isValid(d))throw new Error("Invalid QR Code version");typeof p=="undefined"&&(p=i.BYTE);const _=t.getSymbolTotalCodewords(d),g=n.getTotalCodewordsCount(d,m),y=(_-g)*8;if(p===i.MIXED)return y;const b=y-l(p,d);switch(p){case i.NUMERIC:return Math.floor(b/10*3);case i.ALPHANUMERIC:return Math.floor(b/11*2);case i.KANJI:return Math.floor(b/13);case i.BYTE:default:return Math.floor(b/8)}},e.getBestVersionForData=function(d,m){let p;const _=r.from(m,r.M);if(Array.isArray(d)){if(d.length>1)return f(d,_);if(d.length===0)return 1;p=d[0]}else p=d;return u(p.mode,p.getLength(),_)},e.getEncodedBits=function(d){if(!o.isValid(d)||d<7)throw new Error("Invalid QR Code version");let m=d<<12;for(;t.getBCHDigit(m)-a>=0;)m^=s<<t.getBCHDigit(m)-a;return d<<12|m}})(jn);var zn={};const St=H,Xn=1335,Lo=21522,sn=St.getBCHDigit(Xn);zn.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;St.getBCHDigit(i)-sn>=0;)i^=Xn<<St.getBCHDigit(i)-sn;return(r<<10|i)^Lo};var Qn={};const Mo=z;function re(e){this.mode=Mo.NUMERIC,this.data=e.toString()}re.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};re.prototype.getLength=function(){return this.data.length};re.prototype.getBitsLength=function(){return re.getBitsLength(this.data.length)};re.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const o=this.data.length-n;o>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,o*3+1))};var Ro=re;const Oo=z,st=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ie(e){this.mode=Oo.ALPHANUMERIC,this.data=e}ie.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ie.prototype.getLength=function(){return this.data.length};ie.prototype.getBitsLength=function(){return ie.getBitsLength(this.data.length)};ie.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=st.indexOf(this.data[n])*45;r+=st.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(st.indexOf(this.data[n]),6)};var Uo=ie;const Do=z;function oe(e){this.mode=Do.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}oe.getBitsLength=function(t){return t*8};oe.prototype.getLength=function(){return this.data.length};oe.prototype.getBitsLength=function(){return oe.getBitsLength(this.data.length)};oe.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var $o=oe;const Fo=z,Go=H;function se(e){this.mode=Fo.KANJI,this.data=e}se.getBitsLength=function(t){return t*13};se.prototype.getLength=function(){return this.data.length};se.prototype.getBitsLength=function(){return se.getBitsLength(this.data.length)};se.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=Go.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
5
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var ko=se,Jn={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var a=t.PriorityQueue.make();a.push(r,0);for(var u,l,h,f,c,d,m,p,_;!a.empty();){u=a.pop(),l=u.value,f=u.cost,c=n[l]||{};for(h in c)c.hasOwnProperty(h)&&(d=c[h],m=f+d,p=s[h],_=typeof s[h]=="undefined",(_||p>m)&&(s[h]=m,a.push(h,m),o[h]=l))}if(typeof i!="undefined"&&typeof s[i]=="undefined"){var g=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(g)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Jn);var jo=Jn.exports;(function(e){const t=z,n=Ro,r=Uo,i=$o,o=ko,s=F,a=H,u=jo;function l(g){return unescape(encodeURIComponent(g)).length}function h(g,y,b){const E=[];let v;for(;(v=g.exec(b))!==null;)E.push({data:v[0],index:v.index,mode:y,length:v[0].length});return E}function f(g){const y=h(s.NUMERIC,t.NUMERIC,g),b=h(s.ALPHANUMERIC,t.ALPHANUMERIC,g);let E,v;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){return A.index-P.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function c(g,y){switch(y){case t.NUMERIC:return n.getBitsLength(g);case t.ALPHANUMERIC:return r.getBitsLength(g);case t.KANJI:return o.getBitsLength(g);case t.BYTE:return i.getBitsLength(g)}}function d(g){return g.reduce(function(y,b){const E=y.length-1>=0?y[y.length-1]:null;return E&&E.mode===b.mode?(y[y.length-1].data+=b.data,y):(y.push(b),y)},[])}function m(g){const y=[];for(let b=0;b<g.length;b++){const E=g[b];switch(E.mode){case t.NUMERIC:y.push([E,{data:E.data,mode:t.ALPHANUMERIC,length:E.length},{data:E.data,mode:t.BYTE,length:E.length}]);break;case t.ALPHANUMERIC:y.push([E,{data:E.data,mode:t.BYTE,length:E.length}]);break;case t.KANJI:y.push([E,{data:E.data,mode:t.BYTE,length:l(E.data)}]);break;case t.BYTE:y.push([{data:E.data,mode:t.BYTE,length:l(E.data)}])}}return y}function p(g,y){const b={},E={start:{}};let v=["start"];for(let B=0;B<g.length;B++){const A=g[B],P=[];for(let I=0;I<A.length;I++){const L=A[I],k=""+B+I;P.push(k),b[k]={node:L,lastCount:0},E[k]={};for(let ce=0;ce<v.length;ce++){const w=v[ce];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))}}v=P}for(let B=0;B<v.length;B++)E[v[B]].end=0;return{map:E,table:b}}function _(g,y){let b;const E=t.getBestModeForData(g);if(b=t.from(y,E),b!==t.BYTE&&b.bit<E.bit)throw new Error('"'+g+'" cannot be encoded with mode '+t.toString(b)+`.
6
+ Suggested mode is: `+t.toString(E));switch(b===t.KANJI&&!a.isKanjiModeEnabled()&&(b=t.BYTE),b){case t.NUMERIC:return new n(g);case t.ALPHANUMERIC:return new r(g);case t.KANJI:return new o(g);case t.BYTE:return new i(g)}}e.fromArray=function(y){return y.reduce(function(b,E){return typeof E=="string"?b.push(_(E,null)):E.data&&b.push(_(E.data,E.mode)),b},[])},e.fromString=function(y,b){const E=f(y,a.isKanjiModeEnabled()),v=m(E),B=p(v,b),A=u.find_path(B.map,"start","end"),P=[];for(let I=1;I<A.length-1;I++)P.push(B.table[A[I]].node);return e.fromArray(d(P))},e.rawSplit=function(y){return e.fromArray(f(y,a.isKanjiModeEnabled()))}})(Qn);const Ye=H,at=Qe,Vo=So,zo=Bo,Xo=Dn,Qo=$n,Bt=Fn,Tt=Je,Jo=Ao,Ge=jn,Wo=zn,Yo=z,ut=Qn;function qo(e,t){const n=e.size,r=Qo.getPositions(t);for(let i=0;i<r.length;i++){const o=r[i][0],s=r[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||n<=o+a))for(let u=-1;u<=7;u++)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))}}function Zo(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function Ko(e,t){const n=Xo.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],o=n[r][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)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)}}function es(e,t){const n=e.size,r=Ge.getEncodedBits(t);let i,o,s;for(let a=0;a<18;a++)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)}function lt(e,t,n){const r=e.size,i=Wo.getEncodedBits(t,n);let o,s;for(o=0;o<15;o++)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);e.set(r-8,8,1,!0)}function ts(e,t){const n=e.size;let r=-1,i=n-1,o=7,s=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!e.isReserved(i,a-u)){let l=!1;s<t.length&&(l=(t[s]>>>o&1)===1),e.set(i,a-u,l),o--,o===-1&&(s++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function ns(e,t,n){const r=new Vo;n.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),Yo.getCharCountIndicator(u.mode,e)),u.write(r)});const i=Ye.getSymbolTotalCodewords(e),o=Tt.getTotalCodewordsCount(e,t),s=(i-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const a=(s-r.getLengthInBits())/8;for(let u=0;u<a;u++)r.put(u%2?17:236,8);return rs(r,e,t)}function rs(e,t,n){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 Jo(c);let m=0;const p=new Array(s),_=new Array(s);let g=0;const y=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const P=A<u?h:f;p[A]=y.slice(m,m+P),_[A]=d.encode(p[A]),m+=P,g=Math.max(g,P)}const b=new Uint8Array(r);let E=0,v,B;for(v=0;v<g;v++)for(B=0;B<s;B++)v<p[B].length&&(b[E++]=p[B][v]);for(v=0;v<c;v++)for(B=0;B<s;B++)b[E++]=_[B][v];return b}function is(e,t,n,r){let i;if(Array.isArray(e))i=ut.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const h=ut.rawSplit(e);l=Ge.getBestVersionForData(h,n)}i=ut.fromString(e,l||40)}else throw new Error("Invalid data");const o=Ge.getBestVersionForData(i,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
7
+ The chosen QR Code version cannot contain this amount of data.
8
+ Minimum version required to store current data is: `+o+`.
9
+ `);const s=ns(t,n,i),a=Ye.getSymbolSize(t),u=new zo(a);return qo(u,t),Zo(u),Ko(u,t),lt(u,n,0),t>=7&&es(u,t),ts(u,s),isNaN(r)&&(r=Bt.getBestMask(u,lt.bind(null,u,n))),Bt.applyMask(r,u),lt(u,n,r),{modules:u,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}On.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let r=at.M,i,o;return typeof n!="undefined"&&(r=at.from(n.errorCorrectionLevel,at.M),i=Ge.from(n.version),o=Bt.from(n.maskPattern),n.toSJISFunc&&Ye.setToSJISFunction(n.toSJISFunc)),is(t,i,r,o)};var Wn={},Mt={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const o=e.getScale(r,i);return Math.floor((r+i.margin*2)*o)},e.qrToImageData=function(r,i,o){const s=i.modules.size,a=i.modules.data,u=e.getScale(s,o),l=Math.floor((s+o.margin*2)*u),h=o.margin*u,f=[o.color.light,o.color.dark];for(let c=0;c<l;c++)for(let d=0;d<l;d++){let m=(c*l+d)*4,p=o.color.light;if(c>=h&&d>=h&&c<l-h&&d<l-h){const _=Math.floor((c-h)/u),g=Math.floor((d-h)/u);p=f[a[_*s+g]?1:0]}r[m++]=p.r,r[m++]=p.g,r[m++]=p.b,r[m]=p.a}}})(Mt);(function(e){const t=Mt;function n(i,o,s){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"}function r(){try{return document.createElement("canvas")}catch(i){throw new Error("You need to specify a canvas element")}}e.render=function(o,s,a){let u=a,l=s;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(l=r()),u=t.getOptions(u);const h=t.getImageWidth(o.modules.size,u),f=l.getContext("2d"),c=f.createImageData(h,h);return t.qrToImageData(c.data,o,u),n(f,l,h),f.putImageData(c,0,0),l},e.renderToDataURL=function(o,s,a){let u=a;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const l=e.render(o,s,u),h=u.type||"image/png",f=u.rendererOpts||{};return l.toDataURL(h,f.quality)}})(Wn);var Yn={};const os=Mt;function an(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function ht(e,t,n){let r=e+t;return typeof n!="undefined"&&(r+=" "+n),r}function ss(e,t,n){let r="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){const u=Math.floor(a%t),l=Math.floor(a/t);!u&&!o&&(o=!0),e[a]?(s++,a>0&&u>0&&e[a-1]||(r+=o?ht("M",u+n,.5+l+n):ht("m",i,0),i=0,o=!1),u+1<t&&e[a+1]||(r+=ht("h",s),s=0)):i++}return r}Yn.render=function(t,n,r){const i=os.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="'+ss(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>
10
+ `;return typeof r=="function"&&r(null,c),c};const as=vo,At=On,qn=Wn,us=Yn;function Rt(e,t,n,r,i){const o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!as())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof i=="undefined"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");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){try{const h=At.create(n,r);u(e(h,t,r))}catch(h){l(h)}})}try{const u=At.create(n,r);i(null,e(u,t,r))}catch(u){i(u)}}Be.create=At.create;Be.toCanvas=Rt.bind(null,qn.render);Be.toDataURL=Rt.bind(null,qn.renderToDataURL);Be.toString=Rt.bind(null,function(e,t,n){return us.render(e,n)});var Re=(e=>(e.unauthorizedError="unauthorized",e.unexpectedError="unexpectedError",e.failedToFetch="failedToFetch",e))(Re||{});function ls(e){sr(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)}}')}function hs(e){let t,n,r;return{c(){t=$("div"),n=$("img"),U(n,"class","qr-image"),Ft(n.src,r=e[3])||U(n,"src",r),U(n,"alt","qr-session-login"),U(t,"class","qr-section")},m(i,o){xe(i,t,o),O(t,n)},p(i,o){o&8&&!Ft(n.src,r=i[3])&&U(n,"src",r)},d(i){i&&ae(t)}}}function cs(e){let t;return{c(){t=$("div"),U(t,"class","LoadingSpinner")},m(n,r){xe(n,t,r)},p:R,d(n){n&&ae(t)}}}function fs(e){let t,n=e[5](e[4])+"",r;return{c(){t=$("p"),r=Oe(n),U(t,"class","generate-qr-error-message")},m(i,o){xe(i,t,o),O(t,r)},p(i,o){o&48&&n!==(n=i[5](i[4])+"")&&ct(r,n)},d(i){i&&ae(t)}}}function ds(e){let t,n,r,i=e[5]("titleQRSessionGenerator")+"",o,s,a,u=(e[1]>0?`${e[1]}${e[5]("second")}`:e[5]("generateQRButton"))+"",l,h,f,c,d;function m(g,y){if(g[4])return fs;if(g[2])return cs;if(g[3])return hs}let p=m(e),_=p&&p(e);return{c(){t=$("div"),n=$("div"),r=$("p"),o=Oe(i),s=Gt(),a=$("button"),l=Oe(u),f=Gt(),_&&_.c(),U(a,"class","generate-qr-btn"),a.disabled=h=e[2]||e[1]>0,U(n,"class","qr-session-generator")},m(g,y){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=lr(a,"click",e[6]),c=!0)},p(g,[y]){y&32&&i!==(i=g[5]("titleQRSessionGenerator")+"")&&ct(o,i),y&34&&u!==(u=(g[1]>0?`${g[1]}${g[5]("second")}`:g[5]("generateQRButton"))+"")&&ct(l,u),y&6&&h!==(h=g[2]||g[1]>0)&&(a.disabled=h),p===(p=m(g))&&_?_.p(g,y):(_&&_.d(1),_=p&&p(g),_&&(_.c(),_.m(n,null)))},i:R,o:R,d(g){g&&ae(t),_&&_.d(),e[14](null),c=!1,d()}}}const gs=60,ms=1e3;function ps(e,t,n){let r;or(e,mo,w=>n(5,r=w));let{clientstyling:i=""}=t,{clientstylingurl:o=""}=t,{mbsource:s}=t,{lang:a="en"}=t,{endpoint:u=""}=t,{sessionid:l}=t,{translationurl:h}=t;const f={"gm.norway.unauthorized":Re.unauthorizedError};let c,d,m=0,p=!1,_=null,g=null,y=null;const b=()=>Q(this,null,function*(){const w=h;try{const Ae=yield(yield fetch(w)).json();Object.keys(Ae).forEach(de=>{nn(de,Ae[de])})}catch(fe){console.error(fe)}});Object.keys(rn).forEach(w=>{nn(w,rn[w])});const E=()=>{po(a)},v=w=>Q(this,null,function*(){n(3,g=yield Be.toDataURL(w))}),B=w=>{n(4,y=w),k()},A=()=>Q(this,null,function*(){var de;const w=new URL(`${u}/api/pam/v1/qr/authenticate`),fe=new Headers;fe.append("X-SessionID",l);const Ae={method:"POST",headers:fe};try{const ge=yield fetch(w.href,Ae);if(ge.ok){const qe=yield ge.json();yield v(JSON.stringify(qe))}else{const qe=yield ge.json();B((de=f[qe.Code])!=null?de:Re.unexpectedError)}}catch(ge){console.error(ge),B(Re.failedToFetch)}finally{n(2,p=!1)}}),P=()=>Q(this,null,function*(){p||m>0||(n(2,p=!0),n(4,y=null),n(3,g=null),n(1,m=gs),L(),yield A())});function I(){_!==null&&clearInterval(_)}function L(){I(),_=setInterval(()=>{m>1?n(1,m-=1):(n(1,m=0),n(2,p=!1),n(3,g=null),k())},ms)}function k(){I(),_=null,n(1,m=0)}dr(()=>{I()});function ce(w){ft[w?"unshift":"push"](()=>{c=w,n(0,c)})}return e.$$set=w=>{"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)},e.$$.update=()=>{e.$$.dirty&129&&i&&c&&bo(c,i),e.$$.dirty&257&&o&&c&&yo(c,o),e.$$.dirty&513&&s&&c&&Eo(c,`${s}.Style`,d),e.$$.dirty&1024&&a&&E(),e.$$.dirty&8192&&h&&b()},[c,m,p,g,y,r,P,i,o,s,a,u,l,h,ce]}class Zn extends Br{constructor(t){super(),xr(this,t,ps,ds,ln,{clientstyling:7,clientstylingurl:8,mbsource:9,lang:10,endpoint:11,sessionid:12,translationurl:13},ls)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),G()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),G()}get mbsource(){return this.$$.ctx[9]}set mbsource(t){this.$$set({mbsource:t}),G()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),G()}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),G()}get sessionid(){return this.$$.ctx[12]}set sessionid(t){this.$$set({sessionid:t}),G()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),G()}}Sr(Zn,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},sessionid:{},translationurl:{}},[],[],!0);exports.default=Zn;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/QrSessionGenerator-Bl-NNG_X.cjs")).then(({default:t})=>{!customElements.get("qr-session-generator")&&customElements.define("qr-session-generator",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/QrSessionGenerator-CCp5FAWJ.cjs")).then(({default:t})=>{!customElements.get("qr-session-generator")&&customElements.define("qr-session-generator",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/QrSessionGenerator-DRml7doW.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/QrSessionGenerator-BZ9NXQRJ.js").then(({ default: t }) => {
14
14
  !customElements.get("qr-session-generator") && customElements.define("qr-session-generator", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { Q as n } from "../components/QrSessionGenerator-WDQN9xI_.js";
1
+ import { Q as n } from "../components/QrSessionGenerator-Bij4eO3-.js";
2
2
  function r(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/qr-session-generator",
3
- "version": "1.99.57",
3
+ "version": "1.99.60",
4
4
  "type": "module",
5
5
  "main": "esnext/qr-session-generator.js",
6
6
  "module": "esnext/qr-session-generator.js",
@@ -1,10 +0,0 @@
1
- "use strict";var Kn=Object.defineProperty,er=Object.defineProperties;var tr=Object.getOwnPropertyDescriptors;var Ot=Object.getOwnPropertySymbols;var nr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable;var Ze=(e,t,n)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))nr.call(t,n)&&Ze(e,n,t[n]);if(Ot)for(var n of Ot(t))rr.call(t,n)&&Ze(e,n,t[n]);return e},Dt=(e,t)=>er(e,tr(t));var M=(e,t,n)=>(Ze(e,typeof t!="symbol"?t+"":t,n),n);var Q=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function R(){}function un(e){return e()}function $t(){return Object.create(null)}function ve(e){e.forEach(un)}function Ct(e){return typeof e=="function"}function ln(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ce;function Ft(e,t){return e===t?!0:(Ce||(Ce=document.createElement("a")),Ce.href=t,e===Ce.href)}function ir(e){return Object.keys(e).length===0}function hn(e,...t){if(e==null){for(const r of t)r(void 0);return R}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function or(e,t,n){e.$$.on_destroy.push(hn(t,n))}function O(e,t){e.appendChild(t)}function sr(e,t,n){const r=ar(e);if(!r.getElementById(t)){const i=$("style");i.id=t,i.textContent=n,ur(r,i)}}function ar(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ur(e,t){return O(e.head||e,t),t.sheet}function xe(e,t,n){e.insertBefore(t,n||null)}function ae(e){e.parentNode&&e.parentNode.removeChild(e)}function $(e){return document.createElement(e)}function Oe(e){return document.createTextNode(e)}function Gt(){return Oe(" ")}function lr(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function U(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function hr(e){return Array.from(e.childNodes)}function ct(e,t){t=""+t,e.data!==t&&(e.data=t)}function cr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let ye;function pe(e){ye=e}function fr(){if(!ye)throw new Error("Function called outside component initialization");return ye}function dr(e){fr().$$.on_destroy.push(e)}const Y=[],ft=[];let Z=[];const kt=[],gr=Promise.resolve();let dt=!1;function mr(){dt||(dt=!0,gr.then(G))}function gt(e){Z.push(e)}const Ke=new Set;let J=0;function G(){if(J!==0)return;const e=ye;do{try{for(;J<Y.length;){const t=Y[J];J++,pe(t),pr(t.$$)}}catch(t){throw Y.length=0,J=0,t}for(pe(null),Y.length=0,J=0;ft.length;)ft.pop()();for(let t=0;t<Z.length;t+=1){const n=Z[t];Ke.has(n)||(Ke.add(n),n())}Z.length=0}while(Y.length);for(;kt.length;)kt.pop()();dt=!1,Ke.clear(),pe(e)}function pr(e){if(e.fragment!==null){e.update(),ve(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(gt)}}function br(e){const t=[],n=[];Z.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Z=t}const yr=new Set;function Er(e,t){e&&e.i&&(yr.delete(e),e.i(t))}function _r(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),gt(()=>{const o=e.$$.on_mount.map(un).filter(Ct);e.$$.on_destroy?e.$$.on_destroy.push(...o):ve(o),e.$$.on_mount=[]}),i.forEach(gt)}function wr(e,t){const n=e.$$;n.fragment!==null&&(br(n.after_update),ve(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function vr(e,t){e.$$.dirty[0]===-1&&(Y.push(e),mr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function xr(e,t,n,r,i,o,s=null,a=[-1]){const u=ye;pe(e);const l=e.$$={fragment:null,ctx:[],props:o,update:R,not_equal:i,bound:$t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:$t(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let h=!1;if(l.ctx=n?n(e,t.props||{},(f,c,...d)=>{const m=d.length?d[0]:c;return l.ctx&&i(l.ctx[f],l.ctx[f]=m)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](m),h&&vr(e,f)),c}):[],l.update(),h=!0,ve(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=hr(t.target);l.fragment&&l.fragment.l(f),f.forEach(ae)}else l.fragment&&l.fragment.c();t.intro&&Er(e.$$.fragment),_r(e,t.target,t.anchor),G()}pe(u)}let cn;typeof HTMLElement=="function"&&(cn=class extends HTMLElement{constructor(t,n,r){super();M(this,"$$ctor");M(this,"$$s");M(this,"$$c");M(this,"$$cn",!1);M(this,"$$d",{});M(this,"$$r",!1);M(this,"$$p_d",{});M(this,"$$l",{});M(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=$("slot"),o!=="default"&&U(s,"name",o)},m:function(l,h){xe(l,s,h)},d:function(l){l&&ae(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=cr(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ie(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Dt(Ut({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=Ie(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;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]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Ie(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Sr(e,t,n,r,i,o){let s=class extends cn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ie(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Br{constructor(){M(this,"$$");M(this,"$$set")}$destroy(){wr(this,1),this.$destroy=R}$on(t,n){if(!Ct(n))return R;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!ir(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Tr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Tr);const W=[];function Ar(e,t){return{subscribe:ke(e,t).subscribe}}function ke(e,t=R){let n;const r=new Set;function i(a){if(ln(e,a)&&(e=a,n)){const u=!W.length;for(const l of r)l[1](),W.push(l,e);if(u){for(let l=0;l<W.length;l+=2)W[l][0](W[l+1]);W.length=0}}}function o(a){i(a(e))}function s(a,u=R){const l=[a,u];return r.add(l),r.size===1&&(n=t(i,o)||R),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function ue(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ar(n,(s,a)=>{let u=!1;const l=[];let h=0,f=R;const c=()=>{if(h)return;f();const m=t(r?l[0]:l,s,a);o?s(m):f=Ct(m)?m:R},d=i.map((m,p)=>hn(m,_=>{l[p]=_,h&=~(1<<p),u&&c()},()=>{h|=1<<p}));return u=!0,c(),function(){ve(d),f(),u=!1}})}function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr=function(t){return Pr(t)&&!Hr(t)};function Pr(e){return!!e&&typeof e=="object"}function Hr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mr(e)}var Ir=typeof Symbol=="function"&&Symbol.for,Lr=Ir?Symbol.for("react.element"):60103;function Mr(e){return e.$$typeof===Lr}function Rr(e){return Array.isArray(e)?[]:{}}function Ee(e,t){return t.clone!==!1&&t.isMergeableObject(e)?K(Rr(e),e,t):e}function Or(e,t,n){return e.concat(t).map(function(r){return Ee(r,n)})}function Ur(e,t){if(!t.customMerge)return K;var n=t.customMerge(e);return typeof n=="function"?n:K}function Dr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jt(e){return Object.keys(e).concat(Dr(e))}function fn(e,t){try{return t in e}catch(n){return!1}}function $r(e,t){return fn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Fr(e,t,n){var r={};return n.isMergeableObject(e)&&jt(e).forEach(function(i){r[i]=Ee(e[i],n)}),jt(t).forEach(function(i){$r(e,i)||(fn(e,i)&&n.isMergeableObject(t[i])?r[i]=Ur(i,n)(e[i],t[i],n):r[i]=Ee(t[i],n))}),r}function K(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Or,n.isMergeableObject=n.isMergeableObject||Nr,n.cloneUnlessOtherwiseSpecified=Ee;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Fr(e,t,n):Ee(t,n)}K.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return K(r,i,n)},{})};var Gr=K,kr=Gr;const jr=Cr(kr);var mt=function(e,t){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},mt(e,t)};function je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var D=function(){return D=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},D.apply(this,arguments)};function Vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function et(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function tt(e,t){var n=t&&t.cache?t.cache:qr,r=t&&t.serializer?t.serializer:Wr,i=t&&t.strategy?t.strategy:Qr;return i(e,{cache:n,serializer:r})}function zr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Xr(e,t,n,r){var i=zr(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function dn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function gn(e,t,n,r,i){return n.bind(t,e,r,i)}function Qr(e,t){var n=e.length===1?Xr:dn;return gn(e,this,n,t.cache.create(),t.serializer)}function Jr(e,t){return gn(e,this,dn,t.cache.create(),t.serializer)}var Wr=function(){return JSON.stringify(arguments)},Yr=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),qr={create:function(){return new Yr}},nt={variadic:Jr},Ue=function(){return Ue=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ue.apply(this,arguments)};var x;(function(e){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"})(x||(x={}));var T;(function(e){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"})(T||(T={}));var ee;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ee||(ee={}));function Vt(e){return e.type===T.literal}function Zr(e){return e.type===T.argument}function mn(e){return e.type===T.number}function pn(e){return e.type===T.date}function bn(e){return e.type===T.time}function yn(e){return e.type===T.select}function En(e){return e.type===T.plural}function Kr(e){return e.type===T.pound}function _n(e){return e.type===T.tag}function wn(e){return!!(e&&typeof e=="object"&&e.type===ee.number)}function pt(e){return!!(e&&typeof e=="object"&&e.type===ee.dateTime)}var vn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ei=/(?:[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;function ti(e){var t={};return e.replace(ei,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var C=function(){return C=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},C.apply(this,arguments)};var ni=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ri(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ni).filter(function(c){return c.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,h=u;l<h.length;l++){var f=h[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function ii(e){return e.replace(/^(.*?)-/,"")}var zt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xn=/^(@+)?(\+|#+)?[rs]?$/g,oi=/(\*)(0+)|(#+)(0+)|(0+)/g,Sn=/^(0+)$/;function Xt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(xn,function(n,r,i){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)),""}),t}function Bn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function si(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Sn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qt(e){var t={},n=Bn(e);return n||t}function ai(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ii(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=C(C(C({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return C(C({},u),Qt(l))},{}));continue;case"engineering":t=C(C(C({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return C(C({},u),Qt(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(oi,function(u,l,h,f,c,d){if(l)t.minimumIntegerDigits=h.length;else{if(f&&c)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(zt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(zt,function(u,l,h,f,c,d){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),""});var o=i.options[0];o==="w"?t=C(C({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=C(C({},t),Xt(o)));continue}if(xn.test(i.stem)){t=C(C({},t),Xt(i.stem));continue}var s=Bn(i.stem);s&&(t=C(C({},t),s));var a=si(i.stem);a&&(t=C(C({},t),a))}return t}var Ne={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ui(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=li(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function li(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Ne[r||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"];return i[0]}var rt,hi=new RegExp("^".concat(vn.source,"*")),ci=new RegExp("".concat(vn.source,"*$"));function S(e,t){return{start:e,end:t}}var fi=!!String.prototype.startsWith&&"_a".startsWith("a",1),di=!!String.fromCodePoint,gi=!!Object.fromEntries,mi=!!String.prototype.codePointAt,pi=!!String.prototype.trimStart,bi=!!String.prototype.trimEnd,yi=!!Number.isSafeInteger,Ei=yi?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},bt=!0;try{var _i=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bt=((rt=_i.exec("a"))===null||rt===void 0?void 0:rt[0])==="a"}catch(e){bt=!1}var Jt=fi?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},yt=di?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Wt=gi?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Tn=mi?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},wi=pi?function(t){return t.trimStart()}:function(t){return t.replace(hi,"")},vi=bi?function(t){return t.trimEnd()}:function(t){return t.replace(ci,"")};function An(e,t){return new RegExp(e,t)}var Et;if(bt){var Yt=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Et=function(t,n){var r;Yt.lastIndex=n;var i=Yt.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Et=function(t,n){for(var r=[];;){var i=Tn(t,n);if(i===void 0||Cn(i)||Ti(i))break;r.push(i),n+=i>=65536?2:1}return yt.apply(void 0,r)};var xi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:T.pound,location:S(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(x.UNMATCHED_CLOSING_TAG,S(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_t(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:T.literal,value:"<".concat(i,"/>"),location:S(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_t(this.char()))return this.error(x.INVALID_TAG,S(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(x.UNMATCHED_CLOSING_TAG,S(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:T.tag,value:i,children:s,location:S(r,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,S(a,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,S(r,this.clonePosition()))}else return this.error(x.INVALID_TAG,S(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Bi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=S(r,this.clonePosition());return{val:{type:T.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Si(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return yt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),yt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,S(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(x.MALFORMED_ARGUMENT,S(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:T.argument,value:i,location:S(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(x.MALFORMED_ARGUMENT,S(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Et(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=S(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,S(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var c=vi(f.val);if(c.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,S(this.clonePosition(),this.clonePosition()));var d=S(h,this.clonePosition());l={style:c,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var p=S(i,this.clonePosition());if(l&&Jt(l==null?void 0:l.style,"::",0)){var _=wi(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(_,l.styleLocation);return f.err?f:{val:{type:T.number,value:r,location:p,style:f.val},err:null}}else{if(_.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,p);var g=_;this.locale&&(g=ui(_,this.locale));var c={type:ee.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ti(g):{}},y=a==="date"?T.date:T.time;return{val:{type:y,value:r,location:p,style:c},err:null}}}return{val:{type:a==="number"?T.number:a==="date"?T.date:T.time,value:r,location:p,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,S(b,Ue({},b)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),v=0;if(a!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),E=this.parseIdentifierIfPossible(),v=f.val}var B=this.tryParsePluralOrSelectOptions(t,a,n,E);if(B.err)return B;var m=this.tryParseArgumentClose(i);if(m.err)return m;var A=S(i,this.clonePosition());return a==="select"?{val:{type:T.select,value:r,options:Wt(B.val),location:A},err:null}:{val:{type:T.plural,value:r,options:Wt(B.val),offset:v,pluralType:a==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,S(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,S(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,S(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ri(t)}catch(i){return this.error(x.INVALID_NUMBER_SKELETON,n)}return{val:{type:ee.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?ai(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=S(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(s=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,S(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var p=this.tryParseArgumentClose(d);if(p.err)return p;a.push([l,{value:m.val,location:S(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,h=o.location}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}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=S(i,this.clonePosition());return o?(s*=r,Ei(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Tn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();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)}},e.prototype.bumpIf=function(t){if(Jt(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Cn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function _t(e){return e>=97&&e<=122||e>=65&&e<=90}function Si(e){return _t(e)||e===47}function Bi(e){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}function Cn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ti(e){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}function wt(e){e.forEach(function(t){if(delete t.location,yn(t)||En(t))for(var n in t.options)delete t.options[n].location,wt(t.options[n].value);else mn(t)&&wn(t.style)||(pn(t)||bn(t))&&pt(t.style)?delete t.style.location:_n(t)&&wt(t.children)})}function Ai(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new xi(e,t).parse();if(n.err){var r=SyntaxError(x[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||wt(n.val),n.val}var te;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(te||(te={}));var Ve=function(e){je(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),qt=function(e){je(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),te.INVALID_VALUE,o)||this}return t}(Ve),Ci=function(e){je(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),te.INVALID_VALUE,i)||this}return t}(Ve),Ni=function(e){je(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),te.MISSING_VALUE,r)||this}return t}(Ve),N;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(N||(N={}));function Pi(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==N.literal||n.type!==N.literal?t.push(n):r.value+=n.value,t},[])}function Hi(e){return typeof e=="function"}function Le(e,t,n,r,i,o,s){if(e.length===1&&Vt(e[0]))return[{type:N.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var h=l[u];if(Vt(h)){a.push({type:N.literal,value:h.value});continue}if(Kr(h)){typeof o=="number"&&a.push({type:N.literal,value:n.getNumberFormat(t).format(o)});continue}var f=h.value;if(!(i&&f in i))throw new Ni(f,s);var c=i[f];if(Zr(h)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?N.literal:N.object,value:c});continue}if(pn(h)){var d=typeof h.style=="string"?r.date[h.style]:pt(h.style)?h.style.parsedOptions:void 0;a.push({type:N.literal,value:n.getDateTimeFormat(t,d).format(c)});continue}if(bn(h)){var d=typeof h.style=="string"?r.time[h.style]:pt(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:N.literal,value:n.getDateTimeFormat(t,d).format(c)});continue}if(mn(h)){var d=typeof h.style=="string"?r.number[h.style]:wn(h.style)?h.style.parsedOptions:void 0;d&&d.scale&&(c=c*(d.scale||1)),a.push({type:N.literal,value:n.getNumberFormat(t,d).format(c)});continue}if(_n(h)){var m=h.children,p=h.value,_=i[p];if(!Hi(_))throw new Ci(p,"function",s);var g=Le(m,t,n,r,i,o),y=_(g.map(function(v){return v.value}));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map(function(v){return{type:typeof v=="string"?N.literal:N.object,value:v}}))}if(yn(h)){var b=h.options[c]||h.options.other;if(!b)throw new qt(h.value,c,Object.keys(h.options),s);a.push.apply(a,Le(b.value,t,n,r,i));continue}if(En(h)){var b=h.options["=".concat(c)];if(!b){if(!Intl.PluralRules)throw new Ve(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,te.MISSING_INTL_API,s);var E=n.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));b=h.options[E]||h.options.other}if(!b)throw new qt(h.value,c,Object.keys(h.options),s);a.push.apply(a,Le(b.value,t,n,r,i,c-(h.offset||0)));continue}}return Pi(a)}function Ii(e,t){return t?D(D(D({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=D(D({},e[r]),t[r]||{}),n},{})):e}function Li(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ii(e[r],t[r]),n},D({},e)):e}function it(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Mi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:tt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,et([void 0],n,!1)))},{cache:it(e.number),strategy:nt.variadic}),getDateTimeFormat:tt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,et([void 0],n,!1)))},{cache:it(e.dateTime),strategy:nt.variadic}),getPluralRules:tt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,et([void 0],n,!1)))},{cache:it(e.pluralRules),strategy:nt.variadic})}}var Ri=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(f,c){return!f.length||c.type!==N.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Le(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Vr(s,["formatters"]);this.ast=e.__parse(t,D(D({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Li(e.formats,r),this.formatters=i&&i.formatters||Mi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ai,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Oi(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const j={},Ui=(e,t,n)=>n&&(t in j||(j[t]={}),e in j[t]||(j[t][e]=n),n),Nn=(e,t)=>{if(t==null)return;if(t in j&&e in j[t])return j[t][e];const n=ze(t);for(let r=0;r<n.length;r++){const i=n[r],o=$i(i,e);if(o)return Ui(e,t,o)}};let Nt;const Se=ke({});function Di(e){return Nt[e]||null}function Pn(e){return e in Nt}function $i(e,t){if(!Pn(e))return null;const n=Di(e);return Oi(n,t)}function Fi(e){if(e==null)return;const t=ze(e);for(let n=0;n<t.length;n++){const r=t[n];if(Pn(r))return r}}function Hn(e,...t){delete j[e],Se.update(n=>(n[e]=jr.all([n[e]||{},...t]),n))}ue([Se],([e])=>Object.keys(e));Se.subscribe(e=>Nt=e);const Me={};function Gi(e,t){Me[e].delete(t),Me[e].size===0&&delete Me[e]}function In(e){return Me[e]}function ki(e){return ze(e).map(t=>{const n=In(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function vt(e){return e==null?!1:ze(e).some(t=>{var n;return(n=In(t))==null?void 0:n.size})}function ji(e,t){return Promise.all(t.map(r=>(Gi(e,r),r().then(i=>i.default||i)))).then(r=>Hn(e,...r))}const me={};function Ln(e){if(!vt(e))return e in me?me[e]:Promise.resolve();const t=ki(e);return me[e]=Promise.all(t.map(([n,r])=>ji(n,r))).then(()=>{if(vt(e))return Ln(e);delete me[e]}),me[e]}const Vi={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},zi={fallbackLocale:null,loadingDelay:200,formats:Vi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Xi=zi;function ne(){return Xi}const ot=ke(!1);var Qi=Object.defineProperty,Ji=Object.defineProperties,Wi=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Kt=(e,t,n)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zi=(e,t)=>{for(var n in t||(t={}))Yi.call(t,n)&&Kt(e,n,t[n]);if(Zt)for(var n of Zt(t))qi.call(t,n)&&Kt(e,n,t[n]);return e},Ki=(e,t)=>Ji(e,Wi(t));let xt;const De=ke(null);function en(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function ze(e,t=ne().fallbackLocale){const n=en(e);return t?[...new Set([...n,...en(t)])]:n}function X(){return xt!=null?xt:void 0}De.subscribe(e=>{xt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const eo=e=>{if(e&&Fi(e)&&vt(e)){const{loadingDelay:t}=ne();let n;return typeof window!="undefined"&&X()!=null&&t?n=window.setTimeout(()=>ot.set(!0),t):ot.set(!0),Ln(e).then(()=>{De.set(e)}).finally(()=>{clearTimeout(n),ot.set(!1)})}return De.set(e)},le=Ki(Zi({},De),{set:eo}),Xe=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var to=Object.defineProperty,$e=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,tn=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pt=(e,t)=>{for(var n in t||(t={}))Mn.call(t,n)&&tn(e,n,t[n]);if($e)for(var n of $e(t))Rn.call(t,n)&&tn(e,n,t[n]);return e},he=(e,t)=>{var n={};for(var r in e)Mn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$e)for(var r of $e(e))t.indexOf(r)<0&&Rn.call(e,r)&&(n[r]=e[r]);return n};const _e=(e,t)=>{const{formats:n}=ne();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},no=Xe(e=>{var t=e,{locale:n,format:r}=t,i=he(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=_e("number",r)),new Intl.NumberFormat(n,i)}),ro=Xe(e=>{var t=e,{locale:n,format:r}=t,i=he(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=_e("date",r):Object.keys(i).length===0&&(i=_e("date","short")),new Intl.DateTimeFormat(n,i)}),io=Xe(e=>{var t=e,{locale:n,format:r}=t,i=he(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=_e("time",r):Object.keys(i).length===0&&(i=_e("time","short")),new Intl.DateTimeFormat(n,i)}),oo=(e={})=>{var t=e,{locale:n=X()}=t,r=he(t,["locale"]);return no(Pt({locale:n},r))},so=(e={})=>{var t=e,{locale:n=X()}=t,r=he(t,["locale"]);return ro(Pt({locale:n},r))},ao=(e={})=>{var t=e,{locale:n=X()}=t,r=he(t,["locale"]);return io(Pt({locale:n},r))},uo=Xe((e,t=X())=>new Ri(e,t,ne().formats,{ignoreTag:ne().ignoreTag})),lo=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=X(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Nn(e,u);if(!h)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;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!a)return h;let f=h;try{f=uo(h,u).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},ho=(e,t)=>ao(t).format(e),co=(e,t)=>so(t).format(e),fo=(e,t)=>oo(t).format(e),go=(e,t=X())=>Nn(e,t),mo=ue([le,Se],()=>lo);ue([le],()=>ho);ue([le],()=>co);ue([le],()=>fo);ue([le,Se],()=>go);function nn(e,t){Hn(e,t)}function po(e){le.set(e)}const rn={en:{titleQRSessionGenerator:"Scan the QR Code to access your account on retail devices.",generateQRButton:"Generate QR",unauthorized:"Authentication failed.",failedToFetch:"Cannot generate QR, Please try again.",unexpectedError:"Unexpected error occurred. Please try again later.",second:"s"},fr:{titleQRSessionGenerator:"Scannez le code QR pour accéder à votre compte sur les appareils en magasin.",generateQRButton:"Générer des QR",unauthorized:"L'authentification a échoué.",failedToFetch:"Impossible de générer le code QR, veuillez réessayer.",unexpectedError:"Une erreur inattendue s'est produite. Veuillez réessayer plus tard.",second:"s"}},q="__WIDGET_GLOBAL_STYLE_CACHE__";function bo(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function yo(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Eo(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=_o(e,t),n;window[q]||(window[q]={}),n=wo(e,t);const o=n.unsubscribe.bind(n),s=()=>{if(window[q][t]){const a=window[q][t];a.refCount>1?a.refCount=a.refCount-1:delete window[q][t]}o()};return n.unsubscribe=s,n}function _o(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function wo(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[q];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[t]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}var Be={},vo=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},On={},H={};let Ht;const xo=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];H.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};H.getSymbolTotalCodewords=function(t){return xo[t]};H.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};H.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Ht=t};H.isKanjiModeEnabled=function(){return typeof Ht!="undefined"};H.toSJIS=function(t){return Ht(t)};var Qe={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch(o){return i}}})(Qe);function Un(){this.buffer=[],this.length=0}Un.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var So=Un;function Te(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Te.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)};Te.prototype.get=function(e,t){return this.data[e*this.size+t]};Te.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};Te.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Bo=Te,Dn={};(function(e){const t=H.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=t(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let u=1;u<i-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},e.getPositions=function(r){const i=[],o=e.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||i.push([o[a],o[u]]);return i}})(Dn);var $n={};const To=H.getSymbolSize,on=7;$n.getPositions=function(t){const n=To(t);return[[0,0],[n-on,0],[0,n-on]]};var Fn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const o=i.size;let s=0,a=0,u=0,l=null,h=null;for(let f=0;f<o;f++){a=u=0,l=h=null;for(let c=0;c<o;c++){let d=i.get(f,c);d===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=d,a=1),d=i.get(c,f),d===h?u++:(u>=5&&(s+=t.N1+(u-5)),h=d,u=1)}a>=5&&(s+=t.N1+(a-5)),u>=5&&(s+=t.N1+(u-5))}return s},e.getPenaltyN2=function(i){const o=i.size;let s=0;for(let a=0;a<o-1;a++)for(let u=0;u<o-1;u++){const l=i.get(a,u)+i.get(a,u+1)+i.get(a+1,u)+i.get(a+1,u+1);(l===4||l===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const o=i.size;let s=0,a=0,u=0;for(let l=0;l<o;l++){a=u=0;for(let h=0;h<o;h++)a=a<<1&2047|i.get(l,h),h>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|i.get(h,l),h>=10&&(u===1488||u===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let u=0;u<s;u++)o+=i.data[u];return Math.abs(Math.ceil(o*100/s/5)-10)*t.N4};function n(r,i,o){switch(r){case e.Patterns.PATTERN000:return(i+o)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(i+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return i*o%2+i*o%3===0;case e.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case e.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,o){const s=o.size;for(let a=0;a<s;a++)for(let u=0;u<s;u++)o.isReserved(u,a)||o.xor(u,a,n(i,u,a))},e.getBestMask=function(i,o){const s=Object.keys(e.Patterns).length;let a=0,u=1/0;for(let l=0;l<s;l++){o(l),e.applyMask(l,i);const h=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(l,i),h<u&&(u=h,a=l)}return a}})(Fn);var Je={};const V=Qe,Pe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],He=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Je.getBlocksCount=function(t,n){switch(n){case V.L:return Pe[(t-1)*4+0];case V.M:return Pe[(t-1)*4+1];case V.Q:return Pe[(t-1)*4+2];case V.H:return Pe[(t-1)*4+3];default:return}};Je.getTotalCodewordsCount=function(t,n){switch(n){case V.L:return He[(t-1)*4+0];case V.M:return He[(t-1)*4+1];case V.Q:return He[(t-1)*4+2];case V.H:return He[(t-1)*4+3];default:return}};var Gn={},We={};const be=new Uint8Array(512),Fe=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)be[n]=t,Fe[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)be[n]=be[n-255]})();We.log=function(t){if(t<1)throw new Error("log("+t+")");return Fe[t]};We.exp=function(t){return be[t]};We.mul=function(t,n){return t===0||n===0?0:be[Fe[t]+Fe[n]]};(function(e){const t=We;e.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<i.length;a++)o[s+a]^=t.mul(r[s],i[a]);return o},e.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let u=0;u<i.length;u++)o[u]^=t.mul(i[u],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=e.mul(i,new Uint8Array([1,t.exp(o)]));return i}})(Gn);const kn=Gn;function It(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}It.prototype.initialize=function(t){this.degree=t,this.genPoly=kn.generateECPolynomial(this.degree)};It.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=kn.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){const o=new Uint8Array(this.degree);return o.set(r,i),o}return r};var Ao=It,jn={},z={},Lt={};Lt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var F={};const Vn="[0-9]+",Co="[A-Z $%*+\\-./:]+";let we="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";we=we.replace(/u/g,"\\u");const No="(?:(?![A-Z0-9 $%*+\\-./:]|"+we+`)(?:.|[\r
4
- ]))+`;F.KANJI=new RegExp(we,"g");F.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");F.BYTE=new RegExp(No,"g");F.NUMERIC=new RegExp(Vn,"g");F.ALPHANUMERIC=new RegExp(Co,"g");const Po=new RegExp("^"+we+"$"),Ho=new RegExp("^"+Vn+"$"),Io=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");F.testKanji=function(t){return Po.test(t)};F.testNumeric=function(t){return Ho.test(t)};F.testAlphanumeric=function(t){return Io.test(t)};(function(e){const t=Lt,n=F;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return n.testNumeric(o)?e.NUMERIC:n.testAlphanumeric(o)?e.ALPHANUMERIC:n.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(o,s){if(e.isValid(o))return o;try{return r(o)}catch(a){return s}}})(z);(function(e){const t=H,n=Je,r=Qe,i=z,o=Lt,s=7973,a=t.getBCHDigit(s);function u(c,d,m){for(let p=1;p<=40;p++)if(d<=e.getCapacity(p,m,c))return p}function l(c,d){return i.getCharCountIndicator(c,d)+4}function h(c,d){let m=0;return c.forEach(function(p){const _=l(p.mode,d);m+=_+p.getBitsLength()}),m}function f(c,d){for(let m=1;m<=40;m++)if(h(c,m)<=e.getCapacity(m,d,i.MIXED))return m}e.from=function(d,m){return o.isValid(d)?parseInt(d,10):m},e.getCapacity=function(d,m,p){if(!o.isValid(d))throw new Error("Invalid QR Code version");typeof p=="undefined"&&(p=i.BYTE);const _=t.getSymbolTotalCodewords(d),g=n.getTotalCodewordsCount(d,m),y=(_-g)*8;if(p===i.MIXED)return y;const b=y-l(p,d);switch(p){case i.NUMERIC:return Math.floor(b/10*3);case i.ALPHANUMERIC:return Math.floor(b/11*2);case i.KANJI:return Math.floor(b/13);case i.BYTE:default:return Math.floor(b/8)}},e.getBestVersionForData=function(d,m){let p;const _=r.from(m,r.M);if(Array.isArray(d)){if(d.length>1)return f(d,_);if(d.length===0)return 1;p=d[0]}else p=d;return u(p.mode,p.getLength(),_)},e.getEncodedBits=function(d){if(!o.isValid(d)||d<7)throw new Error("Invalid QR Code version");let m=d<<12;for(;t.getBCHDigit(m)-a>=0;)m^=s<<t.getBCHDigit(m)-a;return d<<12|m}})(jn);var zn={};const St=H,Xn=1335,Lo=21522,sn=St.getBCHDigit(Xn);zn.getEncodedBits=function(t,n){const r=t.bit<<3|n;let i=r<<10;for(;St.getBCHDigit(i)-sn>=0;)i^=Xn<<St.getBCHDigit(i)-sn;return(r<<10|i)^Lo};var Qn={};const Mo=z;function re(e){this.mode=Mo.NUMERIC,this.data=e.toString()}re.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};re.prototype.getLength=function(){return this.data.length};re.prototype.getBitsLength=function(){return re.getBitsLength(this.data.length)};re.prototype.write=function(t){let n,r,i;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),i=parseInt(r,10),t.put(i,10);const o=this.data.length-n;o>0&&(r=this.data.substr(n),i=parseInt(r,10),t.put(i,o*3+1))};var Ro=re;const Oo=z,st=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ie(e){this.mode=Oo.ALPHANUMERIC,this.data=e}ie.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ie.prototype.getLength=function(){return this.data.length};ie.prototype.getBitsLength=function(){return ie.getBitsLength(this.data.length)};ie.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=st.indexOf(this.data[n])*45;r+=st.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(st.indexOf(this.data[n]),6)};var Uo=ie;const Do=z;function oe(e){this.mode=Do.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}oe.getBitsLength=function(t){return t*8};oe.prototype.getLength=function(){return this.data.length};oe.prototype.getBitsLength=function(){return oe.getBitsLength(this.data.length)};oe.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var $o=oe;const Fo=z,Go=H;function se(e){this.mode=Fo.KANJI,this.data=e}se.getBitsLength=function(t){return t*13};se.prototype.getLength=function(){return this.data.length};se.prototype.getBitsLength=function(){return se.getBitsLength(this.data.length)};se.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=Go.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
5
- Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var ko=se,Jn={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var a=t.PriorityQueue.make();a.push(r,0);for(var u,l,h,f,c,d,m,p,_;!a.empty();){u=a.pop(),l=u.value,f=u.cost,c=n[l]||{};for(h in c)c.hasOwnProperty(h)&&(d=c[h],m=f+d,p=s[h],_=typeof s[h]=="undefined",(_||p>m)&&(s[h]=m,a.push(h,m),o[h]=l))}if(typeof i!="undefined"&&typeof s[i]=="undefined"){var g=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(g)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Jn);var jo=Jn.exports;(function(e){const t=z,n=Ro,r=Uo,i=$o,o=ko,s=F,a=H,u=jo;function l(g){return unescape(encodeURIComponent(g)).length}function h(g,y,b){const E=[];let v;for(;(v=g.exec(b))!==null;)E.push({data:v[0],index:v.index,mode:y,length:v[0].length});return E}function f(g){const y=h(s.NUMERIC,t.NUMERIC,g),b=h(s.ALPHANUMERIC,t.ALPHANUMERIC,g);let E,v;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){return A.index-P.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function c(g,y){switch(y){case t.NUMERIC:return n.getBitsLength(g);case t.ALPHANUMERIC:return r.getBitsLength(g);case t.KANJI:return o.getBitsLength(g);case t.BYTE:return i.getBitsLength(g)}}function d(g){return g.reduce(function(y,b){const E=y.length-1>=0?y[y.length-1]:null;return E&&E.mode===b.mode?(y[y.length-1].data+=b.data,y):(y.push(b),y)},[])}function m(g){const y=[];for(let b=0;b<g.length;b++){const E=g[b];switch(E.mode){case t.NUMERIC:y.push([E,{data:E.data,mode:t.ALPHANUMERIC,length:E.length},{data:E.data,mode:t.BYTE,length:E.length}]);break;case t.ALPHANUMERIC:y.push([E,{data:E.data,mode:t.BYTE,length:E.length}]);break;case t.KANJI:y.push([E,{data:E.data,mode:t.BYTE,length:l(E.data)}]);break;case t.BYTE:y.push([{data:E.data,mode:t.BYTE,length:l(E.data)}])}}return y}function p(g,y){const b={},E={start:{}};let v=["start"];for(let B=0;B<g.length;B++){const A=g[B],P=[];for(let I=0;I<A.length;I++){const L=A[I],k=""+B+I;P.push(k),b[k]={node:L,lastCount:0},E[k]={};for(let ce=0;ce<v.length;ce++){const w=v[ce];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))}}v=P}for(let B=0;B<v.length;B++)E[v[B]].end=0;return{map:E,table:b}}function _(g,y){let b;const E=t.getBestModeForData(g);if(b=t.from(y,E),b!==t.BYTE&&b.bit<E.bit)throw new Error('"'+g+'" cannot be encoded with mode '+t.toString(b)+`.
6
- Suggested mode is: `+t.toString(E));switch(b===t.KANJI&&!a.isKanjiModeEnabled()&&(b=t.BYTE),b){case t.NUMERIC:return new n(g);case t.ALPHANUMERIC:return new r(g);case t.KANJI:return new o(g);case t.BYTE:return new i(g)}}e.fromArray=function(y){return y.reduce(function(b,E){return typeof E=="string"?b.push(_(E,null)):E.data&&b.push(_(E.data,E.mode)),b},[])},e.fromString=function(y,b){const E=f(y,a.isKanjiModeEnabled()),v=m(E),B=p(v,b),A=u.find_path(B.map,"start","end"),P=[];for(let I=1;I<A.length-1;I++)P.push(B.table[A[I]].node);return e.fromArray(d(P))},e.rawSplit=function(y){return e.fromArray(f(y,a.isKanjiModeEnabled()))}})(Qn);const Ye=H,at=Qe,Vo=So,zo=Bo,Xo=Dn,Qo=$n,Bt=Fn,Tt=Je,Jo=Ao,Ge=jn,Wo=zn,Yo=z,ut=Qn;function qo(e,t){const n=e.size,r=Qo.getPositions(t);for(let i=0;i<r.length;i++){const o=r[i][0],s=r[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||n<=o+a))for(let u=-1;u<=7;u++)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))}}function Zo(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function Ko(e,t){const n=Xo.getPositions(t);for(let r=0;r<n.length;r++){const i=n[r][0],o=n[r][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)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)}}function es(e,t){const n=e.size,r=Ge.getEncodedBits(t);let i,o,s;for(let a=0;a<18;a++)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)}function lt(e,t,n){const r=e.size,i=Wo.getEncodedBits(t,n);let o,s;for(o=0;o<15;o++)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);e.set(r-8,8,1,!0)}function ts(e,t){const n=e.size;let r=-1,i=n-1,o=7,s=0;for(let a=n-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!e.isReserved(i,a-u)){let l=!1;s<t.length&&(l=(t[s]>>>o&1)===1),e.set(i,a-u,l),o--,o===-1&&(s++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function ns(e,t,n){const r=new Vo;n.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),Yo.getCharCountIndicator(u.mode,e)),u.write(r)});const i=Ye.getSymbolTotalCodewords(e),o=Tt.getTotalCodewordsCount(e,t),s=(i-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const a=(s-r.getLengthInBits())/8;for(let u=0;u<a;u++)r.put(u%2?17:236,8);return rs(r,e,t)}function rs(e,t,n){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 Jo(c);let m=0;const p=new Array(s),_=new Array(s);let g=0;const y=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const P=A<u?h:f;p[A]=y.slice(m,m+P),_[A]=d.encode(p[A]),m+=P,g=Math.max(g,P)}const b=new Uint8Array(r);let E=0,v,B;for(v=0;v<g;v++)for(B=0;B<s;B++)v<p[B].length&&(b[E++]=p[B][v]);for(v=0;v<c;v++)for(B=0;B<s;B++)b[E++]=_[B][v];return b}function is(e,t,n,r){let i;if(Array.isArray(e))i=ut.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){const h=ut.rawSplit(e);l=Ge.getBestVersionForData(h,n)}i=ut.fromString(e,l||40)}else throw new Error("Invalid data");const o=Ge.getBestVersionForData(i,n);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
7
- The chosen QR Code version cannot contain this amount of data.
8
- Minimum version required to store current data is: `+o+`.
9
- `);const s=ns(t,n,i),a=Ye.getSymbolSize(t),u=new zo(a);return qo(u,t),Zo(u),Ko(u,t),lt(u,n,0),t>=7&&es(u,t),ts(u,s),isNaN(r)&&(r=Bt.getBestMask(u,lt.bind(null,u,n))),Bt.applyMask(r,u),lt(u,n,r),{modules:u,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}On.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let r=at.M,i,o;return typeof n!="undefined"&&(r=at.from(n.errorCorrectionLevel,at.M),i=Ge.from(n.version),o=Bt.from(n.maskPattern),n.toSJISFunc&&Ye.setToSJISFunction(n.toSJISFunc)),is(t,i,r,o)};var Wn={},Mt={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const o=e.getScale(r,i);return Math.floor((r+i.margin*2)*o)},e.qrToImageData=function(r,i,o){const s=i.modules.size,a=i.modules.data,u=e.getScale(s,o),l=Math.floor((s+o.margin*2)*u),h=o.margin*u,f=[o.color.light,o.color.dark];for(let c=0;c<l;c++)for(let d=0;d<l;d++){let m=(c*l+d)*4,p=o.color.light;if(c>=h&&d>=h&&c<l-h&&d<l-h){const _=Math.floor((c-h)/u),g=Math.floor((d-h)/u);p=f[a[_*s+g]?1:0]}r[m++]=p.r,r[m++]=p.g,r[m++]=p.b,r[m]=p.a}}})(Mt);(function(e){const t=Mt;function n(i,o,s){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"}function r(){try{return document.createElement("canvas")}catch(i){throw new Error("You need to specify a canvas element")}}e.render=function(o,s,a){let u=a,l=s;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(l=r()),u=t.getOptions(u);const h=t.getImageWidth(o.modules.size,u),f=l.getContext("2d"),c=f.createImageData(h,h);return t.qrToImageData(c.data,o,u),n(f,l,h),f.putImageData(c,0,0),l},e.renderToDataURL=function(o,s,a){let u=a;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const l=e.render(o,s,u),h=u.type||"image/png",f=u.rendererOpts||{};return l.toDataURL(h,f.quality)}})(Wn);var Yn={};const os=Mt;function an(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function ht(e,t,n){let r=e+t;return typeof n!="undefined"&&(r+=" "+n),r}function ss(e,t,n){let r="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){const u=Math.floor(a%t),l=Math.floor(a/t);!u&&!o&&(o=!0),e[a]?(s++,a>0&&u>0&&e[a-1]||(r+=o?ht("M",u+n,.5+l+n):ht("m",i,0),i=0,o=!1),u+1<t&&e[a+1]||(r+=ht("h",s),s=0)):i++}return r}Yn.render=function(t,n,r){const i=os.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="'+ss(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>
10
- `;return typeof r=="function"&&r(null,c),c};const as=vo,At=On,qn=Wn,us=Yn;function Rt(e,t,n,r,i){const o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!as())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof i=="undefined"?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");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){try{const h=At.create(n,r);u(e(h,t,r))}catch(h){l(h)}})}try{const u=At.create(n,r);i(null,e(u,t,r))}catch(u){i(u)}}Be.create=At.create;Be.toCanvas=Rt.bind(null,qn.render);Be.toDataURL=Rt.bind(null,qn.renderToDataURL);Be.toString=Rt.bind(null,function(e,t,n){return us.render(e,n)});var Re=(e=>(e.unauthorizedError="unauthorized",e.unexpectedError="unexpectedError",e.failedToFetch="failedToFetch",e))(Re||{});function ls(e){sr(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)}}')}function hs(e){let t,n,r;return{c(){t=$("div"),n=$("img"),U(n,"class","qr-image"),Ft(n.src,r=e[3])||U(n,"src",r),U(n,"alt","qr-session-login"),U(t,"class","qr-section")},m(i,o){xe(i,t,o),O(t,n)},p(i,o){o&8&&!Ft(n.src,r=i[3])&&U(n,"src",r)},d(i){i&&ae(t)}}}function cs(e){let t;return{c(){t=$("div"),U(t,"class","LoadingSpinner")},m(n,r){xe(n,t,r)},p:R,d(n){n&&ae(t)}}}function fs(e){let t,n=e[5](e[4])+"",r;return{c(){t=$("p"),r=Oe(n),U(t,"class","generate-qr-error-message")},m(i,o){xe(i,t,o),O(t,r)},p(i,o){o&48&&n!==(n=i[5](i[4])+"")&&ct(r,n)},d(i){i&&ae(t)}}}function ds(e){let t,n,r,i=e[5]("titleQRSessionGenerator")+"",o,s,a,u=(e[1]>0?`${e[1]}${e[5]("second")}`:e[5]("generateQRButton"))+"",l,h,f,c,d;function m(g,y){if(g[4])return fs;if(g[2])return cs;if(g[3])return hs}let p=m(e),_=p&&p(e);return{c(){t=$("div"),n=$("div"),r=$("p"),o=Oe(i),s=Gt(),a=$("button"),l=Oe(u),f=Gt(),_&&_.c(),U(a,"class","generate-qr-btn"),a.disabled=h=e[2]||e[1]>0,U(n,"class","qr-session-generator")},m(g,y){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=lr(a,"click",e[6]),c=!0)},p(g,[y]){y&32&&i!==(i=g[5]("titleQRSessionGenerator")+"")&&ct(o,i),y&34&&u!==(u=(g[1]>0?`${g[1]}${g[5]("second")}`:g[5]("generateQRButton"))+"")&&ct(l,u),y&6&&h!==(h=g[2]||g[1]>0)&&(a.disabled=h),p===(p=m(g))&&_?_.p(g,y):(_&&_.d(1),_=p&&p(g),_&&(_.c(),_.m(n,null)))},i:R,o:R,d(g){g&&ae(t),_&&_.d(),e[14](null),c=!1,d()}}}const gs=60,ms=1e3;function ps(e,t,n){let r;or(e,mo,w=>n(5,r=w));let{clientstyling:i=""}=t,{clientstylingurl:o=""}=t,{mbsource:s}=t,{lang:a="en"}=t,{endpoint:u=""}=t,{sessionid:l}=t,{translationurl:h}=t;const f={"gm.norway.unauthorized":Re.unauthorizedError};let c,d,m=0,p=!1,_=null,g=null,y=null;const b=()=>Q(this,null,function*(){const w=h;try{const Ae=yield(yield fetch(w)).json();Object.keys(Ae).forEach(de=>{nn(de,Ae[de])})}catch(fe){console.error(fe)}});Object.keys(rn).forEach(w=>{nn(w,rn[w])});const E=()=>{po(a)},v=w=>Q(this,null,function*(){n(3,g=yield Be.toDataURL(w))}),B=w=>{n(4,y=w),k()},A=()=>Q(this,null,function*(){var de;const w=new URL(`${u}/api/pam/v1/qr/authenticate`),fe=new Headers;fe.append("X-SessionID",l);const Ae={method:"POST",headers:fe};try{const ge=yield fetch(w.href,Ae);if(ge.ok){const qe=yield ge.json();yield v(JSON.stringify(qe))}else{const qe=yield ge.json();B((de=f[qe.Code])!=null?de:Re.unexpectedError)}}catch(ge){console.error(ge),B(Re.failedToFetch)}finally{n(2,p=!1)}}),P=()=>Q(this,null,function*(){p||m>0||(n(2,p=!0),n(4,y=null),n(3,g=null),n(1,m=gs),L(),yield A())});function I(){_!==null&&clearInterval(_)}function L(){I(),_=setInterval(()=>{m>1?n(1,m-=1):(n(1,m=0),n(2,p=!1),n(3,g=null),k())},ms)}function k(){I(),_=null,n(1,m=0)}dr(()=>{I()});function ce(w){ft[w?"unshift":"push"](()=>{c=w,n(0,c)})}return e.$$set=w=>{"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)},e.$$.update=()=>{e.$$.dirty&129&&i&&c&&bo(c,i),e.$$.dirty&257&&o&&c&&yo(c,o),e.$$.dirty&513&&s&&c&&Eo(c,`${s}.Style`,d),e.$$.dirty&1024&&a&&E(),e.$$.dirty&8192&&h&&b()},[c,m,p,g,y,r,P,i,o,s,a,u,l,h,ce]}class Zn extends Br{constructor(t){super(),xr(this,t,ps,ds,ln,{clientstyling:7,clientstylingurl:8,mbsource:9,lang:10,endpoint:11,sessionid:12,translationurl:13},ls)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),G()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),G()}get mbsource(){return this.$$.ctx[9]}set mbsource(t){this.$$set({mbsource:t}),G()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),G()}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),G()}get sessionid(){return this.$$.ctx[12]}set sessionid(t){this.$$set({sessionid:t}),G()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),G()}}Sr(Zn,{clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},endpoint:{},sessionid:{},translationurl:{}},[],[],!0);exports.default=Zn;