@wecom/wecom-openclaw-cli 1.0.15 → 1.0.16

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 (210) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/alignment-pattern.js +6 -0
  4. package/dist/_virtual/alignment-pattern.js.map +1 -0
  5. package/dist/_virtual/bitmapper.js +6 -0
  6. package/dist/_virtual/bitmapper.js.map +1 -0
  7. package/dist/_virtual/browser.js +6 -0
  8. package/dist/_virtual/browser.js.map +1 -0
  9. package/dist/_virtual/canvas.js +6 -0
  10. package/dist/_virtual/canvas.js.map +1 -0
  11. package/dist/_virtual/chunkstream.js +6 -0
  12. package/dist/_virtual/chunkstream.js.map +1 -0
  13. package/dist/_virtual/crc.js +6 -0
  14. package/dist/_virtual/crc.js.map +1 -0
  15. package/dist/_virtual/dijkstra.js +6 -0
  16. package/dist/_virtual/dijkstra.js.map +1 -0
  17. package/dist/_virtual/error-correction-code.js +6 -0
  18. package/dist/_virtual/error-correction-code.js.map +1 -0
  19. package/dist/_virtual/error-correction-level.js +6 -0
  20. package/dist/_virtual/error-correction-level.js.map +1 -0
  21. package/dist/_virtual/filter-parse-async.js +6 -0
  22. package/dist/_virtual/filter-parse-async.js.map +1 -0
  23. package/dist/_virtual/filter-parse-sync.js +6 -0
  24. package/dist/_virtual/filter-parse-sync.js.map +1 -0
  25. package/dist/_virtual/filter-parse.js +6 -0
  26. package/dist/_virtual/filter-parse.js.map +1 -0
  27. package/dist/_virtual/finder-pattern.js +6 -0
  28. package/dist/_virtual/finder-pattern.js.map +1 -0
  29. package/dist/_virtual/format-info.js +6 -0
  30. package/dist/_virtual/format-info.js.map +1 -0
  31. package/dist/_virtual/galois-field.js +6 -0
  32. package/dist/_virtual/galois-field.js.map +1 -0
  33. package/dist/_virtual/index.js +10 -0
  34. package/dist/_virtual/index.js.map +1 -0
  35. package/dist/_virtual/interlace.js +6 -0
  36. package/dist/_virtual/interlace.js.map +1 -0
  37. package/dist/_virtual/mask-pattern.js +6 -0
  38. package/dist/_virtual/mask-pattern.js.map +1 -0
  39. package/dist/_virtual/mode.js +6 -0
  40. package/dist/_virtual/mode.js.map +1 -0
  41. package/dist/_virtual/packer-async.js +6 -0
  42. package/dist/_virtual/packer-async.js.map +1 -0
  43. package/dist/_virtual/packer.js +6 -0
  44. package/dist/_virtual/packer.js.map +1 -0
  45. package/dist/_virtual/parser-async.js +6 -0
  46. package/dist/_virtual/parser-async.js.map +1 -0
  47. package/dist/_virtual/parser.js +6 -0
  48. package/dist/_virtual/parser.js.map +1 -0
  49. package/dist/_virtual/png-sync.js +6 -0
  50. package/dist/_virtual/png-sync.js.map +1 -0
  51. package/dist/_virtual/png.js +6 -0
  52. package/dist/_virtual/png.js.map +1 -0
  53. package/dist/_virtual/png2.js +6 -0
  54. package/dist/_virtual/png2.js.map +1 -0
  55. package/dist/_virtual/polynomial.js +6 -0
  56. package/dist/_virtual/polynomial.js.map +1 -0
  57. package/dist/_virtual/qrcode.js +6 -0
  58. package/dist/_virtual/qrcode.js.map +1 -0
  59. package/dist/_virtual/regex.js +6 -0
  60. package/dist/_virtual/regex.js.map +1 -0
  61. package/dist/_virtual/segments.js +6 -0
  62. package/dist/_virtual/segments.js.map +1 -0
  63. package/dist/_virtual/server.js +6 -0
  64. package/dist/_virtual/server.js.map +1 -0
  65. package/dist/_virtual/svg-tag.js +6 -0
  66. package/dist/_virtual/svg-tag.js.map +1 -0
  67. package/dist/_virtual/svg.js +6 -0
  68. package/dist/_virtual/svg.js.map +1 -0
  69. package/dist/_virtual/sync-inflate.js +6 -0
  70. package/dist/_virtual/sync-inflate.js.map +1 -0
  71. package/dist/_virtual/sync-reader.js +6 -0
  72. package/dist/_virtual/sync-reader.js.map +1 -0
  73. package/dist/_virtual/terminal-small.js +6 -0
  74. package/dist/_virtual/terminal-small.js.map +1 -0
  75. package/dist/_virtual/terminal.js +6 -0
  76. package/dist/_virtual/terminal.js.map +1 -0
  77. package/dist/_virtual/terminal2.js +6 -0
  78. package/dist/_virtual/terminal2.js.map +1 -0
  79. package/dist/_virtual/utf8.js +6 -0
  80. package/dist/_virtual/utf8.js.map +1 -0
  81. package/dist/_virtual/utils.js +6 -0
  82. package/dist/_virtual/utils.js.map +1 -0
  83. package/dist/_virtual/utils2.js +6 -0
  84. package/dist/_virtual/utils2.js.map +1 -0
  85. package/dist/_virtual/version-check.js +6 -0
  86. package/dist/_virtual/version-check.js.map +1 -0
  87. package/dist/_virtual/version.js +6 -0
  88. package/dist/_virtual/version.js.map +1 -0
  89. package/dist/node_modules/dijkstrajs/dijkstra.js +179 -0
  90. package/dist/node_modules/dijkstrajs/dijkstra.js.map +1 -0
  91. package/dist/node_modules/pngjs/lib/bitmapper.js +281 -0
  92. package/dist/node_modules/pngjs/lib/bitmapper.js.map +1 -0
  93. package/dist/node_modules/pngjs/lib/bitpacker.js +172 -0
  94. package/dist/node_modules/pngjs/lib/bitpacker.js.map +1 -0
  95. package/dist/node_modules/pngjs/lib/chunkstream.js +204 -0
  96. package/dist/node_modules/pngjs/lib/chunkstream.js.map +1 -0
  97. package/dist/node_modules/pngjs/lib/constants.js +44 -0
  98. package/dist/node_modules/pngjs/lib/constants.js.map +1 -0
  99. package/dist/node_modules/pngjs/lib/crc.js +53 -0
  100. package/dist/node_modules/pngjs/lib/crc.js.map +1 -0
  101. package/dist/node_modules/pngjs/lib/filter-pack.js +185 -0
  102. package/dist/node_modules/pngjs/lib/filter-pack.js.map +1 -0
  103. package/dist/node_modules/pngjs/lib/filter-parse-async.js +40 -0
  104. package/dist/node_modules/pngjs/lib/filter-parse-async.js.map +1 -0
  105. package/dist/node_modules/pngjs/lib/filter-parse-sync.js +36 -0
  106. package/dist/node_modules/pngjs/lib/filter-parse-sync.js.map +1 -0
  107. package/dist/node_modules/pngjs/lib/filter-parse.js +192 -0
  108. package/dist/node_modules/pngjs/lib/filter-parse.js.map +1 -0
  109. package/dist/node_modules/pngjs/lib/format-normaliser.js +105 -0
  110. package/dist/node_modules/pngjs/lib/format-normaliser.js.map +1 -0
  111. package/dist/node_modules/pngjs/lib/interlace.js +108 -0
  112. package/dist/node_modules/pngjs/lib/interlace.js.map +1 -0
  113. package/dist/node_modules/pngjs/lib/packer-async.js +67 -0
  114. package/dist/node_modules/pngjs/lib/packer-async.js.map +1 -0
  115. package/dist/node_modules/pngjs/lib/packer-sync.js +72 -0
  116. package/dist/node_modules/pngjs/lib/packer-sync.js.map +1 -0
  117. package/dist/node_modules/pngjs/lib/packer.js +147 -0
  118. package/dist/node_modules/pngjs/lib/packer.js.map +1 -0
  119. package/dist/node_modules/pngjs/lib/paeth-predictor.js +28 -0
  120. package/dist/node_modules/pngjs/lib/paeth-predictor.js.map +1 -0
  121. package/dist/node_modules/pngjs/lib/parser-async.js +185 -0
  122. package/dist/node_modules/pngjs/lib/parser-async.js.map +1 -0
  123. package/dist/node_modules/pngjs/lib/parser-sync.js +128 -0
  124. package/dist/node_modules/pngjs/lib/parser-sync.js.map +1 -0
  125. package/dist/node_modules/pngjs/lib/parser.js +305 -0
  126. package/dist/node_modules/pngjs/lib/parser.js.map +1 -0
  127. package/dist/node_modules/pngjs/lib/png-sync.js +27 -0
  128. package/dist/node_modules/pngjs/lib/png-sync.js.map +1 -0
  129. package/dist/node_modules/pngjs/lib/png.js +212 -0
  130. package/dist/node_modules/pngjs/lib/png.js.map +1 -0
  131. package/dist/node_modules/pngjs/lib/sync-inflate.js +184 -0
  132. package/dist/node_modules/pngjs/lib/sync-inflate.js.map +1 -0
  133. package/dist/node_modules/pngjs/lib/sync-reader.js +58 -0
  134. package/dist/node_modules/pngjs/lib/sync-reader.js.map +1 -0
  135. package/dist/node_modules/qrcode/lib/browser.js +93 -0
  136. package/dist/node_modules/qrcode/lib/browser.js.map +1 -0
  137. package/dist/node_modules/qrcode/lib/can-promise.js +20 -0
  138. package/dist/node_modules/qrcode/lib/can-promise.js.map +1 -0
  139. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +100 -0
  140. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js.map +1 -0
  141. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +74 -0
  142. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js.map +1 -0
  143. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +50 -0
  144. package/dist/node_modules/qrcode/lib/core/bit-buffer.js.map +1 -0
  145. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +79 -0
  146. package/dist/node_modules/qrcode/lib/core/bit-matrix.js.map +1 -0
  147. package/dist/node_modules/qrcode/lib/core/byte-data.js +45 -0
  148. package/dist/node_modules/qrcode/lib/core/byte-data.js.map +1 -0
  149. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +150 -0
  150. package/dist/node_modules/qrcode/lib/core/error-correction-code.js.map +1 -0
  151. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +66 -0
  152. package/dist/node_modules/qrcode/lib/core/error-correction-level.js.map +1 -0
  153. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +37 -0
  154. package/dist/node_modules/qrcode/lib/core/finder-pattern.js.map +1 -0
  155. package/dist/node_modules/qrcode/lib/core/format-info.js +44 -0
  156. package/dist/node_modules/qrcode/lib/core/format-info.js.map +1 -0
  157. package/dist/node_modules/qrcode/lib/core/galois-field.js +83 -0
  158. package/dist/node_modules/qrcode/lib/core/galois-field.js.map +1 -0
  159. package/dist/node_modules/qrcode/lib/core/kanji-data.js +70 -0
  160. package/dist/node_modules/qrcode/lib/core/kanji-data.js.map +1 -0
  161. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +251 -0
  162. package/dist/node_modules/qrcode/lib/core/mask-pattern.js.map +1 -0
  163. package/dist/node_modules/qrcode/lib/core/mode.js +185 -0
  164. package/dist/node_modules/qrcode/lib/core/mode.js.map +1 -0
  165. package/dist/node_modules/qrcode/lib/core/numeric-data.js +58 -0
  166. package/dist/node_modules/qrcode/lib/core/numeric-data.js.map +1 -0
  167. package/dist/node_modules/qrcode/lib/core/polynomial.js +79 -0
  168. package/dist/node_modules/qrcode/lib/core/polynomial.js.map +1 -0
  169. package/dist/node_modules/qrcode/lib/core/qrcode.js +522 -0
  170. package/dist/node_modules/qrcode/lib/core/qrcode.js.map +1 -0
  171. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +71 -0
  172. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js.map +1 -0
  173. package/dist/node_modules/qrcode/lib/core/regex.js +45 -0
  174. package/dist/node_modules/qrcode/lib/core/regex.js.map +1 -0
  175. package/dist/node_modules/qrcode/lib/core/segments.js +354 -0
  176. package/dist/node_modules/qrcode/lib/core/segments.js.map +1 -0
  177. package/dist/node_modules/qrcode/lib/core/utils.js +77 -0
  178. package/dist/node_modules/qrcode/lib/core/utils.js.map +1 -0
  179. package/dist/node_modules/qrcode/lib/core/version-check.js +24 -0
  180. package/dist/node_modules/qrcode/lib/core/version-check.js.map +1 -0
  181. package/dist/node_modules/qrcode/lib/core/version.js +184 -0
  182. package/dist/node_modules/qrcode/lib/core/version.js.map +1 -0
  183. package/dist/node_modules/qrcode/lib/index.js +27 -0
  184. package/dist/node_modules/qrcode/lib/index.js.map +1 -0
  185. package/dist/node_modules/qrcode/lib/renderer/canvas.js +80 -0
  186. package/dist/node_modules/qrcode/lib/renderer/canvas.js.map +1 -0
  187. package/dist/node_modules/qrcode/lib/renderer/png.js +97 -0
  188. package/dist/node_modules/qrcode/lib/renderer/png.js.map +1 -0
  189. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +96 -0
  190. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js.map +1 -0
  191. package/dist/node_modules/qrcode/lib/renderer/svg.js +37 -0
  192. package/dist/node_modules/qrcode/lib/renderer/svg.js.map +1 -0
  193. package/dist/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +99 -0
  194. package/dist/node_modules/qrcode/lib/renderer/terminal/terminal-small.js.map +1 -0
  195. package/dist/node_modules/qrcode/lib/renderer/terminal/terminal.js +63 -0
  196. package/dist/node_modules/qrcode/lib/renderer/terminal/terminal.js.map +1 -0
  197. package/dist/node_modules/qrcode/lib/renderer/terminal.js +25 -0
  198. package/dist/node_modules/qrcode/lib/renderer/terminal.js.map +1 -0
  199. package/dist/node_modules/qrcode/lib/renderer/utf8.js +89 -0
  200. package/dist/node_modules/qrcode/lib/renderer/utf8.js.map +1 -0
  201. package/dist/node_modules/qrcode/lib/renderer/utils.js +115 -0
  202. package/dist/node_modules/qrcode/lib/renderer/utils.js.map +1 -0
  203. package/dist/node_modules/qrcode/lib/server.js +159 -0
  204. package/dist/node_modules/qrcode/lib/server.js.map +1 -0
  205. package/dist/package.json.js +3 -2
  206. package/dist/package.json.js.map +1 -1
  207. package/dist/utils/qrcode.d.ts.map +1 -1
  208. package/dist/utils/qrcode.js +5 -9
  209. package/dist/utils/qrcode.js.map +1 -1
  210. package/package.json +3 -2
