Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
1902120114081995
Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib/node_modules/npm/node_modules/qrcode-terminal/vendor/QRCode//QRPolynomial.js
var QRMath = require('./QRMath');
function QRPolynomial(num, shift) {
if (num.length === undefined) {
throw new Error(num.length + "/" + shift);
}
var offset = 0;
while (offset < num.length && num[offset] === 0) {
offset++;
}
this.num = new Array(num.length - offset + shift);
for (var i = 0; i < num.length - offset; i++) {
this.num[i] = num[i + offset];
}
}
QRPolynomial.prototype = {
get : function(index) {
return this.num[index];
},
getLength : function() {
return this.num.length;
},
multiply : function(e) {
var num = new Array(this.getLength() + e.getLength() - 1);
for (var i = 0; i < this.getLength(); i++) {
for (var j = 0; j < e.getLength(); j++) {
num[i + j] ^= QRMath.gexp(QRMath.glog(this.get(i) ) + QRMath.glog(e.get(j) ) );
}
}
return new QRPolynomial(num, 0);
},
mod : function(e) {
if (this.getLength() - e.getLength() < 0) {
return this;
}
var ratio = QRMath.glog(this.get(0) ) - QRMath.glog(e.get(0) );
var num = new Array(this.getLength() );
for (var i = 0; i < this.getLength(); i++) {
num[i] = this.get(i);
}
for (var x = 0; x < e.getLength(); x++) {
num[x] ^= QRMath.gexp(QRMath.glog(e.get(x) ) + ratio);
}
// recursive call
return new QRPolynomial(num, 0).mod(e);
}
};
module.exports = QRPolynomial;
Name
Size
Last Modified
Owner / Group
Permissions
Options
.. -- March 03 2024 22:36:29 root / root 0755 QR8bitByte.js 0.373 KB March 10 2021 14:36:36 root / root 0644 QRBitBuffer.js 0.686 KB March 10 2021 14:36:36 root / root 0644 QRErrorCorrectLevel.js 0.053 KB March 10 2021 14:36:36 root / root 0644 QRMaskPattern.js 0.153 KB March 10 2021 14:36:36 root / root 0644 QRMath.js 0.657 KB March 10 2021 14:36:36 root / root 0644 QRMode.js 0.146 KB March 10 2021 14:36:36 root / root 0644 QRPolynomial.js 1.301 KB March 10 2021 14:36:36 root / root 0644 QRRSBlock.js 5.426 KB March 10 2021 14:36:36 root / root 0644 QRUtil.js 8.029 KB March 10 2021 14:36:36 root / root 0644 index.js 10.416 KB March 10 2021 14:36:36 root / root 0644