You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
573 lines
48 KiB
JavaScript
573 lines
48 KiB
JavaScript
2 months ago
|
/*!
|
||
|
* CPCL.js v0.0.1
|
||
|
* Author Winford
|
||
|
* Email winfordguo@gmail.com
|
||
|
* Date Wed Nov 16 2022 10:03:58 GMT+0800 (中国标准时间)
|
||
|
* License MIT
|
||
|
*/
|
||
|
function _0xdc3a() {
|
||
|
var t = ["function", "buildHexString", "buildString", "HEX", "ENDQR", "set", "applyConfig", "decompress", "_append",
|
||
|
"extendBuffer", "lzo1x", "buf", "LINE ", "m_pos", " M 2 U 6", "blockSize", "_line", "encode",
|
||
|
"(T!HJ%LUX]e%gilotuwy{} (U!)-%/137>BDGHO%RTUW%\\_a%jl%rtw} (V!*+-0%27>C%EHJ%MP%R\\`cdfn%ptvz{} (W!()*,/3%579;=%CFGM%QWX\\^cdg%ilnprtvy%} (X!&')%.468CDHJLMOPSTWY%\\_b%dg%ilnprtuwxz%|~ (Y!'(*+-469%=?%GI%KO%RT%V[%_bdikmnptuy{}~ (Z!&')+%-/%;>@ACE%GKMNPR%TW[_%ikmo%rt%vy%{} ([!'(%+-%024%;=%BD%LO%QSTX%[]^`%ce%y{} (\\!()+%/1%7:%LN%SU%WY%cf%im%prt%xz%~ (]!&'%*-%/1%68%EG%cgloqs%uwx|%~ (^!')%-/02356;>FJKOPRSVWZ%]_`dfi%kmor%vyz (_!'+%-124%68;=@ACE%MOQRUVX%]_adegjqwx|~ (`!&)*-%/689;%=?%ADFIKLNOVX^%cehilmoq%uwyz|%~ (a!'),%/124%=?AD%HJ%PRSU%[]e%ho%qu%~ (b!()*,%.024%79;%=?A%FH%KM%WY%`c%ei%loq%tvy%| (c!'*+-.1346%8:%<>%GKLOQSUZ%\\_cghjltwy{| (d!(,/1%4679=>@D%JLMOQRTVWZ]`%ce%km%pr%tvy%} (e!+,-/0279%;>?DQW[%]_bdhqu%wy (f!&().47:;>ACEFHIKMP%SU^a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024%=?%ACE%GI%KM%RU%WY[%]_ac%ik%mpqu%~ )\\!&'(*%-/%35%?ABDEG%LNP%UW%]`%jlo%z}~
|
||
|
"buffer", "TASKID ", "number", "ceil", "maxSize", "PW ", "density", "exports", "toLowerCase", "minNewSize",
|
||
|
"setOutputSize", "outputSize", "ab2hex", "fromCharCode", "image2Bitmap", "CG ", "sort", "state", "575058vvgRqX",
|
||
|
"TEXT270", "split", "qrCode", "map", "GG ", "join", "toUpperCase", "push", "floor", "4993058mtmxDQ",
|
||
|
"1024118SedajC", "text", "prev_ip", "URI", "_buffer", "405dkxbqk", "!'()*-._~", "skipToFirstLiteralFun", "m_len",
|
||
|
"BARCODE 128 ", "TEXT90", "undefined", "match_next", "_getPixels", "imageGG", "indexOf", "returnNewBuffers",
|
||
|
"charCodeAt", "length", "out", "BARCODE QR ", "str2ab", "DENSITY ", "ip_start", "decode", "substr", "setUint8",
|
||
|
"FORM", "ab2str", "form", "setBlockSize", "compress", "dindex", "5350EApuqf", "subarray", "toString",
|
||
|
"setReturnNewBuffers", "TEXT180", "outputBuffer", "charAt", "dv_hi", "m_off", "8uJUtCP", "append",
|
||
|
"3224880hdeLAL", "_rgb2Bin", "CPCL", "replace", "pow", "2024715ZReCZj", "23319jIrASR", "cbl", "barCode", "###",
|
||
|
"concat", "INPUT_OVERRUN", "byteLength", "TEXT", "width", "print", "match", "ret", "height", "copy_match",
|
||
|
"imageEG", "from", "taskId", "imageCG", "emptyDict", "op_end", "PRINT", "formPrint", "match_done", "string",
|
||
|
"line", "dict", "EOF_FOUND", "dv_lo", "ip_end", "copy_from_buf", "build", "31396lIoWfD", "splice", "area",
|
||
|
" 203 203 "
|
||
|
];
|
||
|
return (_0xdc3a = function() {
|
||
|
return t
|
||
|
})()
|
||
|
}
|
||
|
|
||
|
function _0x50ea(t, i) {
|
||
|
var s = _0xdc3a();
|
||
|
return (_0x50ea = function(t, i) {
|
||
|
return s[t -= 383]
|
||
|
})(t, i)
|
||
|
}(function() {
|
||
|
for (var t = _0x50ea, i = _0xdc3a();;) try {
|
||
|
if (358968 == -parseInt(t(503)) + -parseInt(t(514)) / 2 + parseInt(t(430)) / 3 + -parseInt(t(462)) / 4 * (-
|
||
|
parseInt(t(386)) / 5) + -parseInt(t(425)) / 6 + -parseInt(t(513)) / 7 * (parseInt(t(423)) / 8) + parseInt(t(
|
||
|
431)) / 9 * (parseInt(t(414)) / 10)) break;
|
||
|
i.push(i.shift())
|
||
|
} catch (t) {
|
||
|
i.push(i.shift())
|
||
|
}
|
||
|
})(),
|
||
|
function(t, i) {
|
||
|
var s = _0x50ea;
|
||
|
"object" == typeof exports && typeof module !== s(392) ? module[s(492)] = i() : typeof define === s(466) && define
|
||
|
.amd ? define(i) : (t = typeof globalThis !== s(392) ? globalThis : t || self)[s(427)] = i()
|
||
|
}(this, module.exports = function() {
|
||
|
"use strict";
|
||
|
var v = _0x50ea;
|
||
|
typeof globalThis !== v(392) ? globalThis : typeof window !== v(392) && window;
|
||
|
(function(t) {
|
||
|
var i;
|
||
|
t[_0x50ea(492)] = ((i = function(o) {
|
||
|
return {
|
||
|
decode: function(t) {
|
||
|
for (var i = _0x50ea, s = "", h = 0, e = t.length; h < e; h++) {
|
||
|
var r, n = 255 & t[h];
|
||
|
128 < n && h + 1 < e && (64 <= (r = 255 & t[h + 1]) && (n = o[(n << 8 | r) - 33088], h++)), s +=
|
||
|
String[i(498)](n)
|
||
|
}
|
||
|
return s
|
||
|
},
|
||
|
encode: function(t) {
|
||
|
var i = _0x50ea;
|
||
|
t += "";
|
||
|
for (var s = [], h = "?" [i(398)](0), e = 0; e < t[i(399)]; e++) {
|
||
|
var r = t[i(398)](e);
|
||
|
r < 128 ? s.push(r) : ~(r = o.indexOf(r)) ? (r += 33088, s.push(255 & r >> 8, 255 & r)) : s[i(
|
||
|
511)](h)
|
||
|
}
|
||
|
return s
|
||
|
}
|
||
|
}
|
||
|
}(function(t) {
|
||
|
for (var i = _0x50ea, s = [], h = 129, e = 0; h <= 254; h++) {
|
||
|
0 < s[i(399)] && (s.length += 65);
|
||
|
for (var r, n = 64; n <= 254; n++) 127 == n || 161 <= h && h <= 167 && n <= 160 || 170 <= h && h <=
|
||
|
175 && 161 <= n || 248 <= h && 161 <= n ? s[i(511)](void 0) : (r = function() {
|
||
|
for (var t = _0x50ea, i = 0, s = arguments[0], h = 0, e = s[t(399)]; h < e; h++) {
|
||
|
var r = s.charCodeAt(h);
|
||
|
if (r < 38 || 126 < r) return NaN;
|
||
|
i += (r - 38) * Math[t(429)](89, e - h - 1)
|
||
|
}
|
||
|
return i
|
||
|
}(t[e++]), s.push(r || void 0))
|
||
|
}
|
||
|
return s
|
||
|
}(function(t) {
|
||
|
var r = _0x50ea;
|
||
|
return t[r(428)](/\x23(\d+)\x24/g, function(t, i) {
|
||
|
var s = r;
|
||
|
return Array(+i + 4)[s(509)]("#")
|
||
|
})[r(428)](/[\x26-\x7e]\x25[\x26-\x7e]/g, function(t) {
|
||
|
for (var i = r, s = t[i(406)](0, 1)[i(398)](0), h = t[i(406)](2)[i(398)](0), e = String[i(
|
||
|
498)](s); s++ < h;) e += String[i(498)](s);
|
||
|
return e
|
||
|
})[r(428)](/\x23/g, r(434))[r(428)](/([\x26-\x7e]{2})\x21([\x26-\x7e\x23]+)(?:\x20|$)/g, function(
|
||
|
t, i, s) {
|
||
|
return s[r(428)](/./g, function(t) {
|
||
|
return "#" != t ? i + t : t
|
||
|
})
|
||
|
}).match(/.../g)
|
||
|
}((t = _0x50ea)(484)))))[t(384)] = function(a) {
|
||
|
var t = _0x50ea,
|
||
|
i = t(387);
|
||
|
|
||
|
function s(n) {
|
||
|
var u = t;
|
||
|
return n[u(505)]("")[u(501)](), {
|
||
|
encode: function(t) {
|
||
|
var r = u;
|
||
|
return (t + "")[r(428)](/./g, function(t) {
|
||
|
var i = r,
|
||
|
s = t;
|
||
|
if (~n[i(396)](s) || /[0-9a-zA-Z]/.test(s)) return t;
|
||
|
for (var s, h = a[i(483)](t), e = 0; e < h.length; e++) h[e] = "%" + ("0" + h[e][i(416)](
|
||
|
16)).substr(-2)[i(510)]();
|
||
|
return h[i(509)]("")
|
||
|
})
|
||
|
},
|
||
|
decode: function(t) {
|
||
|
var i = u;
|
||
|
t = String(t);
|
||
|
for (var s = "", h = 0; h < t[i(399)]; h++) {
|
||
|
var e = t[i(420)](h);
|
||
|
if ("%" === e && h + 2 < t.length) {
|
||
|
var r = parseInt(t[i(406)](h + 1, 2), 16);
|
||
|
if (!isNaN(r)) {
|
||
|
var n, o = h + 2;
|
||
|
if (!(128 < r)) {
|
||
|
h += 2, s += String[i(498)](r);
|
||
|
continue
|
||
|
}
|
||
|
if ("%" === t[i(420)](o + 1) ? (n = parseInt(t[i(406)](o + 2, 2), 16), o += 3) : (n = t[i(
|
||
|
398)](o + 1), o += 1), 64 <= n) {
|
||
|
h = o, s += a.decode([r, n]);
|
||
|
continue
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
s += e
|
||
|
}
|
||
|
return s
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
var h = s(i),
|
||
|
i = s(i + "#$&+,/:;=?@");
|
||
|
return {
|
||
|
encodeURI: i[t(483)],
|
||
|
decodeURI: i[t(405)],
|
||
|
encodeURIComponent: h[t(483)],
|
||
|
decodeURIComponent: h.decode
|
||
|
}
|
||
|
}(i), i)
|
||
|
})(t = {
|
||
|
exports: {}
|
||
|
}, (i = v)(492));
|
||
|
t = t[i(492)], i = function(s) {
|
||
|
return {
|
||
|
hex2ab: function(t) {
|
||
|
var i = _0x50ea;
|
||
|
let s = t.match(/[\da-f]{2}/gi) || [];
|
||
|
return new Uint8Array(s[i(507)](function(t) {
|
||
|
return parseInt(t, 16)
|
||
|
}))[i(485)]
|
||
|
},
|
||
|
ab2hex: function(t) {
|
||
|
var i = _0x50ea;
|
||
|
let s = Array.prototype.map.call(new Uint8Array(t), function(t) {
|
||
|
return ("00" + t[_0x50ea(416)](16)).slice(-2)
|
||
|
});
|
||
|
return s[i(509)]("")
|
||
|
},
|
||
|
ab2str: function(t) {
|
||
|
return s[_0x50ea(405)](new Uint8Array(t))
|
||
|
},
|
||
|
str2ab: function(t) {
|
||
|
var i = _0x50ea;
|
||
|
return new Uint8Array(s.encode(t))[i(485)]
|
||
|
},
|
||
|
concat: function(t, ...i) {
|
||
|
var s, h, e = _0x50ea;
|
||
|
let r = 0;
|
||
|
for (s of i) r += s.length;
|
||
|
let n = new t(r),
|
||
|
o = 0;
|
||
|
for (h of i) n[e(471)](h, o), o += h[e(399)];
|
||
|
return n
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
h = new function() {
|
||
|
var s = _0x50ea;
|
||
|
this.blockSize = 131072, this.minNewSize = this.blockSize, this.maxSize = 0, this.OK = 0, this[s(436)] = -4,
|
||
|
this.OUTPUT_OVERRUN = -5, this.LOOKBEHIND_OVERRUN = -6, this[s(457)] = -999, this[s(442)] = 0, this[s(477)] =
|
||
|
null, this.buf32 = null, this[s(400)] = new Uint8Array(262144), this[s(432)] = 0, this[s(459)] = 0, this[s(
|
||
|
450)] = 0, this.t = 0, this.ip = 0, this.op = 0, this[s(479)] = 0, this[s(389)] = 0, this[s(422)] = 0, this[
|
||
|
s(421)] = 0, this[s(458)] = 0, this.dindex = 0, this.ii = 0, this.jj = 0, this.tt = 0, this.v = 0, this[s(
|
||
|
456)] = new Uint32Array(16384), this[s(449)] = new Uint32Array(16384), this[s(388)] = !1, this[s(397)] = !0,
|
||
|
this[s(411)] = function(t) {
|
||
|
var i = s;
|
||
|
return typeof t === i(487) && !isNaN(t) && 0 < parseInt(t) && (this[i(481)] = parseInt(t), !0)
|
||
|
}, this[s(495)] = function(t) {
|
||
|
var i = s;
|
||
|
return typeof t === i(487) && !isNaN(t) && 0 < parseInt(t) && (this[i(400)] = new Uint8Array(parseInt(t)), !
|
||
|
0)
|
||
|
}, this[s(417)] = function(t) {
|
||
|
this[s(397)] = !!t
|
||
|
}, this[s(472)] = function(t) {
|
||
|
var i = s;
|
||
|
void 0 !== t && (void 0 !== t[i(496)] && h[i(495)](t[i(496)]), void 0 !== t[i(481)] && h.setBlockSize(t[i(
|
||
|
481)]))
|
||
|
}, this.ctzl = function(t) {
|
||
|
var i;
|
||
|
return 1 & t ? i = 0 : (i = 1, 0 == (65535 & t) && (t >>= 16, i += 16), 0 == (255 & t) && (t >>= 8, i += 8),
|
||
|
0 == (15 & t) && (t >>= 4, i += 4), 0 == (3 & t) && (t >>= 2, i += 2), i -= 1 & t), i
|
||
|
}, this.extendBuffer = function() {
|
||
|
var t = s,
|
||
|
i = new Uint8Array(this[t(494)] + (this[t(481)] - this[t(494)] % this[t(481)]));
|
||
|
i[t(471)](this[t(400)]), this[t(400)] = i, this.cbl = this[t(400)][t(399)]
|
||
|
}, this[s(393)] = function() {
|
||
|
var t = s;
|
||
|
this.minNewSize = this.op + 3, this[t(494)] > this.cbl && this.extendBuffer(), this.out[this.op++] = this[t(
|
||
|
477)][this.ip++], 1 < this.t && (this[t(400)][this.op++] = this[t(477)][this.ip++], 2 < this.t && (this[
|
||
|
t(400)][this.op++] = this[t(477)][this.ip++])), this.t = this[t(477)][this.ip++]
|
||
|
}, this[s(453)] = function() {
|
||
|
var t = s;
|
||
|
return this.t = 3 & this[t(477)][this.ip - 2], this.t
|
||
|
}, this[s(444)] = function() {
|
||
|
var t = s;
|
||
|
for (this.t += 2, this[t(494)] = this.op + this.t, this[t(494)] > this.cbl && this[t(475)](); this.out[this
|
||
|
.op++] = this[t(400)][this[t(479)]++], 0 < --this.t;);
|
||
|
}, this[s(460)] = function() {
|
||
|
var t = s;
|
||
|
for (this[t(494)] = this.op + this.t, this[t(494)] > this[t(432)] && this[t(475)](); this[t(400)][this
|
||
|
.op++] = this[t(477)][this.ip++], 0 < --this.t;);
|
||
|
}, this[s(441)] = function() {
|
||
|
for (var t = s;;) {
|
||
|
if (64 <= this.t) this.m_pos = this.op - 1 - (this.t >> 2 & 7) - (this[t(477)][this.ip++] << 3), this.t =
|
||
|
(this.t >> 5) - 1, this.copy_match();
|
||
|
else if (32 <= this.t) {
|
||
|
if (this.t &= 31, 0 === this.t) {
|
||
|
for (; 0 === this[t(477)][this.ip];) this.t += 255, this.ip++;
|
||
|
this.t += 31 + this.buf[this.ip++]
|
||
|
}
|
||
|
this[t(479)] = this.op - 1 - (this[t(477)][this.ip] >> 2) - (this.buf[this.ip + 1] << 6), this.ip += 2,
|
||
|
this[t(444)]()
|
||
|
} else if (16 <= this.t) {
|
||
|
if (this.m_pos = this.op - ((8 & this.t) << 11), this.t &= 7, 0 === this.t) {
|
||
|
for (; 0 === this[t(477)][this.ip];) this.t += 255, this.ip++;
|
||
|
this.t += 7 + this.buf[this.ip++]
|
||
|
}
|
||
|
if (this[t(479)] -= (this[t(477)][this.ip] >> 2) + (this[t(477)][this.ip + 1] << 6), this.ip += 2, this[
|
||
|
t(479)] === this.op) return this[t(502)][t(419)] = !0 === this[t(397)] ? new Uint8Array(this[t(400)]
|
||
|
[t(415)](0, this.op)) : this[t(400)][t(415)](0, this.op), this[t(457)];
|
||
|
this[t(479)] -= 16384, this[t(444)]()
|
||
|
} else this[t(479)] = this.op - 1 - (this.t >> 2) - (this[t(477)][this.ip++] << 2), this.minNewSize = this
|
||
|
.op + 2, this[t(494)] > this[t(432)] && this[t(475)](), this.out[this.op++] = this[t(400)][this[t(
|
||
|
479)]++
|
||
|
], this.out[this.op++] = this[t(400)][this[t(479)]];
|
||
|
if (0 === this[t(453)]()) return this.OK;
|
||
|
this[t(393)]()
|
||
|
}
|
||
|
}, this[s(473)] = function(t) {
|
||
|
var i = s;
|
||
|
if (this[i(502)] = t, this.buf = this[i(502)].inputBuffer, this.cbl = this[i(400)][i(399)], this[i(459)] =
|
||
|
this[i(477)][i(399)], this.t = 0, this.ip = 0, this.op = 0, this[i(479)] = 0, this[i(388)] = !1, 17 <
|
||
|
this[i(477)][this.ip])
|
||
|
if (this.t = this[i(477)][this.ip++] - 17, this.t < 4) {
|
||
|
if (this[i(393)](), this[i(442)] = this[i(441)](), this[i(442)] !== this.OK) return this[i(442)] ===
|
||
|
this[i(457)] ? this.OK : this[i(442)]
|
||
|
} else this[i(460)](), this.skipToFirstLiteralFun = !0;
|
||
|
for (;;) {
|
||
|
if (this.skipToFirstLiteralFun) this[i(388)] = !1;
|
||
|
else {
|
||
|
if (this.t = this.buf[this.ip++], 16 <= this.t) {
|
||
|
if (this[i(442)] = this[i(441)](), this.ret !== this.OK) return this[i(442)] === this[i(457)] ? this
|
||
|
.OK : this[i(442)];
|
||
|
continue
|
||
|
}
|
||
|
if (0 === this.t) {
|
||
|
for (; 0 === this.buf[this.ip];) this.t += 255, this.ip++;
|
||
|
this.t += 15 + this.buf[this.ip++]
|
||
|
}
|
||
|
this.t += 3, this[i(460)]()
|
||
|
}
|
||
|
if (this.t = this.buf[this.ip++], this.t < 16) {
|
||
|
if (this[i(479)] = this.op - 2049, this.m_pos -= this.t >> 2, this[i(479)] -= this[i(477)][this.ip++] <<
|
||
|
2, this.minNewSize = this.op + 3, this[i(494)] > this[i(432)] && this[i(475)](), this[i(400)][this
|
||
|
.op++
|
||
|
] = this[i(400)][this.m_pos++], this[i(400)][this.op++] = this[i(400)][this[i(479)]++], this[i(400)][
|
||
|
this.op++
|
||
|
] = this[i(400)][this[i(479)]], 0 === this[i(453)]()) continue;
|
||
|
this[i(393)]()
|
||
|
}
|
||
|
if (this[i(442)] = this.match(), this[i(442)] !== this.OK) return this.ret === this[i(457)] ? this.OK :
|
||
|
this[i(442)]
|
||
|
}
|
||
|
return this.OK
|
||
|
}, this._compressCore = function() {
|
||
|
var t = s;
|
||
|
for (this[t(404)] = this.ip, this[t(459)] = this.ip + this.ll - 20, this.jj = this.ip, this.ti = this.t,
|
||
|
this.ip += this.ti < 4 ? 4 - this.ti : 0, this.ip += 1 + (this.ip - this.jj >> 5); !(this.ip >= this
|
||
|
.ip_end);)
|
||
|
if (this.dv_lo = this[t(477)][this.ip] | this.buf[this.ip + 1] << 8, this[t(421)] = this[t(477)][this.ip +
|
||
|
2
|
||
|
] | this.buf[this.ip + 3] << 8, this[t(413)] = ((17053 * this.dv_lo >>> 16) + 17053 * this[t(421)] +
|
||
|
6180 * this.dv_lo & 65535) >>> 2, this[t(479)] = this[t(404)] + this[t(456)][this.dindex], this[t(
|
||
|
456)][this[t(413)]] = this.ip - this[t(404)], (this[t(421)] << 16) + this[t(458)] != (this[t(477)][
|
||
|
this[t(479)]
|
||
|
] | this.buf[this.m_pos + 1] << 8 | this[t(477)][this.m_pos + 2] << 16 | this[t(477)][this[t(479)] +
|
||
|
3] << 24)) this.ip += 1 + (this.ip - this.jj >> 5);
|
||
|
else {
|
||
|
if (this.jj -= this.ti, this.ti = 0, this.v = this.ip - this.jj, 0 !== this.v)
|
||
|
if (this.v <= 3)
|
||
|
for (this[t(400)][this.op - 2] |= this.v; this[t(400)][this.op++] = this.buf[this.jj++], 0 < --this
|
||
|
.v;);
|
||
|
else {
|
||
|
if (this.v <= 18) this[t(400)][this.op++] = this.v - 3;
|
||
|
else {
|
||
|
for (this.tt = this.v - 18, this[t(400)][this.op++] = 0; 255 < this.tt;) this.tt -= 255, this[t(
|
||
|
400)][this.op++] = 0;
|
||
|
this[t(400)][this.op++] = this.tt
|
||
|
}
|
||
|
for (; this[t(400)][this.op++] = this[t(477)][this.jj++], 0 < --this.v;);
|
||
|
} if (this[t(389)] = 4, this[t(477)][this.ip + this[t(389)]] === this.buf[this[t(479)] + this[t(
|
||
|
389)]])
|
||
|
for (; this[t(389)] += 1, this.buf[this.ip + this[t(389)]] === this[t(477)][this[t(479)] + this[t(
|
||
|
389)]] && (this.m_len += 1, this.buf[this.ip + this[t(389)]] === this[t(477)][this[t(479)] + this
|
||
|
.m_len
|
||
|
] && (this[t(389)] += 1, this[t(477)][this.ip + this[t(389)]] === this.buf[this[t(479)] + this
|
||
|
.m_len] && (this.m_len += 1, this[t(477)][this.ip + this[t(389)]] === this[t(477)][this[t(
|
||
|
479)] + this.m_len] && (this.m_len += 1, this.buf[this.ip + this[t(389)]] === this.buf[this[
|
||
|
t(479)] + this.m_len] && (this[t(389)] += 1, this[t(477)][this.ip + this[t(389)]] === this
|
||
|
.buf[this[t(479)] + this[t(389)]] && (this[t(389)] += 1, this.buf[this.ip + this[t(
|
||
|
389)]] === this[t(477)][this[t(479)] + this[t(389)]] && (this[t(389)] += 1, this.buf[
|
||
|
this.ip + this.m_len] === this.buf[this[t(479)] + this[t(389)]] && !(this.ip + this[
|
||
|
t(389)] >= this.ip_end) && this[t(477)][this.ip + this.m_len] === this[t(477)][this[
|
||
|
t(479)] + this.m_len]))))))););
|
||
|
if (this[t(422)] = this.ip - this.m_pos, this.ip += this.m_len, this.jj = this.ip, this[t(389)] <= 8 &&
|
||
|
this[t(422)] <= 2048) --this[t(422)], this.out[this.op++] = this.m_len - 1 << 5 | (7 & this.m_off) <<
|
||
|
2, this.out[this.op++] = this[t(422)] >> 3;
|
||
|
else if (this[t(422)] <= 16384) {
|
||
|
if (--this[t(422)], this[t(389)] <= 33) this.out[this.op++] = 32 | this[t(389)] - 2;
|
||
|
else {
|
||
|
for (this[t(389)] -= 33, this[t(400)][this.op++] = 32; 255 < this[t(389)];) this.m_len -= 255, this[
|
||
|
t(400)][this.op++] = 0;
|
||
|
this[t(400)][this.op++] = this[t(389)]
|
||
|
}
|
||
|
this[t(400)][this.op++] = this[t(422)] << 2, this.out[this.op++] = this[t(422)] >> 6
|
||
|
} else {
|
||
|
if (this.m_off -= 16384, this.m_len <= 9) this[t(400)][this.op++] = 16 | this[t(422)] >> 11 & 8 | this
|
||
|
.m_len - 2;
|
||
|
else {
|
||
|
for (this.m_len -= 9, this[t(400)][this.op++] = 16 | this[t(422)] >> 11 & 8; 255 < this[t(389)];)
|
||
|
this[t(389)] -= 255, this[t(400)][this.op++] = 0;
|
||
|
this[t(400)][this.op++] = this[t(389)]
|
||
|
}
|
||
|
this[t(400)][this.op++] = this[t(422)] << 2, this[t(400)][this.op++] = this[t(422)] >> 6
|
||
|
}
|
||
|
} this.t = this.ll - (this.jj - this[t(404)] - this.ti)
|
||
|
}, this[s(412)] = function(t) {
|
||
|
var i = s;
|
||
|
for (this[i(502)] = t, this.ip = 0, this[i(477)] = this[i(502)].inputBuffer, this[i(489)] = this[i(477)]
|
||
|
.length + Math[i(488)](this[i(477)][i(399)] / 16) + 64 + 3, this[i(489)] > this[i(400)][i(399)] && (this[
|
||
|
i(400)] = new Uint8Array(this[i(489)])), this.op = 0, this.l = this[i(477)][i(399)], this.t = 0; 20 <
|
||
|
this.l && (this.ll = this.l <= 49152 ? this.l : 49152, !(this.t + this.ll >> 5 <= 0));) this.dict.set(
|
||
|
this[i(449)]), this.prev_ip = this.ip, this._compressCore(), this.ip = this[i(383)] + this.ll, this.l -=
|
||
|
this.ll;
|
||
|
if (this.t += this.l, 0 < this.t) {
|
||
|
if (this.ii = this.buf[i(399)] - this.t, 0 === this.op && this.t <= 238) this[i(400)][this.op++] = 17 +
|
||
|
this.t;
|
||
|
else if (this.t <= 3) this.out[this.op - 2] |= this.t;
|
||
|
else if (this.t <= 18) this[i(400)][this.op++] = this.t - 3;
|
||
|
else {
|
||
|
for (this.tt = this.t - 18, this[i(400)][this.op++] = 0; 255 < this.tt;) this.tt -= 255, this[i(400)][
|
||
|
this.op++
|
||
|
] = 0;
|
||
|
this[i(400)][this.op++] = this.tt
|
||
|
}
|
||
|
for (; this.out[this.op++] = this[i(477)][this.ii++], 0 < --this.t;);
|
||
|
}
|
||
|
return this[i(400)][this.op++] = 17, this[i(400)][this.op++] = 0, this.out[this.op++] = 0, this[i(502)]
|
||
|
.outputBuffer = !0 === this.returnNewBuffers ? new Uint8Array(this[i(400)][i(415)](0, this.op)) : this
|
||
|
.out[i(415)](0, this.op), this.OK
|
||
|
}
|
||
|
};
|
||
|
var h, t, i, s = {
|
||
|
setBlockSize: function(t) {
|
||
|
return h[_0x50ea(411)](t)
|
||
|
},
|
||
|
setOutputEstimate: function(t) {
|
||
|
return h[_0x50ea(495)](t)
|
||
|
},
|
||
|
setReturnNewBuffers: function(t) {
|
||
|
h[_0x50ea(417)](t)
|
||
|
},
|
||
|
compress: function(t, i) {
|
||
|
var s = _0x50ea;
|
||
|
return void 0 !== i && h[s(472)](i), h[s(412)](t)
|
||
|
},
|
||
|
decompress: function(t, i) {
|
||
|
var s = _0x50ea;
|
||
|
return void 0 !== i && h[s(472)](i), h[s(473)](t)
|
||
|
}
|
||
|
};
|
||
|
class n {
|
||
|
constructor(t, i) {
|
||
|
var s = v;
|
||
|
this[s(385)] = [], this[s(469)] = t, this[s(476)] = i
|
||
|
} [v(464)](t, i, s) {
|
||
|
var h = v;
|
||
|
return this[h(474)]("! " + t + h(465) + i + " " + s)._line()
|
||
|
} ["pageWidth"](t) {
|
||
|
var i = v;
|
||
|
return this[i(474)](i(490) + t)._line()
|
||
|
} [v(447)](t) {
|
||
|
var i = v;
|
||
|
return this[i(474)](i(486) + t)[i(482)]()
|
||
|
} [v(491)](t) {
|
||
|
var i = v;
|
||
|
return t < 0 ? this : this._append(i(403) + t)[i(482)]()
|
||
|
} [v(515)](t, i, s, h, e, r) {
|
||
|
var n = v;
|
||
|
let o;
|
||
|
switch (t) {
|
||
|
case 90:
|
||
|
o = "TEXT90";
|
||
|
break;
|
||
|
case 180:
|
||
|
o = n(418);
|
||
|
break;
|
||
|
case 270:
|
||
|
o = n(504);
|
||
|
break;
|
||
|
default:
|
||
|
o = n(438)
|
||
|
}
|
||
|
return this[n(474)](o + " " + i + " " + s + " " + h + " " + e + " " + r)._line()
|
||
|
} [v(515)](t, i, s, h, e, r) {
|
||
|
var n = v;
|
||
|
let o;
|
||
|
switch (t) {
|
||
|
case 90:
|
||
|
o = n(391);
|
||
|
break;
|
||
|
case 180:
|
||
|
o = n(418);
|
||
|
break;
|
||
|
case 270:
|
||
|
o = "TEXT270";
|
||
|
break;
|
||
|
default:
|
||
|
o = "TEXT"
|
||
|
}
|
||
|
return this[n(474)](o + " " + i + " " + s + " " + h + " " + e + " " + r)[n(482)]()
|
||
|
} [v(455)](t, i, s, h, e) {
|
||
|
var r = v;
|
||
|
return this[r(474)](r(478) + t + " " + i + " " + s + " " + h + " " + e)[r(482)]()
|
||
|
} [v(433)](t, i, s, h, e, r) {
|
||
|
var n = v;
|
||
|
return this[n(474)](n(390) + t + " " + i + " " + s + " " + h + " " + e + " " + r)[n(482)]()
|
||
|
} [v(506)](t, i, s, h) {
|
||
|
var e = v;
|
||
|
return this[e(474)](e(401) + i + " " + s + e(480) + r + t + "A," + h + r + e(470) + r)
|
||
|
} [v(448)](t, i, s) {
|
||
|
var h = v,
|
||
|
e = Math.ceil(t[h(439)] / 8),
|
||
|
r = m[h(499)](t);
|
||
|
return this[h(474)](h(500) + e + " " + t[h(443)] + " " + i + " " + s + " ")._append(r)._line()
|
||
|
} [v(445)](t, i, s) {
|
||
|
var h = v,
|
||
|
e = Math[h(488)](t.width / 8),
|
||
|
r = m[h(499)](t),
|
||
|
r = this.HEX[h(497)](r);
|
||
|
return this[h(474)](h(500) + e + " " + t[h(443)] + " " + i + " " + s + " ")[h(474)](r)[h(482)]()
|
||
|
} [v(395)](t, i, s, h = 4096) {
|
||
|
var e = v;
|
||
|
const r = t[e(439)],
|
||
|
n = t[e(443)],
|
||
|
o = Math.ceil(r / 8),
|
||
|
u = Math[e(512)](h / o),
|
||
|
a = Math[e(488)](n / u),
|
||
|
f = m[e(499)](t);
|
||
|
for (let t = 0; t < a; t++) {
|
||
|
var p = s + u * t,
|
||
|
c = t == a - 1 ? n - u * t : u,
|
||
|
_ = f[e(463)](0, o * c),
|
||
|
l = {
|
||
|
inputBuffer: new Uint8Array(_),
|
||
|
outputBuffer: null
|
||
|
},
|
||
|
d = this[e(476)][e(412)](l),
|
||
|
l = l.outputBuffer;
|
||
|
0 != d || null == l || 0 == l.byteLength || l[e(437)] >= _[e(399)] ? this._append(e(500) + o + " " + c +
|
||
|
" " + i + " " + p + " ")[e(474)](f)._line() : this[e(474)](e(508) + o + " " + c + " " + i + " " + p +
|
||
|
" " + l[e(437)] + " ")._append(l)[e(482)]()
|
||
|
}
|
||
|
return this
|
||
|
} [v(410)]() {
|
||
|
var t = v;
|
||
|
return this[t(474)](t(408))[t(482)]()
|
||
|
} [v(440)]() {
|
||
|
var t = v;
|
||
|
return this[t(474)](t(451))._line()
|
||
|
} [v(452)]() {
|
||
|
return this.form().print()
|
||
|
} [v(424)](t) {
|
||
|
return this[v(474)](t)
|
||
|
} [v(461)]() {
|
||
|
var t = v;
|
||
|
let i = new ArrayBuffer(this[t(385)][t(399)]),
|
||
|
s = new DataView(i);
|
||
|
for (var h = 0; h < this[t(385)][t(399)]; h++) s[t(407)](h, this._buffer[h]);
|
||
|
return i
|
||
|
} [v(467)]() {
|
||
|
var t = v;
|
||
|
return this[t(469)][t(497)](this[t(461)]())
|
||
|
} [v(468)]() {
|
||
|
var t = v;
|
||
|
return this[t(469)][t(409)](this[t(461)]())
|
||
|
} [v(482)]() {
|
||
|
return this[v(474)](r)
|
||
|
} [v(474)](t) {
|
||
|
var i = v;
|
||
|
return (t = (t = (typeof t)[i(493)]() === i(454) ? this[i(469)][i(402)](t) : t) instanceof ArrayBuffer ?
|
||
|
new Uint8Array(t) : t) instanceof Uint8Array && (t = Array[i(446)](t)), Array.isArray(t) && (this[i(
|
||
|
385)] = this._buffer[i(435)](t)), this
|
||
|
}
|
||
|
}
|
||
|
class m {
|
||
|
static[v(499)](t) {
|
||
|
var i = v,
|
||
|
u = t[i(439)],
|
||
|
s = t[i(443)],
|
||
|
a = Math.ceil(u / 8),
|
||
|
f = this[i(394)](t);
|
||
|
let p = [];
|
||
|
for (let h = 0, e, r, n, o; h < s; h++)
|
||
|
for (let s = 0; s < a; s++) {
|
||
|
let i = 0;
|
||
|
for (let t = 0; t < 8; t++) {
|
||
|
var c = 8 * s + t;
|
||
|
i <<= 1, c < u && (r = f[0 + (e = 4 * (h * u + c))], n = f[1 + e], o = f[2 + e], i += this._rgb2Bin(r,
|
||
|
n, o))
|
||
|
}
|
||
|
p[h * a + s] = i
|
||
|
}
|
||
|
return p
|
||
|
}
|
||
|
static[v(394)](t) {
|
||
|
return t.data
|
||
|
}
|
||
|
static[v(426)](t, i, s, h = 140) {
|
||
|
return h < 38 * t + 75 * i + 15 * s >> 7 ? 0 : 1
|
||
|
}
|
||
|
}
|
||
|
const r = [10];
|
||
|
return {
|
||
|
Builder: function(e, r) {
|
||
|
return {
|
||
|
createArea(t, i, s) {
|
||
|
var h = _0x50ea;
|
||
|
return new n(e, r)[h(464)](t, i, s)
|
||
|
}
|
||
|
}
|
||
|
}(i(t), s)
|
||
|
}
|
||
|
});
|