asterui 0.12.2 → 0.12.4
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/components/Kbd.d.ts +2 -1
- package/dist/components/Modal.d.ts +7 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +196 -201
- package/dist/index.js.map +1 -1
- package/dist/index100.js +11 -44
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +12 -10
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +7 -14
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +12 -7
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +29 -11
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +16 -29
- package/dist/index105.js.map +1 -1
- package/dist/index13.js +95 -35
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +153 -90
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +146 -154
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +5 -150
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +71 -5
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +17 -71
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +96 -15
- package/dist/index19.js.map +1 -1
- package/dist/index20.js +105 -89
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +177 -107
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +107 -181
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +19 -110
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +41 -17
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +32 -43
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +41 -32
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +12 -41
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +33 -12
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +63 -33
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +77 -60
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +18 -80
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +217 -15
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +1078 -216
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +17 -1081
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +121 -17
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +37 -119
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +182 -31
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +97 -191
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +158 -93
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +139 -155
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +15 -146
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +17 -15
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +21 -18
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +116 -18
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +10 -116
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +35 -13
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +34 -35
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +116 -10
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +174 -114
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +136 -165
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +11 -146
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +20 -10
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +14 -22
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +7 -14
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +268 -6
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +17 -266
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +122 -17
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +108 -120
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +167 -107
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +29 -167
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +120 -30
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +80 -116
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +19 -85
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +73 -19
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +54 -71
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +44 -56
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +49 -42
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +62 -52
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +101 -56
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +41 -107
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +68 -41
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +19 -66
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +43 -18
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +132 -44
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +50 -132
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +21 -51
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +31 -22
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +22 -31
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +327 -20
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +50 -323
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +40 -56
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +23 -40
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +93 -21
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +123 -88
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +154 -123
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +63 -159
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +35 -65
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +234 -35
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +31 -231
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +210 -34
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +198 -195
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +241 -159
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +166 -283
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +253 -173
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +14 -258
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +31 -12
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -32
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +13 -5
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +43 -11
- package/dist/index99.js.map +1 -1
- package/package.json +11 -5
- package/dist/components/Calendar.d.ts +0 -23
- package/dist/index.css +0 -1
- package/dist/index106.js +0 -21
- package/dist/index106.js.map +0 -1
- package/dist/index107.js +0 -177
- package/dist/index107.js.map +0 -1
- package/dist/index109.js +0 -10796
- package/dist/index109.js.map +0 -1
- package/dist/index110.js +0 -8
- package/dist/index110.js.map +0 -1
- package/dist/index111.js +0 -45
- package/dist/index111.js.map +0 -1
- package/dist/index112.js +0 -5
- package/dist/index112.js.map +0 -1
- package/dist/index113.js +0 -10
- package/dist/index113.js.map +0 -1
- package/dist/index114.js +0 -155
- package/dist/index114.js.map +0 -1
- package/dist/index115.js +0 -33
- package/dist/index115.js.map +0 -1
- package/dist/index116.js +0 -33
- package/dist/index116.js.map +0 -1
- package/dist/index117.js +0 -5
- package/dist/index117.js.map +0 -1
- package/dist/index118.js +0 -75
- package/dist/index118.js.map +0 -1
- package/dist/index119.js +0 -42
- package/dist/index119.js.map +0 -1
- package/dist/index120.js +0 -29
- package/dist/index120.js.map +0 -1
- package/dist/index121.js +0 -24
- package/dist/index121.js.map +0 -1
- package/dist/index122.js +0 -27
- package/dist/index122.js.map +0 -1
- package/dist/index123.js +0 -23
- package/dist/index123.js.map +0 -1
- package/dist/index124.js +0 -103
- package/dist/index124.js.map +0 -1
- package/dist/index125.js +0 -363
- package/dist/index125.js.map +0 -1
- package/dist/index126.js +0 -28
- package/dist/index126.js.map +0 -1
- package/dist/index127.js +0 -76
- package/dist/index127.js.map +0 -1
- package/dist/index128.js +0 -19
- package/dist/index128.js.map +0 -1
- package/dist/index129.js +0 -69
- package/dist/index129.js.map +0 -1
- package/dist/index130.js +0 -147
- package/dist/index130.js.map +0 -1
- package/dist/index131.js +0 -5
- package/dist/index131.js.map +0 -1
- package/dist/index132.js +0 -59
- package/dist/index132.js.map +0 -1
- package/dist/index133.js +0 -5
- package/dist/index133.js.map +0 -1
- package/dist/index134.js +0 -5
- package/dist/index134.js.map +0 -1
- package/dist/index135.js +0 -5
- package/dist/index135.js.map +0 -1
- package/dist/index136.js +0 -5
- package/dist/index136.js.map +0 -1
- package/dist/index137.js +0 -5
- package/dist/index137.js.map +0 -1
- package/dist/index138.js +0 -5
- package/dist/index138.js.map +0 -1
- package/dist/index139.js +0 -5
- package/dist/index139.js.map +0 -1
- package/dist/index140.js +0 -5
- package/dist/index140.js.map +0 -1
- package/dist/index141.js +0 -35
- package/dist/index141.js.map +0 -1
- package/dist/index142.js +0 -5
- package/dist/index142.js.map +0 -1
- package/dist/index143.js +0 -11
- package/dist/index143.js.map +0 -1
- package/dist/index144.js +0 -5
- package/dist/index144.js.map +0 -1
- package/dist/index145.js +0 -5
- package/dist/index145.js.map +0 -1
- package/dist/index146.js +0 -24
- package/dist/index146.js.map +0 -1
- package/dist/index147.js +0 -5
- package/dist/index147.js.map +0 -1
- package/dist/index148.js +0 -27
- package/dist/index148.js.map +0 -1
- package/dist/index149.js +0 -74
- package/dist/index149.js.map +0 -1
- package/dist/index150.js +0 -24
- package/dist/index150.js.map +0 -1
- package/dist/index151.js +0 -37
- package/dist/index151.js.map +0 -1
- package/dist/index152.js +0 -73
- package/dist/index152.js.map +0 -1
- package/dist/index153.js +0 -5
- package/dist/index153.js.map +0 -1
- package/dist/index154.js +0 -25
- package/dist/index154.js.map +0 -1
- package/dist/index155.js +0 -5
- package/dist/index155.js.map +0 -1
- package/dist/index156.js +0 -5
- package/dist/index156.js.map +0 -1
- package/dist/index157.js +0 -5
- package/dist/index157.js.map +0 -1
- package/dist/index158.js +0 -5
- package/dist/index158.js.map +0 -1
- package/dist/index159.js +0 -7
- package/dist/index159.js.map +0 -1
package/dist/index128.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __exports as e } from "./index144.js";
|
|
2
|
-
import { __require as f } from "./index118.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
|
-
};
|
|
19
|
-
//# sourceMappingURL=index128.js.map
|
package/dist/index128.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index128.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/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":["Utils","require$$0","G15","G15_MASK","G15_BCH","formatInfo","errorCorrectionLevel","mask","data","d"],"mappings":";;;;;;AAAA,QAAMA,IAAQC,EAAA,GAERC,IAAO,MACPC,IAAY,OACZC,IAAUJ,EAAM,YAAYE,CAAG;AAYrC,SAAAG,EAAA,iBAAyB,SAAyBC,GAAsBC,GAAM;AAC5E,UAAMC,IAASF,EAAqB,OAAO,IAAKC;AAChD,QAAIE,IAAID,KAAQ;AAEhB,WAAOR,EAAM,YAAYS,CAAC,IAAIL,KAAW;AACvC,MAAAK,KAAMP,KAAQF,EAAM,YAAYS,CAAC,IAAIL;AAMvC,YAASI,KAAQ,KAAMC,KAAKN;AAAA,EAC9B;;","x_google_ignoreList":[0]}
|
package/dist/index129.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { __exports as c } from "./index145.js";
|
|
2
|
-
import { __require as o } from "./index143.js";
|
|
3
|
-
import { __require as s } from "./index146.js";
|
|
4
|
-
var u;
|
|
5
|
-
function E() {
|
|
6
|
-
return u ? c : (u = 1, (function(i) {
|
|
7
|
-
const a = o(), e = s();
|
|
8
|
-
i.NUMERIC = {
|
|
9
|
-
id: "Numeric",
|
|
10
|
-
bit: 1,
|
|
11
|
-
ccBits: [10, 12, 14]
|
|
12
|
-
}, i.ALPHANUMERIC = {
|
|
13
|
-
id: "Alphanumeric",
|
|
14
|
-
bit: 2,
|
|
15
|
-
ccBits: [9, 11, 13]
|
|
16
|
-
}, i.BYTE = {
|
|
17
|
-
id: "Byte",
|
|
18
|
-
bit: 4,
|
|
19
|
-
ccBits: [8, 16, 16]
|
|
20
|
-
}, i.KANJI = {
|
|
21
|
-
id: "Kanji",
|
|
22
|
-
bit: 8,
|
|
23
|
-
ccBits: [8, 10, 12]
|
|
24
|
-
}, i.MIXED = {
|
|
25
|
-
bit: -1
|
|
26
|
-
}, i.getCharCountIndicator = function(r, n) {
|
|
27
|
-
if (!r.ccBits) throw new Error("Invalid mode: " + r);
|
|
28
|
-
if (!a.isValid(n))
|
|
29
|
-
throw new Error("Invalid version: " + n);
|
|
30
|
-
return n >= 1 && n < 10 ? r.ccBits[0] : n < 27 ? r.ccBits[1] : r.ccBits[2];
|
|
31
|
-
}, i.getBestModeForData = function(r) {
|
|
32
|
-
return e.testNumeric(r) ? i.NUMERIC : e.testAlphanumeric(r) ? i.ALPHANUMERIC : e.testKanji(r) ? i.KANJI : i.BYTE;
|
|
33
|
-
}, i.toString = function(r) {
|
|
34
|
-
if (r && r.id) return r.id;
|
|
35
|
-
throw new Error("Invalid mode");
|
|
36
|
-
}, i.isValid = function(r) {
|
|
37
|
-
return r && r.bit && r.ccBits;
|
|
38
|
-
};
|
|
39
|
-
function f(t) {
|
|
40
|
-
if (typeof t != "string")
|
|
41
|
-
throw new Error("Param is not a string");
|
|
42
|
-
switch (t.toLowerCase()) {
|
|
43
|
-
case "numeric":
|
|
44
|
-
return i.NUMERIC;
|
|
45
|
-
case "alphanumeric":
|
|
46
|
-
return i.ALPHANUMERIC;
|
|
47
|
-
case "kanji":
|
|
48
|
-
return i.KANJI;
|
|
49
|
-
case "byte":
|
|
50
|
-
return i.BYTE;
|
|
51
|
-
default:
|
|
52
|
-
throw new Error("Unknown mode: " + t);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
i.from = function(r, n) {
|
|
56
|
-
if (i.isValid(r))
|
|
57
|
-
return r;
|
|
58
|
-
try {
|
|
59
|
-
return f(r);
|
|
60
|
-
} catch {
|
|
61
|
-
return n;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
})(c), c);
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
E as __require
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=index129.js.map
|
package/dist/index129.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index129.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js"],"sourcesContent":["const VersionCheck = require('./version-check')\nconst Regex = require('./regex')\n\n/**\n * Numeric mode encodes data from the decimal digit set (0 - 9)\n * (byte values 30HEX to 39HEX).\n * Normally, 3 data characters are represented by 10 bits.\n *\n * @type {Object}\n */\nexports.NUMERIC = {\n id: 'Numeric',\n bit: 1 << 0,\n ccBits: [10, 12, 14]\n}\n\n/**\n * Alphanumeric mode encodes data from a set of 45 characters,\n * i.e. 10 numeric digits (0 - 9),\n * 26 alphabetic characters (A - Z),\n * and 9 symbols (SP, $, %, *, +, -, ., /, :).\n * Normally, two input characters are represented by 11 bits.\n *\n * @type {Object}\n */\nexports.ALPHANUMERIC = {\n id: 'Alphanumeric',\n bit: 1 << 1,\n ccBits: [9, 11, 13]\n}\n\n/**\n * In byte mode, data is encoded at 8 bits per character.\n *\n * @type {Object}\n */\nexports.BYTE = {\n id: 'Byte',\n bit: 1 << 2,\n ccBits: [8, 16, 16]\n}\n\n/**\n * The Kanji mode efficiently encodes Kanji characters in accordance with\n * the Shift JIS system based on JIS X 0208.\n * The Shift JIS values are shifted from the JIS X 0208 values.\n * JIS X 0208 gives details of the shift coded representation.\n * Each two-byte character value is compacted to a 13-bit binary codeword.\n *\n * @type {Object}\n */\nexports.KANJI = {\n id: 'Kanji',\n bit: 1 << 3,\n ccBits: [8, 10, 12]\n}\n\n/**\n * Mixed mode will contain a sequences of data in a combination of any of\n * the modes described above\n *\n * @type {Object}\n */\nexports.MIXED = {\n bit: -1\n}\n\n/**\n * Returns the number of bits needed to store the data length\n * according to QR Code specifications.\n *\n * @param {Mode} mode Data mode\n * @param {Number} version QR Code version\n * @return {Number} Number of bits\n */\nexports.getCharCountIndicator = function getCharCountIndicator (mode, version) {\n if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)\n\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid version: ' + version)\n }\n\n if (version >= 1 && version < 10) return mode.ccBits[0]\n else if (version < 27) return mode.ccBits[1]\n return mode.ccBits[2]\n}\n\n/**\n * Returns the most efficient mode to store the specified data\n *\n * @param {String} dataStr Input data string\n * @return {Mode} Best mode\n */\nexports.getBestModeForData = function getBestModeForData (dataStr) {\n if (Regex.testNumeric(dataStr)) return exports.NUMERIC\n else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC\n else if (Regex.testKanji(dataStr)) return exports.KANJI\n else return exports.BYTE\n}\n\n/**\n * Return mode name as string\n *\n * @param {Mode} mode Mode object\n * @returns {String} Mode name\n */\nexports.toString = function toString (mode) {\n if (mode && mode.id) return mode.id\n throw new Error('Invalid mode')\n}\n\n/**\n * Check if input param is a valid mode object\n *\n * @param {Mode} mode Mode object\n * @returns {Boolean} True if valid mode, false otherwise\n */\nexports.isValid = function isValid (mode) {\n return mode && mode.bit && mode.ccBits\n}\n\n/**\n * Get mode object from its name\n *\n * @param {String} string Mode name\n * @returns {Mode} Mode object\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 'numeric':\n return exports.NUMERIC\n case 'alphanumeric':\n return exports.ALPHANUMERIC\n case 'kanji':\n return exports.KANJI\n case 'byte':\n return exports.BYTE\n default:\n throw new Error('Unknown mode: ' + string)\n }\n}\n\n/**\n * Returns mode from a value.\n * If value is not a valid mode, returns defaultValue\n *\n * @param {Mode|String} value Encoding mode\n * @param {Mode} defaultValue Fallback value\n * @return {Mode} Encoding mode\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":["VersionCheck","require$$0","Regex","require$$1","exports","mode","version","dataStr","fromString","string","value","defaultValue"],"mappings":";;;;;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AAQA,EAAK,OAAOA,EAAK;AAAA,IAClC;AAQA,aAASG,EAAYC,GAAQ;AAC3B,UAAI,OAAOA,KAAW;AACpB,cAAM,IAAI,MAAM,uBAAuB;AAKzC,cAFcA,EAAO,YAAW,GAEnB;AAAA,QACX,KAAK;AACH,iBAAOL,EAAQ;AAAA,QACjB,KAAK;AACH,iBAAOA,EAAQ;AAAA,QACjB,KAAK;AACH,iBAAOA,EAAQ;AAAA,QACjB,KAAK;AACH,iBAAOA,EAAQ;AAAA,QACjB;AACE,gBAAM,IAAI,MAAM,mBAAmBK,CAAM;AAAA,MAC/C;AAAA,IACA;AAUAL,IAAAA,EAAA,OAAe,SAAeM,GAAOC,GAAc;AACjD,UAAIP,EAAQ,QAAQM,CAAK;AACvB,eAAOA;AAGT,UAAI;AACF,eAAOF,EAAWE,CAAK;AAAA,MAC3B,QAAc;AACV,eAAOC;AAAA,MACX;AAAA,IACA;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index130.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { __exports as N } from "./index147.js";
|
|
2
|
-
import { __require as T } from "./index129.js";
|
|
3
|
-
import { __require as Y } from "./index148.js";
|
|
4
|
-
import { __require as L } from "./index149.js";
|
|
5
|
-
import { __require as y } from "./index150.js";
|
|
6
|
-
import { __require as D } from "./index151.js";
|
|
7
|
-
import { __require as j } from "./index146.js";
|
|
8
|
-
import { __require as k } from "./index118.js";
|
|
9
|
-
import { __require as J } from "./index152.js";
|
|
10
|
-
var b;
|
|
11
|
-
function V() {
|
|
12
|
-
return b ? N : (b = 1, (function(m) {
|
|
13
|
-
const r = T(), I = Y(), B = L(), _ = y(), q = D(), c = j(), p = k(), R = J();
|
|
14
|
-
function C(n) {
|
|
15
|
-
return unescape(encodeURIComponent(n)).length;
|
|
16
|
-
}
|
|
17
|
-
function h(n, o, t) {
|
|
18
|
-
const e = [];
|
|
19
|
-
let s;
|
|
20
|
-
for (; (s = n.exec(t)) !== null; )
|
|
21
|
-
e.push({
|
|
22
|
-
data: s[0],
|
|
23
|
-
index: s.index,
|
|
24
|
-
mode: o,
|
|
25
|
-
length: s[0].length
|
|
26
|
-
});
|
|
27
|
-
return e;
|
|
28
|
-
}
|
|
29
|
-
function M(n) {
|
|
30
|
-
const o = h(c.NUMERIC, r.NUMERIC, n), t = h(c.ALPHANUMERIC, r.ALPHANUMERIC, n);
|
|
31
|
-
let e, s;
|
|
32
|
-
return p.isKanjiModeEnabled() ? (e = h(c.BYTE, r.BYTE, n), s = h(c.KANJI, r.KANJI, n)) : (e = h(c.BYTE_KANJI, r.BYTE, n), s = []), o.concat(t, e, s).sort(function(a, l) {
|
|
33
|
-
return a.index - l.index;
|
|
34
|
-
}).map(function(a) {
|
|
35
|
-
return {
|
|
36
|
-
data: a.data,
|
|
37
|
-
mode: a.mode,
|
|
38
|
-
length: a.length
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function E(n, o) {
|
|
43
|
-
switch (o) {
|
|
44
|
-
case r.NUMERIC:
|
|
45
|
-
return I.getBitsLength(n);
|
|
46
|
-
case r.ALPHANUMERIC:
|
|
47
|
-
return B.getBitsLength(n);
|
|
48
|
-
case r.KANJI:
|
|
49
|
-
return q.getBitsLength(n);
|
|
50
|
-
case r.BYTE:
|
|
51
|
-
return _.getBitsLength(n);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function U(n) {
|
|
55
|
-
return n.reduce(function(o, t) {
|
|
56
|
-
const e = o.length - 1 >= 0 ? o[o.length - 1] : null;
|
|
57
|
-
return e && e.mode === t.mode ? (o[o.length - 1].data += t.data, o) : (o.push(t), o);
|
|
58
|
-
}, []);
|
|
59
|
-
}
|
|
60
|
-
function w(n) {
|
|
61
|
-
const o = [];
|
|
62
|
-
for (let t = 0; t < n.length; t++) {
|
|
63
|
-
const e = n[t];
|
|
64
|
-
switch (e.mode) {
|
|
65
|
-
case r.NUMERIC:
|
|
66
|
-
o.push([
|
|
67
|
-
e,
|
|
68
|
-
{ data: e.data, mode: r.ALPHANUMERIC, length: e.length },
|
|
69
|
-
{ data: e.data, mode: r.BYTE, length: e.length }
|
|
70
|
-
]);
|
|
71
|
-
break;
|
|
72
|
-
case r.ALPHANUMERIC:
|
|
73
|
-
o.push([
|
|
74
|
-
e,
|
|
75
|
-
{ data: e.data, mode: r.BYTE, length: e.length }
|
|
76
|
-
]);
|
|
77
|
-
break;
|
|
78
|
-
case r.KANJI:
|
|
79
|
-
o.push([
|
|
80
|
-
e,
|
|
81
|
-
{ data: e.data, mode: r.BYTE, length: C(e.data) }
|
|
82
|
-
]);
|
|
83
|
-
break;
|
|
84
|
-
case r.BYTE:
|
|
85
|
-
o.push([
|
|
86
|
-
{ data: e.data, mode: r.BYTE, length: C(e.data) }
|
|
87
|
-
]);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return o;
|
|
91
|
-
}
|
|
92
|
-
function K(n, o) {
|
|
93
|
-
const t = {}, e = { start: {} };
|
|
94
|
-
let s = ["start"];
|
|
95
|
-
for (let i = 0; i < n.length; i++) {
|
|
96
|
-
const a = n[i], l = [];
|
|
97
|
-
for (let g = 0; g < a.length; g++) {
|
|
98
|
-
const u = a[g], f = "" + i + g;
|
|
99
|
-
l.push(f), t[f] = { node: u, lastCount: 0 }, e[f] = {};
|
|
100
|
-
for (let A = 0; A < s.length; A++) {
|
|
101
|
-
const d = s[A];
|
|
102
|
-
t[d] && t[d].node.mode === u.mode ? (e[d][f] = E(t[d].lastCount + u.length, u.mode) - E(t[d].lastCount, u.mode), t[d].lastCount += u.length) : (t[d] && (t[d].lastCount = u.length), e[d][f] = E(u.length, u.mode) + 4 + r.getCharCountIndicator(u.mode, o));
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
s = l;
|
|
106
|
-
}
|
|
107
|
-
for (let i = 0; i < s.length; i++)
|
|
108
|
-
e[s[i]].end = 0;
|
|
109
|
-
return { map: e, table: t };
|
|
110
|
-
}
|
|
111
|
-
function S(n, o) {
|
|
112
|
-
let t;
|
|
113
|
-
const e = r.getBestModeForData(n);
|
|
114
|
-
if (t = r.from(o, e), t !== r.BYTE && t.bit < e.bit)
|
|
115
|
-
throw new Error('"' + n + '" cannot be encoded with mode ' + r.toString(t) + `.
|
|
116
|
-
Suggested mode is: ` + r.toString(e));
|
|
117
|
-
switch (t === r.KANJI && !p.isKanjiModeEnabled() && (t = r.BYTE), t) {
|
|
118
|
-
case r.NUMERIC:
|
|
119
|
-
return new I(n);
|
|
120
|
-
case r.ALPHANUMERIC:
|
|
121
|
-
return new B(n);
|
|
122
|
-
case r.KANJI:
|
|
123
|
-
return new q(n);
|
|
124
|
-
case r.BYTE:
|
|
125
|
-
return new _(n);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
m.fromArray = function(o) {
|
|
129
|
-
return o.reduce(function(t, e) {
|
|
130
|
-
return typeof e == "string" ? t.push(S(e, null)) : e.data && t.push(S(e.data, e.mode)), t;
|
|
131
|
-
}, []);
|
|
132
|
-
}, m.fromString = function(o, t) {
|
|
133
|
-
const e = M(o, p.isKanjiModeEnabled()), s = w(e), i = K(s, t), a = R.find_path(i.map, "start", "end"), l = [];
|
|
134
|
-
for (let g = 1; g < a.length - 1; g++)
|
|
135
|
-
l.push(i.table[a[g]].node);
|
|
136
|
-
return m.fromArray(U(l));
|
|
137
|
-
}, m.rawSplit = function(o) {
|
|
138
|
-
return m.fromArray(
|
|
139
|
-
M(o, p.isKanjiModeEnabled())
|
|
140
|
-
);
|
|
141
|
-
};
|
|
142
|
-
})(N), N);
|
|
143
|
-
}
|
|
144
|
-
export {
|
|
145
|
-
V as __require
|
|
146
|
-
};
|
|
147
|
-
//# sourceMappingURL=index130.js.map
|
package/dist/index130.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index130.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js"],"sourcesContent":["const Mode = require('./mode')\nconst NumericData = require('./numeric-data')\nconst AlphanumericData = require('./alphanumeric-data')\nconst ByteData = require('./byte-data')\nconst KanjiData = require('./kanji-data')\nconst Regex = require('./regex')\nconst Utils = require('./utils')\nconst dijkstra = require('dijkstrajs')\n\n/**\n * Returns UTF8 byte length\n *\n * @param {String} str Input string\n * @return {Number} Number of byte\n */\nfunction getStringByteLength (str) {\n return unescape(encodeURIComponent(str)).length\n}\n\n/**\n * Get a list of segments of the specified mode\n * from a string\n *\n * @param {Mode} mode Segment mode\n * @param {String} str String to process\n * @return {Array} Array of object with segments data\n */\nfunction getSegments (regex, mode, str) {\n const segments = []\n let result\n\n while ((result = regex.exec(str)) !== null) {\n segments.push({\n data: result[0],\n index: result.index,\n mode: mode,\n length: result[0].length\n })\n }\n\n return segments\n}\n\n/**\n * Extracts a series of segments with the appropriate\n * modes from a string\n *\n * @param {String} dataStr Input string\n * @return {Array} Array of object with segments data\n */\nfunction getSegmentsFromString (dataStr) {\n const numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr)\n const alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr)\n let byteSegs\n let kanjiSegs\n\n if (Utils.isKanjiModeEnabled()) {\n byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr)\n kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr)\n } else {\n byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr)\n kanjiSegs = []\n }\n\n const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs)\n\n return segs\n .sort(function (s1, s2) {\n return s1.index - s2.index\n })\n .map(function (obj) {\n return {\n data: obj.data,\n mode: obj.mode,\n length: obj.length\n }\n })\n}\n\n/**\n * Returns how many bits are needed to encode a string of\n * specified length with the specified mode\n *\n * @param {Number} length String length\n * @param {Mode} mode Segment mode\n * @return {Number} Bit length\n */\nfunction getSegmentBitsLength (length, mode) {\n switch (mode) {\n case Mode.NUMERIC:\n return NumericData.getBitsLength(length)\n case Mode.ALPHANUMERIC:\n return AlphanumericData.getBitsLength(length)\n case Mode.KANJI:\n return KanjiData.getBitsLength(length)\n case Mode.BYTE:\n return ByteData.getBitsLength(length)\n }\n}\n\n/**\n * Merges adjacent segments which have the same mode\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction mergeSegments (segs) {\n return segs.reduce(function (acc, curr) {\n const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null\n if (prevSeg && prevSeg.mode === curr.mode) {\n acc[acc.length - 1].data += curr.data\n return acc\n }\n\n acc.push(curr)\n return acc\n }, [])\n}\n\n/**\n * Generates a list of all possible nodes combination which\n * will be used to build a segments graph.\n *\n * Nodes are divided by groups. Each group will contain a list of all the modes\n * in which is possible to encode the given text.\n *\n * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.\n * The group for '12345' will contain then 3 objects, one for each\n * possible encoding mode.\n *\n * Each node represents a possible segment.\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction buildNodes (segs) {\n const nodes = []\n for (let i = 0; i < segs.length; i++) {\n const seg = segs[i]\n\n switch (seg.mode) {\n case Mode.NUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.ALPHANUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.KANJI:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n break\n case Mode.BYTE:\n nodes.push([\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n }\n }\n\n return nodes\n}\n\n/**\n * Builds a graph from a list of nodes.\n * All segments in each node group will be connected with all the segments of\n * the next group and so on.\n *\n * At each connection will be assigned a weight depending on the\n * segment's byte length.\n *\n * @param {Array} nodes Array of object with segments data\n * @param {Number} version QR Code version\n * @return {Object} Graph of all possible segments\n */\nfunction buildGraph (nodes, version) {\n const table = {}\n const graph = { start: {} }\n let prevNodeIds = ['start']\n\n for (let i = 0; i < nodes.length; i++) {\n const nodeGroup = nodes[i]\n const currentNodeIds = []\n\n for (let j = 0; j < nodeGroup.length; j++) {\n const node = nodeGroup[j]\n const key = '' + i + j\n\n currentNodeIds.push(key)\n table[key] = { node: node, lastCount: 0 }\n graph[key] = {}\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n const prevNodeId = prevNodeIds[n]\n\n if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {\n graph[prevNodeId][key] =\n getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -\n getSegmentBitsLength(table[prevNodeId].lastCount, node.mode)\n\n table[prevNodeId].lastCount += node.length\n } else {\n if (table[prevNodeId]) table[prevNodeId].lastCount = node.length\n\n graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +\n 4 + Mode.getCharCountIndicator(node.mode, version) // switch cost\n }\n }\n }\n\n prevNodeIds = currentNodeIds\n }\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n graph[prevNodeIds[n]].end = 0\n }\n\n return { map: graph, table: table }\n}\n\n/**\n * Builds a segment from a specified data and mode.\n * If a mode is not specified, the more suitable will be used.\n *\n * @param {String} data Input data\n * @param {Mode | String} modesHint Data mode\n * @return {Segment} Segment\n */\nfunction buildSingleSegment (data, modesHint) {\n let mode\n const bestMode = Mode.getBestModeForData(data)\n\n mode = Mode.from(modesHint, bestMode)\n\n // Make sure data can be encoded\n if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {\n throw new Error('\"' + data + '\"' +\n ' cannot be encoded with mode ' + Mode.toString(mode) +\n '.\\n Suggested mode is: ' + Mode.toString(bestMode))\n }\n\n // Use Mode.BYTE if Kanji support is disabled\n if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {\n mode = Mode.BYTE\n }\n\n switch (mode) {\n case Mode.NUMERIC:\n return new NumericData(data)\n\n case Mode.ALPHANUMERIC:\n return new AlphanumericData(data)\n\n case Mode.KANJI:\n return new KanjiData(data)\n\n case Mode.BYTE:\n return new ByteData(data)\n }\n}\n\n/**\n * Builds a list of segments from an array.\n * Array can contain Strings or Objects with segment's info.\n *\n * For each item which is a string, will be generated a segment with the given\n * string and the more appropriate encoding mode.\n *\n * For each item which is an object, will be generated a segment with the given\n * data and mode.\n * Objects must contain at least the property \"data\".\n * If property \"mode\" is not present, the more suitable mode will be used.\n *\n * @param {Array} array Array of objects with segments data\n * @return {Array} Array of Segments\n */\nexports.fromArray = function fromArray (array) {\n return array.reduce(function (acc, seg) {\n if (typeof seg === 'string') {\n acc.push(buildSingleSegment(seg, null))\n } else if (seg.data) {\n acc.push(buildSingleSegment(seg.data, seg.mode))\n }\n\n return acc\n }, [])\n}\n\n/**\n * Builds an optimized sequence of segments from a string,\n * which will produce the shortest possible bitstream.\n *\n * @param {String} data Input string\n * @param {Number} version QR Code version\n * @return {Array} Array of segments\n */\nexports.fromString = function fromString (data, version) {\n const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n\n const nodes = buildNodes(segs)\n const graph = buildGraph(nodes, version)\n const path = dijkstra.find_path(graph.map, 'start', 'end')\n\n const optimizedSegs = []\n for (let i = 1; i < path.length - 1; i++) {\n optimizedSegs.push(graph.table[path[i]].node)\n }\n\n return exports.fromArray(mergeSegments(optimizedSegs))\n}\n\n/**\n * Splits a string in various segments with the modes which\n * best represent their content.\n * The produced segments are far from being optimized.\n * The output of this function is only used to estimate a QR Code version\n * which may contain the data.\n *\n * @param {string} data Input string\n * @return {Array} Array of segments\n */\nexports.rawSplit = function rawSplit (data) {\n return exports.fromArray(\n getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n )\n}\n"],"names":["Mode","require$$0","NumericData","require$$1","AlphanumericData","require$$2","ByteData","require$$3","KanjiData","require$$4","Regex","require$$5","Utils","require$$6","dijkstra","require$$7","getStringByteLength","str","getSegments","regex","mode","segments","result","getSegmentsFromString","dataStr","numSegs","alphaNumSegs","byteSegs","kanjiSegs","s1","s2","obj","getSegmentBitsLength","length","mergeSegments","segs","acc","curr","prevSeg","buildNodes","nodes","i","seg","buildGraph","version","table","graph","prevNodeIds","nodeGroup","currentNodeIds","j","node","key","n","prevNodeId","buildSingleSegment","data","modesHint","bestMode","exports","array","path","optimizedSegs"],"mappings":";;;;;;;;;;;;AAAA,UAAMA,IAAOC,EAAA,GACPC,IAAcC,EAAA,GACdC,IAAmBC,EAAA,GACnBC,IAAWC,EAAA,GACXC,IAAYC,EAAA,GACZC,IAAQC,EAAA,GACRC,IAAQC,EAAA,GACRC,IAAWC,EAAA;AAQjB,aAASC,EAAqBC,GAAK;AACjC,aAAO,SAAS,mBAAmBA,CAAG,CAAC,EAAE;AAAA,IAC3C;AAUA,aAASC,EAAaC,GAAOC,GAAMH,GAAK;AACtC,YAAMI,IAAW,CAAA;AACjB,UAAIC;AAEJ,cAAQA,IAASH,EAAM,KAAKF,CAAG,OAAO;AACpC,QAAAI,EAAS,KAAK;AAAA,UACZ,MAAMC,EAAO,CAAC;AAAA,UACd,OAAOA,EAAO;AAAA,UACd,MAAMF;AAAA,UACN,QAAQE,EAAO,CAAC,EAAE;AAAA,SACnB;AAGH,aAAOD;AAAA,IACT;AASA,aAASE,EAAuBC,GAAS;AACvC,YAAMC,IAAUP,EAAYR,EAAM,SAASV,EAAK,SAASwB,CAAO,GAC1DE,IAAeR,EAAYR,EAAM,cAAcV,EAAK,cAAcwB,CAAO;AAC/E,UAAIG,GACAC;AAEJ,aAAIhB,EAAM,wBACRe,IAAWT,EAAYR,EAAM,MAAMV,EAAK,MAAMwB,CAAO,GACrDI,IAAYV,EAAYR,EAAM,OAAOV,EAAK,OAAOwB,CAAO,MAExDG,IAAWT,EAAYR,EAAM,YAAYV,EAAK,MAAMwB,CAAO,GAC3DI,IAAY,CAAA,IAGDH,EAAQ,OAAOC,GAAcC,GAAUC,CAAS,EAG1D,K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;AAAA,IACA;AAiBAG,IAAAA,EAAA,YAAoB,SAAoBC,GAAO;AAC7C,aAAOA,EAAM,OAAO,SAAUxB,GAAKM,GAAK;AACtC,eAAI,OAAOA,KAAQ,WACjBN,EAAI,KAAKmB,EAAmBb,GAAK,IAAI,CAAC,IAC7BA,EAAI,QACbN,EAAI,KAAKmB,EAAmBb,EAAI,MAAMA,EAAI,IAAI,CAAC,GAG1CN;AAAA,MACX,GAAK,CAAA,CAAE;AAAA,IACP,GAUAuB,EAAA,aAAqB,SAAqBH,GAAMZ,GAAS;AACvD,YAAMT,IAAOZ,EAAsBiC,GAAM5C,EAAM,mBAAkB,CAAE,GAE7D4B,IAAQD,EAAWJ,CAAI,GACvBW,IAAQH,EAAWH,GAAOI,CAAO,GACjCiB,IAAO/C,EAAS,UAAUgC,EAAM,KAAK,SAAS,KAAK,GAEnDgB,IAAgB,CAAA;AACtB,eAASrB,IAAI,GAAGA,IAAIoB,EAAK,SAAS,GAAGpB;AACnC,QAAAqB,EAAc,KAAKhB,EAAM,MAAMe,EAAKpB,CAAC,CAAC,EAAE,IAAI;AAG9C,aAAOkB,EAAQ,UAAUzB,EAAc4B,CAAa,CAAC;AAAA,IACvD,GAYAH,EAAA,WAAmB,SAAmBH,GAAM;AAC1C,aAAOG,EAAQ;AAAA,QACbpC,EAAsBiC,GAAM5C,EAAM,mBAAkB,CAAE;AAAA,MAC1D;AAAA,IACA;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index131.js
DELETED
package/dist/index131.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index131.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index132.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { __exports as u } from "./index134.js";
|
|
2
|
-
var s;
|
|
3
|
-
function M() {
|
|
4
|
-
return s ? u : (s = 1, (function(l) {
|
|
5
|
-
function m(n) {
|
|
6
|
-
if (typeof n == "number" && (n = n.toString()), typeof n != "string")
|
|
7
|
-
throw new Error("Color should be defined as hex string");
|
|
8
|
-
let e = n.slice().replace("#", "").split("");
|
|
9
|
-
if (e.length < 3 || e.length === 5 || e.length > 8)
|
|
10
|
-
throw new Error("Invalid hex color: " + n);
|
|
11
|
-
(e.length === 3 || e.length === 4) && (e = Array.prototype.concat.apply([], e.map(function(t) {
|
|
12
|
-
return [t, t];
|
|
13
|
-
}))), e.length === 6 && e.push("F", "F");
|
|
14
|
-
const r = parseInt(e.join(""), 16);
|
|
15
|
-
return {
|
|
16
|
-
r: r >> 24 & 255,
|
|
17
|
-
g: r >> 16 & 255,
|
|
18
|
-
b: r >> 8 & 255,
|
|
19
|
-
a: r & 255,
|
|
20
|
-
hex: "#" + e.slice(0, 6).join("")
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
l.getOptions = function(e) {
|
|
24
|
-
e || (e = {}), e.color || (e.color = {});
|
|
25
|
-
const r = typeof e.margin > "u" || e.margin === null || e.margin < 0 ? 4 : e.margin, t = e.width && e.width >= 21 ? e.width : void 0, f = e.scale || 4;
|
|
26
|
-
return {
|
|
27
|
-
width: t,
|
|
28
|
-
scale: t ? 4 : f,
|
|
29
|
-
margin: r,
|
|
30
|
-
color: {
|
|
31
|
-
dark: m(e.color.dark || "#000000ff"),
|
|
32
|
-
light: m(e.color.light || "#ffffffff")
|
|
33
|
-
},
|
|
34
|
-
type: e.type,
|
|
35
|
-
rendererOpts: e.rendererOpts || {}
|
|
36
|
-
};
|
|
37
|
-
}, l.getScale = function(e, r) {
|
|
38
|
-
return r.width && r.width >= e + r.margin * 2 ? r.width / (e + r.margin * 2) : r.scale;
|
|
39
|
-
}, l.getImageWidth = function(e, r) {
|
|
40
|
-
const t = l.getScale(e, r);
|
|
41
|
-
return Math.floor((e + r.margin * 2) * t);
|
|
42
|
-
}, l.qrToImageData = function(e, r, t) {
|
|
43
|
-
const f = r.modules.size, w = r.modules.data, d = l.getScale(f, t), g = Math.floor((f + t.margin * 2) * d), a = t.margin * d, y = [t.color.light, t.color.dark];
|
|
44
|
-
for (let i = 0; i < g; i++)
|
|
45
|
-
for (let c = 0; c < g; c++) {
|
|
46
|
-
let h = (i * g + c) * 4, o = t.color.light;
|
|
47
|
-
if (i >= a && c >= a && i < g - a && c < g - a) {
|
|
48
|
-
const b = Math.floor((i - a) / d), I = Math.floor((c - a) / d);
|
|
49
|
-
o = y[w[b * f + I] ? 1 : 0];
|
|
50
|
-
}
|
|
51
|
-
e[h++] = o.r, e[h++] = o.g, e[h++] = o.b, e[h] = o.a;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
})(u), u);
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
M as __require
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=index132.js.map
|
package/dist/index132.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index132.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js"],"sourcesContent":["function hex2rgba (hex) {\n if (typeof hex === 'number') {\n hex = hex.toString()\n }\n\n if (typeof hex !== 'string') {\n throw new Error('Color should be defined as hex string')\n }\n\n let hexCode = hex.slice().replace('#', '').split('')\n if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {\n throw new Error('Invalid hex color: ' + hex)\n }\n\n // Convert from short to long form (fff -> ffffff)\n if (hexCode.length === 3 || hexCode.length === 4) {\n hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {\n return [c, c]\n }))\n }\n\n // Add default alpha value\n if (hexCode.length === 6) hexCode.push('F', 'F')\n\n const hexValue = parseInt(hexCode.join(''), 16)\n\n return {\n r: (hexValue >> 24) & 255,\n g: (hexValue >> 16) & 255,\n b: (hexValue >> 8) & 255,\n a: hexValue & 255,\n hex: '#' + hexCode.slice(0, 6).join('')\n }\n}\n\nexports.getOptions = function getOptions (options) {\n if (!options) options = {}\n if (!options.color) options.color = {}\n\n const margin = typeof options.margin === 'undefined' ||\n options.margin === null ||\n options.margin < 0\n ? 4\n : options.margin\n\n const width = options.width && options.width >= 21 ? options.width : undefined\n const scale = options.scale || 4\n\n return {\n width: width,\n scale: width ? 4 : scale,\n margin: margin,\n color: {\n dark: hex2rgba(options.color.dark || '#000000ff'),\n light: hex2rgba(options.color.light || '#ffffffff')\n },\n type: options.type,\n rendererOpts: options.rendererOpts || {}\n }\n}\n\nexports.getScale = function getScale (qrSize, opts) {\n return opts.width && opts.width >= qrSize + opts.margin * 2\n ? opts.width / (qrSize + opts.margin * 2)\n : opts.scale\n}\n\nexports.getImageWidth = function getImageWidth (qrSize, opts) {\n const scale = exports.getScale(qrSize, opts)\n return Math.floor((qrSize + opts.margin * 2) * scale)\n}\n\nexports.qrToImageData = function qrToImageData (imgData, qr, opts) {\n const size = qr.modules.size\n const data = qr.modules.data\n const scale = exports.getScale(size, opts)\n const symbolSize = Math.floor((size + opts.margin * 2) * scale)\n const scaledMargin = opts.margin * scale\n const palette = [opts.color.light, opts.color.dark]\n\n for (let i = 0; i < symbolSize; i++) {\n for (let j = 0; j < symbolSize; j++) {\n let posDst = (i * symbolSize + j) * 4\n let pxColor = opts.color.light\n\n if (i >= scaledMargin && j >= scaledMargin &&\n i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {\n const iSrc = Math.floor((i - scaledMargin) / scale)\n const jSrc = Math.floor((j - scaledMargin) / scale)\n pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0]\n }\n\n imgData[posDst++] = pxColor.r\n imgData[posDst++] = pxColor.g\n imgData[posDst++] = pxColor.b\n imgData[posDst] = pxColor.a\n }\n }\n}\n"],"names":["hex2rgba","hex","hexCode","c","hexValue","exports","options","margin","width","scale","qrSize","opts","imgData","qr","size","data","symbolSize","scaledMargin","palette","j","posDst","pxColor","iSrc","jSrc"],"mappings":";;;;AAAA,aAASA,EAAUC,GAAK;AAKtB,UAJI,OAAOA,KAAQ,aACjBA,IAAMA,EAAI,SAAQ,IAGhB,OAA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EAAQ,GAC5BT,EAAQQ,GAAQ,IAAIC,EAAQ,GAC5BT,EAAQQ,CAAM,IAAIC,EAAQ;AAAA,QAChC;AAAA,IAEA;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index133.js
DELETED
package/dist/index133.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index133.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index134.js
DELETED
package/dist/index134.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index134.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index135.js
DELETED
package/dist/index135.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index135.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index136.js
DELETED
package/dist/index136.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index136.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index137.js
DELETED
package/dist/index137.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index137.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index138.js
DELETED
package/dist/index138.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index138.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index139.js
DELETED
package/dist/index139.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index139.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index140.js
DELETED
package/dist/index140.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index140.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index141.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { __exports as f } from "./index153.js";
|
|
2
|
-
import { __require as c } from "./index154.js";
|
|
3
|
-
var m;
|
|
4
|
-
function y() {
|
|
5
|
-
return m ? f : (m = 1, (function(o) {
|
|
6
|
-
const u = c();
|
|
7
|
-
o.mul = function(t, n) {
|
|
8
|
-
const e = new Uint8Array(t.length + n.length - 1);
|
|
9
|
-
for (let r = 0; r < t.length; r++)
|
|
10
|
-
for (let l = 0; l < n.length; l++)
|
|
11
|
-
e[r + l] ^= u.mul(t[r], n[l]);
|
|
12
|
-
return e;
|
|
13
|
-
}, o.mod = function(t, n) {
|
|
14
|
-
let e = new Uint8Array(t);
|
|
15
|
-
for (; e.length - n.length >= 0; ) {
|
|
16
|
-
const r = e[0];
|
|
17
|
-
for (let i = 0; i < n.length; i++)
|
|
18
|
-
e[i] ^= u.mul(n[i], r);
|
|
19
|
-
let l = 0;
|
|
20
|
-
for (; l < e.length && e[l] === 0; ) l++;
|
|
21
|
-
e = e.slice(l);
|
|
22
|
-
}
|
|
23
|
-
return e;
|
|
24
|
-
}, o.generateECPolynomial = function(t) {
|
|
25
|
-
let n = new Uint8Array([1]);
|
|
26
|
-
for (let e = 0; e < t; e++)
|
|
27
|
-
n = o.mul(n, new Uint8Array([1, u.exp(e)]));
|
|
28
|
-
return n;
|
|
29
|
-
};
|
|
30
|
-
})(f), f);
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
y as __require
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=index141.js.map
|
package/dist/index141.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index141.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js"],"sourcesContent":["const GF = require('./galois-field')\n\n/**\n * Multiplies two polynomials inside Galois Field\n *\n * @param {Uint8Array} p1 Polynomial\n * @param {Uint8Array} p2 Polynomial\n * @return {Uint8Array} Product of p1 and p2\n */\nexports.mul = function mul (p1, p2) {\n const coeff = new Uint8Array(p1.length + p2.length - 1)\n\n for (let i = 0; i < p1.length; i++) {\n for (let j = 0; j < p2.length; j++) {\n coeff[i + j] ^= GF.mul(p1[i], p2[j])\n }\n }\n\n return coeff\n}\n\n/**\n * Calculate the remainder of polynomials division\n *\n * @param {Uint8Array} divident Polynomial\n * @param {Uint8Array} divisor Polynomial\n * @return {Uint8Array} Remainder\n */\nexports.mod = function mod (divident, divisor) {\n let result = new Uint8Array(divident)\n\n while ((result.length - divisor.length) >= 0) {\n const coeff = result[0]\n\n for (let i = 0; i < divisor.length; i++) {\n result[i] ^= GF.mul(divisor[i], coeff)\n }\n\n // remove all zeros from buffer head\n let offset = 0\n while (offset < result.length && result[offset] === 0) offset++\n result = result.slice(offset)\n }\n\n return result\n}\n\n/**\n * Generate an irreducible generator polynomial of specified degree\n * (used by Reed-Solomon encoder)\n *\n * @param {Number} degree Degree of the generator polynomial\n * @return {Uint8Array} Buffer containing polynomial coefficients\n */\nexports.generateECPolynomial = function generateECPolynomial (degree) {\n let poly = new Uint8Array([1])\n for (let i = 0; i < degree; i++) {\n poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)]))\n }\n\n return poly\n}\n"],"names":["GF","require$$0","exports","p1","p2","coeff","i","j","divident","divisor","result","offset","degree","poly"],"mappings":";;;;;AAAA,UAAMA,IAAKC,EAAA;AASXC,IAAAA,EAAA,MAAc,SAAcC,GAAIC,GAAI;AAClC,YAAMC,IAAQ,IAAI,WAAWF,EAAG,SAASC,EAAG,SAAS,CAAC;AAEtD,eAASE,IAAI,GAAGA,IAAIH,EAAG,QAAQG;AAC7B,iBAASC,IAAI,GAAGA,IAAIH,EAAG,QAAQG;AAC7B,UAAAF,EAAMC,IAAIC,CAAC,KAAKP,EAAG,IAAIG,EAAGG,CAAC,GAAGF,EAAGG,CAAC,CAAC;AAIvC,aAAOF;AAAA,IACT,GASAH,EAAA,MAAc,SAAcM,GAAUC,GAAS;AAC7C,UAAIC,IAAS,IAAI,WAAWF,CAAQ;AAEpC,aAAQE,EAAO,SAASD,EAAQ,UAAW,KAAG;AAC5C,cAAMJ,IAAQK,EAAO,CAAC;AAEtB,iBAAS,IAAI,GAAG,IAAID,EAAQ,QAAQ;AAClC,UAAAC,EAAO,CAAC,KAAKV,EAAG,IAAIS,EAAQ,CAAC,GAAGJ,CAAK;AAIvC,YAAIM,IAAS;AACb,eAAOA,IAASD,EAAO,UAAUA,EAAOC,CAAM,MAAM,IAAG,CAAAA;AACvD,QAAAD,IAASA,EAAO,MAAMC,CAAM;AAAA,MAChC;AAEE,aAAOD;AAAA,IACT,GASAR,EAAA,uBAA+B,SAA+BU,GAAQ;AACpE,UAAIC,IAAO,IAAI,WAAW,CAAC,CAAC,CAAC;AAC7B,eAASP,IAAI,GAAGA,IAAIM,GAAQN;AAC1B,QAAAO,IAAOX,EAAQ,IAAIW,GAAM,IAAI,WAAW,CAAC,GAAGb,EAAG,IAAIM,CAAC,CAAC,CAAC,CAAC;AAGzD,aAAOO;AAAA,IACT;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index142.js
DELETED
package/dist/index142.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index142.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index143.js
DELETED
package/dist/index143.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index143.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js"],"sourcesContent":["/**\n * Check if QR Code version is valid\n *\n * @param {Number} version QR Code version\n * @return {Boolean} true if valid version, false otherwise\n */\nexports.isValid = function isValid (version) {\n return !isNaN(version) && version >= 1 && version <= 40\n}\n"],"names":["versionCheck","version"],"mappings":";;;yBAMAA,EAAA,UAAkB,SAAkBC,GAAS;AAC3C,WAAO,CAAC,MAAMA,CAAO,KAAKA,KAAW,KAAKA,KAAW;AAAA,EACvD;;","x_google_ignoreList":[0]}
|
package/dist/index144.js
DELETED
package/dist/index144.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index144.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index145.js
DELETED
package/dist/index145.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index145.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index146.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __exports as e } from "./index156.js";
|
|
2
|
-
var s;
|
|
3
|
-
function R() {
|
|
4
|
-
if (s) return e;
|
|
5
|
-
s = 1;
|
|
6
|
-
const n = "[0-9]+", E = "[A-Z $%*+\\-./:]+";
|
|
7
|
-
let u = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
8
|
-
u = u.replace(/u/g, "\\u");
|
|
9
|
-
const i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + u + `)(?:.|[\r
|
|
10
|
-
]))+`;
|
|
11
|
-
e.KANJI = new RegExp(u, "g"), e.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), e.BYTE = new RegExp(i, "g"), e.NUMERIC = new RegExp(n, "g"), e.ALPHANUMERIC = new RegExp(E, "g");
|
|
12
|
-
const c = new RegExp("^" + u + "$"), g = new RegExp("^" + n + "$"), A = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
13
|
-
return e.testKanji = function(t) {
|
|
14
|
-
return c.test(t);
|
|
15
|
-
}, e.testNumeric = function(t) {
|
|
16
|
-
return g.test(t);
|
|
17
|
-
}, e.testAlphanumeric = function(t) {
|
|
18
|
-
return A.test(t);
|
|
19
|
-
}, e;
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
R as __require
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=index146.js.map
|
package/dist/index146.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index146.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js"],"sourcesContent":["const numeric = '[0-9]+'\nconst alphanumeric = '[A-Z $%*+\\\\-./:]+'\nlet kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +\n '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +\n '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +\n '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'\nkanji = kanji.replace(/u/g, '\\\\u')\n\nconst byte = '(?:(?![A-Z0-9 $%*+\\\\-./:]|' + kanji + ')(?:.|[\\r\\n]))+'\n\nexports.KANJI = new RegExp(kanji, 'g')\nexports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\\\-./:]+', 'g')\nexports.BYTE = new RegExp(byte, 'g')\nexports.NUMERIC = new RegExp(numeric, 'g')\nexports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')\n\nconst TEST_KANJI = new RegExp('^' + kanji + '$')\nconst TEST_NUMERIC = new RegExp('^' + numeric + '$')\nconst TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\\\-./:]+$')\n\nexports.testKanji = function testKanji (str) {\n return TEST_KANJI.test(str)\n}\n\nexports.testNumeric = function testNumeric (str) {\n return TEST_NUMERIC.test(str)\n}\n\nexports.testAlphanumeric = function testAlphanumeric (str) {\n return TEST_ALPHANUMERIC.test(str)\n}\n"],"names":["numeric","alphanumeric","kanji","byte","regex","TEST_KANJI","TEST_NUMERIC","TEST_ALPHANUMERIC","str"],"mappings":";;;;;AAAA,QAAMA,IAAU,UACVC,IAAe;AACrB,MAAIC,IAAQ;AAIZ,EAAAA,IAAQA,EAAM,QAAQ,MAAM,KAAK;AAEjC,QAAMC,IAAO,+BAA+BD,IAAQ;AAAA;AAEpD,EAAAE,EAAA,QAAgB,IAAI,OAAOF,GAAO,GAAG,GACrCE,EAAA,aAAqB,IAAI,OAAO,yBAAyB,GAAG,GAC5DA,EAAA,OAAe,IAAI,OAAOD,GAAM,GAAG,GACnCC,EAAA,UAAkB,IAAI,OAAOJ,GAAS,GAAG,GACzCI,EAAA,eAAuB,IAAI,OAAOH,GAAc,GAAG;AAEnD,QAAMI,IAAa,IAAI,OAAO,MAAMH,IAAQ,GAAG,GACzCI,IAAe,IAAI,OAAO,MAAMN,IAAU,GAAG,GAC7CO,IAAoB,IAAI,OAAO,wBAAwB;AAE7D,SAAAH,EAAA,YAAoB,SAAoBI,GAAK;AAC3C,WAAOH,EAAW,KAAKG,CAAG;AAAA,EAC5B,GAEAJ,EAAA,cAAsB,SAAsBI,GAAK;AAC/C,WAAOF,EAAa,KAAKE,CAAG;AAAA,EAC9B,GAEAJ,EAAA,mBAA2B,SAA2BI,GAAK;AACzD,WAAOD,EAAkB,KAAKC,CAAG;AAAA,EACnC;;","x_google_ignoreList":[0]}
|
package/dist/index147.js
DELETED
package/dist/index147.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index147.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index148.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { __require as h } from "./index129.js";
|
|
2
|
-
var u, s;
|
|
3
|
-
function c() {
|
|
4
|
-
if (s) return u;
|
|
5
|
-
s = 1;
|
|
6
|
-
const g = h();
|
|
7
|
-
function t(i) {
|
|
8
|
-
this.mode = g.NUMERIC, this.data = i.toString();
|
|
9
|
-
}
|
|
10
|
-
return t.getBitsLength = function(e) {
|
|
11
|
-
return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
|
|
12
|
-
}, t.prototype.getLength = function() {
|
|
13
|
-
return this.data.length;
|
|
14
|
-
}, t.prototype.getBitsLength = function() {
|
|
15
|
-
return t.getBitsLength(this.data.length);
|
|
16
|
-
}, t.prototype.write = function(e) {
|
|
17
|
-
let r, n, a;
|
|
18
|
-
for (r = 0; r + 3 <= this.data.length; r += 3)
|
|
19
|
-
n = this.data.substr(r, 3), a = parseInt(n, 10), e.put(a, 10);
|
|
20
|
-
const o = this.data.length - r;
|
|
21
|
-
o > 0 && (n = this.data.substr(r), a = parseInt(n, 10), e.put(a, o * 3 + 1));
|
|
22
|
-
}, u = t, u;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
c as __require
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=index148.js.map
|
package/dist/index148.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index148.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js"],"sourcesContent":["const Mode = require('./mode')\n\nfunction NumericData (data) {\n this.mode = Mode.NUMERIC\n this.data = data.toString()\n}\n\nNumericData.getBitsLength = function getBitsLength (length) {\n return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)\n}\n\nNumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nNumericData.prototype.getBitsLength = function getBitsLength () {\n return NumericData.getBitsLength(this.data.length)\n}\n\nNumericData.prototype.write = function write (bitBuffer) {\n let i, group, value\n\n // The input data string is divided into groups of three digits,\n // and each group is converted to its 10-bit binary equivalent.\n for (i = 0; i + 3 <= this.data.length; i += 3) {\n group = this.data.substr(i, 3)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, 10)\n }\n\n // If the number of input digits is not an exact multiple of three,\n // the final one or two digits are converted to 4 or 7 bits respectively.\n const remainingNum = this.data.length - i\n if (remainingNum > 0) {\n group = this.data.substr(i)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, remainingNum * 3 + 1)\n }\n}\n\nmodule.exports = NumericData\n"],"names":["Mode","require$$0","NumericData","data","length","bitBuffer","i","group","value","remainingNum","numericData"],"mappings":";;;;;AAAA,QAAMA,IAAOC,EAAA;AAEb,WAASC,EAAaC,GAAM;AAC1B,SAAK,OAAOH,EAAK,SACjB,KAAK,OAAOG,EAAK,SAAQ;AAAA,EAC3B;AAEA,SAAAD,EAAY,gBAAgB,SAAwBE,GAAQ;AAC1D,WAAO,KAAK,KAAK,MAAMA,IAAS,CAAC,KAAMA,IAAS,IAAOA,IAAS,IAAK,IAAI,IAAK;AAAA,EAChF,GAEAF,EAAY,UAAU,YAAY,WAAsB;AACtD,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAY,UAAU,gBAAgB,WAA0B;AAC9D,WAAOA,EAAY,cAAc,KAAK,KAAK,MAAM;AAAA,EACnD,GAEAA,EAAY,UAAU,QAAQ,SAAgBG,GAAW;AACvD,QAAIC,GAAGC,GAAOC;AAId,SAAKF,IAAI,GAAGA,IAAI,KAAK,KAAK,KAAK,QAAQA,KAAK;AAC1C,MAAAC,IAAQ,KAAK,KAAK,OAAOD,GAAG,CAAC,GAC7BE,IAAQ,SAASD,GAAO,EAAE,GAE1BF,EAAU,IAAIG,GAAO,EAAE;AAKzB,UAAMC,IAAe,KAAK,KAAK,SAASH;AACxC,IAAIG,IAAe,MACjBF,IAAQ,KAAK,KAAK,OAAOD,CAAC,GAC1BE,IAAQ,SAASD,GAAO,EAAE,GAE1BF,EAAU,IAAIG,GAAOC,IAAe,IAAI,CAAC;AAAA,EAE7C,GAEAC,IAAiBR;;","x_google_ignoreList":[0]}
|