@moneyto/components 0.0.17 → 0.0.19

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