@directcryptopay/sdk 0.1.0

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.
Files changed (141) hide show
  1. package/README.md +357 -0
  2. package/dist/ConstantsUtil-B-_-u8aQ.js +6 -0
  3. package/dist/add-KF4m4jFK.js +19 -0
  4. package/dist/all-wallets-D6NAjQgX.js +10 -0
  5. package/dist/app-store-D7TTn-EO.js +21 -0
  6. package/dist/apple-DjX2E2hE.js +22 -0
  7. package/dist/arrow-bottom-C0YrNJYB.js +12 -0
  8. package/dist/arrow-bottom-circle-Dlxvx_XG.js +15 -0
  9. package/dist/arrow-left-x8_-lUyK.js +12 -0
  10. package/dist/arrow-right-BTZybj80.js +12 -0
  11. package/dist/arrow-top-LzH7iLCp.js +12 -0
  12. package/dist/bank-23jp-IV_.js +18 -0
  13. package/dist/browser-EjoorDid.js +18 -0
  14. package/dist/card-DGgWwtwC.js +18 -0
  15. package/dist/ccip-BMANewTU.js +150 -0
  16. package/dist/checkmark-B1qcQhBo.js +15 -0
  17. package/dist/checkmark-bold-Cyc4IEEJ.js +12 -0
  18. package/dist/chevron-bottom-ClHs08rB.js +12 -0
  19. package/dist/chevron-left-O8h_551_.js +12 -0
  20. package/dist/chevron-right-DP3xpyIA.js +12 -0
  21. package/dist/chevron-top-CuwkBUs9.js +12 -0
  22. package/dist/chrome-store-zfT_aJ3R.js +65 -0
  23. package/dist/clock-DHZqivIS.js +12 -0
  24. package/dist/close-Cp9rNAw4.js +12 -0
  25. package/dist/coinPlaceholder-U7-T1KKQ.js +12 -0
  26. package/dist/compass-Ds5-PRSR.js +12 -0
  27. package/dist/copy-Jg4HdIMf.js +19 -0
  28. package/dist/core/api.d.ts +30 -0
  29. package/dist/core/config.d.ts +59 -0
  30. package/dist/core/logic.d.ts +2 -0
  31. package/dist/core/wallet.d.ts +34 -0
  32. package/dist/cursor-DmMevduB.js +7 -0
  33. package/dist/cursor-transparent-Dn9-1SV8.js +16 -0
  34. package/dist/dcp-sdk.umd.js +12000 -0
  35. package/dist/dcp.d.ts +10 -0
  36. package/dist/desktop-C4udXXlZ.js +13 -0
  37. package/dist/disconnect-wd1BYLxt.js +12 -0
  38. package/dist/discord-DthxuCAP.js +21 -0
  39. package/dist/email-B3jSnUFE.js +696 -0
  40. package/dist/embedded-wallet-CJHmoBI2.js +468 -0
  41. package/dist/etherscan-Cjp4xfMW.js +10 -0
  42. package/dist/exclamation-triangle-CRNR5WOy.js +8 -0
  43. package/dist/extension-Cydk0mZt.js +12 -0
  44. package/dist/external-link-CuPTAoq9.js +12 -0
  45. package/dist/facebook-CghqXmdf.js +30 -0
  46. package/dist/farcaster-BREqMX4y.js +16 -0
  47. package/dist/filters-Dn_Ys7ew.js +12 -0
  48. package/dist/github-C-A7JmIY.js +22 -0
  49. package/dist/google-CCdM_naE.js +22 -0
  50. package/dist/hashTypedData-D2Qmzscs.js +197 -0
  51. package/dist/help-circle-DIH4vyj3.js +16 -0
  52. package/dist/id-DkJ0gBuy.js +16 -0
  53. package/dist/if-defined-BciplFKz.js +744 -0
  54. package/dist/image-qMjyiXM0.js +8 -0
  55. package/dist/index--3Zp0jAb.js +45 -0
  56. package/dist/index-1adX-Fit.js +65 -0
  57. package/dist/index-AvC0IGDl.js +7864 -0
  58. package/dist/index-B2-vKLd8.js +276 -0
  59. package/dist/index-B2iDt0TJ.js +146 -0
  60. package/dist/index-B5zkXsLJ.js +320 -0
  61. package/dist/index-B7K86vWu.js +1742 -0
  62. package/dist/index-BBkcvSiY.js +511 -0
  63. package/dist/index-BdjxQs66.js +181 -0
  64. package/dist/index-Bijd4_Ns.js +294 -0
  65. package/dist/index-BpXOsxzU.js +387 -0
  66. package/dist/index-C1QEJL-2.js +572 -0
  67. package/dist/index-C27dwOyE.js +243 -0
  68. package/dist/index-C4BX3QW8.js +58 -0
  69. package/dist/index-CMPIqsB1.js +170 -0
  70. package/dist/index-CTYngdl0.js +21991 -0
  71. package/dist/index-CUdQyyFn.js +51 -0
  72. package/dist/index-CX60z_g2.js +573 -0
  73. package/dist/index-CppCc1n8.js +65 -0
  74. package/dist/index-CqVegmN4.js +559 -0
  75. package/dist/index-CuiyMA8F.js +78 -0
  76. package/dist/index-CwB_qRfM.js +305 -0
  77. package/dist/index-CxOF7GqE.js +265 -0
  78. package/dist/index-D-IzHD_8.js +54 -0
  79. package/dist/index-DRNiFv9I.js +218 -0
  80. package/dist/index-Da8oZh8H.js +838 -0
  81. package/dist/index-DiHImG4L.js +44236 -0
  82. package/dist/index-DmOMXRG1.js +181 -0
  83. package/dist/index-DoSYqTQg.js +199 -0
  84. package/dist/index-DpHXq5_E.js +603 -0
  85. package/dist/index-DtCsAVBg.js +78 -0
  86. package/dist/index-Ij6XA6_4.js +77 -0
  87. package/dist/index-SzyBYfzA.js +8490 -0
  88. package/dist/index-eW8y-mXH.js +257 -0
  89. package/dist/index-fxzIDZsb.js +75 -0
  90. package/dist/index-lbhz9evJ.js +97 -0
  91. package/dist/index.d.ts +3 -0
  92. package/dist/index.js +4 -0
  93. package/dist/info-DMIGgjkL.js +7 -0
  94. package/dist/info-circle-CJuIKZSx.js +16 -0
  95. package/dist/lightbulb-qFT6WEWV.js +7 -0
  96. package/dist/localBatchGatewayRequest-CsMVMFBc.js +91 -0
  97. package/dist/mail-DoYgQvOt.js +12 -0
  98. package/dist/mobile-URtsh7o-.js +13 -0
  99. package/dist/more-DoQd10TF.js +15 -0
  100. package/dist/network-placeholder-BBA2Ue6C.js +18 -0
  101. package/dist/nftPlaceholder-C9RXWz9k.js +12 -0
  102. package/dist/off-YcuDQczT.js +12 -0
  103. package/dist/onramp-BfqDIx4o.js +1279 -0
  104. package/dist/parseSignature-280HB24T.js +3560 -0
  105. package/dist/play-store-sFaloG_r.js +36 -0
  106. package/dist/plus-l0wekSht.js +17 -0
  107. package/dist/qr-code-CihrUU4G.js +10 -0
  108. package/dist/receive-dfY1Cu-g.js +186 -0
  109. package/dist/recycle-horizontal-nXu6YaPw.js +13 -0
  110. package/dist/ref-huAzXCX0.js +41 -0
  111. package/dist/refresh-D2ZbVeNC.js +12 -0
  112. package/dist/reown-logo-BMaTMJmc.js +16 -0
  113. package/dist/search-YVM9q3J-.js +12 -0
  114. package/dist/secp256k1-BrysY3Sv.js +1302 -0
  115. package/dist/secp256k1-DPQgTBwQ.js +1510 -0
  116. package/dist/send-BwQZPKxI.js +19 -0
  117. package/dist/send-GyetMVu1.js +1038 -0
  118. package/dist/socials-B0W91J9k.js +574 -0
  119. package/dist/swapHorizontal-Dy_oQEkp.js +12 -0
  120. package/dist/swapHorizontalBold-C4JpaMpc.js +12 -0
  121. package/dist/swapHorizontalMedium-D5NuVZFh.js +20 -0
  122. package/dist/swapHorizontalRoundedBold-Bq4P2MCj.js +12 -0
  123. package/dist/swapVertical-CVQ8Mg03.js +12 -0
  124. package/dist/swaps-CA04SSdK.js +1637 -0
  125. package/dist/telegram-BP4SgW_L.js +20 -0
  126. package/dist/three-dots-BJYGJ-dQ.js +9 -0
  127. package/dist/transactions-Bq-98Tsg.js +37 -0
  128. package/dist/twitch-DTATWo9M.js +22 -0
  129. package/dist/twitterIcon-D5UWPInb.js +10 -0
  130. package/dist/types.d.ts +128 -0
  131. package/dist/ui/Modal.d.ts +9 -0
  132. package/dist/ui/index.d.ts +6 -0
  133. package/dist/verify-Byvj8Wi1.js +12 -0
  134. package/dist/verify-filled-B40taNm0.js +12 -0
  135. package/dist/w3m-modal-HV6SE74G.js +1037 -0
  136. package/dist/wallet-Cp-6Kk88.js +12 -0
  137. package/dist/wallet-placeholder-C3juwA9o.js +18 -0
  138. package/dist/walletconnect-CRkIiLCx.js +36 -0
  139. package/dist/warning-circle-DtvCLwG4.js +16 -0
  140. package/dist/x-Cqyx5eCt.js +16 -0
  141. package/package.json +70 -0
