@sythos/js_barcode_universal 1.2.5 → 1.4.1
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/AI_USAGE.md +33 -0
- package/LICENSE +11 -2
- package/NOTICE.md +10 -4
- package/README.md +601 -465
- package/bundle/sythos-barcode.esm.js +4669 -74
- package/bundle/sythos-barcode.js +4575 -72
- package/examples/create.html +1010 -730
- package/examples/read.html +1 -0
- package/licenses/README.md +40 -58
- package/licenses/aztec-code.license +15 -13
- package/licenses/aztec-rune.license +76 -0
- package/licenses/codabar.license +18 -15
- package/licenses/code-11.license +11 -9
- package/licenses/code-128.license +10 -8
- package/licenses/code-39.license +10 -8
- package/licenses/code-93.license +16 -14
- package/licenses/compact-pdf417.license +76 -0
- package/licenses/data-matrix.license +15 -13
- package/licenses/ean-13.license +10 -8
- package/licenses/ean-2.license +74 -0
- package/licenses/ean-5.license +74 -0
- package/licenses/ean-8.license +10 -8
- package/licenses/frameqr.license +84 -0
- package/licenses/gs1-128.license +10 -8
- package/licenses/gs1-databar.license +81 -0
- package/licenses/isbn.license +10 -8
- package/licenses/itf-14.license +10 -8
- package/licenses/itf.license +9 -7
- package/licenses/micro-qr.license +79 -0
- package/licenses/micropdf417.license +52 -67
- package/licenses/msi-plessey.license +13 -11
- package/licenses/pdf417.license +78 -37
- package/licenses/pharmacode.license +14 -12
- package/licenses/qr-code.license +9 -7
- package/licenses/rmqr.license +79 -0
- package/licenses/upc-a.license +12 -10
- package/licenses/upc-e.license +10 -8
- package/package.json +109 -88
- package/src/aztec/decoder.js +1 -0
- package/src/aztec/detector.js +1 -0
- package/src/aztec/encoder.js +1 -0
- package/src/aztec/high-level.js +1 -0
- package/src/aztec/index.js +1 -0
- package/src/aztec/tables.js +1 -0
- package/src/aztecrune/decoder.js +156 -0
- package/src/aztecrune/detector.js +167 -0
- package/src/aztecrune/encoder.js +122 -0
- package/src/aztecrune/index.js +50 -0
- package/src/aztecrune/tables.js +138 -0
- package/src/compactpdf417/decoder.js +129 -0
- package/src/compactpdf417/detector.js +140 -0
- package/src/compactpdf417/encoder.js +141 -0
- package/src/compactpdf417/index.js +22 -0
- package/src/compactpdf417/tables.js +174 -0
- package/src/core/bit-buffer.js +1 -0
- package/src/core/bit-matrix.js +1 -0
- package/src/core/errors.js +1 -0
- package/src/core/galois-field.js +1 -0
- package/src/core/index.js +1 -0
- package/src/core/reed-solomon.js +1 -0
- package/src/databar/codec.js +182 -0
- package/src/databar/decoder.js +115 -0
- package/src/databar/encoder.js +97 -0
- package/src/databar/gs1.js +178 -0
- package/src/databar/index.js +69 -0
- package/src/databar/patterns.js +144 -0
- package/src/databar/tables.js +125 -0
- package/src/datamatrix/decoder.js +263 -262
- package/src/datamatrix/detector.js +226 -225
- package/src/datamatrix/encoder.js +192 -191
- package/src/datamatrix/index.js +43 -42
- package/src/datamatrix/tables.js +124 -123
- package/src/frameqr/decoder.js +240 -0
- package/src/frameqr/detector.js +193 -0
- package/src/frameqr/encoder.js +157 -0
- package/src/frameqr/index.js +43 -0
- package/src/frameqr/tables.js +271 -0
- package/src/image/binarizer.js +1 -0
- package/src/image/grid-sampler.js +1 -0
- package/src/image/index.js +1 -0
- package/src/image/luminance.js +1 -0
- package/src/image/perspective.js +1 -0
- package/src/index.js +155 -2
- package/src/micropdf417/compaction.js +1 -0
- package/src/micropdf417/decoder.js +1 -0
- package/src/micropdf417/detector.js +1 -0
- package/src/micropdf417/encoder.js +1 -0
- package/src/micropdf417/error-correction.js +1 -0
- package/src/micropdf417/index.js +1 -0
- package/src/micropdf417/tables.js +1 -0
- package/src/microqr/decoder.js +246 -0
- package/src/microqr/detector.js +356 -0
- package/src/microqr/encoder.js +270 -0
- package/src/microqr/index.js +37 -0
- package/src/microqr/tables.js +317 -0
- package/src/oned/addons.js +421 -0
- package/src/oned/index.js +77 -59
- package/src/oned/patterns.js +1 -0
- package/src/oned/reader.js +1 -0
- package/src/oned/writers.js +1 -0
- package/src/pdf417/compaction.js +1 -0
- package/src/pdf417/decoder.js +1 -0
- package/src/pdf417/detector.js +1 -0
- package/src/pdf417/encoder.js +1 -0
- package/src/pdf417/error-correction.js +1 -0
- package/src/pdf417/index.js +5 -0
- package/src/pdf417/tables.js +1 -0
- package/src/qr/decoder.js +1 -0
- package/src/qr/detector.js +1 -0
- package/src/qr/encoder.js +1 -0
- package/src/qr/index.js +1 -0
- package/src/qr/tables.js +1 -0
- package/src/render/image-data.js +1 -0
- package/src/render/index.js +1 -0
- package/src/render/options.js +1 -0
- package/src/render/png.js +1 -0
- package/src/render/svg.js +1 -0
- package/src/render/webgl.js +1 -0
- package/src/render/webgpu.js +1 -0
- package/src/rmqr/decoder.js +102 -0
- package/src/rmqr/detector.js +91 -0
- package/src/rmqr/encoder.js +173 -0
- package/src/rmqr/index.js +38 -0
- package/src/rmqr/tables.js +155 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Sythos Barcode Suite
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2026 Sythos
|
|
7
|
+
*
|
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
* in the Software without restriction, including without limitation the rights
|
|
11
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
* furnished to do so, subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
* copies or substantial portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
* SOFTWARE.
|
|
25
|
+
*
|
|
26
|
+
* SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
|
|
27
|
+
* SPDX-License-Identifier: MIT
|
|
28
|
+
*
|
|
29
|
+
* Original work. No code from any other barcode implementation.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/** Mathematical width construction for GS1 DataBar characters. @module databar/patterns */
|
|
33
|
+
|
|
34
|
+
import { dataBar14GroupFor } from './tables.js';
|
|
35
|
+
|
|
36
|
+
function combinations(n, r) {
|
|
37
|
+
if (n < r || r < 0) return 0;
|
|
38
|
+
if (r === 0 || n === r) return 1;
|
|
39
|
+
let result = 1;
|
|
40
|
+
const k = Math.min(r, n - r);
|
|
41
|
+
for (let i = 1; i <= k; i++) result = result * (n - k + i) / i;
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Unrank one constrained positive composition.
|
|
47
|
+
*
|
|
48
|
+
* The rank is the GS1 DataBar symbol-character value inside its group. This
|
|
49
|
+
* implementation follows the combinatorial definition directly: it counts
|
|
50
|
+
* every remaining admissible suffix rather than storing third-party patterns.
|
|
51
|
+
*/
|
|
52
|
+
export function dataBarWidths(rank, modules, elements, maximumWidth, noNarrow) {
|
|
53
|
+
if (!Number.isInteger(rank) || rank < 0) throw new RangeError('GS1 DataBar width rank must be non-negative');
|
|
54
|
+
const widths = new Array(elements).fill(0);
|
|
55
|
+
let remaining = modules;
|
|
56
|
+
let narrowMask = 0;
|
|
57
|
+
|
|
58
|
+
for (let bar = 0; bar < elements - 1; bar++) {
|
|
59
|
+
let count = 0;
|
|
60
|
+
for (let width = 1; ; width++) {
|
|
61
|
+
narrowMask |= width === 1 ? 1 << bar : 0;
|
|
62
|
+
count = combinations(remaining - width - 1, elements - bar - 2);
|
|
63
|
+
|
|
64
|
+
if (noNarrow && narrowMask === 0 && remaining - width - (elements - bar - 1) >= elements - bar - 1) {
|
|
65
|
+
count -= combinations(remaining - width - (elements - bar), elements - bar - 2);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (elements - bar - 1 > 1) {
|
|
69
|
+
let tooWide = 0;
|
|
70
|
+
for (let last = remaining - width - (elements - bar - 2); last > maximumWidth; last--) {
|
|
71
|
+
tooWide += combinations(remaining - width - last - 1, elements - bar - 3);
|
|
72
|
+
}
|
|
73
|
+
count -= tooWide * (elements - 1 - bar);
|
|
74
|
+
} else if (remaining - width > maximumWidth) {
|
|
75
|
+
count--;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (rank < count) {
|
|
79
|
+
widths[bar] = width;
|
|
80
|
+
remaining -= width;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
rank -= count;
|
|
84
|
+
narrowMask &= ~(1 << bar);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
widths[elements - 1] = remaining;
|
|
88
|
+
if (rank !== 0 || widths.some((width) => width < 1 || width > maximumWidth)) {
|
|
89
|
+
throw new RangeError('GS1 DataBar width rank exceeds its character group');
|
|
90
|
+
}
|
|
91
|
+
return widths;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** Convert one DataBar-14 character value into its eight alternating widths. */
|
|
95
|
+
export function dataBar14CharacterWidths(value, kind) {
|
|
96
|
+
const group = dataBar14GroupFor(value, kind);
|
|
97
|
+
const offset = value - group.gsum;
|
|
98
|
+
const outside = kind === 'outside';
|
|
99
|
+
const oddRank = outside ? Math.floor(offset / group.evenTotal) : offset % group.oddTotal;
|
|
100
|
+
const evenRank = outside ? offset % group.evenTotal : Math.floor(offset / group.oddTotal);
|
|
101
|
+
const odd = dataBarWidths(oddRank, group.oddModules, 4, group.oddWidest, !outside);
|
|
102
|
+
const even = dataBarWidths(evenRank, group.evenModules, 4, group.evenWidest, outside);
|
|
103
|
+
const result = [];
|
|
104
|
+
for (let i = 0; i < 4; i++) result.push(odd[i], even[i]);
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const inverseCharacterMaps = new Map();
|
|
109
|
+
|
|
110
|
+
/** Recover a character value from its canonical eight-width representation. */
|
|
111
|
+
export function dataBar14ValueForWidths(widths, kind) {
|
|
112
|
+
if (!Array.isArray(widths) || widths.length !== 8 || widths.some((width) => !Number.isInteger(width) || width < 1)) {
|
|
113
|
+
throw new TypeError('GS1 DataBar character widths must contain eight positive integers');
|
|
114
|
+
}
|
|
115
|
+
if (kind !== 'outside' && kind !== 'inside') throw new RangeError(`Unknown GS1 DataBar character kind "${kind}"`);
|
|
116
|
+
let inverse = inverseCharacterMaps.get(kind);
|
|
117
|
+
if (!inverse) {
|
|
118
|
+
inverse = new Map();
|
|
119
|
+
const maximum = kind === 'outside' ? 2840 : 1596;
|
|
120
|
+
for (let value = 0; value <= maximum; value++) {
|
|
121
|
+
inverse.set(dataBar14CharacterWidths(value, kind).join(','), value);
|
|
122
|
+
}
|
|
123
|
+
inverseCharacterMaps.set(kind, inverse);
|
|
124
|
+
}
|
|
125
|
+
const value = inverse.get(widths.join(','));
|
|
126
|
+
if (value === undefined) throw new RangeError(`Invalid GS1 DataBar ${kind} character widths`);
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** Nine finder patterns, expressed as normative five-element widths. */
|
|
131
|
+
export const DATABAR14_FINDERS = Object.freeze([
|
|
132
|
+
Object.freeze([3, 8, 2, 1, 1]), Object.freeze([3, 5, 5, 1, 1]),
|
|
133
|
+
Object.freeze([3, 3, 7, 1, 1]), Object.freeze([3, 1, 9, 1, 1]),
|
|
134
|
+
Object.freeze([2, 7, 4, 1, 1]), Object.freeze([2, 5, 6, 1, 1]),
|
|
135
|
+
Object.freeze([2, 3, 8, 1, 1]), Object.freeze([1, 5, 7, 1, 1]),
|
|
136
|
+
Object.freeze([1, 3, 9, 1, 1]),
|
|
137
|
+
]);
|
|
138
|
+
|
|
139
|
+
/** Weight sequence generated as powers of three modulo 79. */
|
|
140
|
+
export const DATABAR14_CHECKSUM_WEIGHTS = Object.freeze(Array.from({ length: 32 }, (_, index) => {
|
|
141
|
+
let value = 1;
|
|
142
|
+
for (let i = 0; i < index; i++) value = (value * 3) % 79;
|
|
143
|
+
return value;
|
|
144
|
+
}));
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Sythos Barcode Suite
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2026 Sythos
|
|
7
|
+
*
|
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
* in the Software without restriction, including without limitation the rights
|
|
11
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
* furnished to do so, subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
* copies or substantial portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
* SOFTWARE.
|
|
25
|
+
*
|
|
26
|
+
* SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
|
|
27
|
+
* SPDX-License-Identifier: MIT
|
|
28
|
+
*
|
|
29
|
+
* Original work. No code from any other barcode implementation.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Static GS1 DataBar facts used by the GTIN compaction codec.
|
|
34
|
+
*
|
|
35
|
+
* The numbers in the DataBar-14 group tables are the public tables in
|
|
36
|
+
* ISO/IEC 24724:2011, clauses 5.2.2 and 5.2.3. They describe values, not a
|
|
37
|
+
* third-party implementation. Pattern construction deliberately belongs in
|
|
38
|
+
* the renderer/encoder layer so this module stays a small, auditable contract.
|
|
39
|
+
*
|
|
40
|
+
* @module databar/tables
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
const group = (first, last, gsum, oddModules, evenModules, oddWidest, evenWidest, oddTotal, evenTotal) => Object.freeze({
|
|
44
|
+
first, last, gsum, oddModules, evenModules, oddWidest, evenWidest, oddTotal, evenTotal,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/** The four GTIN-only layouts sharing the DataBar-14 compaction rules. */
|
|
48
|
+
export const DATABAR14_VARIANTS = Object.freeze({
|
|
49
|
+
omnidirectional: Object.freeze({ id: 'omnidirectional', rows: 1, modules: 96, checksumModulus: 79, pointOfSale: true }),
|
|
50
|
+
truncated: Object.freeze({ id: 'truncated', rows: 1, modules: 96, checksumModulus: 79, pointOfSale: false }),
|
|
51
|
+
stacked: Object.freeze({ id: 'stacked', rows: 2, modules: 50, checksumModulus: 79, pointOfSale: false }),
|
|
52
|
+
'stacked-omnidirectional': Object.freeze({ id: 'stacked-omnidirectional', rows: 2, modules: 50, checksumModulus: 79, pointOfSale: true }),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
/** GS1 DataBar Limited is a distinct two-character symbology. */
|
|
56
|
+
export const DATABAR_LIMITED_VARIANT = Object.freeze({
|
|
57
|
+
id: 'limited', rows: 1, checksumModulus: 89, pointOfSale: false,
|
|
58
|
+
permittedIndicatorDigits: Object.freeze([0, 1]),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/** (16,4) outside character groups, ISO/IEC 24724:2011 Table 1. */
|
|
62
|
+
export const DATABAR14_OUTSIDE_GROUPS = Object.freeze([
|
|
63
|
+
group(0, 160, 0, 12, 4, 8, 1, 161, 1),
|
|
64
|
+
group(161, 960, 161, 10, 6, 6, 3, 80, 10),
|
|
65
|
+
group(961, 2014, 961, 8, 8, 4, 5, 31, 34),
|
|
66
|
+
group(2015, 2714, 2015, 6, 10, 3, 6, 10, 70),
|
|
67
|
+
group(2715, 2840, 2715, 4, 12, 1, 8, 1, 126),
|
|
68
|
+
]);
|
|
69
|
+
|
|
70
|
+
/** (15,4) inside character groups, ISO/IEC 24724:2011 Table 2. */
|
|
71
|
+
export const DATABAR14_INSIDE_GROUPS = Object.freeze([
|
|
72
|
+
group(0, 335, 0, 5, 10, 2, 7, 4, 84),
|
|
73
|
+
group(336, 1035, 336, 7, 8, 4, 5, 20, 35),
|
|
74
|
+
group(1036, 1515, 1036, 9, 6, 6, 3, 48, 10),
|
|
75
|
+
group(1516, 1596, 1516, 11, 4, 8, 1, 81, 1),
|
|
76
|
+
]);
|
|
77
|
+
|
|
78
|
+
/** Number of values carried by an inside (15,4) character. */
|
|
79
|
+
export const DATABAR14_INSIDE_RADIX = 1597;
|
|
80
|
+
/** Number of values carried by one outside/inside character pair. */
|
|
81
|
+
export const DATABAR14_PAIR_RADIX = 4537077;
|
|
82
|
+
/** Stand-alone and composite DataBar-14 payload domain, including linkage. */
|
|
83
|
+
export const DATABAR14_SYMBOL_LIMIT = 20000000000000n;
|
|
84
|
+
|
|
85
|
+
/** GS1 DataBar Limited divides its 13 data digits into two character values. */
|
|
86
|
+
export const DATABAR_LIMITED_PAIR_RADIX = 2013571;
|
|
87
|
+
/** Offset that switches a DataBar Limited value from stand-alone to composite. */
|
|
88
|
+
export const DATABAR_LIMITED_LINKAGE_OFFSET = 2015133531096n;
|
|
89
|
+
/** DataBar Limited carries GTIN values whose first digit is zero or one. */
|
|
90
|
+
export const DATABAR_LIMITED_DATA_LIMIT = 2000000000000n;
|
|
91
|
+
|
|
92
|
+
/** Locate the value group that an outside or inside character belongs to. */
|
|
93
|
+
export function dataBar14GroupFor(value, kind) {
|
|
94
|
+
if (!Number.isInteger(value)) throw new TypeError('GS1 DataBar character value must be an integer');
|
|
95
|
+
const groups = kind === 'outside' ? DATABAR14_OUTSIDE_GROUPS
|
|
96
|
+
: kind === 'inside' ? DATABAR14_INSIDE_GROUPS : null;
|
|
97
|
+
if (!groups) throw new RangeError(`Unknown GS1 DataBar character kind "${kind}"`);
|
|
98
|
+
const found = groups.find((entry) => value >= entry.first && value <= entry.last);
|
|
99
|
+
if (!found) throw new RangeError(`GS1 DataBar ${kind} character value ${value} is out of range`);
|
|
100
|
+
return found;
|
|
101
|
+
}
|
|
102
|
+
/** Check the independently represented table identities. */
|
|
103
|
+
export function validateDataBarTables() {
|
|
104
|
+
const problems = [];
|
|
105
|
+
const validateGroups = (name, groups, expectedLast) => {
|
|
106
|
+
let next = 0;
|
|
107
|
+
for (const entry of groups) {
|
|
108
|
+
if (entry.first !== next) problems.push(`${name}: gap before ${entry.first}`);
|
|
109
|
+
if (entry.last < entry.first) problems.push(`${name}: inverted range ${entry.first}-${entry.last}`);
|
|
110
|
+
if (entry.oddTotal * entry.evenTotal !== entry.last - entry.first + 1) {
|
|
111
|
+
problems.push(`${name}: combination count mismatch at ${entry.first}`);
|
|
112
|
+
}
|
|
113
|
+
next = entry.last + 1;
|
|
114
|
+
}
|
|
115
|
+
if (next - 1 !== expectedLast) problems.push(`${name}: final value is ${next - 1}, expected ${expectedLast}`);
|
|
116
|
+
};
|
|
117
|
+
validateGroups('outside', DATABAR14_OUTSIDE_GROUPS, 2840);
|
|
118
|
+
validateGroups('inside', DATABAR14_INSIDE_GROUPS, 1596);
|
|
119
|
+
if (DATABAR14_PAIR_RADIX !== 2841 * DATABAR14_INSIDE_RADIX) problems.push('pair radix mismatch');
|
|
120
|
+
if (DATABAR14_SYMBOL_LIMIT !== 2n * 10000000000000n) problems.push('symbol limit mismatch');
|
|
121
|
+
if (DATABAR_LIMITED_LINKAGE_OFFSET !== BigInt(DATABAR_LIMITED_PAIR_RADIX) * 1000776n) {
|
|
122
|
+
problems.push('limited linkage offset mismatch');
|
|
123
|
+
}
|
|
124
|
+
return problems;
|
|
125
|
+
}
|