@moneyto/components 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- import { c as he, p as me, a as q, ap as Te, m as Lt, n as qt, i as G, e as O, t as It, f as we, g as D, k as x, j as Dt, l as Me, b as St, h as k, r as Tt, q as pe, x as Ie, s as tt, S as be, w as kt, at as Ut } from "./Styles-Dmz3r-1B.js";
2
- import { g as Ne, A as Mt, M as ve, h as Ft, d as _e, G as Le } from "./google-play-DwU6F6by.js";
3
- const et = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, zt = () => !("MSStream" in window) && (/iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.userAgent.includes("Mac") && "ontouchend" in document);
4
- var H = {}, nt, Vt;
5
- function qe() {
6
- return Vt || (Vt = 1, nt = function() {
1
+ import { c as ge, p as he, a as q, aq as Se, m as Lt, n as qt, i as G, e as O, f as It, g as me, h as D, l as x, k as Dt, b as St, r as Tt, j as k, v as we, as as Te, s as tt, S as Me, q as Ie, u as kt } from "./Styles-BlozloOq.js";
2
+ import { g as Ne, A as Mt, M as be, h as Ut, d as ve, G as _e } from "./google-play-C27Sopj3.js";
3
+ const et = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, Ft = () => !("MSStream" in window) && (/iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.userAgent.includes("Mac") && "ontouchend" in document);
4
+ var H = {}, nt, zt;
5
+ function Le() {
6
+ return zt || (zt = 1, nt = function() {
7
7
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
8
8
  }), nt;
9
9
  }
10
- var rt = {}, F = {}, Kt;
10
+ var rt = {}, F = {}, Vt;
11
11
  function z() {
12
- if (Kt) return F;
13
- Kt = 1;
12
+ if (Vt) return F;
13
+ Vt = 1;
14
14
  let o;
15
15
  const r = [
16
16
  0,
@@ -77,9 +77,9 @@ function z() {
77
77
  return o(e);
78
78
  }, F;
79
79
  }
80
- var ot = {}, Ht;
81
- function bt() {
82
- return Ht || (Ht = 1, function(o) {
80
+ var ot = {}, Kt;
81
+ function Nt() {
82
+ return Kt || (Kt = 1, function(o) {
83
83
  o.L = { bit: 1 }, o.M = { bit: 0 }, o.Q = { bit: 3 }, o.H = { bit: 2 };
84
84
  function r(i) {
85
85
  if (typeof i != "string")
@@ -114,10 +114,10 @@ function bt() {
114
114
  };
115
115
  }(ot)), ot;
116
116
  }
117
- var it, Jt;
118
- function De() {
119
- if (Jt) return it;
120
- Jt = 1;
117
+ var it, Ht;
118
+ function qe() {
119
+ if (Ht) return it;
120
+ Ht = 1;
121
121
  function o() {
122
122
  this.buffer = [], this.length = 0;
123
123
  }
@@ -139,10 +139,10 @@ function De() {
139
139
  }
140
140
  }, it = o, it;
141
141
  }
142
- var st, jt;
143
- function ke() {
144
- if (jt) return st;
145
- jt = 1;
142
+ var st, Jt;
143
+ function De() {
144
+ if (Jt) return st;
145
+ Jt = 1;
146
146
  function o(r) {
147
147
  if (!r || r < 1)
148
148
  throw new Error("BitMatrix size must be defined and greater than 0");
@@ -159,9 +159,9 @@ function ke() {
159
159
  return this.reservedBit[r * this.size + i];
160
160
  }, st = o, st;
161
161
  }
162
- var at = {}, Ot;
163
- function Ue() {
164
- return Ot || (Ot = 1, function(o) {
162
+ var at = {}, jt;
163
+ function ke() {
164
+ return jt || (jt = 1, function(o) {
165
165
  const r = z().getSymbolSize;
166
166
  o.getRowColCoords = function(e) {
167
167
  if (e === 1) return [];
@@ -180,10 +180,10 @@ function Ue() {
180
180
  };
181
181
  }(at)), at;
182
182
  }
183
- var ut = {}, Yt;
184
- function Fe() {
185
- if (Yt) return ut;
186
- Yt = 1;
183
+ var ut = {}, Ot;
184
+ function Ue() {
185
+ if (Ot) return ut;
186
+ Ot = 1;
187
187
  const o = z().getSymbolSize, r = 7;
188
188
  return ut.getPositions = function(e) {
189
189
  const t = o(e);
@@ -197,9 +197,9 @@ function Fe() {
197
197
  ];
198
198
  }, ut;
199
199
  }
200
- var ct = {}, Qt;
201
- function ze() {
202
- return Qt || (Qt = 1, function(o) {
200
+ var ct = {}, Yt;
201
+ function Fe() {
202
+ return Yt || (Yt = 1, function(o) {
203
203
  o.Patterns = {
204
204
  PATTERN000: 0,
205
205
  PATTERN001: 1,
@@ -222,12 +222,12 @@ function ze() {
222
222
  return o.isValid(t) ? parseInt(t, 10) : void 0;
223
223
  }, o.getPenaltyN1 = function(t) {
224
224
  const n = t.size;
225
- let s = 0, u = 0, a = 0, c = null, f = null;
225
+ let s = 0, u = 0, a = 0, c = null, d = null;
226
226
  for (let m = 0; m < n; m++) {
227
- u = a = 0, c = f = null;
227
+ u = a = 0, c = d = null;
228
228
  for (let g = 0; g < n; g++) {
229
- let l = t.get(m, g);
230
- l === c ? u++ : (u >= 5 && (s += r.N1 + (u - 5)), c = l, u = 1), l = t.get(g, m), l === f ? a++ : (a >= 5 && (s += r.N1 + (a - 5)), f = l, a = 1);
229
+ let f = t.get(m, g);
230
+ f === c ? u++ : (u >= 5 && (s += r.N1 + (u - 5)), c = f, u = 1), f = t.get(g, m), f === d ? a++ : (a >= 5 && (s += r.N1 + (a - 5)), d = f, a = 1);
231
231
  }
232
232
  u >= 5 && (s += r.N1 + (u - 5)), a >= 5 && (s += r.N1 + (a - 5));
233
233
  }
@@ -246,8 +246,8 @@ function ze() {
246
246
  let s = 0, u = 0, a = 0;
247
247
  for (let c = 0; c < n; c++) {
248
248
  u = a = 0;
249
- for (let f = 0; f < n; f++)
250
- u = u << 1 & 2047 | t.get(c, f), f >= 10 && (u === 1488 || u === 93) && s++, a = a << 1 & 2047 | t.get(f, c), f >= 10 && (a === 1488 || a === 93) && s++;
249
+ for (let d = 0; d < n; d++)
250
+ u = u << 1 & 2047 | t.get(c, d), d >= 10 && (u === 1488 || u === 93) && s++, a = a << 1 & 2047 | t.get(d, c), d >= 10 && (a === 1488 || a === 93) && s++;
251
251
  }
252
252
  return s * r.N3;
253
253
  }, o.getPenaltyN4 = function(t) {
@@ -288,18 +288,18 @@ function ze() {
288
288
  let u = 0, a = 1 / 0;
289
289
  for (let c = 0; c < s; c++) {
290
290
  n(c), o.applyMask(c, t);
291
- const f = o.getPenaltyN1(t) + o.getPenaltyN2(t) + o.getPenaltyN3(t) + o.getPenaltyN4(t);
292
- o.applyMask(c, t), f < a && (a = f, u = c);
291
+ const d = o.getPenaltyN1(t) + o.getPenaltyN2(t) + o.getPenaltyN3(t) + o.getPenaltyN4(t);
292
+ o.applyMask(c, t), d < a && (a = d, u = c);
293
293
  }
294
294
  return u;
295
295
  };
296
296
  }(ct)), ct;
297
297
  }
298
- var Q = {}, Gt;
299
- function ye() {
300
- if (Gt) return Q;
301
- Gt = 1;
302
- const o = bt(), r = [
298
+ var Q = {}, Qt;
299
+ function pe() {
300
+ if (Qt) return Q;
301
+ Qt = 1;
302
+ const o = Nt(), r = [
303
303
  // L M Q H
304
304
  1,
305
305
  1,
@@ -652,10 +652,10 @@ function ye() {
652
652
  }
653
653
  }, Q;
654
654
  }
655
- var lt = {}, j = {}, $t;
656
- function Ve() {
657
- if ($t) return j;
658
- $t = 1;
655
+ var lt = {}, j = {}, Gt;
656
+ function ze() {
657
+ if (Gt) return j;
658
+ Gt = 1;
659
659
  const o = new Uint8Array(512), r = new Uint8Array(256);
660
660
  return function() {
661
661
  let e = 1;
@@ -672,10 +672,10 @@ function Ve() {
672
672
  return e === 0 || t === 0 ? 0 : o[r[e] + r[t]];
673
673
  }, j;
674
674
  }
675
- var Wt;
676
- function Ke() {
677
- return Wt || (Wt = 1, function(o) {
678
- const r = Ve();
675
+ var $t;
676
+ function Ve() {
677
+ return $t || ($t = 1, function(o) {
678
+ const r = ze();
679
679
  o.mul = function(e, t) {
680
680
  const n = new Uint8Array(e.length + t.length - 1);
681
681
  for (let s = 0; s < e.length; s++)
@@ -701,11 +701,11 @@ function Ke() {
701
701
  };
702
702
  }(lt)), lt;
703
703
  }
704
- var ft, Zt;
705
- function He() {
706
- if (Zt) return ft;
707
- Zt = 1;
708
- const o = Ke();
704
+ var ft, Wt;
705
+ function Ke() {
706
+ if (Wt) return ft;
707
+ Wt = 1;
708
+ const o = Ve();
709
709
  function r(i) {
710
710
  this.genPoly = void 0, this.degree = i, this.degree && this.initialize(this.degree);
711
711
  }
@@ -724,16 +724,16 @@ function He() {
724
724
  return n;
725
725
  }, ft = r, ft;
726
726
  }
727
- var dt = {}, gt = {}, ht = {}, Xt;
728
- function Ce() {
729
- return Xt || (Xt = 1, ht.isValid = function(r) {
727
+ var dt = {}, gt = {}, ht = {}, Zt;
728
+ function ye() {
729
+ return Zt || (Zt = 1, ht.isValid = function(r) {
730
730
  return !isNaN(r) && r >= 1 && r <= 40;
731
731
  }), ht;
732
732
  }
733
- var v = {}, xt;
734
- function Ee() {
735
- if (xt) return v;
736
- xt = 1;
733
+ var v = {}, Xt;
734
+ function Ce() {
735
+ if (Xt) return v;
736
+ Xt = 1;
737
737
  const o = "[0-9]+", r = "[A-Z $%*+\\-./:]+";
738
738
  let i = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
739
739
  i = i.replace(/u/g, "\\u");
@@ -749,10 +749,10 @@ function Ee() {
749
749
  return s.test(a);
750
750
  }, v;
751
751
  }
752
- var te;
752
+ var xt;
753
753
  function V() {
754
- return te || (te = 1, function(o) {
755
- const r = Ce(), i = Ee();
754
+ return xt || (xt = 1, function(o) {
755
+ const r = ye(), i = Ce();
756
756
  o.NUMERIC = {
757
757
  id: "Numeric",
758
758
  bit: 1,
@@ -811,76 +811,76 @@ function V() {
811
811
  };
812
812
  }(gt)), gt;
813
813
  }
814
- var ee;
815
- function Je() {
816
- return ee || (ee = 1, function(o) {
817
- const r = z(), i = ye(), e = bt(), t = V(), n = Ce(), s = 7973, u = r.getBCHDigit(s);
818
- function a(g, l, A) {
819
- for (let I = 1; I <= 40; I++)
820
- if (l <= o.getCapacity(I, A, g))
821
- return I;
814
+ var te;
815
+ function He() {
816
+ return te || (te = 1, function(o) {
817
+ const r = z(), i = pe(), e = Nt(), t = V(), n = ye(), s = 7973, u = r.getBCHDigit(s);
818
+ function a(g, f, A) {
819
+ for (let M = 1; M <= 40; M++)
820
+ if (f <= o.getCapacity(M, A, g))
821
+ return M;
822
822
  }
823
- function c(g, l) {
824
- return t.getCharCountIndicator(g, l) + 4;
823
+ function c(g, f) {
824
+ return t.getCharCountIndicator(g, f) + 4;
825
825
  }
826
- function f(g, l) {
826
+ function d(g, f) {
827
827
  let A = 0;
828
- return g.forEach(function(I) {
829
- const N = c(I.mode, l);
830
- A += N + I.getBitsLength();
828
+ return g.forEach(function(M) {
829
+ const N = c(M.mode, f);
830
+ A += N + M.getBitsLength();
831
831
  }), A;
832
832
  }
833
- function m(g, l) {
833
+ function m(g, f) {
834
834
  for (let A = 1; A <= 40; A++)
835
- if (f(g, A) <= o.getCapacity(A, l, t.MIXED))
835
+ if (d(g, A) <= o.getCapacity(A, f, t.MIXED))
836
836
  return A;
837
837
  }
838
- o.from = function(l, A) {
839
- return n.isValid(l) ? parseInt(l, 10) : A;
840
- }, o.getCapacity = function(l, A, I) {
841
- if (!n.isValid(l))
838
+ o.from = function(f, A) {
839
+ return n.isValid(f) ? parseInt(f, 10) : A;
840
+ }, o.getCapacity = function(f, A, M) {
841
+ if (!n.isValid(f))
842
842
  throw new Error("Invalid QR Code version");
843
- typeof I > "u" && (I = t.BYTE);
844
- const N = r.getSymbolTotalCodewords(l), P = i.getTotalCodewordsCount(l, A), S = (N - P) * 8;
845
- if (I === t.MIXED) return S;
846
- const w = S - c(I, l);
847
- switch (I) {
843
+ typeof M > "u" && (M = t.BYTE);
844
+ const N = r.getSymbolTotalCodewords(f), R = i.getTotalCodewordsCount(f, A), S = (N - R) * 8;
845
+ if (M === t.MIXED) return S;
846
+ const p = S - c(M, f);
847
+ switch (M) {
848
848
  case t.NUMERIC:
849
- return Math.floor(w / 10 * 3);
849
+ return Math.floor(p / 10 * 3);
850
850
  case t.ALPHANUMERIC:
851
- return Math.floor(w / 11 * 2);
851
+ return Math.floor(p / 11 * 2);
852
852
  case t.KANJI:
853
- return Math.floor(w / 13);
853
+ return Math.floor(p / 13);
854
854
  case t.BYTE:
855
855
  default:
856
- return Math.floor(w / 8);
856
+ return Math.floor(p / 8);
857
857
  }
858
- }, o.getBestVersionForData = function(l, A) {
859
- let I;
858
+ }, o.getBestVersionForData = function(f, A) {
859
+ let M;
860
860
  const N = e.from(A, e.M);
861
- if (Array.isArray(l)) {
862
- if (l.length > 1)
863
- return m(l, N);
864
- if (l.length === 0)
861
+ if (Array.isArray(f)) {
862
+ if (f.length > 1)
863
+ return m(f, N);
864
+ if (f.length === 0)
865
865
  return 1;
866
- I = l[0];
866
+ M = f[0];
867
867
  } else
868
- I = l;
869
- return a(I.mode, I.getLength(), N);
870
- }, o.getEncodedBits = function(l) {
871
- if (!n.isValid(l) || l < 7)
868
+ M = f;
869
+ return a(M.mode, M.getLength(), N);
870
+ }, o.getEncodedBits = function(f) {
871
+ if (!n.isValid(f) || f < 7)
872
872
  throw new Error("Invalid QR Code version");
873
- let A = l << 12;
873
+ let A = f << 12;
874
874
  for (; r.getBCHDigit(A) - u >= 0; )
875
875
  A ^= s << r.getBCHDigit(A) - u;
876
- return l << 12 | A;
876
+ return f << 12 | A;
877
877
  };
878
878
  }(dt)), dt;
879
879
  }
880
- var mt = {}, ne;
881
- function je() {
882
- if (ne) return mt;
883
- ne = 1;
880
+ var mt = {}, ee;
881
+ function Je() {
882
+ if (ee) return mt;
883
+ ee = 1;
884
884
  const o = z(), r = 1335, i = 21522, e = o.getBCHDigit(r);
885
885
  return mt.getEncodedBits = function(n, s) {
886
886
  const u = n.bit << 3 | s;
@@ -890,10 +890,10 @@ function je() {
890
890
  return (u << 10 | a) ^ i;
891
891
  }, mt;
892
892
  }
893
- var wt = {}, pt, re;
894
- function Oe() {
895
- if (re) return pt;
896
- re = 1;
893
+ var wt = {}, pt, ne;
894
+ function je() {
895
+ if (ne) return pt;
896
+ ne = 1;
897
897
  const o = V();
898
898
  function r(i) {
899
899
  this.mode = o.NUMERIC, this.data = i.toString();
@@ -912,10 +912,10 @@ function Oe() {
912
912
  u > 0 && (n = this.data.substr(t), s = parseInt(n, 10), e.put(s, u * 3 + 1));
913
913
  }, pt = r, pt;
914
914
  }
915
- var yt, oe;
916
- function Ye() {
917
- if (oe) return yt;
918
- oe = 1;
915
+ var yt, re;
916
+ function Oe() {
917
+ if (re) return yt;
918
+ re = 1;
919
919
  const o = V(), r = [
920
920
  "0",
921
921
  "1",
@@ -981,10 +981,10 @@ function Ye() {
981
981
  this.data.length % 2 && t.put(r.indexOf(this.data[n]), 6);
982
982
  }, yt = i, yt;
983
983
  }
984
- var Ct, ie;
985
- function Qe() {
986
- if (ie) return Ct;
987
- ie = 1;
984
+ var Ct, oe;
985
+ function Ye() {
986
+ if (oe) return Ct;
987
+ oe = 1;
988
988
  const o = V();
989
989
  function r(i) {
990
990
  this.mode = o.BYTE, typeof i == "string" ? this.data = new TextEncoder().encode(i) : this.data = new Uint8Array(i);
@@ -1000,10 +1000,10 @@ function Qe() {
1000
1000
  i.put(this.data[e], 8);
1001
1001
  }, Ct = r, Ct;
1002
1002
  }
1003
- var Et, se;
1004
- function Ge() {
1005
- if (se) return Et;
1006
- se = 1;
1003
+ var Et, ie;
1004
+ function Qe() {
1005
+ if (ie) return Et;
1006
+ ie = 1;
1007
1007
  const o = V(), r = z();
1008
1008
  function i(e) {
1009
1009
  this.mode = o.KANJI, this.data = e;
@@ -1031,23 +1031,23 @@ Make sure your charset is UTF-8`
1031
1031
  }
1032
1032
  }, Et = i, Et;
1033
1033
  }
1034
- var Bt = { exports: {} }, ae;
1035
- function $e() {
1036
- return ae || (ae = 1, function(o) {
1034
+ var Bt = { exports: {} }, se;
1035
+ function Ge() {
1036
+ return se || (se = 1, function(o) {
1037
1037
  var r = {
1038
1038
  single_source_shortest_paths: function(i, e, t) {
1039
1039
  var n = {}, s = {};
1040
1040
  s[e] = 0;
1041
1041
  var u = r.PriorityQueue.make();
1042
1042
  u.push(e, 0);
1043
- for (var a, c, f, m, g, l, A, I, N; !u.empty(); ) {
1043
+ for (var a, c, d, m, g, f, A, M, N; !u.empty(); ) {
1044
1044
  a = u.pop(), c = a.value, m = a.cost, g = i[c] || {};
1045
- for (f in g)
1046
- g.hasOwnProperty(f) && (l = g[f], A = m + l, I = s[f], N = typeof s[f] > "u", (N || I > A) && (s[f] = A, u.push(f, A), n[f] = c));
1045
+ for (d in g)
1046
+ g.hasOwnProperty(d) && (f = g[d], A = m + f, M = s[d], N = typeof s[d] > "u", (N || M > A) && (s[d] = A, u.push(d, A), n[d] = c));
1047
1047
  }
1048
1048
  if (typeof t < "u" && typeof s[t] > "u") {
1049
- var P = ["Could not find a path from ", e, " to ", t, "."].join("");
1050
- throw new Error(P);
1049
+ var R = ["Could not find a path from ", e, " to ", t, "."].join("");
1050
+ throw new Error(R);
1051
1051
  }
1052
1052
  return n;
1053
1053
  },
@@ -1099,133 +1099,133 @@ function $e() {
1099
1099
  o.exports = r;
1100
1100
  }(Bt)), Bt.exports;
1101
1101
  }
1102
- var ue;
1103
- function We() {
1104
- return ue || (ue = 1, function(o) {
1105
- const r = V(), i = Oe(), e = Ye(), t = Qe(), n = Ge(), s = Ee(), u = z(), a = $e();
1106
- function c(P) {
1107
- return unescape(encodeURIComponent(P)).length;
1102
+ var ae;
1103
+ function $e() {
1104
+ return ae || (ae = 1, function(o) {
1105
+ const r = V(), i = je(), e = Oe(), t = Ye(), n = Qe(), s = Ce(), u = z(), a = Ge();
1106
+ function c(R) {
1107
+ return unescape(encodeURIComponent(R)).length;
1108
1108
  }
1109
- function f(P, S, w) {
1110
- const E = [];
1111
- let M;
1112
- for (; (M = P.exec(w)) !== null; )
1113
- E.push({
1114
- data: M[0],
1115
- index: M.index,
1109
+ function d(R, S, p) {
1110
+ const B = [];
1111
+ let b;
1112
+ for (; (b = R.exec(p)) !== null; )
1113
+ B.push({
1114
+ data: b[0],
1115
+ index: b.index,
1116
1116
  mode: S,
1117
- length: M[0].length
1117
+ length: b[0].length
1118
1118
  });
1119
- return E;
1119
+ return B;
1120
1120
  }
1121
- function m(P) {
1122
- const S = f(s.NUMERIC, r.NUMERIC, P), w = f(s.ALPHANUMERIC, r.ALPHANUMERIC, P);
1123
- let E, M;
1124
- return u.isKanjiModeEnabled() ? (E = f(s.BYTE, r.BYTE, P), M = f(s.KANJI, r.KANJI, P)) : (E = f(s.BYTE_KANJI, r.BYTE, P), M = []), S.concat(w, E, M).sort(function(p, B) {
1125
- return p.index - B.index;
1126
- }).map(function(p) {
1121
+ function m(R) {
1122
+ const S = d(s.NUMERIC, r.NUMERIC, R), p = d(s.ALPHANUMERIC, r.ALPHANUMERIC, R);
1123
+ let B, b;
1124
+ return u.isKanjiModeEnabled() ? (B = d(s.BYTE, r.BYTE, R), b = d(s.KANJI, r.KANJI, R)) : (B = d(s.BYTE_KANJI, r.BYTE, R), b = []), S.concat(p, B, b).sort(function(w, y) {
1125
+ return w.index - y.index;
1126
+ }).map(function(w) {
1127
1127
  return {
1128
- data: p.data,
1129
- mode: p.mode,
1130
- length: p.length
1128
+ data: w.data,
1129
+ mode: w.mode,
1130
+ length: w.length
1131
1131
  };
1132
1132
  });
1133
1133
  }
1134
- function g(P, S) {
1134
+ function g(R, S) {
1135
1135
  switch (S) {
1136
1136
  case r.NUMERIC:
1137
- return i.getBitsLength(P);
1137
+ return i.getBitsLength(R);
1138
1138
  case r.ALPHANUMERIC:
1139
- return e.getBitsLength(P);
1139
+ return e.getBitsLength(R);
1140
1140
  case r.KANJI:
1141
- return n.getBitsLength(P);
1141
+ return n.getBitsLength(R);
1142
1142
  case r.BYTE:
1143
- return t.getBitsLength(P);
1143
+ return t.getBitsLength(R);
1144
1144
  }
1145
1145
  }
1146
- function l(P) {
1147
- return P.reduce(function(S, w) {
1148
- const E = S.length - 1 >= 0 ? S[S.length - 1] : null;
1149
- return E && E.mode === w.mode ? (S[S.length - 1].data += w.data, S) : (S.push(w), S);
1146
+ function f(R) {
1147
+ return R.reduce(function(S, p) {
1148
+ const B = S.length - 1 >= 0 ? S[S.length - 1] : null;
1149
+ return B && B.mode === p.mode ? (S[S.length - 1].data += p.data, S) : (S.push(p), S);
1150
1150
  }, []);
1151
1151
  }
1152
- function A(P) {
1152
+ function A(R) {
1153
1153
  const S = [];
1154
- for (let w = 0; w < P.length; w++) {
1155
- const E = P[w];
1156
- switch (E.mode) {
1154
+ for (let p = 0; p < R.length; p++) {
1155
+ const B = R[p];
1156
+ switch (B.mode) {
1157
1157
  case r.NUMERIC:
1158
1158
  S.push([
1159
- E,
1160
- { data: E.data, mode: r.ALPHANUMERIC, length: E.length },
1161
- { data: E.data, mode: r.BYTE, length: E.length }
1159
+ B,
1160
+ { data: B.data, mode: r.ALPHANUMERIC, length: B.length },
1161
+ { data: B.data, mode: r.BYTE, length: B.length }
1162
1162
  ]);
1163
1163
  break;
1164
1164
  case r.ALPHANUMERIC:
1165
1165
  S.push([
1166
- E,
1167
- { data: E.data, mode: r.BYTE, length: E.length }
1166
+ B,
1167
+ { data: B.data, mode: r.BYTE, length: B.length }
1168
1168
  ]);
1169
1169
  break;
1170
1170
  case r.KANJI:
1171
1171
  S.push([
1172
- E,
1173
- { data: E.data, mode: r.BYTE, length: c(E.data) }
1172
+ B,
1173
+ { data: B.data, mode: r.BYTE, length: c(B.data) }
1174
1174
  ]);
1175
1175
  break;
1176
1176
  case r.BYTE:
1177
1177
  S.push([
1178
- { data: E.data, mode: r.BYTE, length: c(E.data) }
1178
+ { data: B.data, mode: r.BYTE, length: c(B.data) }
1179
1179
  ]);
1180
1180
  }
1181
1181
  }
1182
1182
  return S;
1183
1183
  }
1184
- function I(P, S) {
1185
- const w = {}, E = { start: {} };
1186
- let M = ["start"];
1187
- for (let d = 0; d < P.length; d++) {
1188
- const p = P[d], B = [];
1189
- for (let h = 0; h < p.length; h++) {
1190
- const T = p[h], y = "" + d + h;
1191
- B.push(y), w[y] = { node: T, lastCount: 0 }, E[y] = {};
1192
- for (let R = 0; R < M.length; R++) {
1193
- const C = M[R];
1194
- w[C] && w[C].node.mode === T.mode ? (E[C][y] = g(w[C].lastCount + T.length, T.mode) - g(w[C].lastCount, T.mode), w[C].lastCount += T.length) : (w[C] && (w[C].lastCount = T.length), E[C][y] = g(T.length, T.mode) + 4 + r.getCharCountIndicator(T.mode, S));
1184
+ function M(R, S) {
1185
+ const p = {}, B = { start: {} };
1186
+ let b = ["start"];
1187
+ for (let l = 0; l < R.length; l++) {
1188
+ const w = R[l], y = [];
1189
+ for (let h = 0; h < w.length; h++) {
1190
+ const T = w[h], C = "" + l + h;
1191
+ y.push(C), p[C] = { node: T, lastCount: 0 }, B[C] = {};
1192
+ for (let P = 0; P < b.length; P++) {
1193
+ const E = b[P];
1194
+ p[E] && p[E].node.mode === T.mode ? (B[E][C] = g(p[E].lastCount + T.length, T.mode) - g(p[E].lastCount, T.mode), p[E].lastCount += T.length) : (p[E] && (p[E].lastCount = T.length), B[E][C] = g(T.length, T.mode) + 4 + r.getCharCountIndicator(T.mode, S));
1195
1195
  }
1196
1196
  }
1197
- M = B;
1197
+ b = y;
1198
1198
  }
1199
- for (let d = 0; d < M.length; d++)
1200
- E[M[d]].end = 0;
1201
- return { map: E, table: w };
1199
+ for (let l = 0; l < b.length; l++)
1200
+ B[b[l]].end = 0;
1201
+ return { map: B, table: p };
1202
1202
  }
1203
- function N(P, S) {
1204
- let w;
1205
- const E = r.getBestModeForData(P);
1206
- if (w = r.from(S, E), w !== r.BYTE && w.bit < E.bit)
1207
- throw new Error('"' + P + '" cannot be encoded with mode ' + r.toString(w) + `.
1208
- Suggested mode is: ` + r.toString(E));
1209
- switch (w === r.KANJI && !u.isKanjiModeEnabled() && (w = r.BYTE), w) {
1203
+ function N(R, S) {
1204
+ let p;
1205
+ const B = r.getBestModeForData(R);
1206
+ if (p = r.from(S, B), p !== r.BYTE && p.bit < B.bit)
1207
+ throw new Error('"' + R + '" cannot be encoded with mode ' + r.toString(p) + `.
1208
+ Suggested mode is: ` + r.toString(B));
1209
+ switch (p === r.KANJI && !u.isKanjiModeEnabled() && (p = r.BYTE), p) {
1210
1210
  case r.NUMERIC:
1211
- return new i(P);
1211
+ return new i(R);
1212
1212
  case r.ALPHANUMERIC:
1213
- return new e(P);
1213
+ return new e(R);
1214
1214
  case r.KANJI:
1215
- return new n(P);
1215
+ return new n(R);
1216
1216
  case r.BYTE:
1217
- return new t(P);
1217
+ return new t(R);
1218
1218
  }
1219
1219
  }
1220
1220
  o.fromArray = function(S) {
1221
- return S.reduce(function(w, E) {
1222
- return typeof E == "string" ? w.push(N(E, null)) : E.data && w.push(N(E.data, E.mode)), w;
1221
+ return S.reduce(function(p, B) {
1222
+ return typeof B == "string" ? p.push(N(B, null)) : B.data && p.push(N(B.data, B.mode)), p;
1223
1223
  }, []);
1224
- }, o.fromString = function(S, w) {
1225
- const E = m(S, u.isKanjiModeEnabled()), M = A(E), d = I(M, w), p = a.find_path(d.map, "start", "end"), B = [];
1226
- for (let h = 1; h < p.length - 1; h++)
1227
- B.push(d.table[p[h]].node);
1228
- return o.fromArray(l(B));
1224
+ }, o.fromString = function(S, p) {
1225
+ const B = m(S, u.isKanjiModeEnabled()), b = A(B), l = M(b, p), w = a.find_path(l.map, "start", "end"), y = [];
1226
+ for (let h = 1; h < w.length - 1; h++)
1227
+ y.push(l.table[w[h]].node);
1228
+ return o.fromArray(f(y));
1229
1229
  }, o.rawSplit = function(S) {
1230
1230
  return o.fromArray(
1231
1231
  m(S, u.isKanjiModeEnabled())
@@ -1233,146 +1233,146 @@ function We() {
1233
1233
  };
1234
1234
  }(wt)), wt;
1235
1235
  }
1236
- var ce;
1237
- function Ze() {
1238
- if (ce) return rt;
1239
- ce = 1;
1240
- const o = z(), r = bt(), i = De(), e = ke(), t = Ue(), n = Fe(), s = ze(), u = ye(), a = He(), c = Je(), f = je(), m = V(), g = We();
1241
- function l(d, p) {
1242
- const B = d.size, h = n.getPositions(p);
1236
+ var ue;
1237
+ function We() {
1238
+ if (ue) return rt;
1239
+ ue = 1;
1240
+ const o = z(), r = Nt(), i = qe(), e = De(), t = ke(), n = Ue(), s = Fe(), u = pe(), a = Ke(), c = He(), d = Je(), m = V(), g = $e();
1241
+ function f(l, w) {
1242
+ const y = l.size, h = n.getPositions(w);
1243
1243
  for (let T = 0; T < h.length; T++) {
1244
- const y = h[T][0], R = h[T][1];
1245
- for (let C = -1; C <= 7; C++)
1246
- if (!(y + C <= -1 || B <= y + C))
1247
- for (let b = -1; b <= 7; b++)
1248
- R + b <= -1 || B <= R + b || (C >= 0 && C <= 6 && (b === 0 || b === 6) || b >= 0 && b <= 6 && (C === 0 || C === 6) || C >= 2 && C <= 4 && b >= 2 && b <= 4 ? d.set(y + C, R + b, !0, !0) : d.set(y + C, R + b, !1, !0));
1244
+ const C = h[T][0], P = h[T][1];
1245
+ for (let E = -1; E <= 7; E++)
1246
+ if (!(C + E <= -1 || y <= C + E))
1247
+ for (let I = -1; I <= 7; I++)
1248
+ P + I <= -1 || y <= P + I || (E >= 0 && E <= 6 && (I === 0 || I === 6) || I >= 0 && I <= 6 && (E === 0 || E === 6) || E >= 2 && E <= 4 && I >= 2 && I <= 4 ? l.set(C + E, P + I, !0, !0) : l.set(C + E, P + I, !1, !0));
1249
1249
  }
1250
1250
  }
1251
- function A(d) {
1252
- const p = d.size;
1253
- for (let B = 8; B < p - 8; B++) {
1254
- const h = B % 2 === 0;
1255
- d.set(B, 6, h, !0), d.set(6, B, h, !0);
1251
+ function A(l) {
1252
+ const w = l.size;
1253
+ for (let y = 8; y < w - 8; y++) {
1254
+ const h = y % 2 === 0;
1255
+ l.set(y, 6, h, !0), l.set(6, y, h, !0);
1256
1256
  }
1257
1257
  }
1258
- function I(d, p) {
1259
- const B = t.getPositions(p);
1260
- for (let h = 0; h < B.length; h++) {
1261
- const T = B[h][0], y = B[h][1];
1262
- for (let R = -2; R <= 2; R++)
1263
- for (let C = -2; C <= 2; C++)
1264
- R === -2 || R === 2 || C === -2 || C === 2 || R === 0 && C === 0 ? d.set(T + R, y + C, !0, !0) : d.set(T + R, y + C, !1, !0);
1258
+ function M(l, w) {
1259
+ const y = t.getPositions(w);
1260
+ for (let h = 0; h < y.length; h++) {
1261
+ const T = y[h][0], C = y[h][1];
1262
+ for (let P = -2; P <= 2; P++)
1263
+ for (let E = -2; E <= 2; E++)
1264
+ P === -2 || P === 2 || E === -2 || E === 2 || P === 0 && E === 0 ? l.set(T + P, C + E, !0, !0) : l.set(T + P, C + E, !1, !0);
1265
1265
  }
1266
1266
  }
1267
- function N(d, p) {
1268
- const B = d.size, h = c.getEncodedBits(p);
1269
- let T, y, R;
1270
- for (let C = 0; C < 18; C++)
1271
- T = Math.floor(C / 3), y = C % 3 + B - 8 - 3, R = (h >> C & 1) === 1, d.set(T, y, R, !0), d.set(y, T, R, !0);
1267
+ function N(l, w) {
1268
+ const y = l.size, h = c.getEncodedBits(w);
1269
+ let T, C, P;
1270
+ for (let E = 0; E < 18; E++)
1271
+ T = Math.floor(E / 3), C = E % 3 + y - 8 - 3, P = (h >> E & 1) === 1, l.set(T, C, P, !0), l.set(C, T, P, !0);
1272
1272
  }
1273
- function P(d, p, B) {
1274
- const h = d.size, T = f.getEncodedBits(p, B);
1275
- let y, R;
1276
- for (y = 0; y < 15; y++)
1277
- R = (T >> y & 1) === 1, y < 6 ? d.set(y, 8, R, !0) : y < 8 ? d.set(y + 1, 8, R, !0) : d.set(h - 15 + y, 8, R, !0), y < 8 ? d.set(8, h - y - 1, R, !0) : y < 9 ? d.set(8, 15 - y - 1 + 1, R, !0) : d.set(8, 15 - y - 1, R, !0);
1278
- d.set(h - 8, 8, 1, !0);
1273
+ function R(l, w, y) {
1274
+ const h = l.size, T = d.getEncodedBits(w, y);
1275
+ let C, P;
1276
+ for (C = 0; C < 15; C++)
1277
+ P = (T >> C & 1) === 1, C < 6 ? l.set(C, 8, P, !0) : C < 8 ? l.set(C + 1, 8, P, !0) : l.set(h - 15 + C, 8, P, !0), C < 8 ? l.set(8, h - C - 1, P, !0) : C < 9 ? l.set(8, 15 - C - 1 + 1, P, !0) : l.set(8, 15 - C - 1, P, !0);
1278
+ l.set(h - 8, 8, 1, !0);
1279
1279
  }
1280
- function S(d, p) {
1281
- const B = d.size;
1282
- let h = -1, T = B - 1, y = 7, R = 0;
1283
- for (let C = B - 1; C > 0; C -= 2)
1284
- for (C === 6 && C--; ; ) {
1285
- for (let b = 0; b < 2; b++)
1286
- if (!d.isReserved(T, C - b)) {
1280
+ function S(l, w) {
1281
+ const y = l.size;
1282
+ let h = -1, T = y - 1, C = 7, P = 0;
1283
+ for (let E = y - 1; E > 0; E -= 2)
1284
+ for (E === 6 && E--; ; ) {
1285
+ for (let I = 0; I < 2; I++)
1286
+ if (!l.isReserved(T, E - I)) {
1287
1287
  let U = !1;
1288
- R < p.length && (U = (p[R] >>> y & 1) === 1), d.set(T, C - b, U), y--, y === -1 && (R++, y = 7);
1288
+ P < w.length && (U = (w[P] >>> C & 1) === 1), l.set(T, E - I, U), C--, C === -1 && (P++, C = 7);
1289
1289
  }
1290
- if (T += h, T < 0 || B <= T) {
1290
+ if (T += h, T < 0 || y <= T) {
1291
1291
  T -= h, h = -h;
1292
1292
  break;
1293
1293
  }
1294
1294
  }
1295
1295
  }
1296
- function w(d, p, B) {
1296
+ function p(l, w, y) {
1297
1297
  const h = new i();
1298
- B.forEach(function(b) {
1299
- h.put(b.mode.bit, 4), h.put(b.getLength(), m.getCharCountIndicator(b.mode, d)), b.write(h);
1298
+ y.forEach(function(I) {
1299
+ h.put(I.mode.bit, 4), h.put(I.getLength(), m.getCharCountIndicator(I.mode, l)), I.write(h);
1300
1300
  });
1301
- const T = o.getSymbolTotalCodewords(d), y = u.getTotalCodewordsCount(d, p), R = (T - y) * 8;
1302
- for (h.getLengthInBits() + 4 <= R && h.put(0, 4); h.getLengthInBits() % 8 !== 0; )
1301
+ const T = o.getSymbolTotalCodewords(l), C = u.getTotalCodewordsCount(l, w), P = (T - C) * 8;
1302
+ for (h.getLengthInBits() + 4 <= P && h.put(0, 4); h.getLengthInBits() % 8 !== 0; )
1303
1303
  h.putBit(0);
1304
- const C = (R - h.getLengthInBits()) / 8;
1305
- for (let b = 0; b < C; b++)
1306
- h.put(b % 2 ? 17 : 236, 8);
1307
- return E(h, d, p);
1304
+ const E = (P - h.getLengthInBits()) / 8;
1305
+ for (let I = 0; I < E; I++)
1306
+ h.put(I % 2 ? 17 : 236, 8);
1307
+ return B(h, l, w);
1308
1308
  }
1309
- function E(d, p, B) {
1310
- const h = o.getSymbolTotalCodewords(p), T = u.getTotalCodewordsCount(p, B), y = h - T, R = u.getBlocksCount(p, B), C = h % R, b = R - C, U = Math.floor(h / R), J = Math.floor(y / R), Re = J + 1, Nt = U - J, Pe = new a(Nt);
1309
+ function B(l, w, y) {
1310
+ const h = o.getSymbolTotalCodewords(w), T = u.getTotalCodewordsCount(w, y), C = h - T, P = u.getBlocksCount(w, y), E = h % P, I = P - E, U = Math.floor(h / P), J = Math.floor(C / P), Ae = J + 1, bt = U - J, Re = new a(bt);
1311
1311
  let $ = 0;
1312
- const Y = new Array(R), vt = new Array(R);
1312
+ const Y = new Array(P), vt = new Array(P);
1313
1313
  let W = 0;
1314
- const Se = new Uint8Array(d.buffer);
1315
- for (let K = 0; K < R; K++) {
1316
- const X = K < b ? J : Re;
1317
- Y[K] = Se.slice($, $ + X), vt[K] = Pe.encode(Y[K]), $ += X, W = Math.max(W, X);
1314
+ const Pe = new Uint8Array(l.buffer);
1315
+ for (let K = 0; K < P; K++) {
1316
+ const X = K < I ? J : Ae;
1317
+ Y[K] = Pe.slice($, $ + X), vt[K] = Re.encode(Y[K]), $ += X, W = Math.max(W, X);
1318
1318
  }
1319
1319
  const Z = new Uint8Array(h);
1320
1320
  let _t = 0, _, L;
1321
1321
  for (_ = 0; _ < W; _++)
1322
- for (L = 0; L < R; L++)
1322
+ for (L = 0; L < P; L++)
1323
1323
  _ < Y[L].length && (Z[_t++] = Y[L][_]);
1324
- for (_ = 0; _ < Nt; _++)
1325
- for (L = 0; L < R; L++)
1324
+ for (_ = 0; _ < bt; _++)
1325
+ for (L = 0; L < P; L++)
1326
1326
  Z[_t++] = vt[L][_];
1327
1327
  return Z;
1328
1328
  }
1329
- function M(d, p, B, h) {
1329
+ function b(l, w, y, h) {
1330
1330
  let T;
1331
- if (Array.isArray(d))
1332
- T = g.fromArray(d);
1333
- else if (typeof d == "string") {
1334
- let U = p;
1331
+ if (Array.isArray(l))
1332
+ T = g.fromArray(l);
1333
+ else if (typeof l == "string") {
1334
+ let U = w;
1335
1335
  if (!U) {
1336
- const J = g.rawSplit(d);
1337
- U = c.getBestVersionForData(J, B);
1336
+ const J = g.rawSplit(l);
1337
+ U = c.getBestVersionForData(J, y);
1338
1338
  }
1339
- T = g.fromString(d, U || 40);
1339
+ T = g.fromString(l, U || 40);
1340
1340
  } else
1341
1341
  throw new Error("Invalid data");
1342
- const y = c.getBestVersionForData(T, B);
1343
- if (!y)
1342
+ const C = c.getBestVersionForData(T, y);
1343
+ if (!C)
1344
1344
  throw new Error("The amount of data is too big to be stored in a QR Code");
1345
- if (!p)
1346
- p = y;
1347
- else if (p < y)
1345
+ if (!w)
1346
+ w = C;
1347
+ else if (w < C)
1348
1348
  throw new Error(
1349
1349
  `
1350
1350
  The chosen QR Code version cannot contain this amount of data.
1351
- Minimum version required to store current data is: ` + y + `.
1351
+ Minimum version required to store current data is: ` + C + `.
1352
1352
  `
1353
1353
  );
1354
- const R = w(p, B, T), C = o.getSymbolSize(p), b = new e(C);
1355
- return l(b, p), A(b), I(b, p), P(b, B, 0), p >= 7 && N(b, p), S(b, R), isNaN(h) && (h = s.getBestMask(
1356
- b,
1357
- P.bind(null, b, B)
1358
- )), s.applyMask(h, b), P(b, B, h), {
1359
- modules: b,
1360
- version: p,
1361
- errorCorrectionLevel: B,
1354
+ const P = p(w, y, T), E = o.getSymbolSize(w), I = new e(E);
1355
+ return f(I, w), A(I), M(I, w), R(I, y, 0), w >= 7 && N(I, w), S(I, P), isNaN(h) && (h = s.getBestMask(
1356
+ I,
1357
+ R.bind(null, I, y)
1358
+ )), s.applyMask(h, I), R(I, y, h), {
1359
+ modules: I,
1360
+ version: w,
1361
+ errorCorrectionLevel: y,
1362
1362
  maskPattern: h,
1363
1363
  segments: T
1364
1364
  };
1365
1365
  }
1366
- return rt.create = function(p, B) {
1367
- if (typeof p > "u" || p === "")
1366
+ return rt.create = function(w, y) {
1367
+ if (typeof w > "u" || w === "")
1368
1368
  throw new Error("No input text");
1369
- let h = r.M, T, y;
1370
- return typeof B < "u" && (h = r.from(B.errorCorrectionLevel, r.M), T = c.from(B.version), y = s.from(B.maskPattern), B.toSJISFunc && o.setToSJISFunction(B.toSJISFunc)), M(p, T, h, y);
1369
+ let h = r.M, T, C;
1370
+ return typeof y < "u" && (h = r.from(y.errorCorrectionLevel, r.M), T = c.from(y.version), C = s.from(y.maskPattern), y.toSJISFunc && o.setToSJISFunction(y.toSJISFunc)), b(w, T, h, C);
1371
1371
  }, rt;
1372
1372
  }
1373
- var At = {}, Rt = {}, le;
1374
- function Be() {
1375
- return le || (le = 1, function(o) {
1373
+ var At = {}, Rt = {}, ce;
1374
+ function Ee() {
1375
+ return ce || (ce = 1, function(o) {
1376
1376
  function r(i) {
1377
1377
  if (typeof i == "number" && (i = i.toString()), typeof i != "string")
1378
1378
  throw new Error("Color should be defined as hex string");
@@ -1411,23 +1411,23 @@ function Be() {
1411
1411
  const n = o.getScale(e, t);
1412
1412
  return Math.floor((e + t.margin * 2) * n);
1413
1413
  }, o.qrToImageData = function(e, t, n) {
1414
- const s = t.modules.size, u = t.modules.data, a = o.getScale(s, n), c = Math.floor((s + n.margin * 2) * a), f = n.margin * a, m = [n.color.light, n.color.dark];
1414
+ const s = t.modules.size, u = t.modules.data, a = o.getScale(s, n), c = Math.floor((s + n.margin * 2) * a), d = n.margin * a, m = [n.color.light, n.color.dark];
1415
1415
  for (let g = 0; g < c; g++)
1416
- for (let l = 0; l < c; l++) {
1417
- let A = (g * c + l) * 4, I = n.color.light;
1418
- if (g >= f && l >= f && g < c - f && l < c - f) {
1419
- const N = Math.floor((g - f) / a), P = Math.floor((l - f) / a);
1420
- I = m[u[N * s + P] ? 1 : 0];
1416
+ for (let f = 0; f < c; f++) {
1417
+ let A = (g * c + f) * 4, M = n.color.light;
1418
+ if (g >= d && f >= d && g < c - d && f < c - d) {
1419
+ const N = Math.floor((g - d) / a), R = Math.floor((f - d) / a);
1420
+ M = m[u[N * s + R] ? 1 : 0];
1421
1421
  }
1422
- e[A++] = I.r, e[A++] = I.g, e[A++] = I.b, e[A] = I.a;
1422
+ e[A++] = M.r, e[A++] = M.g, e[A++] = M.b, e[A] = M.a;
1423
1423
  }
1424
1424
  };
1425
1425
  }(Rt)), Rt;
1426
1426
  }
1427
- var fe;
1428
- function Xe() {
1429
- return fe || (fe = 1, function(o) {
1430
- const r = Be();
1427
+ var le;
1428
+ function Ze() {
1429
+ return le || (le = 1, function(o) {
1430
+ const r = Ee();
1431
1431
  function i(t, n, s) {
1432
1432
  t.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = s, n.width = s, n.style.height = s + "px", n.style.width = s + "px";
1433
1433
  }
@@ -1441,21 +1441,21 @@ function Xe() {
1441
1441
  o.render = function(n, s, u) {
1442
1442
  let a = u, c = s;
1443
1443
  typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), s || (c = e()), a = r.getOptions(a);
1444
- const f = r.getImageWidth(n.modules.size, a), m = c.getContext("2d"), g = m.createImageData(f, f);
1445
- return r.qrToImageData(g.data, n, a), i(m, c, f), m.putImageData(g, 0, 0), c;
1444
+ const d = r.getImageWidth(n.modules.size, a), m = c.getContext("2d"), g = m.createImageData(d, d);
1445
+ return r.qrToImageData(g.data, n, a), i(m, c, d), m.putImageData(g, 0, 0), c;
1446
1446
  }, o.renderToDataURL = function(n, s, u) {
1447
1447
  let a = u;
1448
1448
  typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), a || (a = {});
1449
- const c = o.render(n, s, a), f = a.type || "image/png", m = a.rendererOpts || {};
1450
- return c.toDataURL(f, m.quality);
1449
+ const c = o.render(n, s, a), d = a.type || "image/png", m = a.rendererOpts || {};
1450
+ return c.toDataURL(d, m.quality);
1451
1451
  };
1452
1452
  }(At)), At;
1453
1453
  }
1454
- var Pt = {}, de;
1455
- function xe() {
1456
- if (de) return Pt;
1457
- de = 1;
1458
- const o = Be();
1454
+ var Pt = {}, fe;
1455
+ function Xe() {
1456
+ if (fe) return Pt;
1457
+ fe = 1;
1458
+ const o = Ee();
1459
1459
  function r(t, n) {
1460
1460
  const s = t.a / 255, u = n + '="' + t.hex + '"';
1461
1461
  return s < 1 ? u + " " + n + '-opacity="' + s.toFixed(2).slice(1) + '"' : u;
@@ -1465,26 +1465,26 @@ function xe() {
1465
1465
  return typeof s < "u" && (u += " " + s), u;
1466
1466
  }
1467
1467
  function e(t, n, s) {
1468
- let u = "", a = 0, c = !1, f = 0;
1468
+ let u = "", a = 0, c = !1, d = 0;
1469
1469
  for (let m = 0; m < t.length; m++) {
1470
- const g = Math.floor(m % n), l = Math.floor(m / n);
1471
- !g && !c && (c = !0), t[m] ? (f++, m > 0 && g > 0 && t[m - 1] || (u += c ? i("M", g + s, 0.5 + l + s) : i("m", a, 0), a = 0, c = !1), g + 1 < n && t[m + 1] || (u += i("h", f), f = 0)) : a++;
1470
+ const g = Math.floor(m % n), f = Math.floor(m / n);
1471
+ !g && !c && (c = !0), t[m] ? (d++, m > 0 && g > 0 && t[m - 1] || (u += c ? i("M", g + s, 0.5 + f + s) : i("m", a, 0), a = 0, c = !1), g + 1 < n && t[m + 1] || (u += i("h", d), d = 0)) : a++;
1472
1472
  }
1473
1473
  return u;
1474
1474
  }
1475
1475
  return Pt.render = function(n, s, u) {
1476
- const a = o.getOptions(s), c = n.modules.size, f = n.modules.data, m = c + a.margin * 2, g = a.color.light.a ? "<path " + r(a.color.light, "fill") + ' d="M0 0h' + m + "v" + m + 'H0z"/>' : "", l = "<path " + r(a.color.dark, "stroke") + ' d="' + e(f, c, a.margin) + '"/>', A = 'viewBox="0 0 ' + m + " " + m + '"', N = '<svg xmlns="http://www.w3.org/2000/svg" ' + (a.width ? 'width="' + a.width + '" height="' + a.width + '" ' : "") + A + ' shape-rendering="crispEdges">' + g + l + `</svg>
1476
+ const a = o.getOptions(s), c = n.modules.size, d = n.modules.data, m = c + a.margin * 2, g = a.color.light.a ? "<path " + r(a.color.light, "fill") + ' d="M0 0h' + m + "v" + m + 'H0z"/>' : "", f = "<path " + r(a.color.dark, "stroke") + ' d="' + e(d, c, a.margin) + '"/>', A = 'viewBox="0 0 ' + m + " " + m + '"', N = '<svg xmlns="http://www.w3.org/2000/svg" ' + (a.width ? 'width="' + a.width + '" height="' + a.width + '" ' : "") + A + ' shape-rendering="crispEdges">' + g + f + `</svg>
1477
1477
  `;
1478
1478
  return typeof u == "function" && u(null, N), N;
1479
1479
  }, Pt;
1480
1480
  }
1481
- var ge;
1482
- function tn() {
1483
- if (ge) return H;
1484
- ge = 1;
1485
- const o = qe(), r = Ze(), i = Xe(), e = xe();
1481
+ var de;
1482
+ function xe() {
1483
+ if (de) return H;
1484
+ de = 1;
1485
+ const o = Le(), r = We(), i = Ze(), e = Xe();
1486
1486
  function t(n, s, u, a, c) {
1487
- const f = [].slice.call(arguments, 1), m = f.length, g = typeof f[m - 1] == "function";
1487
+ const d = [].slice.call(arguments, 1), m = d.length, g = typeof d[m - 1] == "function";
1488
1488
  if (!g && !o())
1489
1489
  throw new Error("Callback required as last argument");
1490
1490
  if (g) {
@@ -1494,31 +1494,31 @@ function tn() {
1494
1494
  } else {
1495
1495
  if (m < 1)
1496
1496
  throw new Error("Too few arguments provided");
1497
- return m === 1 ? (u = s, s = a = void 0) : m === 2 && !s.getContext && (a = u, u = s, s = void 0), new Promise(function(l, A) {
1497
+ return m === 1 ? (u = s, s = a = void 0) : m === 2 && !s.getContext && (a = u, u = s, s = void 0), new Promise(function(f, A) {
1498
1498
  try {
1499
- const I = r.create(u, a);
1500
- l(n(I, s, a));
1501
- } catch (I) {
1502
- A(I);
1499
+ const M = r.create(u, a);
1500
+ f(n(M, s, a));
1501
+ } catch (M) {
1502
+ A(M);
1503
1503
  }
1504
1504
  });
1505
1505
  }
1506
1506
  try {
1507
- const l = r.create(u, a);
1508
- c(null, n(l, s, a));
1509
- } catch (l) {
1510
- c(l);
1507
+ const f = r.create(u, a);
1508
+ c(null, n(f, s, a));
1509
+ } catch (f) {
1510
+ c(f);
1511
1511
  }
1512
1512
  }
1513
1513
  return H.create = r.create, H.toCanvas = t.bind(null, i.render), H.toDataURL = t.bind(null, i.renderToDataURL), H.toString = t.bind(null, function(n, s, u) {
1514
1514
  return e.render(n, u);
1515
1515
  }), H;
1516
1516
  }
1517
- var en = tn();
1518
- const nn = /* @__PURE__ */ Ne(en);
1519
- var rn = It('<div class="*:h-[240px] *:w-[240px]"><!></div>'), on = It('<div class="animate-pulse rounded-lg bg-gray-200 dark:bg-gray-700"></div>');
1520
- function Ae(o, r) {
1521
- me(r, !0);
1517
+ var tn = xe();
1518
+ const en = /* @__PURE__ */ Ne(tn);
1519
+ var nn = It('<div class="*:h-[240px] *:w-[240px]"><!></div>'), rn = It('<div class="animate-pulse rounded-lg bg-gray-200 dark:bg-gray-700"></div>');
1520
+ function Be(o, r) {
1521
+ he(r, !0);
1522
1522
  let i = q(r, "dark", 7, !1), e = q(r, "height", 7, 60), t = q(r, "content", 7);
1523
1523
  const n = (c) => ({
1524
1524
  type: "svg",
@@ -1528,25 +1528,25 @@ function Ae(o, r) {
1528
1528
  dark: c ? "#ffffff" : "#000000",
1529
1529
  light: "#0000"
1530
1530
  }
1531
- }), s = async (c, f) => {
1531
+ }), s = async (c, d) => {
1532
1532
  if (!c) return "Error";
1533
1533
  try {
1534
- return await nn.toString(c, n(f));
1534
+ return await en.toString(c, n(d));
1535
1535
  } catch (m) {
1536
1536
  return console.error("Failed to generate QR code:", m), "Error";
1537
1537
  }
1538
1538
  };
1539
1539
  let u = Dt(""), a = Dt(!0);
1540
- return Te(() => {
1540
+ return Se(() => {
1541
1541
  x(a, !0), s(t(), i()).then((c) => {
1542
- x(u, Me(c)), x(a, !1);
1542
+ x(u, c, !0), x(a, !1);
1543
1543
  });
1544
1544
  }), Mt(o, {
1545
1545
  get dark() {
1546
1546
  return i();
1547
1547
  },
1548
- children: (c, f) => {
1549
- ve(c, {
1548
+ children: (c, d) => {
1549
+ be(c, {
1550
1550
  id: "modal-qr-code",
1551
1551
  htmlTitle: "Click to enlarge",
1552
1552
  title: "Scan the QR code",
@@ -1554,21 +1554,21 @@ function Ae(o, r) {
1554
1554
  return i();
1555
1555
  },
1556
1556
  content: (g) => {
1557
- var l = rn(), A = St(l);
1558
- Ft(A, () => k(u)), Tt(l), O(g, l);
1557
+ var f = nn(), A = St(f);
1558
+ Ut(A, () => k(u)), Tt(f), O(g, f);
1559
1559
  },
1560
- children: (g, l) => {
1561
- var A = Lt(), I = qt(A);
1560
+ children: (g, f) => {
1561
+ var A = Lt(), M = qt(A);
1562
1562
  {
1563
1563
  var N = (S) => {
1564
- var w = on();
1565
- pe(() => Ie(w, "style", `width: ${e() ?? ""}px; height: ${e() ?? ""}px;`)), O(S, w);
1566
- }, P = (S) => {
1567
- var w = Lt(), E = qt(w);
1568
- Ft(E, () => k(u)), O(S, w);
1564
+ var p = rn();
1565
+ we(() => Te(p, `width: ${e() ?? ""}px; height: ${e() ?? ""}px;`)), O(S, p);
1566
+ }, R = (S) => {
1567
+ var p = Lt(), B = qt(p);
1568
+ Ut(B, () => k(u)), O(S, p);
1569
1569
  };
1570
- G(I, (S) => {
1571
- k(a) ? S(N) : S(P, !1);
1570
+ G(M, (S) => {
1571
+ k(a) ? S(N) : S(R, !1);
1572
1572
  });
1573
1573
  }
1574
1574
  O(g, A);
@@ -1577,7 +1577,7 @@ function Ae(o, r) {
1577
1577
  });
1578
1578
  },
1579
1579
  $$slots: { default: !0 }
1580
- }), we({
1580
+ }), me({
1581
1581
  get dark() {
1582
1582
  return i();
1583
1583
  },
@@ -1598,25 +1598,27 @@ function Ae(o, r) {
1598
1598
  }
1599
1599
  });
1600
1600
  }
1601
- he(Ae, { dark: {}, height: {}, content: {} }, [], [], !0);
1602
- var sn = It('<main><div class="flex flex-wrap gap-3"><!> <!> <!></div> <!></main>');
1603
- function an(o, r) {
1604
- me(r, !0);
1601
+ ge(Be, { dark: {}, height: {}, content: {} }, [], [], !0);
1602
+ var on = It("<main><div><!> <!> <!></div> <!></main>");
1603
+ function sn(o, r) {
1604
+ he(r, !0);
1605
1605
  const i = 200, e = 60;
1606
- let t = q(r, "theme", 7, "light"), n = q(r, "width", 7, i), s = q(r, "align", 7, "left"), u = q(r, "googlePlay", 7, "https://play.google.com/store/apps/details?id=com.ltech.moneyto"), a = q(r, "appStore", 7, "https://apps.apple.com/us/app/moneyto-money-transfer/id1418940675"), c = q(r, "qr", 7, "https://www.moneyto.co.uk/mobile-app"), f = kt(() => t() === "dark"), m = kt(() => n() * e / i);
1607
- var g = sn(), l = St(g), A = St(l);
1606
+ let t = q(r, "theme", 7, "light"), n = q(r, "width", 7, i), s = q(r, "align", 7, "left"), u = q(r, "googlePlay", 7, "https://play.google.com/store/apps/details?id=com.ltech.moneyto"), a = q(r, "appStore", 7, "https://apps.apple.com/us/app/moneyto-money-transfer/id1418940675"), c = q(r, "qr", 7, "https://www.moneyto.co.uk/mobile-app"), d = kt(() => t() === "dark"), m = kt(() => n() * e / i);
1607
+ var g = on(), f = St(g);
1608
+ let A;
1609
+ var M = St(f);
1608
1610
  {
1609
- var I = (M) => {
1610
- Mt(M, {
1611
+ var N = (l) => {
1612
+ Mt(l, {
1611
1613
  get dark() {
1612
- return k(f);
1614
+ return k(d);
1613
1615
  },
1614
1616
  get href() {
1615
1617
  return a();
1616
1618
  },
1617
1619
  name: "app-store",
1618
- children: (d, p) => {
1619
- _e(d, {
1620
+ children: (w, y) => {
1621
+ ve(w, {
1620
1622
  get width() {
1621
1623
  return n();
1622
1624
  },
@@ -1628,23 +1630,23 @@ function an(o, r) {
1628
1630
  $$slots: { default: !0 }
1629
1631
  });
1630
1632
  };
1631
- G(A, (M) => {
1632
- (!et() || zt()) && M(I);
1633
+ G(M, (l) => {
1634
+ (!et() || Ft()) && l(N);
1633
1635
  });
1634
1636
  }
1635
- var N = tt(A, 2);
1637
+ var R = tt(M, 2);
1636
1638
  {
1637
- var P = (M) => {
1638
- Mt(M, {
1639
+ var S = (l) => {
1640
+ Mt(l, {
1639
1641
  get dark() {
1640
- return k(f);
1642
+ return k(d);
1641
1643
  },
1642
1644
  get href() {
1643
1645
  return u();
1644
1646
  },
1645
1647
  name: "google-play",
1646
- children: (d, p) => {
1647
- Le(d, {
1648
+ children: (w, y) => {
1649
+ _e(w, {
1648
1650
  get width() {
1649
1651
  return n();
1650
1652
  },
@@ -1656,74 +1658,77 @@ function an(o, r) {
1656
1658
  $$slots: { default: !0 }
1657
1659
  });
1658
1660
  };
1659
- G(N, (M) => {
1660
- (!et() || !zt()) && M(P);
1661
+ G(R, (l) => {
1662
+ (!et() || !Ft()) && l(S);
1661
1663
  });
1662
1664
  }
1663
- var S = tt(N, 2);
1665
+ var p = tt(R, 2);
1664
1666
  {
1665
- var w = (M) => {
1666
- Ae(M, {
1667
+ var B = (l) => {
1668
+ Be(l, {
1667
1669
  get height() {
1668
1670
  return k(m);
1669
1671
  },
1670
1672
  get dark() {
1671
- return k(f);
1673
+ return k(d);
1672
1674
  },
1673
1675
  get content() {
1674
1676
  return c();
1675
1677
  }
1676
1678
  });
1677
1679
  };
1678
- G(S, (M) => {
1679
- et() || M(w);
1680
+ G(p, (l) => {
1681
+ et() || l(B);
1680
1682
  });
1681
1683
  }
1682
- Tt(l);
1683
- var E = tt(l, 2);
1684
- return be(E, { host: r.$$host }), Tt(g), pe(() => {
1685
- Ut(l, "justify-center", s() === "center"), Ut(l, "justify-end", s() === "right");
1686
- }), O(o, g), we({
1684
+ Tt(f);
1685
+ var b = tt(f, 2);
1686
+ return Me(b, { host: r.$$host }), Tt(g), we((l) => A = Ie(f, 1, "flex flex-wrap gap-3", null, A, l), [
1687
+ () => ({
1688
+ "justify-center": s() === "center",
1689
+ "justify-end": s() === "right"
1690
+ })
1691
+ ]), O(o, g), me({
1687
1692
  get theme() {
1688
1693
  return t();
1689
1694
  },
1690
- set theme(M = "light") {
1691
- t(M), D();
1695
+ set theme(l = "light") {
1696
+ t(l), D();
1692
1697
  },
1693
1698
  get width() {
1694
1699
  return n();
1695
1700
  },
1696
- set width(M = i) {
1697
- n(M), D();
1701
+ set width(l = i) {
1702
+ n(l), D();
1698
1703
  },
1699
1704
  get align() {
1700
1705
  return s();
1701
1706
  },
1702
- set align(M = "left") {
1703
- s(M), D();
1707
+ set align(l = "left") {
1708
+ s(l), D();
1704
1709
  },
1705
1710
  get googlePlay() {
1706
1711
  return u();
1707
1712
  },
1708
- set googlePlay(M = "https://play.google.com/store/apps/details?id=com.ltech.moneyto") {
1709
- u(M), D();
1713
+ set googlePlay(l = "https://play.google.com/store/apps/details?id=com.ltech.moneyto") {
1714
+ u(l), D();
1710
1715
  },
1711
1716
  get appStore() {
1712
1717
  return a();
1713
1718
  },
1714
- set appStore(M = "https://apps.apple.com/us/app/moneyto-money-transfer/id1418940675") {
1715
- a(M), D();
1719
+ set appStore(l = "https://apps.apple.com/us/app/moneyto-money-transfer/id1418940675") {
1720
+ a(l), D();
1716
1721
  },
1717
1722
  get qr() {
1718
1723
  return c();
1719
1724
  },
1720
- set qr(M = "https://www.moneyto.co.uk/mobile-app") {
1721
- c(M), D();
1725
+ set qr(l = "https://www.moneyto.co.uk/mobile-app") {
1726
+ c(l), D();
1722
1727
  }
1723
1728
  });
1724
1729
  }
1725
- customElements.define("moneyto-mobile-apps", he(
1726
- an,
1730
+ customElements.define("moneyto-mobile-apps", ge(
1731
+ sn,
1727
1732
  {
1728
1733
  theme: { attribute: "theme", type: "String" },
1729
1734
  googlePlay: { attribute: "google-play", type: "String" },
@@ -1737,5 +1742,5 @@ customElements.define("moneyto-mobile-apps", he(
1737
1742
  !0
1738
1743
  ));
1739
1744
  export {
1740
- an as default
1745
+ sn as default
1741
1746
  };