@genai-fi/nanogpt 0.2.3 → 0.2.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/TeachableLLM.js +5 -4
- package/dist/data/parquet.js +7 -5
- package/dist/data/pdf.d.ts +1 -0
- package/dist/data/pdf.js +12 -0
- package/dist/data/textLoader.js +27 -22
- package/dist/index-D5v913EJ.js +4 -0
- package/dist/{index-B8nyc6IR.js → index-DcaSvB38.js} +462 -506
- package/dist/index-Tf7vU29b.js +1023 -0
- package/dist/index-xuotMAFm.js +118 -0
- package/dist/{jszip.min-pMIn3RZH.js → jszip.min-CAxN99oA.js} +42 -52
- package/dist/layers/TiedEmbedding.js +1 -1
- package/dist/parquet-BRl5lE_I.js +44956 -0
- package/dist/pdf-kJD-f258.js +19481 -0
- package/dist/training/AdamExt.js +1 -1
- package/dist/utilities/load.js +1 -1
- package/dist/utilities/save.js +1 -1
- package/package.json +4 -2
- package/dist/parquet-DpcqBLb0.js +0 -39727
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
function v(e) {
|
|
2
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3
|
+
}
|
|
4
|
+
var m = { exports: {} }, t = m.exports = {}, n, o;
|
|
5
|
+
function f() {
|
|
6
|
+
throw new Error("setTimeout has not been defined");
|
|
7
|
+
}
|
|
8
|
+
function h() {
|
|
9
|
+
throw new Error("clearTimeout has not been defined");
|
|
10
|
+
}
|
|
11
|
+
(function() {
|
|
12
|
+
try {
|
|
13
|
+
typeof setTimeout == "function" ? n = setTimeout : n = f;
|
|
14
|
+
} catch {
|
|
15
|
+
n = f;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
typeof clearTimeout == "function" ? o = clearTimeout : o = h;
|
|
19
|
+
} catch {
|
|
20
|
+
o = h;
|
|
21
|
+
}
|
|
22
|
+
})();
|
|
23
|
+
function p(e) {
|
|
24
|
+
if (n === setTimeout)
|
|
25
|
+
return setTimeout(e, 0);
|
|
26
|
+
if ((n === f || !n) && setTimeout)
|
|
27
|
+
return n = setTimeout, setTimeout(e, 0);
|
|
28
|
+
try {
|
|
29
|
+
return n(e, 0);
|
|
30
|
+
} catch {
|
|
31
|
+
try {
|
|
32
|
+
return n.call(null, e, 0);
|
|
33
|
+
} catch {
|
|
34
|
+
return n.call(this, e, 0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function g(e) {
|
|
39
|
+
if (o === clearTimeout)
|
|
40
|
+
return clearTimeout(e);
|
|
41
|
+
if ((o === h || !o) && clearTimeout)
|
|
42
|
+
return o = clearTimeout, clearTimeout(e);
|
|
43
|
+
try {
|
|
44
|
+
return o(e);
|
|
45
|
+
} catch {
|
|
46
|
+
try {
|
|
47
|
+
return o.call(null, e);
|
|
48
|
+
} catch {
|
|
49
|
+
return o.call(this, e);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
var u = [], s = !1, a, l = -1;
|
|
54
|
+
function w() {
|
|
55
|
+
!s || !a || (s = !1, a.length ? u = a.concat(u) : l = -1, u.length && d());
|
|
56
|
+
}
|
|
57
|
+
function d() {
|
|
58
|
+
if (!s) {
|
|
59
|
+
var e = p(w);
|
|
60
|
+
s = !0;
|
|
61
|
+
for (var r = u.length; r; ) {
|
|
62
|
+
for (a = u, u = []; ++l < r; )
|
|
63
|
+
a && a[l].run();
|
|
64
|
+
l = -1, r = u.length;
|
|
65
|
+
}
|
|
66
|
+
a = null, s = !1, g(e);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
t.nextTick = function(e) {
|
|
70
|
+
var r = new Array(arguments.length - 1);
|
|
71
|
+
if (arguments.length > 1)
|
|
72
|
+
for (var c = 1; c < arguments.length; c++)
|
|
73
|
+
r[c - 1] = arguments[c];
|
|
74
|
+
u.push(new T(e, r)), u.length === 1 && !s && p(d);
|
|
75
|
+
};
|
|
76
|
+
function T(e, r) {
|
|
77
|
+
this.fun = e, this.array = r;
|
|
78
|
+
}
|
|
79
|
+
T.prototype.run = function() {
|
|
80
|
+
this.fun.apply(null, this.array);
|
|
81
|
+
};
|
|
82
|
+
t.title = "browser";
|
|
83
|
+
t.browser = !0;
|
|
84
|
+
t.env = {};
|
|
85
|
+
t.argv = [];
|
|
86
|
+
t.version = "";
|
|
87
|
+
t.versions = {};
|
|
88
|
+
function i() {
|
|
89
|
+
}
|
|
90
|
+
t.on = i;
|
|
91
|
+
t.addListener = i;
|
|
92
|
+
t.once = i;
|
|
93
|
+
t.off = i;
|
|
94
|
+
t.removeListener = i;
|
|
95
|
+
t.removeAllListeners = i;
|
|
96
|
+
t.emit = i;
|
|
97
|
+
t.prependListener = i;
|
|
98
|
+
t.prependOnceListener = i;
|
|
99
|
+
t.listeners = function(e) {
|
|
100
|
+
return [];
|
|
101
|
+
};
|
|
102
|
+
t.binding = function(e) {
|
|
103
|
+
throw new Error("process.binding is not supported");
|
|
104
|
+
};
|
|
105
|
+
t.cwd = function() {
|
|
106
|
+
return "/";
|
|
107
|
+
};
|
|
108
|
+
t.chdir = function(e) {
|
|
109
|
+
throw new Error("process.chdir is not supported");
|
|
110
|
+
};
|
|
111
|
+
t.umask = function() {
|
|
112
|
+
return 0;
|
|
113
|
+
};
|
|
114
|
+
var y = m.exports;
|
|
115
|
+
const b = /* @__PURE__ */ v(y);
|
|
116
|
+
export {
|
|
117
|
+
b as p
|
|
118
|
+
};
|
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { c as vt, g as Ot } from "./_commonjsHelpers-ByX85dGu.js";
|
|
2
|
+
import { B as lt } from "./index-Tf7vU29b.js";
|
|
3
|
+
import { p as Bt } from "./index-xuotMAFm.js";
|
|
4
|
+
function yt(wt) {
|
|
5
|
+
throw new Error('Could not dynamically require "' + wt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
6
|
}
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
9
|
-
<http://stuartk.com/jszip>
|
|
10
|
-
|
|
11
|
-
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
12
|
-
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
13
|
-
|
|
14
|
-
JSZip uses the library pako released under the MIT license :
|
|
15
|
-
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
16
|
-
*/
|
|
17
|
-
var zt;
|
|
18
|
-
function Ot() {
|
|
19
|
-
return zt || (zt = 1, function(yt, Rt) {
|
|
7
|
+
var xt = { exports: {} }, Ct;
|
|
8
|
+
function Rt() {
|
|
9
|
+
return Ct || (Ct = 1, function(wt, Dt) {
|
|
20
10
|
(function(b) {
|
|
21
|
-
|
|
11
|
+
wt.exports = b();
|
|
22
12
|
})(function() {
|
|
23
13
|
return function b(U, k, l) {
|
|
24
14
|
function o(_, y) {
|
|
25
15
|
if (!k[_]) {
|
|
26
16
|
if (!U[_]) {
|
|
27
|
-
var p = typeof
|
|
17
|
+
var p = typeof yt == "function" && yt;
|
|
28
18
|
if (!y && p) return p(_, !0);
|
|
29
19
|
if (n) return n(_, !0);
|
|
30
20
|
var g = new Error("Cannot find module '" + _ + "'");
|
|
@@ -38,7 +28,7 @@ function Ot() {
|
|
|
38
28
|
}
|
|
39
29
|
return k[_].exports;
|
|
40
30
|
}
|
|
41
|
-
for (var n = typeof
|
|
31
|
+
for (var n = typeof yt == "function" && yt, h = 0; h < l.length; h++) o(l[h]);
|
|
42
32
|
return o;
|
|
43
33
|
}({ 1: [function(b, U, k) {
|
|
44
34
|
var l = b("./utils"), o = b("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
@@ -298,16 +288,16 @@ function Ot() {
|
|
|
298
288
|
this._helper.resume();
|
|
299
289
|
}, U.exports = o;
|
|
300
290
|
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(b, U, k) {
|
|
301
|
-
U.exports = { isNode: typeof
|
|
302
|
-
if (
|
|
291
|
+
U.exports = { isNode: typeof lt < "u", newBufferFrom: function(l, o) {
|
|
292
|
+
if (lt.from && lt.from !== Uint8Array.from) return lt.from(l, o);
|
|
303
293
|
if (typeof l == "number") throw new Error('The "data" argument must not be a number');
|
|
304
|
-
return new
|
|
294
|
+
return new lt(l, o);
|
|
305
295
|
}, allocBuffer: function(l) {
|
|
306
|
-
if (
|
|
307
|
-
var o = new
|
|
296
|
+
if (lt.alloc) return lt.alloc(l);
|
|
297
|
+
var o = new lt(l);
|
|
308
298
|
return o.fill(0), o;
|
|
309
299
|
}, isBuffer: function(l) {
|
|
310
|
-
return
|
|
300
|
+
return lt.isBuffer(l);
|
|
311
301
|
}, isStream: function(l) {
|
|
312
302
|
return l && typeof l.on == "function" && typeof l.pause == "function" && typeof l.resume == "function";
|
|
313
303
|
} };
|
|
@@ -634,7 +624,7 @@ function Ot() {
|
|
|
634
624
|
for (q = new Uint8Array(m), I = 0; I < L.length; I++) q.set(L[I], W), W += L[I].length;
|
|
635
625
|
return q;
|
|
636
626
|
case "nodebuffer":
|
|
637
|
-
return
|
|
627
|
+
return lt.concat(L);
|
|
638
628
|
default:
|
|
639
629
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
640
630
|
}
|
|
@@ -681,7 +671,7 @@ function Ot() {
|
|
|
681
671
|
return new p(this, { objectMode: this._outputType !== "nodebuffer" }, d);
|
|
682
672
|
} }, U.exports = i;
|
|
683
673
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(b, U, k) {
|
|
684
|
-
if (k.base64 = !0, k.array = !0, k.string = !0, k.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", k.nodebuffer = typeof
|
|
674
|
+
if (k.base64 = !0, k.array = !0, k.string = !0, k.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", k.nodebuffer = typeof lt < "u", k.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") k.blob = !1;
|
|
685
675
|
else {
|
|
686
676
|
var l = new ArrayBuffer(0);
|
|
687
677
|
try {
|
|
@@ -1073,7 +1063,7 @@ function Ot() {
|
|
|
1073
1063
|
U.exports = function(e) {
|
|
1074
1064
|
i.push(e) !== 1 || n || o();
|
|
1075
1065
|
};
|
|
1076
|
-
}).call(this, typeof
|
|
1066
|
+
}).call(this, typeof vt < "u" ? vt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1077
1067
|
}, {}], 37: [function(b, U, k) {
|
|
1078
1068
|
var l = b("immediate");
|
|
1079
1069
|
function o() {
|
|
@@ -1460,7 +1450,7 @@ function Ot() {
|
|
|
1460
1450
|
var R;
|
|
1461
1451
|
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = a, (R = t.state).pending = 0, R.pending_out = 0, R.wrap < 0 && (R.wrap = -R.wrap), R.status = R.wrap ? m : B, t.adler = R.wrap === 2 ? 0 : 1, R.last_flush = p, n._tr_init(R), i) : $(t, d);
|
|
1462
1452
|
}
|
|
1463
|
-
function
|
|
1453
|
+
function ft(t) {
|
|
1464
1454
|
var R = it(t);
|
|
1465
1455
|
return R === i && function(A) {
|
|
1466
1456
|
A.window_size = 2 * A.w_size, V(A.head), A.max_lazy_match = l[A.level].max_lazy, A.good_match = l[A.level].good_length, A.nice_match = l[A.level].nice_length, A.max_chain_length = l[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = I - 1, A.match_available = 0, A.ins_h = 0;
|
|
@@ -1472,7 +1462,7 @@ function Ot() {
|
|
|
1472
1462
|
if (R === e && (R = 6), f < 0 ? (F = 0, f = -f) : 15 < f && (F = 2, f -= 16), s < 1 || v < s || A !== c || f < 8 || 15 < f || R < 0 || 9 < R || w < 0 || u < w) return $(t, d);
|
|
1473
1463
|
f === 8 && (f = 9);
|
|
1474
1464
|
var N = new st();
|
|
1475
|
-
return (t.state = N).strm = t, N.wrap = F, N.gzhead = null, N.w_bits = f, N.w_size = 1 << N.w_bits, N.w_mask = N.w_size - 1, N.hash_bits = s + 7, N.hash_size = 1 << N.hash_bits, N.hash_mask = N.hash_size - 1, N.hash_shift = ~~((N.hash_bits + I - 1) / I), N.window = new o.Buf8(2 * N.w_size), N.head = new o.Buf16(N.hash_size), N.prev = new o.Buf16(N.w_size), N.lit_bufsize = 1 << s + 6, N.pending_buf_size = 4 * N.lit_bufsize, N.pending_buf = new o.Buf8(N.pending_buf_size), N.d_buf = 1 * N.lit_bufsize, N.l_buf = 3 * N.lit_bufsize, N.level = R, N.strategy = w, N.method = A,
|
|
1465
|
+
return (t.state = N).strm = t, N.wrap = F, N.gzhead = null, N.w_bits = f, N.w_size = 1 << N.w_bits, N.w_mask = N.w_size - 1, N.hash_bits = s + 7, N.hash_size = 1 << N.hash_bits, N.hash_mask = N.hash_size - 1, N.hash_shift = ~~((N.hash_bits + I - 1) / I), N.window = new o.Buf8(2 * N.w_size), N.head = new o.Buf16(N.hash_size), N.prev = new o.Buf16(N.w_size), N.lit_bufsize = 1 << s + 6, N.pending_buf_size = 4 * N.lit_bufsize, N.pending_buf = new o.Buf8(N.pending_buf_size), N.d_buf = 1 * N.lit_bufsize, N.l_buf = 3 * N.lit_bufsize, N.level = R, N.strategy = w, N.method = A, ft(t);
|
|
1476
1466
|
}
|
|
1477
1467
|
l = [new rt(0, 0, 0, 0, function(t, R) {
|
|
1478
1468
|
var A = 65535;
|
|
@@ -1488,7 +1478,7 @@ function Ot() {
|
|
|
1488
1478
|
return t.insert = 0, R === g ? (C(t, !0), t.strm.avail_out === 0 ? J : P) : (t.strstart > t.block_start && (C(t, !1), t.strm.avail_out), r);
|
|
1489
1479
|
}), new rt(4, 4, 8, 4, ot), new rt(4, 5, 16, 8, ot), new rt(4, 6, 32, 32, ot), new rt(4, 4, 16, 16, Q), new rt(8, 16, 32, 32, Q), new rt(8, 16, 128, 128, Q), new rt(8, 32, 128, 256, Q), new rt(32, 128, 258, 1024, Q), new rt(32, 258, 258, 4096, Q)], k.deflateInit = function(t, R) {
|
|
1490
1480
|
return ut(t, R, c, 15, 8, 0);
|
|
1491
|
-
}, k.deflateInit2 = ut, k.deflateReset =
|
|
1481
|
+
}, k.deflateInit2 = ut, k.deflateReset = ft, k.deflateResetKeep = it, k.deflateSetHeader = function(t, R) {
|
|
1492
1482
|
return t && t.state ? t.state.wrap !== 2 ? d : (t.state.gzhead = R, i) : d;
|
|
1493
1483
|
}, k.deflate = function(t, R) {
|
|
1494
1484
|
var A, f, s, w;
|
|
@@ -1691,7 +1681,7 @@ function Ot() {
|
|
|
1691
1681
|
k.inflateReset = S, k.inflateReset2 = x, k.inflateResetKeep = v, k.inflateInit = function(m) {
|
|
1692
1682
|
return D(m, 15);
|
|
1693
1683
|
}, k.inflateInit2 = D, k.inflate = function(m, B) {
|
|
1694
|
-
var r, T, J, P, $, j, V, E, C, X, G, H, nt, ot, Q, rt, st, it,
|
|
1684
|
+
var r, T, J, P, $, j, V, E, C, X, G, H, nt, ot, Q, rt, st, it, ft, ut, t, R, A, f, s = 0, w = new l.Buf8(4), F = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1695
1685
|
if (!m || !m.state || !m.output || !m.input && m.avail_in !== 0) return i;
|
|
1696
1686
|
(r = m.state).mode === 12 && (r.mode = 13), $ = m.next_out, J = m.output, V = m.avail_out, P = m.next_in, T = m.input, j = m.avail_in, E = r.hold, C = r.bits, X = j, G = V, R = g;
|
|
1697
1687
|
t: for (; ; ) switch (r.mode) {
|
|
@@ -1933,7 +1923,7 @@ function Ot() {
|
|
|
1933
1923
|
j--, E += T[P++] << C, C += 8;
|
|
1934
1924
|
}
|
|
1935
1925
|
if (rt && (240 & rt) == 0) {
|
|
1936
|
-
for (it = Q,
|
|
1926
|
+
for (it = Q, ft = rt, ut = st; rt = (s = r.lencode[ut + ((E & (1 << it + ft) - 1) >> it)]) >>> 16 & 255, st = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
|
|
1937
1927
|
if (j === 0) break t;
|
|
1938
1928
|
j--, E += T[P++] << C, C += 8;
|
|
1939
1929
|
}
|
|
@@ -1967,7 +1957,7 @@ function Ot() {
|
|
|
1967
1957
|
j--, E += T[P++] << C, C += 8;
|
|
1968
1958
|
}
|
|
1969
1959
|
if ((240 & rt) == 0) {
|
|
1970
|
-
for (it = Q,
|
|
1960
|
+
for (it = Q, ft = rt, ut = st; rt = (s = r.distcode[ut + ((E & (1 << it + ft) - 1) >> it)]) >>> 16 & 255, st = 65535 & s, !(it + (Q = s >>> 24) <= C); ) {
|
|
1971
1961
|
if (j === 0) break t;
|
|
1972
1962
|
j--, E += T[P++] << C, C += 8;
|
|
1973
1963
|
}
|
|
@@ -2152,7 +2142,7 @@ function Ot() {
|
|
|
2152
2142
|
for (var N = s.heap[F], z = F << 1; z <= s.heap_len && (z < s.heap_len && st(w, s.heap[z + 1], s.heap[z], s.depth) && z++, !st(w, N, s.heap[z], s.depth)); ) s.heap[F] = s.heap[z], F = z, z <<= 1;
|
|
2153
2143
|
s.heap[F] = N;
|
|
2154
2144
|
}
|
|
2155
|
-
function
|
|
2145
|
+
function ft(s, w, F) {
|
|
2156
2146
|
var N, z, Z, K, M = 0;
|
|
2157
2147
|
if (s.last_lit !== 0) for (; N = s.pending_buf[s.d_buf + 2 * M] << 8 | s.pending_buf[s.d_buf + 2 * M + 1], z = s.pending_buf[s.l_buf + M], M++, N === 0 ? H(s, z, w) : (H(s, (Z = r[z]) + p + 1, w), (K = O[Z]) !== 0 && G(s, z -= T[Z], K), H(s, Z = C(--N), F), (K = L[Z]) !== 0 && G(s, N -= j[Z], K)), M < s.last_lit; ) ;
|
|
2158
2148
|
H(s, v, w);
|
|
@@ -2164,15 +2154,15 @@ function Ot() {
|
|
|
2164
2154
|
for (w.max_code = et, F = s.heap_len >> 1; 1 <= F; F--) it(s, Z, F);
|
|
2165
2155
|
for (z = Y; F = s.heap[1], s.heap[1] = s.heap[s.heap_len--], it(s, Z, 1), N = s.heap[1], s.heap[--s.heap_max] = F, s.heap[--s.heap_max] = N, Z[2 * z] = Z[2 * F] + Z[2 * N], s.depth[z] = (s.depth[F] >= s.depth[N] ? s.depth[F] : s.depth[N]) + 1, Z[2 * F + 1] = Z[2 * N + 1] = z, s.heap[1] = z++, it(s, Z, 1), 2 <= s.heap_len; ) ;
|
|
2166
2156
|
s.heap[--s.heap_max] = s.heap[1], function(tt, ht) {
|
|
2167
|
-
var
|
|
2157
|
+
var pt, dt, mt, at, gt, kt, ct = ht.dyn_tree, St = ht.max_code, Et = ht.stat_desc.static_tree, At = ht.stat_desc.has_stree, It = ht.stat_desc.extra_bits, zt = ht.stat_desc.extra_base, _t = ht.stat_desc.max_length, bt = 0;
|
|
2168
2158
|
for (at = 0; at <= u; at++) tt.bl_count[at] = 0;
|
|
2169
|
-
for (
|
|
2170
|
-
if (
|
|
2159
|
+
for (ct[2 * tt.heap[tt.heap_max] + 1] = 0, pt = tt.heap_max + 1; pt < e; pt++) _t < (at = ct[2 * ct[2 * (dt = tt.heap[pt]) + 1] + 1] + 1) && (at = _t, bt++), ct[2 * dt + 1] = at, St < dt || (tt.bl_count[at]++, gt = 0, zt <= dt && (gt = It[dt - zt]), kt = ct[2 * dt], tt.opt_len += kt * (at + gt), At && (tt.static_len += kt * (Et[2 * dt + 1] + gt)));
|
|
2160
|
+
if (bt !== 0) {
|
|
2171
2161
|
do {
|
|
2172
|
-
for (at =
|
|
2173
|
-
tt.bl_count[at]--, tt.bl_count[at + 1] += 2, tt.bl_count[
|
|
2174
|
-
} while (0 <
|
|
2175
|
-
for (at =
|
|
2162
|
+
for (at = _t - 1; tt.bl_count[at] === 0; ) at--;
|
|
2163
|
+
tt.bl_count[at]--, tt.bl_count[at + 1] += 2, tt.bl_count[_t]--, bt -= 2;
|
|
2164
|
+
} while (0 < bt);
|
|
2165
|
+
for (at = _t; at !== 0; at--) for (dt = tt.bl_count[at]; dt !== 0; ) St < (mt = tt.heap[--pt]) || (ct[2 * mt + 1] !== at && (tt.opt_len += (at - ct[2 * mt + 1]) * ct[2 * mt], ct[2 * mt + 1] = at), dt--);
|
|
2176
2166
|
}
|
|
2177
2167
|
}(s, w), ot(Z, et, s.bl_count);
|
|
2178
2168
|
}
|
|
@@ -2221,11 +2211,11 @@ function Ot() {
|
|
|
2221
2211
|
var Y;
|
|
2222
2212
|
for (t(M, M.dyn_ltree, M.l_desc.max_code), t(M, M.dyn_dtree, M.d_desc.max_code), ut(M, M.bl_desc), Y = d - 1; 3 <= Y && M.bl_tree[2 * W[Y] + 1] === 0; Y--) ;
|
|
2223
2213
|
return M.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
|
|
2224
|
-
}(s), z = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= z && (z = Z)) : z = Z = F + 5, F + 4 <= z && w !== -1 ? f(s, w, F, N) : s.strategy === 4 || Z === z ? (G(s, 2 + (N ? 1 : 0), 3),
|
|
2214
|
+
}(s), z = s.opt_len + 3 + 7 >>> 3, (Z = s.static_len + 3 + 7 >>> 3) <= z && (z = Z)) : z = Z = F + 5, F + 4 <= z && w !== -1 ? f(s, w, F, N) : s.strategy === 4 || Z === z ? (G(s, 2 + (N ? 1 : 0), 3), ft(s, q, m)) : (G(s, 4 + (N ? 1 : 0), 3), function(M, Y, et, tt) {
|
|
2225
2215
|
var ht;
|
|
2226
2216
|
for (G(M, Y - 257, 5), G(M, et - 1, 5), G(M, tt - 4, 4), ht = 0; ht < tt; ht++) G(M, M.bl_tree[2 * W[ht] + 1], 3);
|
|
2227
2217
|
R(M, M.dyn_ltree, Y - 1), R(M, M.dyn_dtree, et - 1);
|
|
2228
|
-
}(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, K + 1),
|
|
2218
|
+
}(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, K + 1), ft(s, s.dyn_ltree, s.dyn_dtree)), Q(s), N && rt(s);
|
|
2229
2219
|
}, k._tr_tally = function(s, w, F) {
|
|
2230
2220
|
return s.pending_buf[s.d_buf + 2 * s.last_lit] = w >>> 8 & 255, s.pending_buf[s.d_buf + 2 * s.last_lit + 1] = 255 & w, s.pending_buf[s.l_buf + s.last_lit] = 255 & F, s.last_lit++, w === 0 ? s.dyn_ltree[2 * F]++ : (s.matches++, w--, s.dyn_ltree[2 * (r[F] + p + 1)]++, s.dyn_dtree[2 * C(w)]++), s.last_lit === s.lit_bufsize - 1;
|
|
2231
2221
|
}, k._tr_align = function(s) {
|
|
@@ -2243,7 +2233,7 @@ function Ot() {
|
|
|
2243
2233
|
if (!o.setImmediate) {
|
|
2244
2234
|
var h, _, y, p, g = 1, i = {}, d = !1, e = o.document, u = Object.getPrototypeOf && Object.getPrototypeOf(o);
|
|
2245
2235
|
u = u && u.setTimeout ? u : o, h = {}.toString.call(o.process) === "[object process]" ? function(S) {
|
|
2246
|
-
|
|
2236
|
+
Bt.nextTick(function() {
|
|
2247
2237
|
c(S);
|
|
2248
2238
|
});
|
|
2249
2239
|
} : function() {
|
|
@@ -2312,13 +2302,13 @@ function Ot() {
|
|
|
2312
2302
|
S.source === o && typeof S.data == "string" && S.data.indexOf(p) === 0 && c(+S.data.slice(p.length));
|
|
2313
2303
|
}
|
|
2314
2304
|
})(typeof self > "u" ? l === void 0 ? this : l : self);
|
|
2315
|
-
}).call(this, typeof
|
|
2305
|
+
}).call(this, typeof vt < "u" ? vt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2316
2306
|
}, {}] }, {}, [10])(10);
|
|
2317
2307
|
});
|
|
2318
|
-
}(
|
|
2308
|
+
}(xt)), xt.exports;
|
|
2319
2309
|
}
|
|
2320
|
-
var
|
|
2321
|
-
const
|
|
2310
|
+
var Tt = Rt();
|
|
2311
|
+
const Pt = /* @__PURE__ */ Ot(Tt);
|
|
2322
2312
|
export {
|
|
2323
|
-
|
|
2313
|
+
Pt as z
|
|
2324
2314
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as p, c as a, b as V, E as u, C as X, R as Y, d as A, B as Z, S as ee, f as te, g as se, h as ne, I as re, L as ae, N as ue, P as ie, i as oe, j as le, k as ce, l as pe, n as B, t as he, T as L, m as fe, p as me, q as de, r as q, u as P, v as U, _ as H } from "../index-
|
|
1
|
+
import { o as p, c as a, b as V, E as u, C as X, R as Y, d as A, B as Z, S as ee, f as te, g as se, h as ne, I as re, L as ae, N as ue, P as ie, i as oe, j as le, k as ce, l as pe, n as B, t as he, T as L, m as fe, p as me, q as de, r as q, u as P, v as U, _ as H } from "../index-DcaSvB38.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2020 Google LLC. All Rights Reserved.
|