vendor: 36,510 bytes, lines 1-839
1// 20191029 2// 1. ä¿®å¤å®å9å以ä¸çæäºç»´ç 失æé®é¢ï¼https://github.com/davidshimjs/qrcodejs/issues/175ï¼ 3// 2. æ·»å åè°å½æ°ï¼https://github.com/davidshimjs/qrcodejs/blob/master/qrcode.jsï¼ 4var QRCode; 5! function() { 6 function a(a) { 7 this.mode = c.MODE_8BIT_BYTE, this.data = a, this.parsedData = []; 8 for (var b = [], d = 0, e = this.data.length; e > d; d++) { 9 var f = this.data.charCodeAt(d); 10 f > 65536 ? (b[0] = 240 | (1835008 & f) >>> 18, b[1] = 128 | (258048 & f) >>> 12, b[2] = 128 | (4032 & f) >>> 11 6, b[3] = 128 | 63 & f) : f > 2048 ? (b[0] = 224 | (61440 & f) >>> 12, b[1] = 128 | (4032 & f) >>> 12 6, b[2] = 128 | 63 & f) : f > 128 ? (b[0] = 192 | (1984 & f) >>> 6, b[1] = 128 | 63 & f) : b[0] = f, 13 this.parsedData = this.parsedData.concat(b) 14 } 15 this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this 16 .parsedData.unshift(239)) 17 } 18 19 function b(a, b) { 20 this.typeNumber = a, this.errorCorrectLevel = b, this.modules = null, this.moduleCount = 0, this.dataCache = 21 null, this.dataList = [] 22 } 23 24 function i(a, b) { 25 if (void 0 == a.length) throw new Error(a.length + "/" + b); 26 for (var c = 0; c < a.length && 0 == a[c];) c++; 27 this.num = new Array(a.length - c + b); 28 for (var d = 0; d < a.length - c; d++) this.num[d] = a[d + c] 29 } 30 31 function j(a, b) { 32 this.totalCount = a, this.dataCount = b 33 } 34 35 function k() { 36 this.buffer = [], this.length = 0 37 } 38 39 function m() { 40 return "undefined" != typeof CanvasRenderingContext2D 41 } 42 43 function n() { 44 var a = !1, 45 b = navigator.userAgent; 46 return /android/i.test(b) && (a = !0, aMat = b.toString().match(/android ([0-9]+\.?[0-9]?)/i), aMat && aMat[1] && 47 (a = parseFloat(aMat[1]))), a 48 } 49 50 function r(a, b) { 51 for (var c = 1, e = s(a), f = 0, g = l.length; g >= f; f++) { 52 var h = 0; 53 switch (b) { 54 case d.L: 55 h = l[f][0]; 56 break; 57 case d.M: 58 h = l[f][1]; 59 break; 60 case d.Q: 61 h = l[f][2]; 62 break; 63 case d.H: 64 h = l[f][3] 65 } 66 if (h >= e) break; 67 c++ 68 } 69 if (c > l.length) throw new Error("Too long data"); 70 return c 71 } 72 73 function s(a) { 74 var b = encodeURI(a).toString().replace(/\%[0-9a-fA-F]{2}/g, "a"); 75 return b.length + (b.length != a ? 3 : 0) 76 } 77 a.prototype = { 78 getLength: function() { 79 return this.parsedData.length 80 }, 81 write: function(a) { 82 for (var b = 0, c = this.parsedData.length; c > b; b++) a.put(this.parsedData[b], 8) 83 } 84 }, b.prototype = { 85 addData: function(b) { 86 var c = new a(b); 87 this.dataList.push(c), this.dataCache = null 88 }, 89 isDark: function(a, b) { 90 if (0 > a || this.moduleCount <= a || 0 > b || this.moduleCount <= b) throw new Error(a + "," + b); 91 return this.modules[a][b] 92 }, 93 getModuleCount: function() { 94 return this.moduleCount 95 }, 96 make: function() { 97 this.makeImpl(!1, this.getBestMaskPattern()) 98 }, 99 makeImpl: function(a, c) { 100 this.moduleCount = 4 * this.typeNumber + 17, this.modules = new Array(this.moduleCount); 101 for (var d = 0; d < this.moduleCount; d++) { 102 this.modules[d] = new Array(this.moduleCount); 103 for (var e = 0; e < this.moduleCount; e++) this.modules[d][e] = null 104 } 105 this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this 106 .setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), 107 this.setupTypeInfo(a, c), this.typeNumber >= 7 && this.setupTypeNumber(a), null == this.dataCache && 108 (this.dataCache = b.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData( 109 this.dataCache, c) 110 }, 111 setupPositionProbePattern: function(a, b) { 112 for (var c = -1; 7 >= c; c++) 113 if (!(-1 >= a + c || this.moduleCount <= a + c)) 114 for (var d = -1; 7 >= d; d++) - 1 >= b + d || this.moduleCount <= b + d || (this.modules[a + 115 c][b + d] = c >= 0 && 6 >= c && (0 == d || 6 == d) || d >= 0 && 6 >= d && (0 == 116 c || 6 == c) || c >= 2 && 4 >= c && d >= 2 && 4 >= d ? !0 : !1) 117 }, 118 getBestMaskPattern: function() { 119 for (var a = 0, b = 0, c = 0; 8 > c; c++) { 120 this.makeImpl(!0, c); 121 var d = f.getLostPoint(this); 122 (0 == c || a > d) && (a = d, b = c) 123 } 124 return b 125 }, 126 createMovieClip: function(a, b, c) { 127 var d = a.createEmptyMovieClip(b, c), 128 e = 1; 129 this.make(); 130 for (var f = 0; f < this.modules.length; f++) 131 for (var g = f * e, h = 0; h < this.modules[f].length; h++) { 132 var i = h * e, 133 j = this.modules[f][h]; 134 j && (d.beginFill(0, 100), d.moveTo(i, g), d.lineTo(i + e, g), d.lineTo(i + e, g + e), d.lineTo( 135 i, g + e), d.endFill()) 136 } 137 return d 138 }, 139 setupTimingPattern: function() { 140 for (var a = 8; a < this.moduleCount - 8; a++) null == this.modules[a][6] && (this.modules[a][6] = 141 0 == a % 2); 142 for (var b = 8; b < this.moduleCount - 8; b++) null == this.modules[6][b] && (this.modules[6][b] = 143 0 == b % 2) 144 }, 145 setupPositionAdjustPattern: function() { 146 for (var a = f.getPatternPosition(this.typeNumber), b = 0; b < a.length; b++) 147 for (var c = 0; c < a.length; c++) { 148 var d = a[b], 149 e = a[c]; 150 if (null == this.modules[d][e]) 151 for (var g = -2; 2 >= g; g++) 152 for (var h = -2; 2 >= h; h++) this.modules[d + g][e + h] = -2 == g || 2 == g || -2 == 153 h || 2 == h || 0 == g && 0 == h ? !0 : !1 154 } 155 }, 156 setupTypeNumber: function(a) { 157 for (var b = f.getBCHTypeNumber(this.typeNumber), c = 0; 18 > c; c++) { 158 var d = !a && 1 == (1 & b >> c); 159 this.modules[Math.floor(c / 3)][c % 3 + this.moduleCount - 8 - 3] = d 160 } 161 for (var c = 0; 18 > c; c++) { 162 var d = !a && 1 == (1 & b >> c); 163 this.modules[c % 3 + this.moduleCount - 8 - 3][Math.floor(c / 3)] = d 164 } 165 }, 166 setupTypeInfo: function(a, b) { 167 for (var c = this.errorCorrectLevel << 3 | b, d = f.getBCHTypeInfo(c), e = 0; 15 > e; e++) { 168 var g = !a && 1 == (1 & d >> e); 169 6 > e ? this.modules[e][8] = g : 8 > e ? this.modules[e + 1][8] = g : this.modules[this.moduleCount - 170 15 + e][8] = g 171 } 172 for (var e = 0; 15 > e; e++) { 173 var g = !a && 1 == (1 & d >> e); 174 8 > e ? this.modules[8][this.moduleCount - e - 1] = g : 9 > e ? this.modules[8][15 - e - 1 + 1] = 175 g : this.modules[8][15 - e - 1] = g 176 } 177 this.modules[this.moduleCount - 8][8] = !a 178 }, 179 mapData: function(a, b) { 180 for (var c = -1, d = this.moduleCount - 1, e = 7, g = 0, h = this.moduleCount - 1; h > 0; h -= 2) 181 for (6 == h && h--;;) { 182 for (var i = 0; 2 > i; i++) 183 if (null == this.modules[d][h - i]) { 184 var j = !1; 185 g < a.length && (j = 1 == (1 & a[g] >>> e)); 186 var k = f.getMask(b, d, h - i); 187 k && (j = !j), this.modules[d][h - i] = j, e--, -1 == e && (g++, e = 7) 188 } if (d += c, 0 > d || this.moduleCount <= d) { 189 d -= c, c = -c; 190 break 191 } 192 } 193 } 194 }, b.PAD0 = 236, b.PAD1 = 17, b.createData = function(a, c, d) { 195 for (var e = j.getRSBlocks(a, c), g = new k, h = 0; h < d.length; h++) { 196 var i = d[h]; 197 g.put(i.mode, 4), g.put(i.getLength(), f.getLengthInBits(i.mode, a)), i.write(g) 198 } 199 for (var l = 0, h = 0; h < e.length; h++) l += e[h].dataCount; 200 if (g.getLengthInBits() > 8 * l) throw new Error("code length overflow. (" + g.getLengthInBits() + ">" + 8 * 201 l + ")"); 202 for (g.getLengthInBits() + 4 <= 8 * l && g.put(0, 4); 0 != g.getLengthInBits() % 8;) g.putBit(!1); 203 for (;;) { 204 if (g.getLengthInBits() >= 8 * l) break; 205 if (g.put(b.PAD0, 8), g.getLengthInBits() >= 8 * l) break; 206 g.put(b.PAD1, 8) 207 } 208 return b.createBytes(g, e) 209 }, b.createBytes = function(a, b) { 210 for (var c = 0, d = 0, e = 0, g = new Array(b.length), h = new Array(b.length), j = 0; j < b.length; j++) { 211 var k = b[j].dataCount, 212 l = b[j].totalCount - k; 213 d = Math.max(d, k), e = Math.max(e, l), g[j] = new Array(k); 214 for (var m = 0; m < g[j].length; m++) g[j][m] = 255 & a.buffer[m + c]; 215 c += k; 216 var n = f.getErrorCorrectPolynomial(l), 217 o = new i(g[j], n.getLength() - 1), 218 p = o.mod(n); 219 h[j] = new Array(n.getLength() - 1); 220 for (var m = 0; m < h[j].length; m++) { 221 var q = m + p.getLength() - h[j].length; 222 h[j][m] = q >= 0 ? p.get(q) : 0 223 } 224 } 225 for (var r = 0, m = 0; m < b.length; m++) r += b[m].totalCount; 226 for (var s = new Array(r), t = 0, m = 0; d > m; m++) 227 for (var j = 0; j < b.length; j++) m < g[j].length && (s[t++] = g[j][m]); 228 for (var m = 0; e > m; m++) 229 for (var j = 0; j < b.length; j++) m < h[j].length && (s[t++] = h[j][m]); 230 return s 231 }; 232 for (var c = { 233 MODE_NUMBER: 1, 234 MODE_ALPHA_NUM: 2, 235 MODE_8BIT_BYTE: 4, 236 MODE_KANJI: 8 237 }, d = { 238 L: 1, 239 M: 0, 240 Q: 3, 241 H: 2 242 }, e = { 243 PATTERN000: 0, 244 PATTERN001: 1, 245 PATTERN010: 2, 246 PATTERN011: 3, 247 PATTERN100: 4, 248 PATTERN101: 5, 249 PATTERN110: 6, 250 PATTERN111: 7 251 }, f = { 252 PATTERN_POSITION_TABLE: [ 253 [], 254 [6, 18], 255 [6, 22], 256 [6, 26], 257 [6, 30], 258 [6, 34], 259 [6, 22, 38], 260 [6, 24, 42], 261 [6, 26, 46], 262 [6, 28, 50], 263 [6, 30, 54], 264 [6, 32, 58], 265 [6, 34, 62], 266 [6, 26, 46, 66], 267 [6, 26, 48, 70], 268 [6, 26, 50, 74], 269 [6, 30, 54, 78], 270 [6, 30, 56, 82], 271 [6, 30, 58, 86], 272 [6, 34, 62, 90], 273 [6, 28, 50, 72, 94], 274 [6, 26, 50, 74, 98], 275 [6, 30, 54, 78, 102], 276 [6, 28, 54, 80, 106], 277 [6, 32, 58, 84, 110], 278 [6, 30, 58, 86, 114], 279 [6, 34, 62, 90, 118], 280 [6, 26, 50, 74, 98, 122], 281 [6, 30, 54, 78, 102, 126], 282 [6, 26, 52, 78, 104, 130], 283 [6, 30, 56, 82, 108, 134], 284 [6, 34, 60, 86, 112, 138], 285 [6, 30, 58, 86, 114, 142], 286 [6, 34, 62, 90, 118, 146], 287 [6, 30, 54, 78, 102, 126, 150], 288 [6, 24, 50, 76, 102, 128, 154], 289 [6, 28, 54, 80, 106, 132, 158], 290 [6, 32, 58, 84, 110, 136, 162], 291 [6, 26, 54, 82, 110, 138, 166], 292 [6, 30, 58, 86, 114, 142, 170] 293 ], 294 G15: 1335, 295 G18: 7973, 296 G15_MASK: 21522, 297 getBCHTypeInfo: function(a) { 298 for (var b = a << 10; f.getBCHDigit(b) - f.getBCHDigit(f.G15) >= 0;) b ^= f.G15 << f.getBCHDigit( 299 b) - f.getBCHDigit(f.G15); 300 return (a << 10 | b) ^ f.G15_MASK 301 }, 302 getBCHTypeNumber: function(a) { 303 for (var b = a << 12; f.getBCHDigit(b) - f.getBCHDigit(f.G18) >= 0;) b ^= f.G18 << f.getBCHDigit( 304 b) - f.getBCHDigit(f.G18); 305 return a << 12 | b 306 }, 307 getBCHDigit: function(a) { 308 for (var b = 0; 0 != a;) b++, a >>>= 1; 309 return b 310 }, 311 getPatternPosition: function(a) { 312 return f.PATTERN_POSITION_TABLE[a - 1] 313 }, 314 getMask: function(a, b, c) { 315 switch (a) { 316 case e.PATTERN000: 317 return 0 == (b + c) % 2; 318 case e.PATTERN001: 319 return 0 == b % 2; 320 case e.PATTERN010: 321 return 0 == c % 3; 322 case e.PATTERN011: 323 return 0 == (b + c) % 3; 324 case e.PATTERN100: 325 return 0 == (Math.floor(b / 2) + Math.floor(c / 3)) % 2; 326 case e.PATTERN101: 327 return 0 == b * c % 2 + b * c % 3; 328 case e.PATTERN110: 329 return 0 == (b * c % 2 + b * c % 3) % 2; 330 case e.PATTERN111: 331 return 0 == (b * c % 3 + (b + c) % 2) % 2; 332 default: 333 throw new Error("bad maskPattern:" + a) 334 } 335 }, 336 getErrorCorrectPolynomial: function(a) { 337 for (var b = new i([1], 0), c = 0; a > c; c++) b = b.multiply(new i([1, g.gexp(c)], 0)); 338 return b 339 }, 340 getLengthInBits: function(a, b) { 341 if (b >= 1 && 10 > b) switch (a) { 342 case c.MODE_NUMBER: 343 return 10; 344 case c.MODE_ALPHA_NUM: 345 return 9; 346 case c.MODE_8BIT_BYTE: 347 return 8; 348 case c.MODE_KANJI: 349 return 8; 350 default: 351 throw new Error("mode:" + a) 352 } else if (27 > b) switch (a) { 353 case c.MODE_NUMBER: 354 return 12; 355 case c.MODE_ALPHA_NUM: 356 return 11; 357 case c.MODE_8BIT_BYTE: 358 return 16; 359 case c.MODE_KANJI: 360 return 10; 361 default: 362 throw new Error("mode:" + a) 363 } else { 364 if (!(41 > b)) throw new Error("type:" + b); 365 switch (a) { 366 case c.MODE_NUMBER: 367 return 14; 368 case c.MODE_ALPHA_NUM: 369 return 13; 370 case c.MODE_8BIT_BYTE: 371 return 16; 372 case c.MODE_KANJI: 373 return 12; 374 default: 375 throw new Error("mode:" + a) 376 } 377 } 378 }, 379 getLostPoint: function(a) { 380 for (var b = a.getModuleCount(), c = 0, d = 0; b > d; d++) 381 for (var e = 0; b > e; e++) { 382 for (var f = 0, g = a.isDark(d, e), h = -1; 1 >= h; h++) 383 if (!(0 > d + h || d + h >= b)) 384 for (var i = -1; 1 >= i; i++) 0 > e + i || e + i >= b || (0 != h || 0 != i) && 385 g == a.isDark(d + h, e + i) && f++; 386 f > 5 && (c += 3 + f - 5) 387 } 388 for (var d = 0; b - 1 > d; d++) 389 for (var e = 0; b - 1 > e; e++) { 390 var j = 0; 391 a.isDark(d, e) && j++, a.isDark(d + 1, e) && j++, a.isDark(d, e + 1) && j++, a.isDark(d + 392 1, e + 1) && j++, (0 == j || 4 == j) && (c += 3) 393 } 394 for (var d = 0; b > d; d++) 395 for (var e = 0; b - 6 > e; e++) a.isDark(d, e) && !a.isDark(d, e + 1) && a.isDark(d, e + 2) && 396 a.isDark(d, e + 3) && a.isDark(d, e + 4) && !a.isDark(d, e + 5) && a.isDark(d, e + 6) && 397 (c += 40); 398 for (var e = 0; b > e; e++) 399 for (var d = 0; b - 6 > d; d++) a.isDark(d, e) && !a.isDark(d + 1, e) && a.isDark(d + 2, e) && 400 a.isDark(d + 3, e) && a.isDark(d + 4, e) && !a.isDark(d + 5, e) && a.isDark(d + 6, e) && 401 (c += 40); 402 for (var k = 0, e = 0; b > e; e++) 403 for (var d = 0; b > d; d++) a.isDark(d, e) && k++; 404 var l = Math.abs(100 * k / b / b - 50) / 5; 405 return c += 10 * l 406 } 407 }, g = { 408 glog: function(a) { 409 if (1 > a) throw new Error("glog(" + a + ")"); 410 return g.LOG_TABLE[a] 411 }, 412 gexp: function(a) { 413 for (; 0 > a;) a += 255; 414 for (; a >= 256;) a -= 255; 415 return g.EXP_TABLE[a] 416 }, 417 EXP_TABLE: new Array(256), 418 LOG_TABLE: new Array(256) 419 }, h = 0; 8 > h; h++) g.EXP_TABLE[h] = 1 << h; 420 for (var h = 8; 256 > h; h++) g.EXP_TABLE[h] = g.EXP_TABLE[h - 4] ^ g.EXP_TABLE[h - 5] ^ g.EXP_TABLE[h - 6] ^ g.EXP_TABLE[ 421 h - 8]; 422 for (var h = 0; 255 > h; h++) g.LOG_TABLE[g.EXP_TABLE[h]] = h; 423 i.prototype = { 424 get: function(a) { 425 return this.num[a] 426 }, 427 getLength: function() { 428 return this.num.length 429 }, 430 multiply: function(a) { 431 for (var b = new Array(this.getLength() + a.getLength() - 1), c = 0; c < this.getLength(); c++) 432 for (var d = 0; d < a.getLength(); d++) b[c + d] ^= g.gexp(g.glog(this.get(c)) + g.glog(a.get(d))); 433 return new i(b, 0) 434 }, 435 mod: function(a) { 436 if (this.getLength() - a.getLength() < 0) return this; 437 for (var b = g.glog(this.get(0)) - g.glog(a.get(0)), c = new Array(this.getLength()), d = 0; d < 438 this.getLength(); d++) c[d] = this.get(d); 439 for (var d = 0; d < a.getLength(); d++) c[d] ^= g.gexp(g.glog(a.get(d)) + b); 440 return new i(c, 0).mod(a) 441 } 442 }, j.RS_BLOCK_TABLE = [ 443 [1, 26, 19], 444 [1, 26, 16], 445 [1, 26, 13], 446 [1, 26, 9], 447 [1, 44, 34], 448 [1, 44, 28], 449 [1, 44, 22], 450 [1, 44, 16], 451 [1, 70, 55], 452 [1, 70, 44], 453 [2, 35, 17], 454 [2, 35, 13], 455 [1, 100, 80], 456 [2, 50, 32], 457 [2, 50, 24], 458 [4, 25, 9], 459 [1, 134, 108], 460 [2, 67, 43], 461 [2, 33, 15, 2, 34, 16], 462 [2, 33, 11, 2, 34, 12], 463 [2, 86, 68], 464 [4, 43, 27], 465 [4, 43, 19], 466 [4, 43, 15], 467 [2, 98, 78], 468 [4, 49, 31], 469 [2, 32, 14, 4, 33, 15], 470 [4, 39, 13, 1, 40, 14], 471 [2, 121, 97], 472 [2, 60, 38, 2, 61, 39], 473 [4, 40, 18, 2, 41, 19], 474 [4, 40, 14, 2, 41, 15], 475 [2, 146, 116], 476 [3, 58, 36, 2, 59, 37], 477 [4, 36, 16, 4, 37, 17], 478 [4, 36, 12, 4, 37, 13], 479 [2, 86, 68, 2, 87, 69], 480 [4, 69, 43, 1, 70, 44], 481 [6, 43, 19, 2, 44, 20], 482 [6, 43, 15, 2, 44, 16], 483 [4, 101, 81], 484 [1, 80, 50, 4, 81, 51], 485 [4, 50, 22, 4, 51, 23], 486 [3, 36, 12, 8, 37, 13], 487 [2, 116, 92, 2, 117, 93], 488 [6, 58, 36, 2, 59, 37], 489 [4, 46, 20, 6, 47, 21], 490 [7, 42, 14, 4, 43, 15], 491 [4, 133, 107], 492 [8, 59, 37, 1, 60, 38], 493 [8, 44, 20, 4, 45, 21], 494 [12, 33, 11, 4, 34, 12], 495 [3, 145, 115, 1, 146, 116], 496 [4, 64, 40, 5, 65, 41], 497 [11, 36, 16, 5, 37, 17], 498 [11, 36, 12, 5, 37, 13], 499 [5, 109, 87, 1, 110, 88], 500 [5, 65, 41, 5, 66, 42], 501 [5, 54, 24, 7, 55, 25], 502 [11, 36, 12], 503 [5, 122, 98, 1, 123, 99], 504 [7, 73, 45, 3, 74, 46], 505 [15, 43, 19, 2, 44, 20], 506 [3, 45, 15, 13, 46, 16], 507 [1, 135, 107, 5, 136, 108], 508 [10, 74, 46, 1, 75, 47], 509 [1, 50, 22, 15, 51, 23], 510 [2, 42, 14, 17, 43, 15], 511 [5, 150, 120, 1, 151, 121], 512 [9, 69, 43, 4, 70, 44], 513 [17, 50, 22, 1, 51, 23], 514 [2, 42, 14, 19, 43, 15], 515 [3, 141, 113, 4, 142, 114], 516 [3, 70, 44, 11, 71, 45], 517 [17, 47, 21, 4, 48, 22], 518 [9, 39, 13, 16, 40, 14], 519 [3, 135, 107, 5, 136, 108], 520 [3, 67, 41, 13, 68, 42], 521 [15, 54, 24, 5, 55, 25], 522 [15, 43, 15, 10, 44, 16], 523 [4, 144, 116, 4, 145, 117], 524 [17, 68, 42], 525 [17, 50, 22, 6, 51, 23], 526 [19, 46, 16, 6, 47, 17], 527 [2, 139, 111, 7, 140, 112], 528 [17, 74, 46], 529 [7, 54, 24, 16, 55, 25], 530 [34, 37, 13], 531 [4, 151, 121, 5, 152, 122], 532 [4, 75, 47, 14, 76, 48], 533 [11, 54, 24, 14, 55, 25], 534 [16, 45, 15, 14, 46, 16], 535 [6, 147, 117, 4, 148, 118], 536 [6, 73, 45, 14, 74, 46], 537 [11, 54, 24, 16, 55, 25], 538 [30, 46, 16, 2, 47, 17], 539 [8, 132, 106, 4, 133, 107], 540 [8, 75, 47, 13, 76, 48], 541 [7, 54, 24, 22, 55, 25], 542 [22, 45, 15, 13, 46, 16], 543 [10, 142, 114, 2, 143, 115], 544 [19, 74, 46, 4, 75, 47], 545 [28, 50, 22, 6, 51, 23], 546 [33, 46, 16, 4, 47, 17], 547 [8, 152, 122, 4, 153, 123], 548 [22, 73, 45, 3, 74, 46], 549 [8, 53, 23, 26, 54, 24], 550 [12, 45, 15, 28, 46, 16], 551 [3, 147, 117, 10, 148, 118], 552 [3, 73, 45, 23, 74, 46], 553 [4, 54, 24, 31, 55, 25], 554 [11, 45, 15, 31, 46, 16], 555 [7, 146, 116, 7, 147, 117], 556 [21, 73, 45, 7, 74, 46], 557 [1, 53, 23, 37, 54, 24], 558 [19, 45, 15, 26, 46, 16], 559 [5, 145, 115, 10, 146, 116], 560 [19, 75, 47, 10, 76, 48], 561 [15, 54, 24, 25, 55, 25], 562 [23, 45, 15, 25, 46, 16], 563 [13, 145, 115, 3, 146, 116], 564 [2, 74, 46, 29, 75, 47], 565 [42, 54, 24, 1, 55, 25], 566 [23, 45, 15, 28, 46, 16], 567 [17, 145, 115], 568 [10, 74, 46, 23, 75, 47], 569 [10, 54, 24, 35, 55, 25], 570 [19, 45, 15, 35, 46, 16], 571 [17, 145, 115, 1, 146, 116], 572 [14, 74, 46, 21, 75, 47], 573 [29, 54, 24, 19, 55, 25], 574 [11, 45, 15, 46, 46, 16], 575 [13, 145, 115, 6, 146, 116], 576 [14, 74, 46, 23, 75, 47], 577 [44, 54, 24, 7, 55, 25], 578 [59, 46, 16, 1, 47, 17], 579 [12, 151, 121, 7, 152, 122], 580 [12, 75, 47, 26, 76, 48], 581 [39, 54, 24, 14, 55, 25], 582 [22, 45, 15, 41, 46, 16], 583 [6, 151, 121, 14, 152, 122], 584 [6, 75, 47, 34, 76, 48], 585 [46, 54, 24, 10, 55, 25], 586 [2, 45, 15, 64, 46, 16], 587 [17, 152, 122, 4, 153, 123], 588 [29, 74, 46, 14, 75, 47], 589 [49, 54, 24, 10, 55, 25], 590 [24, 45, 15, 46, 46, 16], 591 [4, 152, 122, 18, 153, 123], 592 [13, 74, 46, 32, 75, 47], 593 [48, 54, 24, 14, 55, 25], 594 [42, 45, 15, 32, 46, 16], 595 [20, 147, 117, 4, 148, 118], 596 [40, 75, 47, 7, 76, 48], 597 [43, 54, 24, 22, 55, 25], 598 [10, 45, 15, 67, 46, 16], 599 [19, 148, 118, 6, 149, 119], 600 [18, 75, 47, 31, 76, 48], 601 [34, 54, 24, 34, 55, 25], 602 [20, 45, 15, 61, 46, 16] 603 ], j.getRSBlocks = function(a, b) { 604 var c = j.getRsBlockTable(a, b); 605 if (void 0 == c) throw new Error("bad rs block @ typeNumber:" + a + "/errorCorrectLevel:" + b); 606 for (var d = c.length / 3, e = [], f = 0; d > f; f++) 607 for (var g = c[3 * f + 0], h = c[3 * f + 1], i = c[3 * f + 2], k = 0; g > k; k++) e.push(new j(h, i)); 608 return e 609 }, j.getRsBlockTable = function(a, b) { 610 switch (b) { 611 case d.L: 612 return j.RS_BLOCK_TABLE[4 * (a - 1) + 0]; 613 case d.M: 614 return j.RS_BLOCK_TABLE[4 * (a - 1) + 1]; 615 case d.Q: 616 return j.RS_BLOCK_TABLE[4 * (a - 1) + 2]; 617 case d.H: 618 return j.RS_BLOCK_TABLE[4 * (a - 1) + 3]; 619 default: 620 return void 0 621 } 622 }, k.prototype = { 623 get: function(a) { 624 var b = Math.floor(a / 8); 625 return 1 == (1 & this.buffer[b] >>> 7 - a % 8) 626 }, 627 put: function(a, b) { 628 for (var c = 0; b > c; c++) this.putBit(1 == (1 & a >>> b - c - 1)) 629 }, 630 getLengthInBits: function() { 631 return this.length 632 }, 633 putBit: function(a) { 634 var b = Math.floor(this.length / 8); 635 this.buffer.length <= b && this.buffer.push(0), a && (this.buffer[b] |= 128 >>> this.length % 8), 636 this.length++ 637 } 638 }; 639 var l = [ 640 [17, 14, 11, 7], 641 [32, 26, 20, 14], 642 [53, 42, 32, 24], 643 [78, 62, 46, 34], 644 [106, 84, 60, 44], 645 [134, 106, 74, 58], 646 [154, 122, 86, 64], 647 [192, 152, 108, 84], 648 [230, 180, 130, 98], 649 [271, 213, 151, 119], 650 [321, 251, 177, 137], 651 [367, 287, 203, 155], 652 [425, 331, 241, 177], 653 [458, 362, 258, 194], 654 [520, 412, 292, 220], 655 [586, 450, 322, 250], 656 [644, 504, 364, 280], 657 [718, 560, 394, 310], 658 [792, 624, 442, 338], 659 [858, 666, 482, 382], 660 [929, 711, 509, 403], 661 [1003, 779, 565, 439], 662 [1091, 857, 611, 461], 663 [1171, 911, 661, 511], 664 [1273, 997, 715, 535], 665 [1367, 1059, 751, 593], 666 [1465, 1125, 805, 625], 667 [1528, 1190, 868, 658], 668 [1628, 1264, 908, 698], 669 [1732, 1370, 982, 742], 670 [1840, 1452, 1030, 790], 671 [1952, 1538, 1112, 842], 672 [2068, 1628, 1168, 898], 673 [2188, 1722, 1228, 958], 674 [2303, 1809, 1283, 983], 675 [2431, 1911, 1351, 1051], 676 [2563, 1989, 1423, 1093], 677 [2699, 2099, 1499, 1139], 678 [2809, 2213, 1579, 1219], 679 [2953, 2331, 1663, 1273] 680 ], 681 o = function() { 682 var a = function(a, b) { 683 this._el = a, this._htOption = b 684 }; 685 return a.prototype.draw = function(a) { 686 function g(a, b) { 687 var c = document.createElementNS("http://www.w3.org/2000/svg", a); 688 for (var d in b) b.hasOwnProperty(d) && c.setAttribute(d, b[d]); 689 return c 690 } 691 var b = this._htOption, 692 c = this._el, 693 d = a.getModuleCount(); 694 Math.floor(b.width / d), Math.floor(b.height / d), this.clear(); 695 var h = g("svg", { 696 viewBox: "0 0 " + String(d) + " " + String(d), 697 width: "100%", 698 height: "100%", 699 fill: b.colorLight 700 }); 701 h.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), c 702 .appendChild(h), h.appendChild(g("rect", { 703 fill: b.colorDark, 704 width: "1", 705 height: "1", 706 id: "template" 707 })); 708 for (var i = 0; d > i; i++) 709 for (var j = 0; d > j; j++) 710 if (a.isDark(i, j)) { 711 var k = g("use", { 712 x: String(i), 713 y: String(j) 714 }); 715 k.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), h.appendChild(k) 716 } 717 }, a.prototype.clear = function() { 718 for (; this._el.hasChildNodes();) this._el.removeChild(this._el.lastChild) 719 }, a 720 }(), 721 p = "svg" === document.documentElement.tagName.toLowerCase(), 722 q = p ? o : m() ? function() { 723 function a() { 724 this._elImage.src = this._elCanvas.toDataURL("image/png"), this._elImage.style.display = "block", this._elCanvas 725 .style.display = "none", this._callback(this._elImage.src); 726 } 727 728 function d(a, b) { 729 var c = this; 730 if (c._fFail = b, c._fSuccess = a, null === c._bSupportDataURI) { 731 var d = document.createElement("img"), 732 e = function() { 733 c._bSupportDataURI = !1, c._fFail && _fFail.call(c) 734 }, 735 f = function() { 736 c._bSupportDataURI = !0, c._fSuccess && c._fSuccess.call(c) 737 }; 738 return d.onabort = e, d.onerror = e, d.onload = f, d.src = 739 "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", 740 void 0 741 } 742 c._bSupportDataURI === !0 && c._fSuccess ? c._fSuccess.call(c) : c._bSupportDataURI === !1 && c._fFail && 743 c._fFail.call(c) 744 } 745 if (this._android && this._android <= 2.1) { 746 var b = 1 / window.devicePixelRatio, 747 c = CanvasRenderingContext2D.prototype.drawImage; 748 CanvasRenderingContext2D.prototype.drawImage = function(a, d, e, f, g, h, i, j) { 749 if ("nodeName" in a && /img/i.test(a.nodeName)) 750 for (var l = arguments.length - 1; l >= 1; l--) arguments[l] = arguments[l] * b; 751 else "undefined" == typeof j && (arguments[1] *= b, arguments[2] *= b, arguments[3] *= b, 752 arguments[4] *= b); 753 c.apply(this, arguments) 754 } 755 } 756 var e = function(a, b, fn) { 757 this._callback = fn, this._bIsPainted = !1, this._android = n(), this._htOption = b, this._elCanvas = document.createElement( 758 "canvas"), this._elCanvas.width = b.width, this._elCanvas.height = b.height, a.appendChild( 759 this._elCanvas), this._el = a, this._oContext = this._elCanvas.getContext("2d"), this._bIsPainted = ! 760 1, this._elImage = document.createElement("img"), this._elImage.style.display = "none", this._el 761 .appendChild(this._elImage), this._bSupportDataURI = null 762 }; 763 return e.prototype.draw = function(a) { 764 var b = this._elImage, 765 c = this._oContext, 766 d = this._htOption, 767 e = a.getModuleCount(), 768 f = d.width / e, 769 g = d.height / e, 770 h = Math.round(f), 771 i = Math.round(g); 772 b.style.display = "none", this.clear(); 773 for (var j = 0; e > j; j++) 774 for (var k = 0; e > k; k++) { 775 var l = a.isDark(j, k), 776 m = k * f, 777 n = j * g; 778 c.strokeStyle = l ? d.colorDark : d.colorLight, c.lineWidth = 1, c.fillStyle = l ? d.colorDark : 779 d.colorLight, c.fillRect(m, n, f, g), c.strokeRect(Math.floor(m) + .5, Math.floor(n) + 780 .5, h, i), c.strokeRect(Math.ceil(m) - .5, Math.ceil(n) - .5, h, i) 781 } 782 this._bIsPainted = !0 783 }, e.prototype.makeImage = function() { 784 this._bIsPainted && d.call(this, a) 785 }, e.prototype.isPainted = function() { 786 return this._bIsPainted 787 }, e.prototype.clear = function() { 788 this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height), this._bIsPainted = !1 789 }, e.prototype.round = function(a) { 790 return a ? Math.floor(1e3 * a) / 1e3 : a 791 }, e 792 }() : function() { 793 var a = function(a, b) { 794 this._el = a, this._htOption = b 795 }; 796 return a.prototype.draw = function(a) { 797 for (var b = this._htOption, c = this._el, d = a.getModuleCount(), e = Math.floor(b.width / d), f = 798 Math.floor(b.height / d), g = ['<table style="border:0;border-collapse:collapse;">'], h = 0; d > 799 h; h++) { 800 g.push("<tr>"); 801 for (var i = 0; d > i; i++) g.push( 802 '<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + e + 803 "px;height:" + f + "px;background-color:" + (a.isDark(h, i) ? b.colorDark : b.colorLight) + 804 ';"></td>'); 805 g.push("</tr>") 806 } 807 g.push("</table>"), c.innerHTML = g.join(""); 808 var j = c.childNodes[0], 809 k = (b.width - j.offsetWidth) / 2, 810 l = (b.height - j.offsetHeight) / 2; 811 k > 0 && l > 0 && (j.style.margin = l + "px " + k + "px") 812 }, a.prototype.clear = function() { 813 this._el.innerHTML = "" 814 }, a 815 }(); 816 QRCode = function(a, b, fn) { 817 if (this._htOption = { 818 width: 256, 819 height: 256, 820 typeNumber: 4, 821 colorDark: "#000000", 822 colorLight: "#ffffff", 823 correctLevel: d.H 824 }, "string" == typeof b && (b = { 825 text: b 826 }), b) 827 for (var c in b) this._htOption[c] = b[c]; 828 "string" == typeof a && (a = document.getElementById(a)), this._android = n(), this._el = a, this._oQRCode = 829 null, this._oDrawing = new q(this._el, this._htOption, fn), this._htOption.text && this.makeCode(this._htOption 830 .text) 831 }, QRCode.prototype.makeCode = function(a) { 832 this._oQRCode = new b(r(a, this._htOption.correctLevel), this._htOption.correctLevel), this._oQRCode.addData( 833 a), this._oQRCode.make(), this._el.title = a, this._oDrawing.draw(this._oQRCode), this.makeImage() 834 }, QRCode.prototype.makeImage = function() { 835 "function" == typeof this._oDrawing.makeImage && (!this._android || this._android >= 3) && this._oDrawing.makeImage() 836 }, QRCode.prototype.clear = function() { 837 this._oDrawing.clear() 838 }, QRCode.CorrectLevel = d 839}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.