@@ -0,0 +1,79 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Helper class to handle QR Code symbol modules
5
+ *
6
+ * @param {Number} size Symbol size
7
+ */
8
+
9
+ var bitMatrix;
10
+ var hasRequiredBitMatrix;
11
+
12
+ function requireBitMatrix () {
13
+ if (hasRequiredBitMatrix) return bitMatrix;
14
+ hasRequiredBitMatrix = 1;
15
+ function BitMatrix (size) {
16
+ if (!size || size < 1) {
17
+ throw new Error('BitMatrix size must be defined and greater than 0')
18
+ }
19
+
20
+ this.size = size;
21
+ this.data = new Uint8Array(size * size);
22
+ this.reservedBit = new Uint8Array(size * size);
23
+ }
24
+
25
+ /**
26
+ * Set bit value at specified location
27
+ * If reserved flag is set, this bit will be ignored during masking process
28
+ *
29
+ * @param {Number} row
30
+ * @param {Number} col
31
+ * @param {Boolean} value
32
+ * @param {Boolean} reserved
33
+ */
34
+ BitMatrix.prototype.set = function (row, col, value, reserved) {
35
+ const index = row * this.size + col;
36
+ this.data[index] = value;
37
+ if (reserved) this.reservedBit[index] = true;
38
+ };
39
+
40
+ /**
41
+ * Returns bit value at specified location
42
+ *
43
+ * @param {Number} row
44
+ * @param {Number} col
45
+ * @return {Boolean}
46
+ */
47
+ BitMatrix.prototype.get = function (row, col) {
48
+ return this.data[row * this.size + col]
49
+ };
50
+
51
+ /**
52
+ * Applies xor operator at specified location
53
+ * (used during masking process)
54
+ *
55
+ * @param {Number} row
56
+ * @param {Number} col
57
+ * @param {Boolean} value
58
+ */
59
+ BitMatrix.prototype.xor = function (row, col, value) {
60
+ this.data[row * this.size + col] ^= value;
61
+ };
62
+
63
+ /**
64
+ * Check if bit at specified location is reserved
65
+ *
66
+ * @param {Number} row
67
+ * @param {Number} col
68
+ * @return {Boolean}
69
+ */
70
+ BitMatrix.prototype.isReserved = function (row, col) {
71
+ return this.reservedBit[row * this.size + col]
72
+ };
73
+
74
+ bitMatrix = BitMatrix;
75
+ return bitMatrix;
76
+ }
77
+
78
+ exports.__require = requireBitMatrix;
79
+ //# sourceMappingURL=bit-matrix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bit-matrix.js","sources":["../../../../../node_modules/qrcode/lib/core/bit-matrix.js"],"sourcesContent":["/**\n * Helper class to handle QR Code symbol modules\n *\n * @param {Number} size Symbol size\n */\nfunction BitMatrix (size) {\n if (!size || size < 1) {\n throw new Error('BitMatrix size must be defined and greater than 0')\n }\n\n this.size = size\n this.data = new Uint8Array(size * size)\n this.reservedBit = new Uint8Array(size * size)\n}\n\n/**\n * Set bit value at specified location\n * If reserved flag is set, this bit will be ignored during masking process\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n * @param {Boolean} reserved\n */\nBitMatrix.prototype.set = function (row, col, value, reserved) {\n const index = row * this.size + col\n this.data[index] = value\n if (reserved) this.reservedBit[index] = true\n}\n\n/**\n * Returns bit value at specified location\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.get = function (row, col) {\n return this.data[row * this.size + col]\n}\n\n/**\n * Applies xor operator at specified location\n * (used during masking process)\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n */\nBitMatrix.prototype.xor = function (row, col, value) {\n this.data[row * this.size + col] ^= value\n}\n\n/**\n * Check if bit at specified location is reserved\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.isReserved = function (row, col) {\n return this.reservedBit[row * this.size + col]\n}\n\nmodule.exports = BitMatrix\n"],"names":[],"mappings":";;;;;;;;;;;;;;CAKA,SAAS,SAAS,EAAE,IAAI,EAAE;AAC1B,GAAE,IAAI,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,EAAE;AACzB,KAAI,MAAM,IAAI,KAAK,CAAC,mDAAmD;AACvE,GAAA;;GAEE,IAAI,CAAC,IAAI,GAAG;GACZ,IAAI,CAAC,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI,GAAG,IAAI;GACtC,IAAI,CAAC,WAAW,GAAG,IAAI,UAAU,CAAC,IAAI,GAAG,IAAI;AAC/C,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,UAAU,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;GAC7D,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,GAAG;AAClC,GAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG;GACnB,IAAI,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG;AAC1C,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,UAAU,GAAG,EAAE,GAAG,EAAE;GAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG;AACxC,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,UAAU,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE;AACrD,GAAE,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI;AACtC,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,CAAC,SAAS,CAAC,UAAU,GAAG,UAAU,GAAG,EAAE,GAAG,EAAE;GACnD,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG;AAC/C,CAAA;;AAEA,CAAA,SAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ var mode = require('./mode.js');
4
+
5
+ var byteData;
6
+ var hasRequiredByteData;
7
+
8
+ function requireByteData () {
9
+ if (hasRequiredByteData) return byteData;
10
+ hasRequiredByteData = 1;
11
+ const Mode = mode.__require();
12
+
13
+ function ByteData (data) {
14
+ this.mode = Mode.BYTE;
15
+ if (typeof (data) === 'string') {
16
+ this.data = new TextEncoder().encode(data);
17
+ } else {
18
+ this.data = new Uint8Array(data);
19
+ }
20
+ }
21
+
22
+ ByteData.getBitsLength = function getBitsLength (length) {
23
+ return length * 8
24
+ };
25
+
26
+ ByteData.prototype.getLength = function getLength () {
27
+ return this.data.length
28
+ };
29
+
30
+ ByteData.prototype.getBitsLength = function getBitsLength () {
31
+ return ByteData.getBitsLength(this.data.length)
32
+ };
33
+
34
+ ByteData.prototype.write = function (bitBuffer) {
35
+ for (let i = 0, l = this.data.length; i < l; i++) {
36
+ bitBuffer.put(this.data[i], 8);
37
+ }
38
+ };
39
+
40
+ byteData = ByteData;
41
+ return byteData;
42
+ }
43
+
44
+ exports.__require = requireByteData;
45
+ //# sourceMappingURL=byte-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"byte-data.js","sources":["../../../../../node_modules/qrcode/lib/core/byte-data.js"],"sourcesContent":["const Mode = require('./mode')\n\nfunction ByteData (data) {\n this.mode = Mode.BYTE\n if (typeof (data) === 'string') {\n this.data = new TextEncoder().encode(data)\n } else {\n this.data = new Uint8Array(data)\n }\n}\n\nByteData.getBitsLength = function getBitsLength (length) {\n return length * 8\n}\n\nByteData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nByteData.prototype.getBitsLength = function getBitsLength () {\n return ByteData.getBitsLength(this.data.length)\n}\n\nByteData.prototype.write = function (bitBuffer) {\n for (let i = 0, l = this.data.length; i < l; i++) {\n bitBuffer.put(this.data[i], 8)\n }\n}\n\nmodule.exports = ByteData\n"],"names":["require$$0"],"mappings":";;;;;;;;;;AAAA,CAAA,MAAM,IAAI,GAAGA,cAAA;;CAEb,SAAS,QAAQ,EAAE,IAAI,EAAE;AACzB,GAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACnB,GAAE,IAAI,QAAQ,IAAI,CAAC,KAAK,QAAQ,EAAE;KAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI;AAC7C,GAAA,CAAG,MAAM;AACT,KAAI,IAAI,CAAC,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI;AACnC,GAAA;AACA,CAAA;;AAEA,CAAA,QAAQ,CAAC,aAAa,GAAG,SAAS,aAAa,EAAE,MAAM,EAAE;GACvD,OAAO,MAAM,GAAG;AAClB,CAAA;;AAEA,CAAA,QAAQ,CAAC,SAAS,CAAC,SAAS,GAAG,SAAS,SAAS,IAAI;AACrD,GAAE,OAAO,IAAI,CAAC,IAAI,CAAC;AACnB,CAAA;;AAEA,CAAA,QAAQ,CAAC,SAAS,CAAC,aAAa,GAAG,SAAS,aAAa,IAAI;GAC3D,OAAO,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;AAChD,CAAA;;AAEA,CAAA,QAAQ,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,SAAS,EAAE;GAC9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;KAChD,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACjC,GAAA;AACA,CAAA;;AAEA,CAAA,QAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,150 @@
1
+ 'use strict';
2
+
3
+ var errorCorrectionCode = require('../../../../_virtual/error-correction-code.js');
4
+ var errorCorrectionLevel = require('./error-correction-level.js');
5
+
6
+ var hasRequiredErrorCorrectionCode;
7
+
8
+ function requireErrorCorrectionCode () {
9
+ if (hasRequiredErrorCorrectionCode) return errorCorrectionCode.__exports;
10
+ hasRequiredErrorCorrectionCode = 1;
11
+ const ECLevel = errorCorrectionLevel.__require();
12
+
13
+ const EC_BLOCKS_TABLE = [
14
+ // L M Q H
15
+ 1, 1, 1, 1,
16
+ 1, 1, 1, 1,
17
+ 1, 1, 2, 2,
18
+ 1, 2, 2, 4,
19
+ 1, 2, 4, 4,
20
+ 2, 4, 4, 4,
21
+ 2, 4, 6, 5,
22
+ 2, 4, 6, 6,
23
+ 2, 5, 8, 8,
24
+ 4, 5, 8, 8,
25
+ 4, 5, 8, 11,
26
+ 4, 8, 10, 11,
27
+ 4, 9, 12, 16,
28
+ 4, 9, 16, 16,
29
+ 6, 10, 12, 18,
30
+ 6, 10, 17, 16,
31
+ 6, 11, 16, 19,
32
+ 6, 13, 18, 21,
33
+ 7, 14, 21, 25,
34
+ 8, 16, 20, 25,
35
+ 8, 17, 23, 25,
36
+ 9, 17, 23, 34,
37
+ 9, 18, 25, 30,
38
+ 10, 20, 27, 32,
39
+ 12, 21, 29, 35,
40
+ 12, 23, 34, 37,
41
+ 12, 25, 34, 40,
42
+ 13, 26, 35, 42,
43
+ 14, 28, 38, 45,
44
+ 15, 29, 40, 48,
45
+ 16, 31, 43, 51,
46
+ 17, 33, 45, 54,
47
+ 18, 35, 48, 57,
48
+ 19, 37, 51, 60,
49
+ 19, 38, 53, 63,
50
+ 20, 40, 56, 66,
51
+ 21, 43, 59, 70,
52
+ 22, 45, 62, 74,
53
+ 24, 47, 65, 77,
54
+ 25, 49, 68, 81
55
+ ];
56
+
57
+ const EC_CODEWORDS_TABLE = [
58
+ // L M Q H
59
+ 7, 10, 13, 17,
60
+ 10, 16, 22, 28,
61
+ 15, 26, 36, 44,
62
+ 20, 36, 52, 64,
63
+ 26, 48, 72, 88,
64
+ 36, 64, 96, 112,
65
+ 40, 72, 108, 130,
66
+ 48, 88, 132, 156,
67
+ 60, 110, 160, 192,
68
+ 72, 130, 192, 224,
69
+ 80, 150, 224, 264,
70
+ 96, 176, 260, 308,
71
+ 104, 198, 288, 352,
72
+ 120, 216, 320, 384,
73
+ 132, 240, 360, 432,
74
+ 144, 280, 408, 480,
75
+ 168, 308, 448, 532,
76
+ 180, 338, 504, 588,
77
+ 196, 364, 546, 650,
78
+ 224, 416, 600, 700,
79
+ 224, 442, 644, 750,
80
+ 252, 476, 690, 816,
81
+ 270, 504, 750, 900,
82
+ 300, 560, 810, 960,
83
+ 312, 588, 870, 1050,
84
+ 336, 644, 952, 1110,
85
+ 360, 700, 1020, 1200,
86
+ 390, 728, 1050, 1260,
87
+ 420, 784, 1140, 1350,
88
+ 450, 812, 1200, 1440,
89
+ 480, 868, 1290, 1530,
90
+ 510, 924, 1350, 1620,
91
+ 540, 980, 1440, 1710,
92
+ 570, 1036, 1530, 1800,
93
+ 570, 1064, 1590, 1890,
94
+ 600, 1120, 1680, 1980,
95
+ 630, 1204, 1770, 2100,
96
+ 660, 1260, 1860, 2220,
97
+ 720, 1316, 1950, 2310,
98
+ 750, 1372, 2040, 2430
99
+ ];
100
+
101
+ /**
102
+ * Returns the number of error correction block that the QR Code should contain
103
+ * for the specified version and error correction level.
104
+ *
105
+ * @param {Number} version QR Code version
106
+ * @param {Number} errorCorrectionLevel Error correction level
107
+ * @return {Number} Number of error correction blocks
108
+ */
109
+ errorCorrectionCode.__exports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {
110
+ switch (errorCorrectionLevel) {
111
+ case ECLevel.L:
112
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]
113
+ case ECLevel.M:
114
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]
115
+ case ECLevel.Q:
116
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]
117
+ case ECLevel.H:
118
+ return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]
119
+ default:
120
+ return undefined
121
+ }
122
+ };
123
+
124
+ /**
125
+ * Returns the number of error correction codewords to use for the specified
126
+ * version and error correction level.
127
+ *
128
+ * @param {Number} version QR Code version
129
+ * @param {Number} errorCorrectionLevel Error correction level
130
+ * @return {Number} Number of error correction codewords
131
+ */
132
+ errorCorrectionCode.__exports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {
133
+ switch (errorCorrectionLevel) {
134
+ case ECLevel.L:
135
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]
136
+ case ECLevel.M:
137
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]
138
+ case ECLevel.Q:
139
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]
140
+ case ECLevel.H:
141
+ return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]
142
+ default:
143
+ return undefined
144
+ }
145
+ };
146
+ return errorCorrectionCode.__exports;
147
+ }
148
+
149
+ exports.__require = requireErrorCorrectionCode;
150
+ //# sourceMappingURL=error-correction-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-correction-code.js","sources":["../../../../../node_modules/qrcode/lib/core/error-correction-code.js"],"sourcesContent":["const ECLevel = require('./error-correction-level')\r\n\r\nconst EC_BLOCKS_TABLE = [\r\n// L M Q H\r\n 1, 1, 1, 1,\r\n 1, 1, 1, 1,\r\n 1, 1, 2, 2,\r\n 1, 2, 2, 4,\r\n 1, 2, 4, 4,\r\n 2, 4, 4, 4,\r\n 2, 4, 6, 5,\r\n 2, 4, 6, 6,\r\n 2, 5, 8, 8,\r\n 4, 5, 8, 8,\r\n 4, 5, 8, 11,\r\n 4, 8, 10, 11,\r\n 4, 9, 12, 16,\r\n 4, 9, 16, 16,\r\n 6, 10, 12, 18,\r\n 6, 10, 17, 16,\r\n 6, 11, 16, 19,\r\n 6, 13, 18, 21,\r\n 7, 14, 21, 25,\r\n 8, 16, 20, 25,\r\n 8, 17, 23, 25,\r\n 9, 17, 23, 34,\r\n 9, 18, 25, 30,\r\n 10, 20, 27, 32,\r\n 12, 21, 29, 35,\r\n 12, 23, 34, 37,\r\n 12, 25, 34, 40,\r\n 13, 26, 35, 42,\r\n 14, 28, 38, 45,\r\n 15, 29, 40, 48,\r\n 16, 31, 43, 51,\r\n 17, 33, 45, 54,\r\n 18, 35, 48, 57,\r\n 19, 37, 51, 60,\r\n 19, 38, 53, 63,\r\n 20, 40, 56, 66,\r\n 21, 43, 59, 70,\r\n 22, 45, 62, 74,\r\n 24, 47, 65, 77,\r\n 25, 49, 68, 81\r\n]\r\n\r\nconst EC_CODEWORDS_TABLE = [\r\n// L M Q H\r\n 7, 10, 13, 17,\r\n 10, 16, 22, 28,\r\n 15, 26, 36, 44,\r\n 20, 36, 52, 64,\r\n 26, 48, 72, 88,\r\n 36, 64, 96, 112,\r\n 40, 72, 108, 130,\r\n 48, 88, 132, 156,\r\n 60, 110, 160, 192,\r\n 72, 130, 192, 224,\r\n 80, 150, 224, 264,\r\n 96, 176, 260, 308,\r\n 104, 198, 288, 352,\r\n 120, 216, 320, 384,\r\n 132, 240, 360, 432,\r\n 144, 280, 408, 480,\r\n 168, 308, 448, 532,\r\n 180, 338, 504, 588,\r\n 196, 364, 546, 650,\r\n 224, 416, 600, 700,\r\n 224, 442, 644, 750,\r\n 252, 476, 690, 816,\r\n 270, 504, 750, 900,\r\n 300, 560, 810, 960,\r\n 312, 588, 870, 1050,\r\n 336, 644, 952, 1110,\r\n 360, 700, 1020, 1200,\r\n 390, 728, 1050, 1260,\r\n 420, 784, 1140, 1350,\r\n 450, 812, 1200, 1440,\r\n 480, 868, 1290, 1530,\r\n 510, 924, 1350, 1620,\r\n 540, 980, 1440, 1710,\r\n 570, 1036, 1530, 1800,\r\n 570, 1064, 1590, 1890,\r\n 600, 1120, 1680, 1980,\r\n 630, 1204, 1770, 2100,\r\n 660, 1260, 1860, 2220,\r\n 720, 1316, 1950, 2310,\r\n 750, 1372, 2040, 2430\r\n]\r\n\r\n/**\r\n * Returns the number of error correction block that the QR Code should contain\r\n * for the specified version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction blocks\r\n */\r\nexports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]\r\n case ECLevel.H:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]\r\n default:\r\n return undefined\r\n }\r\n}\r\n\r\n/**\r\n * Returns the number of error correction codewords to use for the specified\r\n * version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction codewords\r\n */\r\nexports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]\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I,CAAC,GAAG,CAAC,CAAC;KAC/C,KAAK,OAAO,CAAC,CAAC;OACZ,OAAO,eAAe,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC/C,KAAK,OAAO,CAAC,CAAC;OACZ,OAAO,eAAe,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC/C;AACJ,OAAM,OAAO,SAAS;IACnB;CACH,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAAA,6BAAA,CAAA,sBAA8B,GAAG,SAAS,sBAAsB,EAAE,OAAO,EAAE,oBAAoB,EAAE;AACjG,GAAE,QAAQ,oBAAoB;KAC1B,KAAK,OAAO,CAAC,CAAC;OACZ,OAAO,kBAAkB,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAClD,KAAK,OAAO,CAAC,CAAC;OACZ,OAAO,kBAAkB,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAClD,KAAK,OAAO,CAAC,CAAC;OACZ,OAAO,kBAAkB,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAClD,KAAK,OAAO,CAAC,CAAC;OACZ,OAAO,kBAAkB,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAClD;AACJ,OAAM,OAAO,SAAS;IACnB;AACH,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+
3
+ var errorCorrectionLevel = require('../../../../_virtual/error-correction-level.js');
4
+
5
+ var hasRequiredErrorCorrectionLevel;
6
+
7
+ function requireErrorCorrectionLevel () {
8
+ if (hasRequiredErrorCorrectionLevel) return errorCorrectionLevel.__exports;
9
+ hasRequiredErrorCorrectionLevel = 1;
10
+ (function (exports$1) {
11
+ exports$1.L = { bit: 1 };
12
+ exports$1.M = { bit: 0 };
13
+ exports$1.Q = { bit: 3 };
14
+ exports$1.H = { bit: 2 };
15
+
16
+ function fromString (string) {
17
+ if (typeof string !== 'string') {
18
+ throw new Error('Param is not a string')
19
+ }
20
+
21
+ const lcStr = string.toLowerCase();
22
+
23
+ switch (lcStr) {
24
+ case 'l':
25
+ case 'low':
26
+ return exports$1.L
27
+
28
+ case 'm':
29
+ case 'medium':
30
+ return exports$1.M
31
+
32
+ case 'q':
33
+ case 'quartile':
34
+ return exports$1.Q
35
+
36
+ case 'h':
37
+ case 'high':
38
+ return exports$1.H
39
+
40
+ default:
41
+ throw new Error('Unknown EC Level: ' + string)
42
+ }
43
+ }
44
+
45
+ exports$1.isValid = function isValid (level) {
46
+ return level && typeof level.bit !== 'undefined' &&
47
+ level.bit >= 0 && level.bit < 4
48
+ };
49
+
50
+ exports$1.from = function from (value, defaultValue) {
51
+ if (exports$1.isValid(value)) {
52
+ return value
53
+ }
54
+
55
+ try {
56
+ return fromString(value)
57
+ } catch (e) {
58
+ return defaultValue
59
+ }
60
+ };
61
+ } (errorCorrectionLevel.__exports));
62
+ return errorCorrectionLevel.__exports;
63
+ }
64
+
65
+ exports.__require = requireErrorCorrectionLevel;
66
+ //# sourceMappingURL=error-correction-level.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-correction-level.js","sources":["../../../../../node_modules/qrcode/lib/core/error-correction-level.js"],"sourcesContent":["exports.L = { bit: 1 }\nexports.M = { bit: 0 }\nexports.Q = { bit: 3 }\nexports.H = { bit: 2 }\n\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'l':\n case 'low':\n return exports.L\n\n case 'm':\n case 'medium':\n return exports.M\n\n case 'q':\n case 'quartile':\n return exports.Q\n\n case 'h':\n case 'high':\n return exports.H\n\n default:\n throw new Error('Unknown EC Level: ' + string)\n }\n}\n\nexports.isValid = function isValid (level) {\n return level && typeof level.bit !== 'undefined' &&\n level.bit >= 0 && level.bit < 4\n}\n\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n"],"names":["exports"],"mappings":";;;;;;;;;;EAAAA,SAAA,CAAA,CAAA,GAAY,EAAE,GAAG,EAAE,CAAC;EACpBA,SAAA,CAAA,CAAA,GAAY,EAAE,GAAG,EAAE,CAAC;EACpBA,SAAA,CAAA,CAAA,GAAY,EAAE,GAAG,EAAE,CAAC;EACpBA,SAAA,CAAA,CAAA,GAAY,EAAE,GAAG,EAAE,CAAC;;EAEpB,SAAS,UAAU,EAAE,MAAM,EAAE;AAC7B,IAAE,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;AAClC,MAAI,MAAM,IAAI,KAAK,CAAC,uBAAuB;AAC3C,IAAA;;AAEA,IAAE,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW;;AAElC,IAAE,QAAQ,KAAK;AACf,MAAI,KAAK,GAAG;AACZ,MAAI,KAAK,KAAK;QACR,OAAOA,SAAO,CAAC;;AAErB,MAAI,KAAK,GAAG;AACZ,MAAI,KAAK,QAAQ;QACX,OAAOA,SAAO,CAAC;;AAErB,MAAI,KAAK,GAAG;AACZ,MAAI,KAAK,UAAU;QACb,OAAOA,SAAO,CAAC;;AAErB,MAAI,KAAK,GAAG;AACZ,MAAI,KAAK,MAAM;QACT,OAAOA,SAAO,CAAC;;MAEjB;AACJ,QAAM,MAAM,IAAI,KAAK,CAAC,oBAAoB,GAAG,MAAM;AACnD;AACA,EAAA;;AAEA,EAAAA,SAAA,CAAA,OAAA,GAAkB,SAAS,OAAO,EAAE,KAAK,EAAE;IACzC,OAAO,KAAK,IAAI,OAAO,KAAK,CAAC,GAAG,KAAK,WAAW;MAC9C,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,KAAK,CAAC,GAAG,GAAG;AAClC,EAAA;;AAEA,EAAAA,SAAA,CAAA,IAAA,GAAe,SAAS,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE;AACnD,IAAE,IAAIA,SAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AAC9B,MAAI,OAAO;AACX,IAAA;;AAEA,IAAE,IAAI;MACF,OAAO,UAAU,CAAC,KAAK;IAC3B,CAAG,CAAC,OAAO,CAAC,EAAE;AACd,MAAI,OAAO;AACX,IAAA;AACA,EAAA,EAAA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ var finderPattern = require('../../../../_virtual/finder-pattern.js');
4
+ var utils = require('./utils.js');
5
+
6
+ var hasRequiredFinderPattern;
7
+
8
+ function requireFinderPattern () {
9
+ if (hasRequiredFinderPattern) return finderPattern.__exports;
10
+ hasRequiredFinderPattern = 1;
11
+ const getSymbolSize = utils.__require().getSymbolSize;
12
+ const FINDER_PATTERN_SIZE = 7;
13
+
14
+ /**
15
+ * Returns an array containing the positions of each finder pattern.
16
+ * Each array's element represent the top-left point of the pattern as (x, y) coordinates
17
+ *
18
+ * @param {Number} version QR Code version
19
+ * @return {Array} Array of coordinates
20
+ */
21
+ finderPattern.__exports.getPositions = function getPositions (version) {
22
+ const size = getSymbolSize(version);
23
+
24
+ return [
25
+ // top-left
26
+ [0, 0],
27
+ // top-right
28
+ [size - FINDER_PATTERN_SIZE, 0],
29
+ // bottom-left
30
+ [0, size - FINDER_PATTERN_SIZE]
31
+ ]
32
+ };
33
+ return finderPattern.__exports;
34
+ }
35
+
36
+ exports.__require = requireFinderPattern;
37
+ //# sourceMappingURL=finder-pattern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finder-pattern.js","sources":["../../../../../node_modules/qrcode/lib/core/finder-pattern.js"],"sourcesContent":["const getSymbolSize = require('./utils').getSymbolSize\nconst FINDER_PATTERN_SIZE = 7\n\n/**\n * Returns an array containing the positions of each finder pattern.\n * Each array's element represent the top-left point of the pattern as (x, y) coordinates\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const size = getSymbolSize(version)\n\n return [\n // top-left\n [0, 0],\n // top-right\n [size - FINDER_PATTERN_SIZE, 0],\n // bottom-left\n [0, size - FINDER_PATTERN_SIZE]\n ]\n}\n"],"names":["require$$0","finderPattern"],"mappings":";;;;;;;;;;CAAA,MAAM,aAAa,GAAGA,eAAA,EAAkB,CAAC;AACzC,CAAA,MAAM,mBAAmB,GAAG;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAAC,uBAAA,CAAA,YAAoB,GAAG,SAAS,YAAY,EAAE,OAAO,EAAE;AACvD,GAAE,MAAM,IAAI,GAAG,aAAa,CAAC,OAAO;;AAEpC,GAAE,OAAO;AACT;AACA,KAAI,CAAC,CAAC,EAAE,CAAC,CAAC;AACV;AACA,KAAI,CAAC,IAAI,GAAG,mBAAmB,EAAE,CAAC,CAAC;AACnC;AACA,KAAI,CAAC,CAAC,EAAE,IAAI,GAAG,mBAAmB;AAClC;AACA,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ var formatInfo = require('../../../../_virtual/format-info.js');
4
+ var utils = require('./utils.js');
5
+
6
+ var hasRequiredFormatInfo;
7
+
8
+ function requireFormatInfo () {
9
+ if (hasRequiredFormatInfo) return formatInfo.__exports;
10
+ hasRequiredFormatInfo = 1;
11
+ const Utils = utils.__require();
12
+
13
+ const G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);
14
+ const G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);
15
+ const G15_BCH = Utils.getBCHDigit(G15);
16
+
17
+ /**
18
+ * Returns format information with relative error correction bits
19
+ *
20
+ * The format information is a 15-bit sequence containing 5 data bits,
21
+ * with 10 error correction bits calculated using the (15, 5) BCH code.
22
+ *
23
+ * @param {Number} errorCorrectionLevel Error correction level
24
+ * @param {Number} mask Mask pattern
25
+ * @return {Number} Encoded format information bits
26
+ */
27
+ formatInfo.__exports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {
28
+ const data = ((errorCorrectionLevel.bit << 3) | mask);
29
+ let d = data << 10;
30
+
31
+ while (Utils.getBCHDigit(d) - G15_BCH >= 0) {
32
+ d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH));
33
+ }
34
+
35
+ // xor final data with mask pattern in order to ensure that
36
+ // no combination of Error Correction Level and data mask pattern
37
+ // will result in an all-zero data string
38
+ return ((data << 10) | d) ^ G15_MASK
39
+ };
40
+ return formatInfo.__exports;
41
+ }
42
+
43
+ exports.__require = requireFormatInfo;
44
+ //# sourceMappingURL=format-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-info.js","sources":["../../../../../node_modules/qrcode/lib/core/format-info.js"],"sourcesContent":["const Utils = require('./utils')\n\nconst G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)\nconst G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)\nconst G15_BCH = Utils.getBCHDigit(G15)\n\n/**\n * Returns format information with relative error correction bits\n *\n * The format information is a 15-bit sequence containing 5 data bits,\n * with 10 error correction bits calculated using the (15, 5) BCH code.\n *\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Number} mask Mask pattern\n * @return {Number} Encoded format information bits\n */\nexports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {\n const data = ((errorCorrectionLevel.bit << 3) | mask)\n let d = data << 10\n\n while (Utils.getBCHDigit(d) - G15_BCH >= 0) {\n d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))\n }\n\n // xor final data with mask pattern in order to ensure that\n // no combination of Error Correction Level and data mask pattern\n // will result in an all-zero data string\n return ((data << 10) | d) ^ G15_MASK\n}\n"],"names":["require$$0","formatInfo"],"mappings":";;;;;;;;;;AAAA,CAAA,MAAM,KAAK,GAAGA,eAAA;;AAEd,CAAA,MAAM,GAAG,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;CACtF,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACvE,CAAA,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAAC,oBAAA,CAAA,cAAsB,GAAG,SAAS,cAAc,EAAE,oBAAoB,EAAE,IAAI,EAAE;GAC5E,MAAM,IAAI,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI;AACtD,GAAE,IAAI,CAAC,GAAG,IAAI,IAAI;;GAEhB,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,EAAE;AAC9C,KAAI,CAAC,KAAK,GAAG,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;AACjD,GAAA;;AAEA;AACA;AACA;GACE,OAAO,CAAC,CAAC,IAAI,IAAI,EAAE,IAAI,CAAC,IAAI;AAC9B,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,83 @@
1
+ 'use strict';
2
+
3
+ var galoisField = require('../../../../_virtual/galois-field.js');
4
+
5
+ var hasRequiredGaloisField;
6
+
7
+ function requireGaloisField () {
8
+ if (hasRequiredGaloisField) return galoisField.__exports;
9
+ hasRequiredGaloisField = 1;
10
+ const EXP_TABLE = new Uint8Array(512);
11
+ const LOG_TABLE = new Uint8Array(256)
12
+ /**
13
+ * Precompute the log and anti-log tables for faster computation later
14
+ *
15
+ * For each possible value in the galois field 2^8, we will pre-compute
16
+ * the logarithm and anti-logarithm (exponential) of this value
17
+ *
18
+ * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}
19
+ */
20
+ ;(function initTables () {
21
+ let x = 1;
22
+ for (let i = 0; i < 255; i++) {
23
+ EXP_TABLE[i] = x;
24
+ LOG_TABLE[x] = i;
25
+
26
+ x <<= 1; // multiply by 2
27
+
28
+ // The QR code specification says to use byte-wise modulo 100011101 arithmetic.
29
+ // This means that when a number is 256 or larger, it should be XORed with 0x11D.
30
+ if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)
31
+ x ^= 0x11D;
32
+ }
33
+ }
34
+
35
+ // Optimization: double the size of the anti-log table so that we don't need to mod 255 to
36
+ // stay inside the bounds (because we will mainly use this table for the multiplication of
37
+ // two GF numbers, no more).
38
+ // @see {@link mul}
39
+ for (let i = 255; i < 512; i++) {
40
+ EXP_TABLE[i] = EXP_TABLE[i - 255];
41
+ }
42
+ }());
43
+
44
+ /**
45
+ * Returns log value of n inside Galois Field
46
+ *
47
+ * @param {Number} n
48
+ * @return {Number}
49
+ */
50
+ galoisField.__exports.log = function log (n) {
51
+ if (n < 1) throw new Error('log(' + n + ')')
52
+ return LOG_TABLE[n]
53
+ };
54
+
55
+ /**
56
+ * Returns anti-log value of n inside Galois Field
57
+ *
58
+ * @param {Number} n
59
+ * @return {Number}
60
+ */
61
+ galoisField.__exports.exp = function exp (n) {
62
+ return EXP_TABLE[n]
63
+ };
64
+
65
+ /**
66
+ * Multiplies two number inside Galois Field
67
+ *
68
+ * @param {Number} x
69
+ * @param {Number} y
70
+ * @return {Number}
71
+ */
72
+ galoisField.__exports.mul = function mul (x, y) {
73
+ if (x === 0 || y === 0) return 0
74
+
75
+ // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized
76
+ // @see {@link initTables}
77
+ return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]
78
+ };
79
+ return galoisField.__exports;
80
+ }
81
+
82
+ exports.__require = requireGaloisField;
83
+ //# sourceMappingURL=galois-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"galois-field.js","sources":["../../../../../node_modules/qrcode/lib/core/galois-field.js"],"sourcesContent":["const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n"],"names":["galoisField"],"mappings":";;;;;;;;;AAAA,CAAA,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,GAAG;AACpC,CAAA,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,GAAG;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACC,CAAC,SAAS,UAAU,IAAI;GACvB,IAAI,CAAC,GAAG;AACV,GAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;AAChC,KAAI,SAAS,CAAC,CAAC,CAAC,GAAG;AACnB,KAAI,SAAS,CAAC,CAAC,CAAC,GAAG;;KAEf,CAAC,KAAK,EAAC;;AAEX;AACA;AACA,KAAI,IAAI,CAAC,GAAG,KAAK,EAAE;AACnB,OAAM,CAAC,IAAI;AACX,KAAA;AACA,GAAA;;AAEA;AACA;AACA;AACA;AACA,GAAE,KAAK,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;KAC9B,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,GAAG;AACpC,GAAA;AACA,CAAA,CAAC,EAAE;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,CAAAA,qBAAA,CAAA,GAAW,GAAG,SAAS,GAAG,EAAE,CAAC,EAAE;AAC/B,GAAE,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,GAAG;GAC3C,OAAO,SAAS,CAAC,CAAC;AACpB,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,CAAAA,qBAAA,CAAA,GAAW,GAAG,SAAS,GAAG,EAAE,CAAC,EAAE;GAC7B,OAAO,SAAS,CAAC,CAAC;AACpB,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAAA,qBAAA,CAAA,GAAW,GAAG,SAAS,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE;GAChC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO;;AAEjC;AACA;GACE,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;AAC9C,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ var mode = require('./mode.js');
4
+ var utils = require('./utils.js');
5
+
6
+ var kanjiData;
7
+ var hasRequiredKanjiData;
8
+
9
+ function requireKanjiData () {
10
+ if (hasRequiredKanjiData) return kanjiData;
11
+ hasRequiredKanjiData = 1;
12
+ const Mode = mode.__require();
13
+ const Utils = utils.__require();
14
+
15
+ function KanjiData (data) {
16
+ this.mode = Mode.KANJI;
17
+ this.data = data;
18
+ }
19
+
20
+ KanjiData.getBitsLength = function getBitsLength (length) {
21
+ return length * 13
22
+ };
23
+
24
+ KanjiData.prototype.getLength = function getLength () {
25
+ return this.data.length
26
+ };
27
+
28
+ KanjiData.prototype.getBitsLength = function getBitsLength () {
29
+ return KanjiData.getBitsLength(this.data.length)
30
+ };
31
+
32
+ KanjiData.prototype.write = function (bitBuffer) {
33
+ let i;
34
+
35
+ // In the Shift JIS system, Kanji characters are represented by a two byte combination.
36
+ // These byte values are shifted from the JIS X 0208 values.
37
+ // JIS X 0208 gives details of the shift coded representation.
38
+ for (i = 0; i < this.data.length; i++) {
39
+ let value = Utils.toSJIS(this.data[i]);
40
+
41
+ // For characters with Shift JIS values from 0x8140 to 0x9FFC:
42
+ if (value >= 0x8140 && value <= 0x9FFC) {
43
+ // Subtract 0x8140 from Shift JIS value
44
+ value -= 0x8140;
45
+
46
+ // For characters with Shift JIS values from 0xE040 to 0xEBBF
47
+ } else if (value >= 0xE040 && value <= 0xEBBF) {
48
+ // Subtract 0xC140 from Shift JIS value
49
+ value -= 0xC140;
50
+ } else {
51
+ throw new Error(
52
+ 'Invalid SJIS character: ' + this.data[i] + '\n' +
53
+ 'Make sure your charset is UTF-8')
54
+ }
55
+
56
+ // Multiply most significant byte of result by 0xC0
57
+ // and add least significant byte to product
58
+ value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff);
59
+
60
+ // Convert result to a 13-bit binary string
61
+ bitBuffer.put(value, 13);
62
+ }
63
+ };
64
+
65
+ kanjiData = KanjiData;
66
+ return kanjiData;
67
+ }
68
+
69
+ exports.__require = requireKanjiData;
70
+ //# sourceMappingURL=kanji-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kanji-data.js","sources":["../../../../../node_modules/qrcode/lib/core/kanji-data.js"],"sourcesContent":["const Mode = require('./mode')\nconst Utils = require('./utils')\n\nfunction KanjiData (data) {\n this.mode = Mode.KANJI\n this.data = data\n}\n\nKanjiData.getBitsLength = function getBitsLength (length) {\n return length * 13\n}\n\nKanjiData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nKanjiData.prototype.getBitsLength = function getBitsLength () {\n return KanjiData.getBitsLength(this.data.length)\n}\n\nKanjiData.prototype.write = function (bitBuffer) {\n let i\n\n // In the Shift JIS system, Kanji characters are represented by a two byte combination.\n // These byte values are shifted from the JIS X 0208 values.\n // JIS X 0208 gives details of the shift coded representation.\n for (i = 0; i < this.data.length; i++) {\n let value = Utils.toSJIS(this.data[i])\n\n // For characters with Shift JIS values from 0x8140 to 0x9FFC:\n if (value >= 0x8140 && value <= 0x9FFC) {\n // Subtract 0x8140 from Shift JIS value\n value -= 0x8140\n\n // For characters with Shift JIS values from 0xE040 to 0xEBBF\n } else if (value >= 0xE040 && value <= 0xEBBF) {\n // Subtract 0xC140 from Shift JIS value\n value -= 0xC140\n } else {\n throw new Error(\n 'Invalid SJIS character: ' + this.data[i] + '\\n' +\n 'Make sure your charset is UTF-8')\n }\n\n // Multiply most significant byte of result by 0xC0\n // and add least significant byte to product\n value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)\n\n // Convert result to a 13-bit binary string\n bitBuffer.put(value, 13)\n }\n}\n\nmodule.exports = KanjiData\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;;;AAAA,CAAA,MAAM,IAAI,GAAGA,cAAA;AACb,CAAA,MAAM,KAAK,GAAGC,eAAA;;CAEd,SAAS,SAAS,EAAE,IAAI,EAAE;AAC1B,GAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;GACjB,IAAI,CAAC,IAAI,GAAG;AACd,CAAA;;AAEA,CAAA,SAAS,CAAC,aAAa,GAAG,SAAS,aAAa,EAAE,MAAM,EAAE;GACxD,OAAO,MAAM,GAAG;AAClB,CAAA;;AAEA,CAAA,SAAS,CAAC,SAAS,CAAC,SAAS,GAAG,SAAS,SAAS,IAAI;AACtD,GAAE,OAAO,IAAI,CAAC,IAAI,CAAC;AACnB,CAAA;;AAEA,CAAA,SAAS,CAAC,SAAS,CAAC,aAAa,GAAG,SAAS,aAAa,IAAI;GAC5D,OAAO,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM;AACjD,CAAA;;AAEA,CAAA,SAAS,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,SAAS,EAAE;AACjD,GAAE,IAAI;;AAEN;AACA;AACA;AACA,GAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACzC,KAAI,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;;AAEzC;KACI,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,EAAE;AAC5C;AACA,OAAM,KAAK,IAAI;;AAEf;KACA,CAAK,MAAM,IAAI,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