@@ -0,0 +1,1742 @@
1
+ import { dJ as de, cy as x, cz as he, cC as ge, cA as me, cB as j } from "./index-DiHImG4L.js";
2
+ import { n as z, c as we } from "./if-defined-BciplFKz.js";
3
+ import "./index-CUdQyyFn.js";
4
+ var K = {}, tt, Tt;
5
+ function pe() {
6
+ return Tt || (Tt = 1, tt = function() {
7
+ return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
8
+ }), tt;
9
+ }
10
+ var et = {}, k = {}, Pt;
11
+ function $() {
12
+ if (Pt) return k;
13
+ Pt = 1;
14
+ let o;
15
+ const r = [
16
+ 0,
17
+ // Not used
18
+ 26,
19
+ 44,
20
+ 70,
21
+ 100,
22
+ 134,
23
+ 172,
24
+ 196,
25
+ 242,
26
+ 292,
27
+ 346,
28
+ 404,
29
+ 466,
30
+ 532,
31
+ 581,
32
+ 655,
33
+ 733,
34
+ 815,
35
+ 901,
36
+ 991,
37
+ 1085,
38
+ 1156,
39
+ 1258,
40
+ 1364,
41
+ 1474,
42
+ 1588,
43
+ 1706,
44
+ 1828,
45
+ 1921,
46
+ 2051,
47
+ 2185,
48
+ 2323,
49
+ 2465,
50
+ 2611,
51
+ 2761,
52
+ 2876,
53
+ 3034,
54
+ 3196,
55
+ 3362,
56
+ 3532,
57
+ 3706
58
+ ];
59
+ return k.getSymbolSize = function(n) {
60
+ if (!n) throw new Error('"version" cannot be null or undefined');
61
+ if (n < 1 || n > 40) throw new Error('"version" should be in range from 1 to 40');
62
+ return n * 4 + 17;
63
+ }, k.getSymbolTotalCodewords = function(n) {
64
+ return r[n];
65
+ }, k.getBCHDigit = function(i) {
66
+ let n = 0;
67
+ for (; i !== 0; )
68
+ n++, i >>>= 1;
69
+ return n;
70
+ }, k.setToSJISFunction = function(n) {
71
+ if (typeof n != "function")
72
+ throw new Error('"toSJISFunc" is not a valid function.');
73
+ o = n;
74
+ }, k.isKanjiModeEnabled = function() {
75
+ return typeof o < "u";
76
+ }, k.toSJIS = function(n) {
77
+ return o(n);
78
+ }, k;
79
+ }
80
+ var nt = {}, vt;
81
+ function Nt() {
82
+ return vt || (vt = 1, (function(o) {
83
+ o.L = { bit: 1 }, o.M = { bit: 0 }, o.Q = { bit: 3 }, o.H = { bit: 2 };
84
+ function r(i) {
85
+ if (typeof i != "string")
86
+ throw new Error("Param is not a string");
87
+ switch (i.toLowerCase()) {
88
+ case "l":
89
+ case "low":
90
+ return o.L;
91
+ case "m":
92
+ case "medium":
93
+ return o.M;
94
+ case "q":
95
+ case "quartile":
96
+ return o.Q;
97
+ case "h":
98
+ case "high":
99
+ return o.H;
100
+ default:
101
+ throw new Error("Unknown EC Level: " + i);
102
+ }
103
+ }
104
+ o.isValid = function(n) {
105
+ return n && typeof n.bit < "u" && n.bit >= 0 && n.bit < 4;
106
+ }, o.from = function(n, t) {
107
+ if (o.isValid(n))
108
+ return n;
109
+ try {
110
+ return r(n);
111
+ } catch {
112
+ return t;
113
+ }
114
+ };
115
+ })(nt)), nt;
116
+ }
117
+ var rt, Lt;
118
+ function ye() {
119
+ if (Lt) return rt;
120
+ Lt = 1;
121
+ function o() {
122
+ this.buffer = [], this.length = 0;
123
+ }
124
+ return o.prototype = {
125
+ get: function(r) {
126
+ const i = Math.floor(r / 8);
127
+ return (this.buffer[i] >>> 7 - r % 8 & 1) === 1;
128
+ },
129
+ put: function(r, i) {
130
+ for (let n = 0; n < i; n++)
131
+ this.putBit((r >>> i - n - 1 & 1) === 1);
132
+ },
133
+ getLengthInBits: function() {
134
+ return this.length;
135
+ },
136
+ putBit: function(r) {
137
+ const i = Math.floor(this.length / 8);
138
+ this.buffer.length <= i && this.buffer.push(0), r && (this.buffer[i] |= 128 >>> this.length % 8), this.length++;
139
+ }
140
+ }, rt = o, rt;
141
+ }
142
+ var ot, Dt;
143
+ function Ce() {
144
+ if (Dt) return ot;
145
+ Dt = 1;
146
+ function o(r) {
147
+ if (!r || r < 1)
148
+ throw new Error("BitMatrix size must be defined and greater than 0");
149
+ this.size = r, this.data = new Uint8Array(r * r), this.reservedBit = new Uint8Array(r * r);
150
+ }
151
+ return o.prototype.set = function(r, i, n, t) {
152
+ const e = r * this.size + i;
153
+ this.data[e] = n, t && (this.reservedBit[e] = !0);
154
+ }, o.prototype.get = function(r, i) {
155
+ return this.data[r * this.size + i];
156
+ }, o.prototype.xor = function(r, i, n) {
157
+ this.data[r * this.size + i] ^= n;
158
+ }, o.prototype.isReserved = function(r, i) {
159
+ return this.reservedBit[r * this.size + i];
160
+ }, ot = o, ot;
161
+ }
162
+ var it = {}, _t;
163
+ function Ee() {
164
+ return _t || (_t = 1, (function(o) {
165
+ const r = $().getSymbolSize;
166
+ o.getRowColCoords = function(n) {
167
+ if (n === 1) return [];
168
+ const t = Math.floor(n / 7) + 2, e = r(n), s = e === 145 ? 26 : Math.ceil((e - 13) / (2 * t - 2)) * 2, a = [e - 7];
169
+ for (let u = 1; u < t - 1; u++)
170
+ a[u] = a[u - 1] - s;
171
+ return a.push(6), a.reverse();
172
+ }, o.getPositions = function(n) {
173
+ const t = [], e = o.getRowColCoords(n), s = e.length;
174
+ for (let a = 0; a < s; a++)
175
+ for (let u = 0; u < s; u++)
176
+ a === 0 && u === 0 || // top-left
177
+ a === 0 && u === s - 1 || // bottom-left
178
+ a === s - 1 && u === 0 || t.push([e[a], e[u]]);
179
+ return t;
180
+ };
181
+ })(it)), it;
182
+ }
183
+ var st = {}, qt;
184
+ function Be() {
185
+ if (qt) return st;
186
+ qt = 1;
187
+ const o = $().getSymbolSize, r = 7;
188
+ return st.getPositions = function(n) {
189
+ const t = o(n);
190
+ return [
191
+ // top-left
192
+ [0, 0],
193
+ // top-right
194
+ [t - r, 0],
195
+ // bottom-left
196
+ [0, t - r]
197
+ ];
198
+ }, st;
199
+ }
200
+ var ut = {}, Ut;
201
+ function Re() {
202
+ return Ut || (Ut = 1, (function(o) {
203
+ o.Patterns = {
204
+ PATTERN000: 0,
205
+ PATTERN001: 1,
206
+ PATTERN010: 2,
207
+ PATTERN011: 3,
208
+ PATTERN100: 4,
209
+ PATTERN101: 5,
210
+ PATTERN110: 6,
211
+ PATTERN111: 7
212
+ };
213
+ const r = {
214
+ N1: 3,
215
+ N2: 3,
216
+ N3: 40,
217
+ N4: 10
218
+ };
219
+ o.isValid = function(t) {
220
+ return t != null && t !== "" && !isNaN(t) && t >= 0 && t <= 7;
221
+ }, o.from = function(t) {
222
+ return o.isValid(t) ? parseInt(t, 10) : void 0;
223
+ }, o.getPenaltyN1 = function(t) {
224
+ const e = t.size;
225
+ let s = 0, a = 0, u = 0, c = null, m = null;
226
+ for (let A = 0; A < e; A++) {
227
+ a = u = 0, c = m = null;
228
+ for (let C = 0; C < e; C++) {
229
+ let h = t.get(A, C);
230
+ h === c ? a++ : (a >= 5 && (s += r.N1 + (a - 5)), c = h, a = 1), h = t.get(C, A), h === m ? u++ : (u >= 5 && (s += r.N1 + (u - 5)), m = h, u = 1);
231
+ }
232
+ a >= 5 && (s += r.N1 + (a - 5)), u >= 5 && (s += r.N1 + (u - 5));
233
+ }
234
+ return s;
235
+ }, o.getPenaltyN2 = function(t) {
236
+ const e = t.size;
237
+ let s = 0;
238
+ for (let a = 0; a < e - 1; a++)
239
+ for (let u = 0; u < e - 1; u++) {
240
+ const c = t.get(a, u) + t.get(a, u + 1) + t.get(a + 1, u) + t.get(a + 1, u + 1);
241
+ (c === 4 || c === 0) && s++;
242
+ }
243
+ return s * r.N2;
244
+ }, o.getPenaltyN3 = function(t) {
245
+ const e = t.size;
246
+ let s = 0, a = 0, u = 0;
247
+ for (let c = 0; c < e; c++) {
248
+ a = u = 0;
249
+ for (let m = 0; m < e; m++)
250
+ a = a << 1 & 2047 | t.get(c, m), m >= 10 && (a === 1488 || a === 93) && s++, u = u << 1 & 2047 | t.get(m, c), m >= 10 && (u === 1488 || u === 93) && s++;
251
+ }
252
+ return s * r.N3;
253
+ }, o.getPenaltyN4 = function(t) {
254
+ let e = 0;
255
+ const s = t.data.length;
256
+ for (let u = 0; u < s; u++) e += t.data[u];
257
+ return Math.abs(Math.ceil(e * 100 / s / 5) - 10) * r.N4;
258
+ };
259
+ function i(n, t, e) {
260
+ switch (n) {
261
+ case o.Patterns.PATTERN000:
262
+ return (t + e) % 2 === 0;
263
+ case o.Patterns.PATTERN001:
264
+ return t % 2 === 0;
265
+ case o.Patterns.PATTERN010:
266
+ return e % 3 === 0;
267
+ case o.Patterns.PATTERN011:
268
+ return (t + e) % 3 === 0;
269
+ case o.Patterns.PATTERN100:
270
+ return (Math.floor(t / 2) + Math.floor(e / 3)) % 2 === 0;
271
+ case o.Patterns.PATTERN101:
272
+ return t * e % 2 + t * e % 3 === 0;
273
+ case o.Patterns.PATTERN110:
274
+ return (t * e % 2 + t * e % 3) % 2 === 0;
275
+ case o.Patterns.PATTERN111:
276
+ return (t * e % 3 + (t + e) % 2) % 2 === 0;
277
+ default:
278
+ throw new Error("bad maskPattern:" + n);
279
+ }
280
+ }
281
+ o.applyMask = function(t, e) {
282
+ const s = e.size;
283
+ for (let a = 0; a < s; a++)
284
+ for (let u = 0; u < s; u++)
285
+ e.isReserved(u, a) || e.xor(u, a, i(t, u, a));
286
+ }, o.getBestMask = function(t, e) {
287
+ const s = Object.keys(o.Patterns).length;
288
+ let a = 0, u = 1 / 0;
289
+ for (let c = 0; c < s; c++) {
290
+ e(c), o.applyMask(c, t);
291
+ const m = o.getPenaltyN1(t) + o.getPenaltyN2(t) + o.getPenaltyN3(t) + o.getPenaltyN4(t);
292
+ o.applyMask(c, t), m < u && (u = m, a = c);
293
+ }
294
+ return a;
295
+ };
296
+ })(ut)), ut;
297
+ }
298
+ var Q = {}, Ft;
299
+ function ie() {
300
+ if (Ft) return Q;
301
+ Ft = 1;
302
+ const o = Nt(), r = [
303
+ // L M Q H
304
+ 1,
305
+ 1,
306
+ 1,
307
+ 1,
308
+ 1,
309
+ 1,
310
+ 1,
311
+ 1,
312
+ 1,
313
+ 1,
314
+ 2,
315
+ 2,
316
+ 1,
317
+ 2,
318
+ 2,
319
+ 4,
320
+ 1,
321
+ 2,
322
+ 4,
323
+ 4,
324
+ 2,
325
+ 4,
326
+ 4,
327
+ 4,
328
+ 2,
329
+ 4,
330
+ 6,
331
+ 5,
332
+ 2,
333
+ 4,
334
+ 6,
335
+ 6,
336
+ 2,
337
+ 5,
338
+ 8,
339
+ 8,
340
+ 4,
341
+ 5,
342
+ 8,
343
+ 8,
344
+ 4,
345
+ 5,
346
+ 8,
347
+ 11,
348
+ 4,
349
+ 8,
350
+ 10,
351
+ 11,
352
+ 4,
353
+ 9,
354
+ 12,
355
+ 16,
356
+ 4,
357
+ 9,
358
+ 16,
359
+ 16,
360
+ 6,
361
+ 10,
362
+ 12,
363
+ 18,
364
+ 6,
365
+ 10,
366
+ 17,
367
+ 16,
368
+ 6,
369
+ 11,
370
+ 16,
371
+ 19,
372
+ 6,
373
+ 13,
374
+ 18,
375
+ 21,
376
+ 7,
377
+ 14,
378
+ 21,
379
+ 25,
380
+ 8,
381
+ 16,
382
+ 20,
383
+ 25,
384
+ 8,
385
+ 17,
386
+ 23,
387
+ 25,
388
+ 9,
389
+ 17,
390
+ 23,
391
+ 34,
392
+ 9,
393
+ 18,
394
+ 25,
395
+ 30,
396
+ 10,
397
+ 20,
398
+ 27,
399
+ 32,
400
+ 12,
401
+ 21,
402
+ 29,
403
+ 35,
404
+ 12,
405
+ 23,
406
+ 34,
407
+ 37,
408
+ 12,
409
+ 25,
410
+ 34,
411
+ 40,
412
+ 13,
413
+ 26,
414
+ 35,
415
+ 42,
416
+ 14,
417
+ 28,
418
+ 38,
419
+ 45,
420
+ 15,
421
+ 29,
422
+ 40,
423
+ 48,
424
+ 16,
425
+ 31,
426
+ 43,
427
+ 51,
428
+ 17,
429
+ 33,
430
+ 45,
431
+ 54,
432
+ 18,
433
+ 35,
434
+ 48,
435
+ 57,
436
+ 19,
437
+ 37,
438
+ 51,
439
+ 60,
440
+ 19,
441
+ 38,
442
+ 53,
443
+ 63,
444
+ 20,
445
+ 40,
446
+ 56,
447
+ 66,
448
+ 21,
449
+ 43,
450
+ 59,
451
+ 70,
452
+ 22,
453
+ 45,
454
+ 62,
455
+ 74,
456
+ 24,
457
+ 47,
458
+ 65,
459
+ 77,
460
+ 25,
461
+ 49,
462
+ 68,
463
+ 81
464
+ ], i = [
465
+ // L M Q H
466
+ 7,
467
+ 10,
468
+ 13,
469
+ 17,
470
+ 10,
471
+ 16,
472
+ 22,
473
+ 28,
474
+ 15,
475
+ 26,
476
+ 36,
477
+ 44,
478
+ 20,
479
+ 36,
480
+ 52,
481
+ 64,
482
+ 26,
483
+ 48,
484
+ 72,
485
+ 88,
486
+ 36,
487
+ 64,
488
+ 96,
489
+ 112,
490
+ 40,
491
+ 72,
492
+ 108,
493
+ 130,
494
+ 48,
495
+ 88,
496
+ 132,
497
+ 156,
498
+ 60,
499
+ 110,
500
+ 160,
501
+ 192,
502
+ 72,
503
+ 130,
504
+ 192,
505
+ 224,
506
+ 80,
507
+ 150,
508
+ 224,
509
+ 264,
510
+ 96,
511
+ 176,
512
+ 260,
513
+ 308,
514
+ 104,
515
+ 198,
516
+ 288,
517
+ 352,
518
+ 120,
519
+ 216,
520
+ 320,
521
+ 384,
522
+ 132,
523
+ 240,
524
+ 360,
525
+ 432,
526
+ 144,
527
+ 280,
528
+ 408,
529
+ 480,
530
+ 168,
531
+ 308,
532
+ 448,
533
+ 532,
534
+ 180,
535
+ 338,
536
+ 504,
537
+ 588,
538
+ 196,
539
+ 364,
540
+ 546,
541
+ 650,
542
+ 224,
543
+ 416,
544
+ 600,
545
+ 700,
546
+ 224,
547
+ 442,
548
+ 644,
549
+ 750,
550
+ 252,
551
+ 476,
552
+ 690,
553
+ 816,
554
+ 270,
555
+ 504,
556
+ 750,
557
+ 900,
558
+ 300,
559
+ 560,
560
+ 810,
561
+ 960,
562
+ 312,
563
+ 588,
564
+ 870,
565
+ 1050,
566
+ 336,
567
+ 644,
568
+ 952,
569
+ 1110,
570
+ 360,
571
+ 700,
572
+ 1020,
573
+ 1200,
574
+ 390,
575
+ 728,
576
+ 1050,
577
+ 1260,
578
+ 420,
579
+ 784,
580
+ 1140,
581
+ 1350,
582
+ 450,
583
+ 812,
584
+ 1200,
585
+ 1440,
586
+ 480,
587
+ 868,
588
+ 1290,
589
+ 1530,
590
+ 510,
591
+ 924,
592
+ 1350,
593
+ 1620,
594
+ 540,
595
+ 980,
596
+ 1440,
597
+ 1710,
598
+ 570,
599
+ 1036,
600
+ 1530,
601
+ 1800,
602
+ 570,
603
+ 1064,
604
+ 1590,
605
+ 1890,
606
+ 600,
607
+ 1120,
608
+ 1680,
609
+ 1980,
610
+ 630,
611
+ 1204,
612
+ 1770,
613
+ 2100,
614
+ 660,
615
+ 1260,
616
+ 1860,
617
+ 2220,
618
+ 720,
619
+ 1316,
620
+ 1950,
621
+ 2310,
622
+ 750,
623
+ 1372,
624
+ 2040,
625
+ 2430
626
+ ];
627
+ return Q.getBlocksCount = function(t, e) {
628
+ switch (e) {
629
+ case o.L:
630
+ return r[(t - 1) * 4 + 0];
631
+ case o.M:
632
+ return r[(t - 1) * 4 + 1];
633
+ case o.Q:
634
+ return r[(t - 1) * 4 + 2];
635
+ case o.H:
636
+ return r[(t - 1) * 4 + 3];
637
+ default:
638
+ return;
639
+ }
640
+ }, Q.getTotalCodewordsCount = function(t, e) {
641
+ switch (e) {
642
+ case o.L:
643
+ return i[(t - 1) * 4 + 0];
644
+ case o.M:
645
+ return i[(t - 1) * 4 + 1];
646
+ case o.Q:
647
+ return i[(t - 1) * 4 + 2];
648
+ case o.H:
649
+ return i[(t - 1) * 4 + 3];
650
+ default:
651
+ return;
652
+ }
653
+ }, Q;
654
+ }
655
+ var at = {}, J = {}, kt;
656
+ function Ae() {
657
+ if (kt) return J;
658
+ kt = 1;
659
+ const o = new Uint8Array(512), r = new Uint8Array(256);
660
+ return (function() {
661
+ let n = 1;
662
+ for (let t = 0; t < 255; t++)
663
+ o[t] = n, r[n] = t, n <<= 1, n & 256 && (n ^= 285);
664
+ for (let t = 255; t < 512; t++)
665
+ o[t] = o[t - 255];
666
+ })(), J.log = function(n) {
667
+ if (n < 1) throw new Error("log(" + n + ")");
668
+ return r[n];
669
+ }, J.exp = function(n) {
670
+ return o[n];
671
+ }, J.mul = function(n, t) {
672
+ return n === 0 || t === 0 ? 0 : o[r[n] + r[t]];
673
+ }, J;
674
+ }
675
+ var zt;
676
+ function Ie() {
677
+ return zt || (zt = 1, (function(o) {
678
+ const r = Ae();
679
+ o.mul = function(n, t) {
680
+ const e = new Uint8Array(n.length + t.length - 1);
681
+ for (let s = 0; s < n.length; s++)
682
+ for (let a = 0; a < t.length; a++)
683
+ e[s + a] ^= r.mul(n[s], t[a]);
684
+ return e;
685
+ }, o.mod = function(n, t) {
686
+ let e = new Uint8Array(n);
687
+ for (; e.length - t.length >= 0; ) {
688
+ const s = e[0];
689
+ for (let u = 0; u < t.length; u++)
690
+ e[u] ^= r.mul(t[u], s);
691
+ let a = 0;
692
+ for (; a < e.length && e[a] === 0; ) a++;
693
+ e = e.slice(a);
694
+ }
695
+ return e;
696
+ }, o.generateECPolynomial = function(n) {
697
+ let t = new Uint8Array([1]);
698
+ for (let e = 0; e < n; e++)
699
+ t = o.mul(t, new Uint8Array([1, r.exp(e)]));
700
+ return t;
701
+ };
702
+ })(at)), at;
703
+ }
704
+ var ct, $t;
705
+ function Ne() {
706
+ if ($t) return ct;
707
+ $t = 1;
708
+ const o = Ie();
709
+ function r(i) {
710
+ this.genPoly = void 0, this.degree = i, this.degree && this.initialize(this.degree);
711
+ }
712
+ return r.prototype.initialize = function(n) {
713
+ this.degree = n, this.genPoly = o.generateECPolynomial(this.degree);
714
+ }, r.prototype.encode = function(n) {
715
+ if (!this.genPoly)
716
+ throw new Error("Encoder not initialized");
717
+ const t = new Uint8Array(n.length + this.degree);
718
+ t.set(n);
719
+ const e = o.mod(t, this.genPoly), s = this.degree - e.length;
720
+ if (s > 0) {
721
+ const a = new Uint8Array(this.degree);
722
+ return a.set(e, s), a;
723
+ }
724
+ return e;
725
+ }, ct = r, ct;
726
+ }
727
+ var lt = {}, ft = {}, dt = {}, Vt;
728
+ function se() {
729
+ return Vt || (Vt = 1, dt.isValid = function(r) {
730
+ return !isNaN(r) && r >= 1 && r <= 40;
731
+ }), dt;
732
+ }
733
+ var L = {}, Ot;
734
+ function ue() {
735
+ if (Ot) return L;
736
+ Ot = 1;
737
+ const o = "[0-9]+", r = "[A-Z $%*+\\-./:]+";
738
+ let i = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
739
+ i = i.replace(/u/g, "\\u");
740
+ const n = "(?:(?![A-Z0-9 $%*+\\-./:]|" + i + `)(?:.|[\r
741
+ ]))+`;
742
+ L.KANJI = new RegExp(i, "g"), L.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), L.BYTE = new RegExp(n, "g"), L.NUMERIC = new RegExp(o, "g"), L.ALPHANUMERIC = new RegExp(r, "g");
743
+ const t = new RegExp("^" + i + "$"), e = new RegExp("^" + o + "$"), s = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
744
+ return L.testKanji = function(u) {
745
+ return t.test(u);
746
+ }, L.testNumeric = function(u) {
747
+ return e.test(u);
748
+ }, L.testAlphanumeric = function(u) {
749
+ return s.test(u);
750
+ }, L;
751
+ }
752
+ var Kt;
753
+ function V() {
754
+ return Kt || (Kt = 1, (function(o) {
755
+ const r = se(), i = ue();
756
+ o.NUMERIC = {
757
+ id: "Numeric",
758
+ bit: 1,
759
+ ccBits: [10, 12, 14]
760
+ }, o.ALPHANUMERIC = {
761
+ id: "Alphanumeric",
762
+ bit: 2,
763
+ ccBits: [9, 11, 13]
764
+ }, o.BYTE = {
765
+ id: "Byte",
766
+ bit: 4,
767
+ ccBits: [8, 16, 16]
768
+ }, o.KANJI = {
769
+ id: "Kanji",
770
+ bit: 8,
771
+ ccBits: [8, 10, 12]
772
+ }, o.MIXED = {
773
+ bit: -1
774
+ }, o.getCharCountIndicator = function(e, s) {
775
+ if (!e.ccBits) throw new Error("Invalid mode: " + e);
776
+ if (!r.isValid(s))
777
+ throw new Error("Invalid version: " + s);
778
+ return s >= 1 && s < 10 ? e.ccBits[0] : s < 27 ? e.ccBits[1] : e.ccBits[2];
779
+ }, o.getBestModeForData = function(e) {
780
+ return i.testNumeric(e) ? o.NUMERIC : i.testAlphanumeric(e) ? o.ALPHANUMERIC : i.testKanji(e) ? o.KANJI : o.BYTE;
781
+ }, o.toString = function(e) {
782
+ if (e && e.id) return e.id;
783
+ throw new Error("Invalid mode");
784
+ }, o.isValid = function(e) {
785
+ return e && e.bit && e.ccBits;
786
+ };
787
+ function n(t) {
788
+ if (typeof t != "string")
789
+ throw new Error("Param is not a string");
790
+ switch (t.toLowerCase()) {
791
+ case "numeric":
792
+ return o.NUMERIC;
793
+ case "alphanumeric":
794
+ return o.ALPHANUMERIC;
795
+ case "kanji":
796
+ return o.KANJI;
797
+ case "byte":
798
+ return o.BYTE;
799
+ default:
800
+ throw new Error("Unknown mode: " + t);
801
+ }
802
+ }
803
+ o.from = function(e, s) {
804
+ if (o.isValid(e))
805
+ return e;
806
+ try {
807
+ return n(e);
808
+ } catch {
809
+ return s;
810
+ }
811
+ };
812
+ })(ft)), ft;
813
+ }
814
+ var Ht;
815
+ function be() {
816
+ return Ht || (Ht = 1, (function(o) {
817
+ const r = $(), i = ie(), n = Nt(), t = V(), e = se(), s = 7973, a = r.getBCHDigit(s);
818
+ function u(C, h, S) {
819
+ for (let w = 1; w <= 40; w++)
820
+ if (h <= o.getCapacity(w, S, C))
821
+ return w;
822
+ }
823
+ function c(C, h) {
824
+ return t.getCharCountIndicator(C, h) + 4;
825
+ }
826
+ function m(C, h) {
827
+ let S = 0;
828
+ return C.forEach(function(w) {
829
+ const I = c(w.mode, h);
830
+ S += I + w.getBitsLength();
831
+ }), S;
832
+ }
833
+ function A(C, h) {
834
+ for (let S = 1; S <= 40; S++)
835
+ if (m(C, S) <= o.getCapacity(S, h, t.MIXED))
836
+ return S;
837
+ }
838
+ o.from = function(h, S) {
839
+ return e.isValid(h) ? parseInt(h, 10) : S;
840
+ }, o.getCapacity = function(h, S, w) {
841
+ if (!e.isValid(h))
842
+ throw new Error("Invalid QR Code version");
843
+ typeof w > "u" && (w = t.BYTE);
844
+ const I = r.getSymbolTotalCodewords(h), d = i.getTotalCodewordsCount(h, S), f = (I - d) * 8;
845
+ if (w === t.MIXED) return f;
846
+ const g = f - c(w, h);
847
+ switch (w) {
848
+ case t.NUMERIC:
849
+ return Math.floor(g / 10 * 3);
850
+ case t.ALPHANUMERIC:
851
+ return Math.floor(g / 11 * 2);
852
+ case t.KANJI:
853
+ return Math.floor(g / 13);
854
+ case t.BYTE:
855
+ default:
856
+ return Math.floor(g / 8);
857
+ }
858
+ }, o.getBestVersionForData = function(h, S) {
859
+ let w;
860
+ const I = n.from(S, n.M);
861
+ if (Array.isArray(h)) {
862
+ if (h.length > 1)
863
+ return A(h, I);
864
+ if (h.length === 0)
865
+ return 1;
866
+ w = h[0];
867
+ } else
868
+ w = h;
869
+ return u(w.mode, w.getLength(), I);
870
+ }, o.getEncodedBits = function(h) {
871
+ if (!e.isValid(h) || h < 7)
872
+ throw new Error("Invalid QR Code version");
873
+ let S = h << 12;
874
+ for (; r.getBCHDigit(S) - a >= 0; )
875
+ S ^= s << r.getBCHDigit(S) - a;
876
+ return h << 12 | S;
877
+ };
878
+ })(lt)), lt;
879
+ }
880
+ var ht = {}, Jt;
881
+ function Se() {
882
+ if (Jt) return ht;
883
+ Jt = 1;
884
+ const o = $(), r = 1335, i = 21522, n = o.getBCHDigit(r);
885
+ return ht.getEncodedBits = function(e, s) {
886
+ const a = e.bit << 3 | s;
887
+ let u = a << 10;
888
+ for (; o.getBCHDigit(u) - n >= 0; )
889
+ u ^= r << o.getBCHDigit(u) - n;
890
+ return (a << 10 | u) ^ i;
891
+ }, ht;
892
+ }
893
+ var gt = {}, mt, Yt;
894
+ function Me() {
895
+ if (Yt) return mt;
896
+ Yt = 1;
897
+ const o = V();
898
+ function r(i) {
899
+ this.mode = o.NUMERIC, this.data = i.toString();
900
+ }
901
+ return r.getBitsLength = function(n) {
902
+ return 10 * Math.floor(n / 3) + (n % 3 ? n % 3 * 3 + 1 : 0);
903
+ }, r.prototype.getLength = function() {
904
+ return this.data.length;
905
+ }, r.prototype.getBitsLength = function() {
906
+ return r.getBitsLength(this.data.length);
907
+ }, r.prototype.write = function(n) {
908
+ let t, e, s;
909
+ for (t = 0; t + 3 <= this.data.length; t += 3)
910
+ e = this.data.substr(t, 3), s = parseInt(e, 10), n.put(s, 10);
911
+ const a = this.data.length - t;
912
+ a > 0 && (e = this.data.substr(t), s = parseInt(e, 10), n.put(s, a * 3 + 1));
913
+ }, mt = r, mt;
914
+ }
915
+ var wt, jt;
916
+ function Te() {
917
+ if (jt) return wt;
918
+ jt = 1;
919
+ const o = V(), r = [
920
+ "0",
921
+ "1",
922
+ "2",
923
+ "3",
924
+ "4",
925
+ "5",
926
+ "6",
927
+ "7",
928
+ "8",
929
+ "9",
930
+ "A",
931
+ "B",
932
+ "C",
933
+ "D",
934
+ "E",
935
+ "F",
936
+ "G",
937
+ "H",
938
+ "I",
939
+ "J",
940
+ "K",
941
+ "L",
942
+ "M",
943
+ "N",
944
+ "O",
945
+ "P",
946
+ "Q",
947
+ "R",
948
+ "S",
949
+ "T",
950
+ "U",
951
+ "V",
952
+ "W",
953
+ "X",
954
+ "Y",
955
+ "Z",
956
+ " ",
957
+ "$",
958
+ "%",
959
+ "*",
960
+ "+",
961
+ "-",
962
+ ".",
963
+ "/",
964
+ ":"
965
+ ];
966
+ function i(n) {
967
+ this.mode = o.ALPHANUMERIC, this.data = n;
968
+ }
969
+ return i.getBitsLength = function(t) {
970
+ return 11 * Math.floor(t / 2) + 6 * (t % 2);
971
+ }, i.prototype.getLength = function() {
972
+ return this.data.length;
973
+ }, i.prototype.getBitsLength = function() {
974
+ return i.getBitsLength(this.data.length);
975
+ }, i.prototype.write = function(t) {
976
+ let e;
977
+ for (e = 0; e + 2 <= this.data.length; e += 2) {
978
+ let s = r.indexOf(this.data[e]) * 45;
979
+ s += r.indexOf(this.data[e + 1]), t.put(s, 11);
980
+ }
981
+ this.data.length % 2 && t.put(r.indexOf(this.data[e]), 6);
982
+ }, wt = i, wt;
983
+ }
984
+ var pt, Qt;
985
+ function Pe() {
986
+ return Qt || (Qt = 1, pt = function(r) {
987
+ for (var i = [], n = r.length, t = 0; t < n; t++) {
988
+ var e = r.charCodeAt(t);
989
+ if (e >= 55296 && e <= 56319 && n > t + 1) {
990
+ var s = r.charCodeAt(t + 1);
991
+ s >= 56320 && s <= 57343 && (e = (e - 55296) * 1024 + s - 56320 + 65536, t += 1);
992
+ }
993
+ if (e < 128) {
994
+ i.push(e);
995
+ continue;
996
+ }
997
+ if (e < 2048) {
998
+ i.push(e >> 6 | 192), i.push(e & 63 | 128);
999
+ continue;
1000
+ }
1001
+ if (e < 55296 || e >= 57344 && e < 65536) {
1002
+ i.push(e >> 12 | 224), i.push(e >> 6 & 63 | 128), i.push(e & 63 | 128);
1003
+ continue;
1004
+ }
1005
+ if (e >= 65536 && e <= 1114111) {
1006
+ i.push(e >> 18 | 240), i.push(e >> 12 & 63 | 128), i.push(e >> 6 & 63 | 128), i.push(e & 63 | 128);
1007
+ continue;
1008
+ }
1009
+ i.push(239, 191, 189);
1010
+ }
1011
+ return new Uint8Array(i).buffer;
1012
+ }), pt;
1013
+ }
1014
+ var yt, xt;
1015
+ function ve() {
1016
+ if (xt) return yt;
1017
+ xt = 1;
1018
+ const o = Pe(), r = V();
1019
+ function i(n) {
1020
+ this.mode = r.BYTE, typeof n == "string" && (n = o(n)), this.data = new Uint8Array(n);
1021
+ }
1022
+ return i.getBitsLength = function(t) {
1023
+ return t * 8;
1024
+ }, i.prototype.getLength = function() {
1025
+ return this.data.length;
1026
+ }, i.prototype.getBitsLength = function() {
1027
+ return i.getBitsLength(this.data.length);
1028
+ }, i.prototype.write = function(n) {
1029
+ for (let t = 0, e = this.data.length; t < e; t++)
1030
+ n.put(this.data[t], 8);
1031
+ }, yt = i, yt;
1032
+ }
1033
+ var Ct, Gt;
1034
+ function Le() {
1035
+ if (Gt) return Ct;
1036
+ Gt = 1;
1037
+ const o = V(), r = $();
1038
+ function i(n) {
1039
+ this.mode = o.KANJI, this.data = n;
1040
+ }
1041
+ return i.getBitsLength = function(t) {
1042
+ return t * 13;
1043
+ }, i.prototype.getLength = function() {
1044
+ return this.data.length;
1045
+ }, i.prototype.getBitsLength = function() {
1046
+ return i.getBitsLength(this.data.length);
1047
+ }, i.prototype.write = function(n) {
1048
+ let t;
1049
+ for (t = 0; t < this.data.length; t++) {
1050
+ let e = r.toSJIS(this.data[t]);
1051
+ if (e >= 33088 && e <= 40956)
1052
+ e -= 33088;
1053
+ else if (e >= 57408 && e <= 60351)
1054
+ e -= 49472;
1055
+ else
1056
+ throw new Error(
1057
+ "Invalid SJIS character: " + this.data[t] + `
1058
+ Make sure your charset is UTF-8`
1059
+ );
1060
+ e = (e >>> 8 & 255) * 192 + (e & 255), n.put(e, 13);
1061
+ }
1062
+ }, Ct = i, Ct;
1063
+ }
1064
+ var Et = { exports: {} }, Wt;
1065
+ function De() {
1066
+ return Wt || (Wt = 1, (function(o) {
1067
+ var r = {
1068
+ single_source_shortest_paths: function(i, n, t) {
1069
+ var e = {}, s = {};
1070
+ s[n] = 0;
1071
+ var a = r.PriorityQueue.make();
1072
+ a.push(n, 0);
1073
+ for (var u, c, m, A, C, h, S, w, I; !a.empty(); ) {
1074
+ u = a.pop(), c = u.value, A = u.cost, C = i[c] || {};
1075
+ for (m in C)
1076
+ C.hasOwnProperty(m) && (h = C[m], S = A + h, w = s[m], I = typeof s[m] > "u", (I || w > S) && (s[m] = S, a.push(m, S), e[m] = c));
1077
+ }
1078
+ if (typeof t < "u" && typeof s[t] > "u") {
1079
+ var d = ["Could not find a path from ", n, " to ", t, "."].join("");
1080
+ throw new Error(d);
1081
+ }
1082
+ return e;
1083
+ },
1084
+ extract_shortest_path_from_predecessor_list: function(i, n) {
1085
+ for (var t = [], e = n; e; )
1086
+ t.push(e), i[e], e = i[e];
1087
+ return t.reverse(), t;
1088
+ },
1089
+ find_path: function(i, n, t) {
1090
+ var e = r.single_source_shortest_paths(i, n, t);
1091
+ return r.extract_shortest_path_from_predecessor_list(
1092
+ e,
1093
+ t
1094
+ );
1095
+ },
1096
+ /**
1097
+ * A very naive priority queue implementation.
1098
+ */
1099
+ PriorityQueue: {
1100
+ make: function(i) {
1101
+ var n = r.PriorityQueue, t = {}, e;
1102
+ i = i || {};
1103
+ for (e in n)
1104
+ n.hasOwnProperty(e) && (t[e] = n[e]);
1105
+ return t.queue = [], t.sorter = i.sorter || n.default_sorter, t;
1106
+ },
1107
+ default_sorter: function(i, n) {
1108
+ return i.cost - n.cost;
1109
+ },
1110
+ /**
1111
+ * Add a new item to the queue and ensure the highest priority element
1112
+ * is at the front of the queue.
1113
+ */
1114
+ push: function(i, n) {
1115
+ var t = { value: i, cost: n };
1116
+ this.queue.push(t), this.queue.sort(this.sorter);
1117
+ },
1118
+ /**
1119
+ * Return the highest priority element in the queue.
1120
+ */
1121
+ pop: function() {
1122
+ return this.queue.shift();
1123
+ },
1124
+ empty: function() {
1125
+ return this.queue.length === 0;
1126
+ }
1127
+ }
1128
+ };
1129
+ o.exports = r;
1130
+ })(Et)), Et.exports;
1131
+ }
1132
+ var Xt;
1133
+ function _e() {
1134
+ return Xt || (Xt = 1, (function(o) {
1135
+ const r = V(), i = Me(), n = Te(), t = ve(), e = Le(), s = ue(), a = $(), u = De();
1136
+ function c(d) {
1137
+ return unescape(encodeURIComponent(d)).length;
1138
+ }
1139
+ function m(d, f, g) {
1140
+ const l = [];
1141
+ let P;
1142
+ for (; (P = d.exec(g)) !== null; )
1143
+ l.push({
1144
+ data: P[0],
1145
+ index: P.index,
1146
+ mode: f,
1147
+ length: P[0].length
1148
+ });
1149
+ return l;
1150
+ }
1151
+ function A(d) {
1152
+ const f = m(s.NUMERIC, r.NUMERIC, d), g = m(s.ALPHANUMERIC, r.ALPHANUMERIC, d);
1153
+ let l, P;
1154
+ return a.isKanjiModeEnabled() ? (l = m(s.BYTE, r.BYTE, d), P = m(s.KANJI, r.KANJI, d)) : (l = m(s.BYTE_KANJI, r.BYTE, d), P = []), f.concat(g, l, P).sort(function(N, R) {
1155
+ return N.index - R.index;
1156
+ }).map(function(N) {
1157
+ return {
1158
+ data: N.data,
1159
+ mode: N.mode,
1160
+ length: N.length
1161
+ };
1162
+ });
1163
+ }
1164
+ function C(d, f) {
1165
+ switch (f) {
1166
+ case r.NUMERIC:
1167
+ return i.getBitsLength(d);
1168
+ case r.ALPHANUMERIC:
1169
+ return n.getBitsLength(d);
1170
+ case r.KANJI:
1171
+ return e.getBitsLength(d);
1172
+ case r.BYTE:
1173
+ return t.getBitsLength(d);
1174
+ }
1175
+ }
1176
+ function h(d) {
1177
+ return d.reduce(function(f, g) {
1178
+ const l = f.length - 1 >= 0 ? f[f.length - 1] : null;
1179
+ return l && l.mode === g.mode ? (f[f.length - 1].data += g.data, f) : (f.push(g), f);
1180
+ }, []);
1181
+ }
1182
+ function S(d) {
1183
+ const f = [];
1184
+ for (let g = 0; g < d.length; g++) {
1185
+ const l = d[g];
1186
+ switch (l.mode) {
1187
+ case r.NUMERIC:
1188
+ f.push([
1189
+ l,
1190
+ { data: l.data, mode: r.ALPHANUMERIC, length: l.length },
1191
+ { data: l.data, mode: r.BYTE, length: l.length }
1192
+ ]);
1193
+ break;
1194
+ case r.ALPHANUMERIC:
1195
+ f.push([
1196
+ l,
1197
+ { data: l.data, mode: r.BYTE, length: l.length }
1198
+ ]);
1199
+ break;
1200
+ case r.KANJI:
1201
+ f.push([
1202
+ l,
1203
+ { data: l.data, mode: r.BYTE, length: c(l.data) }
1204
+ ]);
1205
+ break;
1206
+ case r.BYTE:
1207
+ f.push([
1208
+ { data: l.data, mode: r.BYTE, length: c(l.data) }
1209
+ ]);
1210
+ }
1211
+ }
1212
+ return f;
1213
+ }
1214
+ function w(d, f) {
1215
+ const g = {}, l = { start: {} };
1216
+ let P = ["start"];
1217
+ for (let y = 0; y < d.length; y++) {
1218
+ const N = d[y], R = [];
1219
+ for (let p = 0; p < N.length; p++) {
1220
+ const M = N[p], E = "" + y + p;
1221
+ R.push(E), g[E] = { node: M, lastCount: 0 }, l[E] = {};
1222
+ for (let b = 0; b < P.length; b++) {
1223
+ const B = P[b];
1224
+ g[B] && g[B].node.mode === M.mode ? (l[B][E] = C(g[B].lastCount + M.length, M.mode) - C(g[B].lastCount, M.mode), g[B].lastCount += M.length) : (g[B] && (g[B].lastCount = M.length), l[B][E] = C(M.length, M.mode) + 4 + r.getCharCountIndicator(M.mode, f));
1225
+ }
1226
+ }
1227
+ P = R;
1228
+ }
1229
+ for (let y = 0; y < P.length; y++)
1230
+ l[P[y]].end = 0;
1231
+ return { map: l, table: g };
1232
+ }
1233
+ function I(d, f) {
1234
+ let g;
1235
+ const l = r.getBestModeForData(d);
1236
+ if (g = r.from(f, l), g !== r.BYTE && g.bit < l.bit)
1237
+ throw new Error('"' + d + '" cannot be encoded with mode ' + r.toString(g) + `.
1238
+ Suggested mode is: ` + r.toString(l));
1239
+ switch (g === r.KANJI && !a.isKanjiModeEnabled() && (g = r.BYTE), g) {
1240
+ case r.NUMERIC:
1241
+ return new i(d);
1242
+ case r.ALPHANUMERIC:
1243
+ return new n(d);
1244
+ case r.KANJI:
1245
+ return new e(d);
1246
+ case r.BYTE:
1247
+ return new t(d);
1248
+ }
1249
+ }
1250
+ o.fromArray = function(f) {
1251
+ return f.reduce(function(g, l) {
1252
+ return typeof l == "string" ? g.push(I(l, null)) : l.data && g.push(I(l.data, l.mode)), g;
1253
+ }, []);
1254
+ }, o.fromString = function(f, g) {
1255
+ const l = A(f, a.isKanjiModeEnabled()), P = S(l), y = w(P, g), N = u.find_path(y.map, "start", "end"), R = [];
1256
+ for (let p = 1; p < N.length - 1; p++)
1257
+ R.push(y.table[N[p]].node);
1258
+ return o.fromArray(h(R));
1259
+ }, o.rawSplit = function(f) {
1260
+ return o.fromArray(
1261
+ A(f, a.isKanjiModeEnabled())
1262
+ );
1263
+ };
1264
+ })(gt)), gt;
1265
+ }
1266
+ var Zt;
1267
+ function qe() {
1268
+ if (Zt) return et;
1269
+ Zt = 1;
1270
+ const o = $(), r = Nt(), i = ye(), n = Ce(), t = Ee(), e = Be(), s = Re(), a = ie(), u = Ne(), c = be(), m = Se(), A = V(), C = _e();
1271
+ function h(y, N) {
1272
+ const R = y.size, p = e.getPositions(N);
1273
+ for (let M = 0; M < p.length; M++) {
1274
+ const E = p[M][0], b = p[M][1];
1275
+ for (let B = -1; B <= 7; B++)
1276
+ if (!(E + B <= -1 || R <= E + B))
1277
+ for (let T = -1; T <= 7; T++)
1278
+ b + T <= -1 || R <= b + T || (B >= 0 && B <= 6 && (T === 0 || T === 6) || T >= 0 && T <= 6 && (B === 0 || B === 6) || B >= 2 && B <= 4 && T >= 2 && T <= 4 ? y.set(E + B, b + T, !0, !0) : y.set(E + B, b + T, !1, !0));
1279
+ }
1280
+ }
1281
+ function S(y) {
1282
+ const N = y.size;
1283
+ for (let R = 8; R < N - 8; R++) {
1284
+ const p = R % 2 === 0;
1285
+ y.set(R, 6, p, !0), y.set(6, R, p, !0);
1286
+ }
1287
+ }
1288
+ function w(y, N) {
1289
+ const R = t.getPositions(N);
1290
+ for (let p = 0; p < R.length; p++) {
1291
+ const M = R[p][0], E = R[p][1];
1292
+ for (let b = -2; b <= 2; b++)
1293
+ for (let B = -2; B <= 2; B++)
1294
+ b === -2 || b === 2 || B === -2 || B === 2 || b === 0 && B === 0 ? y.set(M + b, E + B, !0, !0) : y.set(M + b, E + B, !1, !0);
1295
+ }
1296
+ }
1297
+ function I(y, N) {
1298
+ const R = y.size, p = c.getEncodedBits(N);
1299
+ let M, E, b;
1300
+ for (let B = 0; B < 18; B++)
1301
+ M = Math.floor(B / 3), E = B % 3 + R - 8 - 3, b = (p >> B & 1) === 1, y.set(M, E, b, !0), y.set(E, M, b, !0);
1302
+ }
1303
+ function d(y, N, R) {
1304
+ const p = y.size, M = m.getEncodedBits(N, R);
1305
+ let E, b;
1306
+ for (E = 0; E < 15; E++)
1307
+ b = (M >> E & 1) === 1, E < 6 ? y.set(E, 8, b, !0) : E < 8 ? y.set(E + 1, 8, b, !0) : y.set(p - 15 + E, 8, b, !0), E < 8 ? y.set(8, p - E - 1, b, !0) : E < 9 ? y.set(8, 15 - E - 1 + 1, b, !0) : y.set(8, 15 - E - 1, b, !0);
1308
+ y.set(p - 8, 8, 1, !0);
1309
+ }
1310
+ function f(y, N) {
1311
+ const R = y.size;
1312
+ let p = -1, M = R - 1, E = 7, b = 0;
1313
+ for (let B = R - 1; B > 0; B -= 2)
1314
+ for (B === 6 && B--; ; ) {
1315
+ for (let T = 0; T < 2; T++)
1316
+ if (!y.isReserved(M, B - T)) {
1317
+ let F = !1;
1318
+ b < N.length && (F = (N[b] >>> E & 1) === 1), y.set(M, B - T, F), E--, E === -1 && (b++, E = 7);
1319
+ }
1320
+ if (M += p, M < 0 || R <= M) {
1321
+ M -= p, p = -p;
1322
+ break;
1323
+ }
1324
+ }
1325
+ }
1326
+ function g(y, N, R) {
1327
+ const p = new i();
1328
+ R.forEach(function(T) {
1329
+ p.put(T.mode.bit, 4), p.put(T.getLength(), A.getCharCountIndicator(T.mode, y)), T.write(p);
1330
+ });
1331
+ const M = o.getSymbolTotalCodewords(y), E = a.getTotalCodewordsCount(y, N), b = (M - E) * 8;
1332
+ for (p.getLengthInBits() + 4 <= b && p.put(0, 4); p.getLengthInBits() % 8 !== 0; )
1333
+ p.putBit(0);
1334
+ const B = (b - p.getLengthInBits()) / 8;
1335
+ for (let T = 0; T < B; T++)
1336
+ p.put(T % 2 ? 17 : 236, 8);
1337
+ return l(p, y, N);
1338
+ }
1339
+ function l(y, N, R) {
1340
+ const p = o.getSymbolTotalCodewords(N), M = a.getTotalCodewordsCount(N, R), E = p - M, b = a.getBlocksCount(N, R), B = p % b, T = b - B, F = Math.floor(p / b), H = Math.floor(E / b), ce = H + 1, bt = F - H, le = new u(bt);
1341
+ let G = 0;
1342
+ const Y = new Array(b), St = new Array(b);
1343
+ let W = 0;
1344
+ const fe = new Uint8Array(y.buffer);
1345
+ for (let O = 0; O < b; O++) {
1346
+ const Z = O < T ? H : ce;
1347
+ Y[O] = fe.slice(G, G + Z), St[O] = le.encode(Y[O]), G += Z, W = Math.max(W, Z);
1348
+ }
1349
+ const X = new Uint8Array(p);
1350
+ let Mt = 0, D, _;
1351
+ for (D = 0; D < W; D++)
1352
+ for (_ = 0; _ < b; _++)
1353
+ D < Y[_].length && (X[Mt++] = Y[_][D]);
1354
+ for (D = 0; D < bt; D++)
1355
+ for (_ = 0; _ < b; _++)
1356
+ X[Mt++] = St[_][D];
1357
+ return X;
1358
+ }
1359
+ function P(y, N, R, p) {
1360
+ let M;
1361
+ if (Array.isArray(y))
1362
+ M = C.fromArray(y);
1363
+ else if (typeof y == "string") {
1364
+ let F = N;
1365
+ if (!F) {
1366
+ const H = C.rawSplit(y);
1367
+ F = c.getBestVersionForData(H, R);
1368
+ }
1369
+ M = C.fromString(y, F || 40);
1370
+ } else
1371
+ throw new Error("Invalid data");
1372
+ const E = c.getBestVersionForData(M, R);
1373
+ if (!E)
1374
+ throw new Error("The amount of data is too big to be stored in a QR Code");
1375
+ if (!N)
1376
+ N = E;
1377
+ else if (N < E)
1378
+ throw new Error(
1379
+ `
1380
+ The chosen QR Code version cannot contain this amount of data.
1381
+ Minimum version required to store current data is: ` + E + `.
1382
+ `
1383
+ );
1384
+ const b = g(N, R, M), B = o.getSymbolSize(N), T = new n(B);
1385
+ return h(T, N), S(T), w(T, N), d(T, R, 0), N >= 7 && I(T, N), f(T, b), isNaN(p) && (p = s.getBestMask(
1386
+ T,
1387
+ d.bind(null, T, R)
1388
+ )), s.applyMask(p, T), d(T, R, p), {
1389
+ modules: T,
1390
+ version: N,
1391
+ errorCorrectionLevel: R,
1392
+ maskPattern: p,
1393
+ segments: M
1394
+ };
1395
+ }
1396
+ return et.create = function(N, R) {
1397
+ if (typeof N > "u" || N === "")
1398
+ throw new Error("No input text");
1399
+ let p = r.M, M, E;
1400
+ return typeof R < "u" && (p = r.from(R.errorCorrectionLevel, r.M), M = c.from(R.version), E = s.from(R.maskPattern), R.toSJISFunc && o.setToSJISFunction(R.toSJISFunc)), P(N, M, p, E);
1401
+ }, et;
1402
+ }
1403
+ var Bt = {}, Rt = {}, te;
1404
+ function ae() {
1405
+ return te || (te = 1, (function(o) {
1406
+ function r(i) {
1407
+ if (typeof i == "number" && (i = i.toString()), typeof i != "string")
1408
+ throw new Error("Color should be defined as hex string");
1409
+ let n = i.slice().replace("#", "").split("");
1410
+ if (n.length < 3 || n.length === 5 || n.length > 8)
1411
+ throw new Error("Invalid hex color: " + i);
1412
+ (n.length === 3 || n.length === 4) && (n = Array.prototype.concat.apply([], n.map(function(e) {
1413
+ return [e, e];
1414
+ }))), n.length === 6 && n.push("F", "F");
1415
+ const t = parseInt(n.join(""), 16);
1416
+ return {
1417
+ r: t >> 24 & 255,
1418
+ g: t >> 16 & 255,
1419
+ b: t >> 8 & 255,
1420
+ a: t & 255,
1421
+ hex: "#" + n.slice(0, 6).join("")
1422
+ };
1423
+ }
1424
+ o.getOptions = function(n) {
1425
+ n || (n = {}), n.color || (n.color = {});
1426
+ const t = typeof n.margin > "u" || n.margin === null || n.margin < 0 ? 4 : n.margin, e = n.width && n.width >= 21 ? n.width : void 0, s = n.scale || 4;
1427
+ return {
1428
+ width: e,
1429
+ scale: e ? 4 : s,
1430
+ margin: t,
1431
+ color: {
1432
+ dark: r(n.color.dark || "#000000ff"),
1433
+ light: r(n.color.light || "#ffffffff")
1434
+ },
1435
+ type: n.type,
1436
+ rendererOpts: n.rendererOpts || {}
1437
+ };
1438
+ }, o.getScale = function(n, t) {
1439
+ return t.width && t.width >= n + t.margin * 2 ? t.width / (n + t.margin * 2) : t.scale;
1440
+ }, o.getImageWidth = function(n, t) {
1441
+ const e = o.getScale(n, t);
1442
+ return Math.floor((n + t.margin * 2) * e);
1443
+ }, o.qrToImageData = function(n, t, e) {
1444
+ const s = t.modules.size, a = t.modules.data, u = o.getScale(s, e), c = Math.floor((s + e.margin * 2) * u), m = e.margin * u, A = [e.color.light, e.color.dark];
1445
+ for (let C = 0; C < c; C++)
1446
+ for (let h = 0; h < c; h++) {
1447
+ let S = (C * c + h) * 4, w = e.color.light;
1448
+ if (C >= m && h >= m && C < c - m && h < c - m) {
1449
+ const I = Math.floor((C - m) / u), d = Math.floor((h - m) / u);
1450
+ w = A[a[I * s + d] ? 1 : 0];
1451
+ }
1452
+ n[S++] = w.r, n[S++] = w.g, n[S++] = w.b, n[S] = w.a;
1453
+ }
1454
+ };
1455
+ })(Rt)), Rt;
1456
+ }
1457
+ var ee;
1458
+ function Ue() {
1459
+ return ee || (ee = 1, (function(o) {
1460
+ const r = ae();
1461
+ function i(t, e, s) {
1462
+ t.clearRect(0, 0, e.width, e.height), e.style || (e.style = {}), e.height = s, e.width = s, e.style.height = s + "px", e.style.width = s + "px";
1463
+ }
1464
+ function n() {
1465
+ try {
1466
+ return document.createElement("canvas");
1467
+ } catch {
1468
+ throw new Error("You need to specify a canvas element");
1469
+ }
1470
+ }
1471
+ o.render = function(e, s, a) {
1472
+ let u = a, c = s;
1473
+ typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), s || (c = n()), u = r.getOptions(u);
1474
+ const m = r.getImageWidth(e.modules.size, u), A = c.getContext("2d"), C = A.createImageData(m, m);
1475
+ return r.qrToImageData(C.data, e, u), i(A, c, m), A.putImageData(C, 0, 0), c;
1476
+ }, o.renderToDataURL = function(e, s, a) {
1477
+ let u = a;
1478
+ typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), u || (u = {});
1479
+ const c = o.render(e, s, u), m = u.type || "image/png", A = u.rendererOpts || {};
1480
+ return c.toDataURL(m, A.quality);
1481
+ };
1482
+ })(Bt)), Bt;
1483
+ }
1484
+ var At = {}, ne;
1485
+ function Fe() {
1486
+ if (ne) return At;
1487
+ ne = 1;
1488
+ const o = ae();
1489
+ function r(t, e) {
1490
+ const s = t.a / 255, a = e + '="' + t.hex + '"';
1491
+ return s < 1 ? a + " " + e + '-opacity="' + s.toFixed(2).slice(1) + '"' : a;
1492
+ }
1493
+ function i(t, e, s) {
1494
+ let a = t + e;
1495
+ return typeof s < "u" && (a += " " + s), a;
1496
+ }
1497
+ function n(t, e, s) {
1498
+ let a = "", u = 0, c = !1, m = 0;
1499
+ for (let A = 0; A < t.length; A++) {
1500
+ const C = Math.floor(A % e), h = Math.floor(A / e);
1501
+ !C && !c && (c = !0), t[A] ? (m++, A > 0 && C > 0 && t[A - 1] || (a += c ? i("M", C + s, 0.5 + h + s) : i("m", u, 0), u = 0, c = !1), C + 1 < e && t[A + 1] || (a += i("h", m), m = 0)) : u++;
1502
+ }
1503
+ return a;
1504
+ }
1505
+ return At.render = function(e, s, a) {
1506
+ const u = o.getOptions(s), c = e.modules.size, m = e.modules.data, A = c + u.margin * 2, C = u.color.light.a ? "<path " + r(u.color.light, "fill") + ' d="M0 0h' + A + "v" + A + 'H0z"/>' : "", h = "<path " + r(u.color.dark, "stroke") + ' d="' + n(m, c, u.margin) + '"/>', S = 'viewBox="0 0 ' + A + " " + A + '"', I = '<svg xmlns="http://www.w3.org/2000/svg" ' + (u.width ? 'width="' + u.width + '" height="' + u.width + '" ' : "") + S + ' shape-rendering="crispEdges">' + C + h + `</svg>
1507
+ `;
1508
+ return typeof a == "function" && a(null, I), I;
1509
+ }, At;
1510
+ }
1511
+ var re;
1512
+ function ke() {
1513
+ if (re) return K;
1514
+ re = 1;
1515
+ const o = pe(), r = qe(), i = Ue(), n = Fe();
1516
+ function t(e, s, a, u, c) {
1517
+ const m = [].slice.call(arguments, 1), A = m.length, C = typeof m[A - 1] == "function";
1518
+ if (!C && !o())
1519
+ throw new Error("Callback required as last argument");
1520
+ if (C) {
1521
+ if (A < 2)
1522
+ throw new Error("Too few arguments provided");
1523
+ A === 2 ? (c = a, a = s, s = u = void 0) : A === 3 && (s.getContext && typeof c > "u" ? (c = u, u = void 0) : (c = u, u = a, a = s, s = void 0));
1524
+ } else {
1525
+ if (A < 1)
1526
+ throw new Error("Too few arguments provided");
1527
+ return A === 1 ? (a = s, s = u = void 0) : A === 2 && !s.getContext && (u = a, a = s, s = void 0), new Promise(function(h, S) {
1528
+ try {
1529
+ const w = r.create(a, u);
1530
+ h(e(w, s, u));
1531
+ } catch (w) {
1532
+ S(w);
1533
+ }
1534
+ });
1535
+ }
1536
+ try {
1537
+ const h = r.create(a, u);
1538
+ c(null, e(h, s, u));
1539
+ } catch (h) {
1540
+ c(h);
1541
+ }
1542
+ }
1543
+ return K.create = r.create, K.toCanvas = t.bind(null, i.render), K.toDataURL = t.bind(null, i.renderToDataURL), K.toString = t.bind(null, function(e, s, a) {
1544
+ return n.render(e, a);
1545
+ }), K;
1546
+ }
1547
+ var ze = ke();
1548
+ const $e = /* @__PURE__ */ de(ze), Ve = 0.1, oe = 2.5, q = 7;
1549
+ function It(o, r, i) {
1550
+ return o === r ? !1 : (o - r < 0 ? r - o : o - r) <= i + Ve;
1551
+ }
1552
+ function Oe(o, r) {
1553
+ const i = Array.prototype.slice.call($e.create(o, { errorCorrectionLevel: r }).modules.data, 0), n = Math.sqrt(i.length);
1554
+ return i.reduce((t, e, s) => (s % n === 0 ? t.push([e]) : t[t.length - 1].push(e)) && t, []);
1555
+ }
1556
+ const Ke = {
1557
+ generate({ uri: o, size: r, logoSize: i, dotColor: n = "#141414" }) {
1558
+ const t = "transparent", s = [], a = Oe(o, "Q"), u = r / a.length, c = [
1559
+ { x: 0, y: 0 },
1560
+ { x: 1, y: 0 },
1561
+ { x: 0, y: 1 }
1562
+ ];
1563
+ c.forEach(({ x: w, y: I }) => {
1564
+ const d = (a.length - q) * u * w, f = (a.length - q) * u * I, g = 0.45;
1565
+ for (let l = 0; l < c.length; l += 1) {
1566
+ const P = u * (q - l * 2);
1567
+ s.push(x`
1568
+ <rect
1569
+ fill=${l === 2 ? n : t}
1570
+ width=${l === 0 ? P - 5 : P}
1571
+ rx= ${l === 0 ? (P - 5) * g : P * g}
1572
+ ry= ${l === 0 ? (P - 5) * g : P * g}
1573
+ stroke=${n}
1574
+ stroke-width=${l === 0 ? 5 : 0}
1575
+ height=${l === 0 ? P - 5 : P}
1576
+ x= ${l === 0 ? f + u * l + 5 / 2 : f + u * l}
1577
+ y= ${l === 0 ? d + u * l + 5 / 2 : d + u * l}
1578
+ />
1579
+ `);
1580
+ }
1581
+ });
1582
+ const m = Math.floor((i + 25) / u), A = a.length / 2 - m / 2, C = a.length / 2 + m / 2 - 1, h = [];
1583
+ a.forEach((w, I) => {
1584
+ w.forEach((d, f) => {
1585
+ if (a[I][f] && !(I < q && f < q || I > a.length - (q + 1) && f < q || I < q && f > a.length - (q + 1)) && !(I > A && I < C && f > A && f < C)) {
1586
+ const g = I * u + u / 2, l = f * u + u / 2;
1587
+ h.push([g, l]);
1588
+ }
1589
+ });
1590
+ });
1591
+ const S = {};
1592
+ return h.forEach(([w, I]) => {
1593
+ var d;
1594
+ S[w] ? (d = S[w]) == null || d.push(I) : S[w] = [I];
1595
+ }), Object.entries(S).map(([w, I]) => {
1596
+ const d = I.filter((f) => I.every((g) => !It(f, g, u)));
1597
+ return [Number(w), d];
1598
+ }).forEach(([w, I]) => {
1599
+ I.forEach((d) => {
1600
+ s.push(x`<circle cx=${w} cy=${d} fill=${n} r=${u / oe} />`);
1601
+ });
1602
+ }), Object.entries(S).filter(([w, I]) => I.length > 1).map(([w, I]) => {
1603
+ const d = I.filter((f) => I.some((g) => It(f, g, u)));
1604
+ return [Number(w), d];
1605
+ }).map(([w, I]) => {
1606
+ I.sort((f, g) => f < g ? -1 : 1);
1607
+ const d = [];
1608
+ for (const f of I) {
1609
+ const g = d.find((l) => l.some((P) => It(f, P, u)));
1610
+ g ? g.push(f) : d.push([f]);
1611
+ }
1612
+ return [w, d.map((f) => [f[0], f[f.length - 1]])];
1613
+ }).forEach(([w, I]) => {
1614
+ I.forEach(([d, f]) => {
1615
+ s.push(x`
1616
+ <line
1617
+ x1=${w}
1618
+ x2=${w}
1619
+ y1=${d}
1620
+ y2=${f}
1621
+ stroke=${n}
1622
+ stroke-width=${u / (oe / 2)}
1623
+ stroke-linecap="round"
1624
+ />
1625
+ `);
1626
+ });
1627
+ }), s;
1628
+ }
1629
+ }, He = he`
1630
+ :host {
1631
+ position: relative;
1632
+ user-select: none;
1633
+ display: block;
1634
+ overflow: hidden;
1635
+ aspect-ratio: 1 / 1;
1636
+ width: var(--local-size);
1637
+ }
1638
+
1639
+ :host([data-theme='dark']) {
1640
+ border-radius: clamp(0px, var(--wui-border-radius-l), 40px);
1641
+ background-color: var(--wui-color-inverse-100);
1642
+ padding: var(--wui-spacing-l);
1643
+ }
1644
+
1645
+ :host([data-theme='light']) {
1646
+ box-shadow: 0 0 0 1px var(--wui-color-bg-125);
1647
+ background-color: var(--wui-color-bg-125);
1648
+ }
1649
+
1650
+ :host([data-clear='true']) > wui-icon {
1651
+ display: none;
1652
+ }
1653
+
1654
+ svg:first-child,
1655
+ wui-image,
1656
+ wui-icon {
1657
+ position: absolute;
1658
+ top: 50%;
1659
+ left: 50%;
1660
+ transform: translateY(-50%) translateX(-50%);
1661
+ }
1662
+
1663
+ wui-image {
1664
+ width: 25%;
1665
+ height: 25%;
1666
+ border-radius: var(--wui-border-radius-xs);
1667
+ }
1668
+
1669
+ wui-icon {
1670
+ width: 100%;
1671
+ height: 100%;
1672
+ color: var(--local-icon-color) !important;
1673
+ transform: translateY(-50%) translateX(-50%) scale(0.25);
1674
+ }
1675
+ `;
1676
+ var U = function(o, r, i, n) {
1677
+ var t = arguments.length, e = t < 3 ? r : n === null ? n = Object.getOwnPropertyDescriptor(r, i) : n, s;
1678
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, r, i, n);
1679
+ else for (var a = o.length - 1; a >= 0; a--) (s = o[a]) && (e = (t < 3 ? s(e) : t > 3 ? s(r, i, e) : s(r, i)) || e);
1680
+ return t > 3 && e && Object.defineProperty(r, i, e), e;
1681
+ };
1682
+ const Je = "#3396ff";
1683
+ let v = class extends me {
1684
+ constructor() {
1685
+ super(...arguments), this.uri = "", this.size = 0, this.theme = "dark", this.imageSrc = void 0, this.alt = void 0, this.arenaClear = void 0, this.farcaster = void 0;
1686
+ }
1687
+ render() {
1688
+ return this.dataset.theme = this.theme, this.dataset.clear = String(this.arenaClear), this.style.cssText = `
1689
+ --local-size: ${this.size}px;
1690
+ --local-icon-color: ${this.color ?? Je}
1691
+ `, j`${this.templateVisual()} ${this.templateSvg()}`;
1692
+ }
1693
+ templateSvg() {
1694
+ const r = this.theme === "light" ? this.size : this.size - 32;
1695
+ return x`
1696
+ <svg height=${r} width=${r}>
1697
+ ${Ke.generate({
1698
+ uri: this.uri,
1699
+ size: r,
1700
+ logoSize: this.arenaClear ? 0 : r / 4,
1701
+ dotColor: this.color
1702
+ })}
1703
+ </svg>
1704
+ `;
1705
+ }
1706
+ templateVisual() {
1707
+ return this.imageSrc ? j`<wui-image src=${this.imageSrc} alt=${this.alt ?? "logo"}></wui-image>` : this.farcaster ? j`<wui-icon
1708
+ class="farcaster"
1709
+ size="inherit"
1710
+ color="inherit"
1711
+ name="farcaster"
1712
+ ></wui-icon>` : j`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`;
1713
+ }
1714
+ };
1715
+ v.styles = [ge, He];
1716
+ U([
1717
+ z()
1718
+ ], v.prototype, "uri", void 0);
1719
+ U([
1720
+ z({ type: Number })
1721
+ ], v.prototype, "size", void 0);
1722
+ U([
1723
+ z()
1724
+ ], v.prototype, "theme", void 0);
1725
+ U([
1726
+ z()
1727
+ ], v.prototype, "imageSrc", void 0);
1728
+ U([
1729
+ z()
1730
+ ], v.prototype, "alt", void 0);
1731
+ U([
1732
+ z()
1733
+ ], v.prototype, "color", void 0);
1734
+ U([
1735
+ z({ type: Boolean })
1736
+ ], v.prototype, "arenaClear", void 0);
1737
+ U([
1738
+ z({ type: Boolean })
1739
+ ], v.prototype, "farcaster", void 0);
1740
+ v = U([
1741
+ we("wui-qr-code")
1742
+ ], v);