@xiping/react-components 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/alignment-pattern.js +1 -0
- package/dist/cjs/_virtual/browser.js +1 -0
- package/dist/cjs/_virtual/browser2.js +1 -0
- package/dist/cjs/_virtual/canvas.js +1 -0
- package/dist/cjs/_virtual/dijkstra.js +1 -0
- package/dist/cjs/_virtual/error-correction-code.js +1 -0
- package/dist/cjs/_virtual/error-correction-level.js +1 -0
- package/dist/cjs/_virtual/finder-pattern.js +1 -0
- package/dist/cjs/_virtual/format-info.js +1 -0
- package/dist/cjs/_virtual/galois-field.js +1 -0
- package/dist/cjs/_virtual/mask-pattern.js +1 -0
- package/dist/cjs/_virtual/mode.js +1 -0
- package/dist/cjs/_virtual/polynomial.js +1 -0
- package/dist/cjs/_virtual/qrcode.js +1 -0
- package/dist/cjs/_virtual/regex.js +1 -0
- package/dist/cjs/_virtual/segments.js +1 -0
- package/dist/cjs/_virtual/svg-tag.js +1 -0
- package/dist/cjs/_virtual/utils.js +1 -0
- package/dist/cjs/_virtual/utils2.js +1 -0
- package/dist/cjs/_virtual/version-check.js +1 -0
- package/dist/cjs/_virtual/version.js +1 -0
- package/dist/cjs/components/qr-code/index.js +1 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +4 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +1 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +2 -0
- package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -0
- package/dist/es/_virtual/_commonjsHelpers.js +6 -0
- package/dist/es/_virtual/alignment-pattern.js +4 -0
- package/dist/es/_virtual/browser.js +7 -0
- package/dist/es/_virtual/browser2.js +4 -0
- package/dist/es/_virtual/canvas.js +4 -0
- package/dist/es/_virtual/dijkstra.js +4 -0
- package/dist/es/_virtual/error-correction-code.js +4 -0
- package/dist/es/_virtual/error-correction-level.js +4 -0
- package/dist/es/_virtual/finder-pattern.js +4 -0
- package/dist/es/_virtual/format-info.js +4 -0
- package/dist/es/_virtual/galois-field.js +4 -0
- package/dist/es/_virtual/mask-pattern.js +4 -0
- package/dist/es/_virtual/mode.js +4 -0
- package/dist/es/_virtual/polynomial.js +4 -0
- package/dist/es/_virtual/qrcode.js +4 -0
- package/dist/es/_virtual/regex.js +4 -0
- package/dist/es/_virtual/segments.js +4 -0
- package/dist/es/_virtual/svg-tag.js +4 -0
- package/dist/es/_virtual/utils.js +4 -0
- package/dist/es/_virtual/utils2.js +4 -0
- package/dist/es/_virtual/version-check.js +4 -0
- package/dist/es/_virtual/version.js +4 -0
- package/dist/es/components/qr-code/index.js +49 -0
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +22 -20
- package/dist/es/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +72 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +44 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +9 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +26 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +28 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +23 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +23 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +362 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +41 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +18 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +24 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +36 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +102 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +68 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +26 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +34 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +154 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +27 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +23 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +146 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +74 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +10 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +75 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +32 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +32 -0
- package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +58 -0
- package/package.json +2 -2
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../../../_virtual/browser2.js";
|
|
2
|
+
import { __require as C } from "./can-promise.js";
|
|
3
|
+
import { __require as h } from "./core/qrcode.js";
|
|
4
|
+
import { __require as R } from "./renderer/canvas.js";
|
|
5
|
+
import { __require as y } from "./renderer/svg-tag.js";
|
|
6
|
+
var _;
|
|
7
|
+
function B() {
|
|
8
|
+
if (_) return u;
|
|
9
|
+
_ = 1;
|
|
10
|
+
const q = C(), f = h(), l = R(), w = y();
|
|
11
|
+
function a(d, e, r, n, o) {
|
|
12
|
+
const m = [].slice.call(arguments, 1), i = m.length, g = typeof m[i - 1] == "function";
|
|
13
|
+
if (!g && !q())
|
|
14
|
+
throw new Error("Callback required as last argument");
|
|
15
|
+
if (g) {
|
|
16
|
+
if (i < 2)
|
|
17
|
+
throw new Error("Too few arguments provided");
|
|
18
|
+
i === 2 ? (o = r, r = e, e = n = void 0) : i === 3 && (e.getContext && typeof o > "u" ? (o = n, n = void 0) : (o = n, n = r, r = e, e = void 0));
|
|
19
|
+
} else {
|
|
20
|
+
if (i < 1)
|
|
21
|
+
throw new Error("Too few arguments provided");
|
|
22
|
+
return i === 1 ? (r = e, e = n = void 0) : i === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(t, c) {
|
|
23
|
+
try {
|
|
24
|
+
const s = f.create(r, n);
|
|
25
|
+
t(d(s, e, n));
|
|
26
|
+
} catch (s) {
|
|
27
|
+
c(s);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
const t = f.create(r, n);
|
|
33
|
+
o(null, d(t, e, n));
|
|
34
|
+
} catch (t) {
|
|
35
|
+
o(t);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return u.create = f.create, u.toCanvas = a.bind(null, l.render), u.toDataURL = a.bind(null, l.renderToDataURL), u.toString = a.bind(null, function(d, e, r) {
|
|
39
|
+
return w.render(d, r);
|
|
40
|
+
}), u;
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
B as __require
|
|
44
|
+
};
|
package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../../../../_virtual/alignment-pattern.js";
|
|
2
|
+
import { __require as a } from "./utils.js";
|
|
3
|
+
var l;
|
|
4
|
+
function p() {
|
|
5
|
+
return l ? u : (l = 1, function(s) {
|
|
6
|
+
const c = a().getSymbolSize;
|
|
7
|
+
s.getRowColCoords = function(r) {
|
|
8
|
+
if (r === 1) return [];
|
|
9
|
+
const i = Math.floor(r / 7) + 2, e = c(r), n = e === 145 ? 26 : Math.ceil((e - 13) / (2 * i - 2)) * 2, t = [e - 7];
|
|
10
|
+
for (let o = 1; o < i - 1; o++)
|
|
11
|
+
t[o] = t[o - 1] - n;
|
|
12
|
+
return t.push(6), t.reverse();
|
|
13
|
+
}, s.getPositions = function(r) {
|
|
14
|
+
const i = [], e = s.getRowColCoords(r), n = e.length;
|
|
15
|
+
for (let t = 0; t < n; t++)
|
|
16
|
+
for (let o = 0; o < n; o++)
|
|
17
|
+
t === 0 && o === 0 || // top-left
|
|
18
|
+
t === 0 && o === n - 1 || // bottom-left
|
|
19
|
+
t === n - 1 && o === 0 || i.push([e[t], e[o]]);
|
|
20
|
+
return i;
|
|
21
|
+
};
|
|
22
|
+
}(u), u);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
p as __require
|
|
26
|
+
};
|
package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __require as s } from "./mode.js";
|
|
2
|
+
var r, o;
|
|
3
|
+
function d() {
|
|
4
|
+
if (o) return r;
|
|
5
|
+
o = 1;
|
|
6
|
+
const u = s(), n = [
|
|
7
|
+
"0",
|
|
8
|
+
"1",
|
|
9
|
+
"2",
|
|
10
|
+
"3",
|
|
11
|
+
"4",
|
|
12
|
+
"5",
|
|
13
|
+
"6",
|
|
14
|
+
"7",
|
|
15
|
+
"8",
|
|
16
|
+
"9",
|
|
17
|
+
"A",
|
|
18
|
+
"B",
|
|
19
|
+
"C",
|
|
20
|
+
"D",
|
|
21
|
+
"E",
|
|
22
|
+
"F",
|
|
23
|
+
"G",
|
|
24
|
+
"H",
|
|
25
|
+
"I",
|
|
26
|
+
"J",
|
|
27
|
+
"K",
|
|
28
|
+
"L",
|
|
29
|
+
"M",
|
|
30
|
+
"N",
|
|
31
|
+
"O",
|
|
32
|
+
"P",
|
|
33
|
+
"Q",
|
|
34
|
+
"R",
|
|
35
|
+
"S",
|
|
36
|
+
"T",
|
|
37
|
+
"U",
|
|
38
|
+
"V",
|
|
39
|
+
"W",
|
|
40
|
+
"X",
|
|
41
|
+
"Y",
|
|
42
|
+
"Z",
|
|
43
|
+
" ",
|
|
44
|
+
"$",
|
|
45
|
+
"%",
|
|
46
|
+
"*",
|
|
47
|
+
"+",
|
|
48
|
+
"-",
|
|
49
|
+
".",
|
|
50
|
+
"/",
|
|
51
|
+
":"
|
|
52
|
+
];
|
|
53
|
+
function t(i) {
|
|
54
|
+
this.mode = u.ALPHANUMERIC, this.data = i;
|
|
55
|
+
}
|
|
56
|
+
return t.getBitsLength = function(a) {
|
|
57
|
+
return 11 * Math.floor(a / 2) + 6 * (a % 2);
|
|
58
|
+
}, t.prototype.getLength = function() {
|
|
59
|
+
return this.data.length;
|
|
60
|
+
}, t.prototype.getBitsLength = function() {
|
|
61
|
+
return t.getBitsLength(this.data.length);
|
|
62
|
+
}, t.prototype.write = function(a) {
|
|
63
|
+
let e;
|
|
64
|
+
for (e = 0; e + 2 <= this.data.length; e += 2) {
|
|
65
|
+
let h = n.indexOf(this.data[e]) * 45;
|
|
66
|
+
h += n.indexOf(this.data[e + 1]), a.put(h, 11);
|
|
67
|
+
}
|
|
68
|
+
this.data.length % 2 && a.put(n.indexOf(this.data[e]), 6);
|
|
69
|
+
}, r = t, r;
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
d as __require
|
|
73
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var i, u;
|
|
2
|
+
function n() {
|
|
3
|
+
if (u) return i;
|
|
4
|
+
u = 1;
|
|
5
|
+
function r() {
|
|
6
|
+
this.buffer = [], this.length = 0;
|
|
7
|
+
}
|
|
8
|
+
return r.prototype = {
|
|
9
|
+
get: function(f) {
|
|
10
|
+
const t = Math.floor(f / 8);
|
|
11
|
+
return (this.buffer[t] >>> 7 - f % 8 & 1) === 1;
|
|
12
|
+
},
|
|
13
|
+
put: function(f, t) {
|
|
14
|
+
for (let e = 0; e < t; e++)
|
|
15
|
+
this.putBit((f >>> t - e - 1 & 1) === 1);
|
|
16
|
+
},
|
|
17
|
+
getLengthInBits: function() {
|
|
18
|
+
return this.length;
|
|
19
|
+
},
|
|
20
|
+
putBit: function(f) {
|
|
21
|
+
const t = Math.floor(this.length / 8);
|
|
22
|
+
this.buffer.length <= t && this.buffer.push(0), f && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
23
|
+
}
|
|
24
|
+
}, i = r, i;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
n as __require
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var n, s;
|
|
2
|
+
function h() {
|
|
3
|
+
if (s) return n;
|
|
4
|
+
s = 1;
|
|
5
|
+
function i(t) {
|
|
6
|
+
if (!t || t < 1)
|
|
7
|
+
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
8
|
+
this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
|
|
9
|
+
}
|
|
10
|
+
return i.prototype.set = function(t, r, e, o) {
|
|
11
|
+
const a = t * this.size + r;
|
|
12
|
+
this.data[a] = e, o && (this.reservedBit[a] = !0);
|
|
13
|
+
}, i.prototype.get = function(t, r) {
|
|
14
|
+
return this.data[t * this.size + r];
|
|
15
|
+
}, i.prototype.xor = function(t, r, e) {
|
|
16
|
+
this.data[t * this.size + r] ^= e;
|
|
17
|
+
}, i.prototype.isReserved = function(t, r) {
|
|
18
|
+
return this.reservedBit[t * this.size + r];
|
|
19
|
+
}, n = i, n;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as __require
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __require as g } from "./mode.js";
|
|
2
|
+
var r, i;
|
|
3
|
+
function s() {
|
|
4
|
+
if (i) return r;
|
|
5
|
+
i = 1;
|
|
6
|
+
const o = g();
|
|
7
|
+
function e(t) {
|
|
8
|
+
this.mode = o.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
|
|
9
|
+
}
|
|
10
|
+
return e.getBitsLength = function(n) {
|
|
11
|
+
return n * 8;
|
|
12
|
+
}, e.prototype.getLength = function() {
|
|
13
|
+
return this.data.length;
|
|
14
|
+
}, e.prototype.getBitsLength = function() {
|
|
15
|
+
return e.getBitsLength(this.data.length);
|
|
16
|
+
}, e.prototype.write = function(t) {
|
|
17
|
+
for (let n = 0, a = this.data.length; n < a; n++)
|
|
18
|
+
t.put(this.data[n], 8);
|
|
19
|
+
}, r = e, r;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
s as __require
|
|
23
|
+
};
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../../../../_virtual/error-correction-code.js";
|
|
2
|
+
import { __require as a } from "./error-correction-level.js";
|
|
3
|
+
var c;
|
|
4
|
+
function i() {
|
|
5
|
+
if (c) return u;
|
|
6
|
+
c = 1;
|
|
7
|
+
const e = a(), t = [
|
|
8
|
+
// L M Q H
|
|
9
|
+
1,
|
|
10
|
+
1,
|
|
11
|
+
1,
|
|
12
|
+
1,
|
|
13
|
+
1,
|
|
14
|
+
1,
|
|
15
|
+
1,
|
|
16
|
+
1,
|
|
17
|
+
1,
|
|
18
|
+
1,
|
|
19
|
+
2,
|
|
20
|
+
2,
|
|
21
|
+
1,
|
|
22
|
+
2,
|
|
23
|
+
2,
|
|
24
|
+
4,
|
|
25
|
+
1,
|
|
26
|
+
2,
|
|
27
|
+
4,
|
|
28
|
+
4,
|
|
29
|
+
2,
|
|
30
|
+
4,
|
|
31
|
+
4,
|
|
32
|
+
4,
|
|
33
|
+
2,
|
|
34
|
+
4,
|
|
35
|
+
6,
|
|
36
|
+
5,
|
|
37
|
+
2,
|
|
38
|
+
4,
|
|
39
|
+
6,
|
|
40
|
+
6,
|
|
41
|
+
2,
|
|
42
|
+
5,
|
|
43
|
+
8,
|
|
44
|
+
8,
|
|
45
|
+
4,
|
|
46
|
+
5,
|
|
47
|
+
8,
|
|
48
|
+
8,
|
|
49
|
+
4,
|
|
50
|
+
5,
|
|
51
|
+
8,
|
|
52
|
+
11,
|
|
53
|
+
4,
|
|
54
|
+
8,
|
|
55
|
+
10,
|
|
56
|
+
11,
|
|
57
|
+
4,
|
|
58
|
+
9,
|
|
59
|
+
12,
|
|
60
|
+
16,
|
|
61
|
+
4,
|
|
62
|
+
9,
|
|
63
|
+
16,
|
|
64
|
+
16,
|
|
65
|
+
6,
|
|
66
|
+
10,
|
|
67
|
+
12,
|
|
68
|
+
18,
|
|
69
|
+
6,
|
|
70
|
+
10,
|
|
71
|
+
17,
|
|
72
|
+
16,
|
|
73
|
+
6,
|
|
74
|
+
11,
|
|
75
|
+
16,
|
|
76
|
+
19,
|
|
77
|
+
6,
|
|
78
|
+
13,
|
|
79
|
+
18,
|
|
80
|
+
21,
|
|
81
|
+
7,
|
|
82
|
+
14,
|
|
83
|
+
21,
|
|
84
|
+
25,
|
|
85
|
+
8,
|
|
86
|
+
16,
|
|
87
|
+
20,
|
|
88
|
+
25,
|
|
89
|
+
8,
|
|
90
|
+
17,
|
|
91
|
+
23,
|
|
92
|
+
25,
|
|
93
|
+
9,
|
|
94
|
+
17,
|
|
95
|
+
23,
|
|
96
|
+
34,
|
|
97
|
+
9,
|
|
98
|
+
18,
|
|
99
|
+
25,
|
|
100
|
+
30,
|
|
101
|
+
10,
|
|
102
|
+
20,
|
|
103
|
+
27,
|
|
104
|
+
32,
|
|
105
|
+
12,
|
|
106
|
+
21,
|
|
107
|
+
29,
|
|
108
|
+
35,
|
|
109
|
+
12,
|
|
110
|
+
23,
|
|
111
|
+
34,
|
|
112
|
+
37,
|
|
113
|
+
12,
|
|
114
|
+
25,
|
|
115
|
+
34,
|
|
116
|
+
40,
|
|
117
|
+
13,
|
|
118
|
+
26,
|
|
119
|
+
35,
|
|
120
|
+
42,
|
|
121
|
+
14,
|
|
122
|
+
28,
|
|
123
|
+
38,
|
|
124
|
+
45,
|
|
125
|
+
15,
|
|
126
|
+
29,
|
|
127
|
+
40,
|
|
128
|
+
48,
|
|
129
|
+
16,
|
|
130
|
+
31,
|
|
131
|
+
43,
|
|
132
|
+
51,
|
|
133
|
+
17,
|
|
134
|
+
33,
|
|
135
|
+
45,
|
|
136
|
+
54,
|
|
137
|
+
18,
|
|
138
|
+
35,
|
|
139
|
+
48,
|
|
140
|
+
57,
|
|
141
|
+
19,
|
|
142
|
+
37,
|
|
143
|
+
51,
|
|
144
|
+
60,
|
|
145
|
+
19,
|
|
146
|
+
38,
|
|
147
|
+
53,
|
|
148
|
+
63,
|
|
149
|
+
20,
|
|
150
|
+
40,
|
|
151
|
+
56,
|
|
152
|
+
66,
|
|
153
|
+
21,
|
|
154
|
+
43,
|
|
155
|
+
59,
|
|
156
|
+
70,
|
|
157
|
+
22,
|
|
158
|
+
45,
|
|
159
|
+
62,
|
|
160
|
+
74,
|
|
161
|
+
24,
|
|
162
|
+
47,
|
|
163
|
+
65,
|
|
164
|
+
77,
|
|
165
|
+
25,
|
|
166
|
+
49,
|
|
167
|
+
68,
|
|
168
|
+
81
|
|
169
|
+
], o = [
|
|
170
|
+
// L M Q H
|
|
171
|
+
7,
|
|
172
|
+
10,
|
|
173
|
+
13,
|
|
174
|
+
17,
|
|
175
|
+
10,
|
|
176
|
+
16,
|
|
177
|
+
22,
|
|
178
|
+
28,
|
|
179
|
+
15,
|
|
180
|
+
26,
|
|
181
|
+
36,
|
|
182
|
+
44,
|
|
183
|
+
20,
|
|
184
|
+
36,
|
|
185
|
+
52,
|
|
186
|
+
64,
|
|
187
|
+
26,
|
|
188
|
+
48,
|
|
189
|
+
72,
|
|
190
|
+
88,
|
|
191
|
+
36,
|
|
192
|
+
64,
|
|
193
|
+
96,
|
|
194
|
+
112,
|
|
195
|
+
40,
|
|
196
|
+
72,
|
|
197
|
+
108,
|
|
198
|
+
130,
|
|
199
|
+
48,
|
|
200
|
+
88,
|
|
201
|
+
132,
|
|
202
|
+
156,
|
|
203
|
+
60,
|
|
204
|
+
110,
|
|
205
|
+
160,
|
|
206
|
+
192,
|
|
207
|
+
72,
|
|
208
|
+
130,
|
|
209
|
+
192,
|
|
210
|
+
224,
|
|
211
|
+
80,
|
|
212
|
+
150,
|
|
213
|
+
224,
|
|
214
|
+
264,
|
|
215
|
+
96,
|
|
216
|
+
176,
|
|
217
|
+
260,
|
|
218
|
+
308,
|
|
219
|
+
104,
|
|
220
|
+
198,
|
|
221
|
+
288,
|
|
222
|
+
352,
|
|
223
|
+
120,
|
|
224
|
+
216,
|
|
225
|
+
320,
|
|
226
|
+
384,
|
|
227
|
+
132,
|
|
228
|
+
240,
|
|
229
|
+
360,
|
|
230
|
+
432,
|
|
231
|
+
144,
|
|
232
|
+
280,
|
|
233
|
+
408,
|
|
234
|
+
480,
|
|
235
|
+
168,
|
|
236
|
+
308,
|
|
237
|
+
448,
|
|
238
|
+
532,
|
|
239
|
+
180,
|
|
240
|
+
338,
|
|
241
|
+
504,
|
|
242
|
+
588,
|
|
243
|
+
196,
|
|
244
|
+
364,
|
|
245
|
+
546,
|
|
246
|
+
650,
|
|
247
|
+
224,
|
|
248
|
+
416,
|
|
249
|
+
600,
|
|
250
|
+
700,
|
|
251
|
+
224,
|
|
252
|
+
442,
|
|
253
|
+
644,
|
|
254
|
+
750,
|
|
255
|
+
252,
|
|
256
|
+
476,
|
|
257
|
+
690,
|
|
258
|
+
816,
|
|
259
|
+
270,
|
|
260
|
+
504,
|
|
261
|
+
750,
|
|
262
|
+
900,
|
|
263
|
+
300,
|
|
264
|
+
560,
|
|
265
|
+
810,
|
|
266
|
+
960,
|
|
267
|
+
312,
|
|
268
|
+
588,
|
|
269
|
+
870,
|
|
270
|
+
1050,
|
|
271
|
+
336,
|
|
272
|
+
644,
|
|
273
|
+
952,
|
|
274
|
+
1110,
|
|
275
|
+
360,
|
|
276
|
+
700,
|
|
277
|
+
1020,
|
|
278
|
+
1200,
|
|
279
|
+
390,
|
|
280
|
+
728,
|
|
281
|
+
1050,
|
|
282
|
+
1260,
|
|
283
|
+
420,
|
|
284
|
+
784,
|
|
285
|
+
1140,
|
|
286
|
+
1350,
|
|
287
|
+
450,
|
|
288
|
+
812,
|
|
289
|
+
1200,
|
|
290
|
+
1440,
|
|
291
|
+
480,
|
|
292
|
+
868,
|
|
293
|
+
1290,
|
|
294
|
+
1530,
|
|
295
|
+
510,
|
|
296
|
+
924,
|
|
297
|
+
1350,
|
|
298
|
+
1620,
|
|
299
|
+
540,
|
|
300
|
+
980,
|
|
301
|
+
1440,
|
|
302
|
+
1710,
|
|
303
|
+
570,
|
|
304
|
+
1036,
|
|
305
|
+
1530,
|
|
306
|
+
1800,
|
|
307
|
+
570,
|
|
308
|
+
1064,
|
|
309
|
+
1590,
|
|
310
|
+
1890,
|
|
311
|
+
600,
|
|
312
|
+
1120,
|
|
313
|
+
1680,
|
|
314
|
+
1980,
|
|
315
|
+
630,
|
|
316
|
+
1204,
|
|
317
|
+
1770,
|
|
318
|
+
2100,
|
|
319
|
+
660,
|
|
320
|
+
1260,
|
|
321
|
+
1860,
|
|
322
|
+
2220,
|
|
323
|
+
720,
|
|
324
|
+
1316,
|
|
325
|
+
1950,
|
|
326
|
+
2310,
|
|
327
|
+
750,
|
|
328
|
+
1372,
|
|
329
|
+
2040,
|
|
330
|
+
2430
|
|
331
|
+
];
|
|
332
|
+
return u.getBlocksCount = function(r, n) {
|
|
333
|
+
switch (n) {
|
|
334
|
+
case e.L:
|
|
335
|
+
return t[(r - 1) * 4 + 0];
|
|
336
|
+
case e.M:
|
|
337
|
+
return t[(r - 1) * 4 + 1];
|
|
338
|
+
case e.Q:
|
|
339
|
+
return t[(r - 1) * 4 + 2];
|
|
340
|
+
case e.H:
|
|
341
|
+
return t[(r - 1) * 4 + 3];
|
|
342
|
+
default:
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
}, u.getTotalCodewordsCount = function(r, n) {
|
|
346
|
+
switch (n) {
|
|
347
|
+
case e.L:
|
|
348
|
+
return o[(r - 1) * 4 + 0];
|
|
349
|
+
case e.M:
|
|
350
|
+
return o[(r - 1) * 4 + 1];
|
|
351
|
+
case e.Q:
|
|
352
|
+
return o[(r - 1) * 4 + 2];
|
|
353
|
+
case e.H:
|
|
354
|
+
return o[(r - 1) * 4 + 3];
|
|
355
|
+
default:
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
}, u;
|
|
359
|
+
}
|
|
360
|
+
export {
|
|
361
|
+
i as __require
|
|
362
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../../../_virtual/error-correction-level.js";
|
|
2
|
+
var e;
|
|
3
|
+
function f() {
|
|
4
|
+
return e ? t : (e = 1, function(r) {
|
|
5
|
+
r.L = { bit: 1 }, r.M = { bit: 0 }, r.Q = { bit: 3 }, r.H = { bit: 2 };
|
|
6
|
+
function o(n) {
|
|
7
|
+
if (typeof n != "string")
|
|
8
|
+
throw new Error("Param is not a string");
|
|
9
|
+
switch (n.toLowerCase()) {
|
|
10
|
+
case "l":
|
|
11
|
+
case "low":
|
|
12
|
+
return r.L;
|
|
13
|
+
case "m":
|
|
14
|
+
case "medium":
|
|
15
|
+
return r.M;
|
|
16
|
+
case "q":
|
|
17
|
+
case "quartile":
|
|
18
|
+
return r.Q;
|
|
19
|
+
case "h":
|
|
20
|
+
case "high":
|
|
21
|
+
return r.H;
|
|
22
|
+
default:
|
|
23
|
+
throw new Error("Unknown EC Level: " + n);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
r.isValid = function(i) {
|
|
27
|
+
return i && typeof i.bit < "u" && i.bit >= 0 && i.bit < 4;
|
|
28
|
+
}, r.from = function(i, c) {
|
|
29
|
+
if (r.isValid(i))
|
|
30
|
+
return i;
|
|
31
|
+
try {
|
|
32
|
+
return o(i);
|
|
33
|
+
} catch {
|
|
34
|
+
return c;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}(t), t);
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
f as __require
|
|
41
|
+
};
|
package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../../../../_virtual/finder-pattern.js";
|
|
2
|
+
import { __require as s } from "./utils.js";
|
|
3
|
+
var i;
|
|
4
|
+
function f() {
|
|
5
|
+
if (i) return e;
|
|
6
|
+
i = 1;
|
|
7
|
+
const n = s().getSymbolSize, r = 7;
|
|
8
|
+
return e.getPositions = function(o) {
|
|
9
|
+
const t = n(o);
|
|
10
|
+
return [
|
|
11
|
+
// top-left
|
|
12
|
+
[0, 0],
|
|
13
|
+
// top-right
|
|
14
|
+
[t - r, 0],
|
|
15
|
+
// bottom-left
|
|
16
|
+
[0, t - r]
|
|
17
|
+
];
|
|
18
|
+
}, e;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
f as __require
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../../../../_virtual/format-info.js";
|
|
2
|
+
import { __require as f } from "./utils.js";
|
|
3
|
+
var s;
|
|
4
|
+
function m() {
|
|
5
|
+
if (s) return e;
|
|
6
|
+
s = 1;
|
|
7
|
+
const r = f(), i = 1335, a = 21522, o = r.getBCHDigit(i);
|
|
8
|
+
return e.getEncodedBits = function(u, c) {
|
|
9
|
+
const n = u.bit << 3 | c;
|
|
10
|
+
let t = n << 10;
|
|
11
|
+
for (; r.getBCHDigit(t) - o >= 0; )
|
|
12
|
+
t ^= i << r.getBCHDigit(t) - o;
|
|
13
|
+
return (n << 10 | t) ^ a;
|
|
14
|
+
}, e;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
m as __require
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../../../_virtual/galois-field.js";
|
|
2
|
+
var u;
|
|
3
|
+
function f() {
|
|
4
|
+
if (u) return t;
|
|
5
|
+
u = 1;
|
|
6
|
+
const i = new Uint8Array(512), n = new Uint8Array(256);
|
|
7
|
+
return function() {
|
|
8
|
+
let r = 1;
|
|
9
|
+
for (let e = 0; e < 255; e++)
|
|
10
|
+
i[e] = r, n[r] = e, r <<= 1, r & 256 && (r ^= 285);
|
|
11
|
+
for (let e = 255; e < 512; e++)
|
|
12
|
+
i[e] = i[e - 255];
|
|
13
|
+
}(), t.log = function(r) {
|
|
14
|
+
if (r < 1) throw new Error("log(" + r + ")");
|
|
15
|
+
return n[r];
|
|
16
|
+
}, t.exp = function(r) {
|
|
17
|
+
return i[r];
|
|
18
|
+
}, t.mul = function(r, e) {
|
|
19
|
+
return r === 0 || e === 0 ? 0 : i[n[r] + n[e]];
|
|
20
|
+
}, t;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
f as __require
|
|
24
|
+
};
|