@genai-fi/nanogpt 0.9.0 → 0.10.0
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/README.md +352 -14
- package/dist/Generator.js +69 -78
- package/dist/{RealDiv-D4EzDsC0.js → RealDiv-DgA3z9oO.js} +32 -206
- package/dist/Reshape-CF6odzV4.js +16 -0
- package/dist/Reshape-_kILl6tK.js +81 -0
- package/dist/TeachableLLM.js +28 -22
- package/dist/Trainer.d.ts +2 -0
- package/dist/Trainer.js +3 -2
- package/dist/{axis_util-TbGYJ208.js → axis_util-BvHEw88j.js} +7 -23
- package/dist/backend.d.ts +2 -1
- package/dist/backend.js +10 -4
- package/dist/backend_util-D-rUb2ty.js +474 -0
- package/dist/backend_webgpu-B0u2ndUn.js +547 -0
- package/dist/binary_op_util-pKXltfxI.js +192 -0
- package/dist/broadcast_to-CwF7XIeu.js +30 -0
- package/dist/checks/appendCache.js +2 -2
- package/dist/checks/attentionMask.js +3 -3
- package/dist/checks/check.d.ts +1 -1
- package/dist/checks/check.js +8 -8
- package/dist/checks/gelu.js +2 -2
- package/dist/checks/index.d.ts +2 -0
- package/dist/checks/index.js +7 -5
- package/dist/checks/matMulGelu.js +6 -6
- package/dist/checks/normRMS.js +7 -7
- package/dist/checks/normRMSGrad.js +3 -3
- package/dist/checks/packUnpack.d.ts +1 -0
- package/dist/checks/packUnpack.js +18 -0
- package/dist/checks/qkv.js +12 -27
- package/dist/checks/rope.js +2 -2
- package/dist/checks/weights.js +18 -16
- package/dist/complex-CSlYz-2T.js +13 -0
- package/dist/complex_util-Yc1A_gV1.js +55 -0
- package/dist/concat-BHlIJeyT.js +19 -0
- package/dist/concat_util-DcJk7YHS.js +22 -0
- package/dist/data/docx.js +1 -1
- package/dist/data/parquet.js +2 -2
- package/dist/data/pdf.js +1 -1
- package/dist/data/textLoader.js +1 -1
- package/dist/{dataset-DlZtKmBq.js → dataset-0xP8GjwI.js} +136 -236
- package/dist/dropout-C1pM3f11.js +99 -0
- package/dist/expand_dims-BPG4fwBP.js +13 -0
- package/dist/exports_initializers-xuidcwI4.js +7 -0
- package/dist/gather-DykLGqmW.js +10 -0
- package/dist/{gelu-Bp_-935b.js → gelu-CNLFZWea.js} +11 -10
- package/dist/{gpgpu_math-CDaYiyE_.js → gpgpu_math-DDVJCn6-.js} +90 -265
- package/dist/{index-C4L8Cm77.js → index-CieiGp4Y.js} +14 -14
- package/dist/index-CjOj7j-u.js +7308 -0
- package/dist/{index-Tf7vU29b.js → index-Cp39cXWe.js} +3 -10
- package/dist/{index-Dwqa6Zy2.js → index-DvYrXKkX.js} +2 -2
- package/dist/index-ZyQhjEPo.js +2157 -0
- package/dist/{jszip.min-CjP2V1VV.js → jszip.min-Bz5-11Bk.js} +56 -57
- package/dist/kernel_funcs_utils-Dg_-E44D.js +308 -0
- package/dist/layers/BaseLayer.d.ts +1 -0
- package/dist/layers/BaseLayer.js +7 -6
- package/dist/layers/CausalSelfAttention.d.ts +0 -1
- package/dist/layers/CausalSelfAttention.js +56 -55
- package/dist/layers/MLP.js +15 -16
- package/dist/layers/PositionEmbedding.js +5 -14
- package/dist/layers/RMSNorm.js +3 -3
- package/dist/layers/RoPECache.d.ts +2 -0
- package/dist/layers/RoPECache.js +22 -17
- package/dist/layers/TiedEmbedding.js +22 -17
- package/dist/layers/TransformerBlock.js +21 -20
- package/dist/loader/load.js +1 -1
- package/dist/loader/loadTransformers.js +1 -1
- package/dist/loader/oldZipLoad.js +39 -33
- package/dist/loader/save.js +1 -1
- package/dist/log_sum_exp-DWI-76TI.js +41 -0
- package/dist/main.d.ts +8 -0
- package/dist/main.js +63 -52
- package/dist/matMul16--R5hOwDG.js +77 -0
- package/dist/mat_mul-DeAh4uTH.js +12 -0
- package/dist/mod-Gt1rMB4n.js +12 -0
- package/dist/models/NanoGPTV1.js +40 -31
- package/dist/models/model.d.ts +2 -0
- package/dist/models/model.js +37 -29
- package/dist/{mulmat_packed_gpu-BT60jmzP.js → mulmat_packed_gpu-BMFhLwta.js} +1 -17
- package/dist/{non_max_suppression_impl-CsEgBuMA.js → non_max_suppression_impl-B2W7YjZB.js} +0 -32
- package/dist/ones-CAMiP4I2.js +15 -0
- package/dist/ops/adamAdjust.js +1 -1
- package/dist/ops/adamMoments.d.ts +1 -1
- package/dist/ops/adamMoments.js +4 -4
- package/dist/ops/add16.d.ts +2 -0
- package/dist/ops/add16.js +9 -0
- package/dist/ops/appendCache.js +16 -9
- package/dist/ops/attentionMask.js +4 -4
- package/dist/ops/concat16.d.ts +2 -0
- package/dist/ops/concat16.js +9 -0
- package/dist/ops/cpu/adamAdjust.js +14 -13
- package/dist/ops/cpu/adamMoments.js +10 -9
- package/dist/ops/cpu/appendCache.js +9 -8
- package/dist/ops/cpu/attentionMask.js +15 -14
- package/dist/ops/cpu/fusedSoftmax.js +13 -12
- package/dist/ops/cpu/gatherSub.js +9 -24
- package/dist/ops/cpu/gelu.js +13 -12
- package/dist/ops/cpu/matMul16.d.ts +1 -0
- package/dist/ops/cpu/matMul16.js +16 -0
- package/dist/ops/cpu/matMulGelu.js +18 -16
- package/dist/ops/cpu/matMulMul.js +8 -7
- package/dist/ops/cpu/mulDropout.js +4 -3
- package/dist/ops/cpu/normRMS.js +11 -10
- package/dist/ops/cpu/qkv.js +17 -13
- package/dist/ops/cpu/rope.js +23 -22
- package/dist/ops/cpu/scatterSub.js +16 -30
- package/dist/ops/dot16.d.ts +2 -0
- package/dist/ops/dot16.js +42 -0
- package/dist/ops/gatherSub.js +1 -1
- package/dist/ops/gelu.js +2 -2
- package/dist/ops/grads/add16.d.ts +1 -0
- package/dist/ops/grads/add16.js +27 -0
- package/dist/ops/grads/attentionMask.js +12 -19
- package/dist/ops/grads/gelu.js +4 -3
- package/dist/ops/grads/matMul16.d.ts +2 -0
- package/dist/ops/grads/matMul16.js +9 -0
- package/dist/ops/grads/matMulGelu.js +8 -7
- package/dist/ops/grads/normRMS.js +8 -7
- package/dist/ops/grads/{fusedSoftmax.d.ts → pack16.d.ts} +1 -1
- package/dist/ops/grads/pack16.js +7 -0
- package/dist/ops/grads/qkv.d.ts +3 -1
- package/dist/ops/grads/qkv.js +28 -22
- package/dist/ops/grads/rope.d.ts +2 -1
- package/dist/ops/grads/rope.js +6 -13
- package/dist/ops/grads/softmax16.d.ts +2 -0
- package/dist/ops/grads/softmax16.js +26 -0
- package/dist/ops/grads/unpack16.d.ts +2 -0
- package/dist/ops/grads/unpack16.js +6 -0
- package/dist/ops/grads/utils.d.ts +3 -0
- package/dist/ops/grads/utils.js +10 -0
- package/dist/ops/matMul16.d.ts +15 -0
- package/dist/ops/matMul16.js +13 -0
- package/dist/ops/matMulGelu.js +1 -1
- package/dist/ops/matMulMul.js +1 -1
- package/dist/ops/mul16.d.ts +2 -0
- package/dist/ops/mul16.js +8 -0
- package/dist/ops/mulDrop.js +1 -1
- package/dist/ops/normRMS.js +1 -1
- package/dist/ops/pack16.d.ts +2 -0
- package/dist/ops/pack16.js +6 -0
- package/dist/ops/qkv.d.ts +1 -1
- package/dist/ops/qkv.js +8 -4
- package/dist/ops/reshape16.d.ts +2 -0
- package/dist/ops/reshape16.js +43 -0
- package/dist/ops/rope.d.ts +1 -1
- package/dist/ops/rope.js +8 -10
- package/dist/ops/scatterSub.js +1 -1
- package/dist/ops/slice16.d.ts +2 -0
- package/dist/ops/slice16.js +9 -0
- package/dist/ops/softmax16.d.ts +2 -0
- package/dist/ops/softmax16.js +12 -0
- package/dist/ops/sub16.d.ts +2 -0
- package/dist/ops/sub16.js +8 -0
- package/dist/ops/sum16.d.ts +2 -0
- package/dist/ops/sum16.js +13 -0
- package/dist/ops/transpose16.d.ts +3 -0
- package/dist/ops/transpose16.js +41 -0
- package/dist/ops/unpack16.d.ts +2 -0
- package/dist/ops/unpack16.js +6 -0
- package/dist/ops/webgl/adamAdjust.js +3 -2
- package/dist/ops/webgl/adamMoments.js +2 -1
- package/dist/ops/webgl/appendCache.js +2 -1
- package/dist/ops/webgl/attentionMask.js +5 -4
- package/dist/ops/webgl/fusedSoftmax.js +6 -4
- package/dist/ops/webgl/gatherSub.js +7 -6
- package/dist/ops/webgl/gelu.js +3 -2
- package/dist/ops/webgl/log.js +12 -27
- package/dist/ops/webgl/matMul16.d.ts +1 -0
- package/dist/ops/webgl/matMul16.js +37 -0
- package/dist/ops/webgl/matMulGelu.js +17 -15
- package/dist/ops/webgl/matMulMul.js +13 -12
- package/dist/ops/webgl/mulDropout.js +9 -8
- package/dist/ops/webgl/normRMS.js +8 -7
- package/dist/ops/webgl/qkv.js +6 -5
- package/dist/ops/webgl/rope.js +11 -10
- package/dist/ops/webgl/scatterSub.js +6 -5
- package/dist/ops/webgpu/adamAdjust.js +12 -10
- package/dist/ops/webgpu/adamMoments.js +27 -22
- package/dist/ops/webgpu/add16.d.ts +1 -0
- package/dist/ops/webgpu/add16.js +14 -0
- package/dist/ops/webgpu/appendCache.js +64 -17
- package/dist/ops/webgpu/attentionMask.js +19 -62
- package/dist/ops/webgpu/attentionMask32_program.d.ts +19 -0
- package/dist/ops/webgpu/attentionMask32_program.js +54 -0
- package/dist/ops/webgpu/concat16.d.ts +19 -0
- package/dist/ops/webgpu/concat16.js +128 -0
- package/dist/ops/webgpu/gatherSub.js +9 -7
- package/dist/ops/webgpu/gelu.js +78 -31
- package/dist/ops/webgpu/index.js +12 -0
- package/dist/ops/webgpu/matMul16.d.ts +1 -0
- package/dist/ops/webgpu/matMul16.js +58 -0
- package/dist/ops/webgpu/matMul16_program.d.ts +42 -0
- package/dist/ops/webgpu/matMul16_program.js +336 -0
- package/dist/ops/webgpu/mul16.d.ts +1 -0
- package/dist/ops/webgpu/mul16.js +14 -0
- package/dist/ops/webgpu/normRMS.js +21 -40
- package/dist/ops/webgpu/normRMS16_program.d.ts +9 -0
- package/dist/ops/webgpu/normRMS16_program.js +24 -0
- package/dist/ops/webgpu/normRMS32_program.d.ts +9 -0
- package/dist/ops/webgpu/normRMS32_program.js +24 -0
- package/dist/ops/webgpu/normRMSGrad.js +113 -64
- package/dist/ops/webgpu/pack16.d.ts +1 -0
- package/dist/ops/webgpu/pack16.js +19 -0
- package/dist/ops/webgpu/pack16_program.d.ts +19 -0
- package/dist/ops/webgpu/pack16_program.js +92 -0
- package/dist/ops/webgpu/qkv.js +20 -55
- package/dist/ops/webgpu/rope.js +77 -22
- package/dist/ops/webgpu/scatterSub.js +9 -7
- package/dist/ops/webgpu/slice16.d.ts +7 -0
- package/dist/ops/webgpu/slice16.js +71 -0
- package/dist/{variable-Bm2OFwGI.js → ops/webgpu/softmax16.d.ts} +2 -8
- package/dist/ops/webgpu/softmax16.js +23 -0
- package/dist/ops/webgpu/softmax16_program.d.ts +13 -0
- package/dist/ops/webgpu/softmax16_program.js +73 -0
- package/dist/ops/webgpu/softmax16_subgroup_program.d.ts +17 -0
- package/dist/ops/webgpu/softmax16_subgroup_program.js +75 -0
- package/dist/ops/webgpu/softmax16grad.d.ts +1 -0
- package/dist/ops/webgpu/softmax16grad.js +38 -0
- package/dist/ops/webgpu/sub16.d.ts +1 -0
- package/dist/ops/webgpu/sub16.js +14 -0
- package/dist/ops/webgpu/sum16.d.ts +1 -0
- package/dist/ops/webgpu/sum16.js +40 -0
- package/dist/ops/webgpu/transpose16.d.ts +1 -0
- package/dist/ops/webgpu/transpose16.js +35 -0
- package/dist/ops/webgpu/transpose16_program.d.ts +16 -0
- package/dist/ops/webgpu/transpose16_program.js +50 -0
- package/dist/ops/webgpu/transpose16_shared_program.d.ts +15 -0
- package/dist/ops/webgpu/transpose16_shared_program.js +71 -0
- package/dist/ops/webgpu/unpack16.d.ts +1 -0
- package/dist/ops/webgpu/unpack16.js +49 -0
- package/dist/ops/webgpu/utils/binary_op.d.ts +19 -0
- package/dist/ops/webgpu/utils/binary_op.js +79 -0
- package/dist/ops/webgpu/utils/deviceInfo.d.ts +7 -0
- package/dist/ops/webgpu/utils/deviceInfo.js +11 -0
- package/dist/ops/webgpu/utils/reductions.d.ts +32 -4
- package/dist/ops/webgpu/utils/reductions.js +236 -45
- package/dist/ops-CNI3TwqM.js +645 -0
- package/dist/pack16-CFUqumar.js +41 -0
- package/dist/{papaparse.min-C8l2Kvo1.js → papaparse.min-C0cScC2i.js} +2 -8
- package/dist/{parquet-C0Tlmv9c.js → parquet-BE8MU_ge.js} +201 -278
- package/dist/patches/PackedTensor.d.ts +12 -0
- package/dist/patches/PackedTensor.js +11 -0
- package/dist/patches/engine.d.ts +261 -0
- package/dist/patches/engine.js +10 -0
- package/dist/patches/tape.d.ts +12 -0
- package/dist/patches/tape.js +5 -0
- package/dist/patches/webgpu_backend.d.ts +18 -0
- package/dist/patches/webgpu_backend.js +57 -0
- package/dist/{tensor-CZr4dh61.js → patches/webgpu_base.d.ts} +5 -8
- package/dist/patches/webgpu_base.js +34 -0
- package/dist/patches/webgpu_program.d.ts +36 -0
- package/dist/patches/webgpu_program.js +401 -0
- package/dist/{pdf-kJD-f258.js → pdf-NIhmP3sq.js} +424 -428
- package/dist/random_width-DY6Kk2Dl.js +10051 -0
- package/dist/range-BMS52eQi.js +11 -0
- package/dist/reciprocal-CTmshQ9J.js +10 -0
- package/dist/{register_all_kernels-DIGpEwcf.js → register_all_kernels-Bwu1PTuU.js} +719 -9766
- package/dist/relu-yZ2-7WxU.js +10 -0
- package/dist/reshape-DevtBWtf.js +10 -0
- package/dist/rope-B5UUMsPi.js +32 -0
- package/dist/{scatter_nd_util-BQdz--Gn.js → scatter_nd_util-5EL-8VAQ.js} +1 -1
- package/dist/selu_util-D1w6yyTO.js +303 -0
- package/dist/{shared-DuP7ue-R.js → shared-BRksrJb3.js} +1 -17
- package/dist/shared-BuAXb4CI.js +2145 -0
- package/dist/sin-BGfy2HZo.js +16 -0
- package/dist/slice-D_gkkqZK.js +13 -0
- package/dist/slice_util-DtEldBfK.js +261 -0
- package/dist/softmax-ZHVebtR1.js +13 -0
- package/dist/split-DrfihRpZ.js +10 -0
- package/dist/squeeze-DZEpeblb.js +11 -0
- package/dist/stack-yOIAalTq.js +13 -0
- package/dist/sum-_fzj5ZTB.js +12 -0
- package/dist/tensor-DdQUJZlz.js +909 -0
- package/dist/tensor-f35l8Odg.js +8 -0
- package/dist/tensor1d-CeZuc-Rv.js +12 -0
- package/dist/tensor2d-G4Ys2GxX.js +15 -0
- package/dist/tensor4d-B8roDgtc.js +15 -0
- package/dist/tensor_util-DV-FP5Q3.js +523 -0
- package/dist/tfjs_backend-kNyO5L2d.js +653 -0
- package/dist/tile-BzyEiF-F.js +13 -0
- package/dist/tokeniser/CharTokeniser.js +1 -1
- package/dist/tokeniser/bpe.js +1 -1
- package/dist/training/Adam.d.ts +2 -1
- package/dist/training/Adam.js +12 -28
- package/dist/training/AdamExt.d.ts +1 -0
- package/dist/training/AdamExt.js +2 -2
- package/dist/training/DatasetBuilder.js +3 -20
- package/dist/training/FullTrainer.js +82 -64
- package/dist/training/Trainer.d.ts +11 -6
- package/dist/training/Trainer.js +51 -39
- package/dist/training/sparseCrossEntropy.js +3 -3
- package/dist/transpose-DKELTqhe.js +38 -0
- package/dist/utilities/arrayClose.js +7 -7
- package/dist/utilities/dummy.js +35 -27
- package/dist/utilities/multinomialCPU.js +2 -2
- package/dist/utilities/packed.d.ts +7 -0
- package/dist/utilities/packed.js +716 -0
- package/dist/utilities/performance.js +1 -1
- package/dist/utilities/profile.js +1 -1
- package/dist/utilities/safetensors.js +2 -2
- package/dist/utilities/sentences.d.ts +5 -0
- package/dist/utilities/sentences.js +41 -0
- package/dist/utilities/weights.js +2 -2
- package/dist/variable-Bhn5bHYv.js +7 -0
- package/dist/{webgpu_program-DkQJOJSd.js → webgpu_program-Cigz-7RF.js} +15 -44
- package/dist/webgpu_util-BBCnKm2X.js +65 -0
- package/dist/zeros-2gldETuK.js +14 -0
- package/package.json +4 -3
- package/dist/Reshape-Bowtk9BP.js +0 -127
- package/dist/Reshape-DUqYftGC.js +0 -30
- package/dist/backend_util-CJIiDoV1.js +0 -749
- package/dist/broadcast_to-DzlNweb8.js +0 -44
- package/dist/concat-B912vBbo.js +0 -33
- package/dist/dropout-C-csYCLj.js +0 -193
- package/dist/exports_initializers-B8iZMgQ0.js +0 -16
- package/dist/gather-Dnpgw-YQ.js +0 -25
- package/dist/index-BzFyqcy-.js +0 -4457
- package/dist/index-C1rx_Ajs.js +0 -12076
- package/dist/kernel_funcs_utils-DKLK0Mg3.js +0 -466
- package/dist/log_sum_exp-DO6z8tSE.js +0 -103
- package/dist/mat_mul-DzjTFx-u.js +0 -27
- package/dist/mod-Dobti4j4.js +0 -27
- package/dist/ones-tIJeHlq-.js +0 -29
- package/dist/ops/fusedSoftmax.d.ts +0 -2
- package/dist/ops/fusedSoftmax.js +0 -10
- package/dist/ops/grads/fusedSoftmax.js +0 -22
- package/dist/ops-LuCMAnmM.js +0 -1525
- package/dist/random_width-CXVRloNK.js +0 -13670
- package/dist/range-CWcz7xFA.js +0 -26
- package/dist/reciprocal-C4rNcM-S.js +0 -25
- package/dist/relu-BjCh_SYb.js +0 -25
- package/dist/reshape-CnIwVG1c.js +0 -25
- package/dist/selu_util-OtRzVwW5.js +0 -719
- package/dist/shared-DmRsFyaJ.js +0 -3134
- package/dist/sin-gpDNRxE0.js +0 -47
- package/dist/slice-d0Vo9XTN.js +0 -28
- package/dist/softmax-D7Jj3p_P.js +0 -28
- package/dist/split-DK2k5eHf.js +0 -25
- package/dist/stack-DFatutCx.js +0 -27
- package/dist/sum-CJ0ULhmt.js +0 -27
- package/dist/tensor1d-vML0r3q6.js +0 -27
- package/dist/tensor2d-D76QGjF3.js +0 -30
- package/dist/tensor4d-Df1WlVDY.js +0 -30
- package/dist/webgpu_util-pLEV9tks.js +0 -80
- package/dist/zeros-Bj5rMYA7.js +0 -52
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as vt, g as Ot } from "./_commonjsHelpers-ByX85dGu.js";
|
|
2
|
-
import { B as lt } from "./index-
|
|
2
|
+
import { B as lt } from "./index-Cp39cXWe.js";
|
|
3
3
|
import { p as Bt } from "./index-xuotMAFm.js";
|
|
4
4
|
function yt(wt) {
|
|
5
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.');
|
|
6
6
|
}
|
|
7
7
|
var xt = { exports: {} }, Ct;
|
|
8
8
|
function Rt() {
|
|
9
|
-
return Ct || (Ct = 1, function(wt, Dt) {
|
|
9
|
+
return Ct || (Ct = 1, (function(wt, Dt) {
|
|
10
10
|
(function(b) {
|
|
11
11
|
wt.exports = b();
|
|
12
12
|
})(function() {
|
|
13
|
-
return function b(U, k, l) {
|
|
13
|
+
return (function b(U, k, l) {
|
|
14
14
|
function o(_, y) {
|
|
15
15
|
if (!k[_]) {
|
|
16
16
|
if (!U[_]) {
|
|
@@ -30,7 +30,7 @@ function Rt() {
|
|
|
30
30
|
}
|
|
31
31
|
for (var n = typeof yt == "function" && yt, h = 0; h < l.length; h++) o(l[h]);
|
|
32
32
|
return o;
|
|
33
|
-
}({ 1: [function(b, U, k) {
|
|
33
|
+
})({ 1: [function(b, U, k) {
|
|
34
34
|
var l = b("./utils"), o = b("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
35
35
|
k.encode = function(h) {
|
|
36
36
|
for (var _, y, p, g, i, d, e, u = [], a = 0, c = h.length, v = c, S = l.getTypeOf(h) !== "string"; a < h.length; ) v = c - a, p = S ? (_ = h[a++], y = a < c ? h[a++] : 0, a < c ? h[a++] : 0) : (_ = h.charCodeAt(a++), y = a < c ? h.charCodeAt(a++) : 0, a < c ? h.charCodeAt(a++) : 0), g = _ >> 2, i = (3 & _) << 4 | y >> 4, d = 1 < v ? (15 & y) << 2 | p >> 6 : 64, e = 2 < v ? 63 & p : 64, u.push(n.charAt(g) + n.charAt(i) + n.charAt(d) + n.charAt(e));
|
|
@@ -66,26 +66,26 @@ function Rt() {
|
|
|
66
66
|
return new l("STORE decompression");
|
|
67
67
|
} }, k.DEFLATE = b("./flate");
|
|
68
68
|
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(b, U, k) {
|
|
69
|
-
var l = b("./utils"), o = function() {
|
|
69
|
+
var l = b("./utils"), o = (function() {
|
|
70
70
|
for (var n, h = [], _ = 0; _ < 256; _++) {
|
|
71
71
|
n = _;
|
|
72
72
|
for (var y = 0; y < 8; y++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
73
73
|
h[_] = n;
|
|
74
74
|
}
|
|
75
75
|
return h;
|
|
76
|
-
}();
|
|
76
|
+
})();
|
|
77
77
|
U.exports = function(n, h) {
|
|
78
|
-
return n !== void 0 && n.length ? l.getTypeOf(n) !== "string" ? function(_, y, p, g) {
|
|
78
|
+
return n !== void 0 && n.length ? l.getTypeOf(n) !== "string" ? (function(_, y, p, g) {
|
|
79
79
|
var i = o, d = g + p;
|
|
80
80
|
_ ^= -1;
|
|
81
81
|
for (var e = g; e < d; e++) _ = _ >>> 8 ^ i[255 & (_ ^ y[e])];
|
|
82
82
|
return -1 ^ _;
|
|
83
|
-
}(0 | h, n, n.length, 0) : function(_, y, p, g) {
|
|
83
|
+
})(0 | h, n, n.length, 0) : (function(_, y, p, g) {
|
|
84
84
|
var i = o, d = g + p;
|
|
85
85
|
_ ^= -1;
|
|
86
86
|
for (var e = g; e < d; e++) _ = _ >>> 8 ^ i[255 & (_ ^ y.charCodeAt(e))];
|
|
87
87
|
return -1 ^ _;
|
|
88
|
-
}(0 | h, n, n.length, 0) : 0;
|
|
88
|
+
})(0 | h, n, n.length, 0) : 0;
|
|
89
89
|
};
|
|
90
90
|
}, { "./utils": 32 }], 5: [function(b, U, k) {
|
|
91
91
|
k.base64 = !1, k.binary = !1, k.dir = !1, k.createFolders = !0, k.date = null, k.compression = null, k.compressionOptions = null, k.comment = null, k.unixPermissions = null, k.dosPermissions = null;
|
|
@@ -126,12 +126,12 @@ function Rt() {
|
|
|
126
126
|
var E = 0;
|
|
127
127
|
d && (E |= 8), O || !B && !r || (E |= 2048);
|
|
128
128
|
var C = 0, X = 0;
|
|
129
|
-
$ && (C |= 16), a === "UNIX" ? (X = 798, C |= function(H, nt) {
|
|
129
|
+
$ && (C |= 16), a === "UNIX" ? (X = 798, C |= (function(H, nt) {
|
|
130
130
|
var ot = H;
|
|
131
131
|
return H || (ot = nt ? 16893 : 33204), (65535 & ot) << 16;
|
|
132
|
-
}(x.unixPermissions, $)) : (X = 20, C |= function(H) {
|
|
132
|
+
})(x.unixPermissions, $)) : (X = 20, C |= (function(H) {
|
|
133
133
|
return 63 & (H || 0);
|
|
134
|
-
}(x.dosPermissions)), v = j.getUTCHours(), v <<= 6, v |= j.getUTCMinutes(), v <<= 5, v |= j.getUTCSeconds() / 2, S = j.getUTCFullYear() - 1980, S <<= 4, S |= j.getUTCMonth() + 1, S <<= 5, S |= j.getUTCDate(), B && (J = l(1, 1) + l(y(L), 4) + I, T += "up" + l(J.length, 2) + J), r && (P = l(1, 1) + l(y(q), 4) + m, T += "uc" + l(P.length, 2) + P);
|
|
134
|
+
})(x.dosPermissions)), v = j.getUTCHours(), v <<= 6, v |= j.getUTCMinutes(), v <<= 5, v |= j.getUTCSeconds() / 2, S = j.getUTCFullYear() - 1980, S <<= 4, S |= j.getUTCMonth() + 1, S <<= 5, S |= j.getUTCDate(), B && (J = l(1, 1) + l(y(L), 4) + I, T += "up" + l(J.length, 2) + J), r && (P = l(1, 1) + l(y(q), 4) + m, T += "uc" + l(P.length, 2) + P);
|
|
135
135
|
var G = "";
|
|
136
136
|
return G += `
|
|
137
137
|
\0`, G += l(E, 2), G += D.magic, G += l(v, 2), G += l(S, 2), G += l(V.crc32, 4), G += l(V.compressedSize, 4), G += l(V.uncompressedSize, 4), G += l(L.length, 2), G += l(T.length, 2), { fileRecord: p.LOCAL_FILE_HEADER + G + L + T, dirRecord: p.CENTRAL_FILE_HEADER + l(X, 2) + G + l(q.length, 2) + "\0\0\0\0" + l(C, 4) + l(u, 4) + L + T + q };
|
|
@@ -153,17 +153,17 @@ function Rt() {
|
|
|
153
153
|
}, g.prototype.closedSource = function(i) {
|
|
154
154
|
this.accumulate = !1;
|
|
155
155
|
var d = this.streamFiles && !i.file.dir, e = o(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
156
|
-
if (this.dirRecords.push(e.dirRecord), d) this.push({ data: function(u) {
|
|
156
|
+
if (this.dirRecords.push(e.dirRecord), d) this.push({ data: (function(u) {
|
|
157
157
|
return p.DATA_DESCRIPTOR + l(u.crc32, 4) + l(u.compressedSize, 4) + l(u.uncompressedSize, 4);
|
|
158
|
-
}(i), meta: { percent: 100 } });
|
|
158
|
+
})(i), meta: { percent: 100 } });
|
|
159
159
|
else for (this.push({ data: e.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
160
160
|
this.currentFile = null;
|
|
161
161
|
}, g.prototype.flush = function() {
|
|
162
162
|
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
163
|
-
var e = this.bytesWritten - i, u = function(a, c, v, S, x) {
|
|
163
|
+
var e = this.bytesWritten - i, u = (function(a, c, v, S, x) {
|
|
164
164
|
var D = n.transformTo("string", x(S));
|
|
165
165
|
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + l(a, 2) + l(a, 2) + l(c, 4) + l(v, 4) + l(D.length, 2) + D;
|
|
166
|
-
}(this.dirRecords.length, e, i, this.zipComment, this.encodeFileName);
|
|
166
|
+
})(this.dirRecords.length, e, i, this.zipComment, this.encodeFileName);
|
|
167
167
|
this.push({ data: u, meta: { percent: 100 } });
|
|
168
168
|
}, g.prototype.prepareNextSource = function() {
|
|
169
169
|
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
@@ -198,11 +198,11 @@ function Rt() {
|
|
|
198
198
|
try {
|
|
199
199
|
n.forEach(function(g, i) {
|
|
200
200
|
p++;
|
|
201
|
-
var d = function(c, v) {
|
|
201
|
+
var d = (function(c, v) {
|
|
202
202
|
var S = c || v, x = l[S];
|
|
203
203
|
if (!x) throw new Error(S + " is not a valid compression method !");
|
|
204
204
|
return x;
|
|
205
|
-
}(i.options.compression, h.compression), e = i.options.compressionOptions || h.compressionOptions || {}, u = i.dir, a = i.date;
|
|
205
|
+
})(i.options.compression, h.compression), e = i.options.compressionOptions || h.compressionOptions || {}, u = i.dir, a = i.date;
|
|
206
206
|
i._compressWorker(d, e).withStreamInfo("file", { name: g, dir: u, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(y);
|
|
207
207
|
}), y.entriesCount = p;
|
|
208
208
|
} catch (g) {
|
|
@@ -603,7 +603,7 @@ function Rt() {
|
|
|
603
603
|
c = [], a(D);
|
|
604
604
|
}).on("end", function() {
|
|
605
605
|
try {
|
|
606
|
-
var D = function(O, L, I) {
|
|
606
|
+
var D = (function(O, L, I) {
|
|
607
607
|
switch (O) {
|
|
608
608
|
case "blob":
|
|
609
609
|
return l.newBlob(l.transformTo("arraybuffer", L), I);
|
|
@@ -612,7 +612,7 @@ function Rt() {
|
|
|
612
612
|
default:
|
|
613
613
|
return l.transformTo(O, L);
|
|
614
614
|
}
|
|
615
|
-
}(S, function(O, L) {
|
|
615
|
+
})(S, (function(O, L) {
|
|
616
616
|
var I, W = 0, q = null, m = 0;
|
|
617
617
|
for (I = 0; I < L.length; I++) m += L[I].length;
|
|
618
618
|
switch (O) {
|
|
@@ -628,7 +628,7 @@ function Rt() {
|
|
|
628
628
|
default:
|
|
629
629
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
630
630
|
}
|
|
631
|
-
}(v, c), x);
|
|
631
|
+
})(v, c), x);
|
|
632
632
|
u(D);
|
|
633
633
|
} catch (O) {
|
|
634
634
|
a(O);
|
|
@@ -700,14 +700,14 @@ function Rt() {
|
|
|
700
700
|
h.call(this, "utf-8 encode");
|
|
701
701
|
}
|
|
702
702
|
k.utf8encode = function(i) {
|
|
703
|
-
return o.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(d) {
|
|
703
|
+
return o.nodebuffer ? n.newBufferFrom(i, "utf-8") : (function(d) {
|
|
704
704
|
var e, u, a, c, v, S = d.length, x = 0;
|
|
705
705
|
for (c = 0; c < S; c++) (64512 & (u = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), c++), x += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
|
|
706
706
|
for (e = o.uint8array ? new Uint8Array(x) : new Array(x), c = v = 0; v < x; c++) (64512 & (u = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (a - 56320), c++), u < 128 ? e[v++] = u : (u < 2048 ? e[v++] = 192 | u >>> 6 : (u < 65536 ? e[v++] = 224 | u >>> 12 : (e[v++] = 240 | u >>> 18, e[v++] = 128 | u >>> 12 & 63), e[v++] = 128 | u >>> 6 & 63), e[v++] = 128 | 63 & u);
|
|
707
707
|
return e;
|
|
708
|
-
}(i);
|
|
708
|
+
})(i);
|
|
709
709
|
}, k.utf8decode = function(i) {
|
|
710
|
-
return o.nodebuffer ? l.transformTo("nodebuffer", i).toString("utf-8") : function(d) {
|
|
710
|
+
return o.nodebuffer ? l.transformTo("nodebuffer", i).toString("utf-8") : (function(d) {
|
|
711
711
|
var e, u, a, c, v = d.length, S = new Array(2 * v);
|
|
712
712
|
for (e = u = 0; e < v; ) if ((a = d[e++]) < 128) S[u++] = a;
|
|
713
713
|
else if (4 < (c = _[a])) S[u++] = 65533, e += c - 1;
|
|
@@ -716,7 +716,7 @@ function Rt() {
|
|
|
716
716
|
1 < c ? S[u++] = 65533 : a < 65536 ? S[u++] = a : (a -= 65536, S[u++] = 55296 | a >> 10 & 1023, S[u++] = 56320 | 1023 & a);
|
|
717
717
|
}
|
|
718
718
|
return S.length !== u && (S.subarray ? S = S.subarray(0, u) : S.length = u), l.applyFromCharCode(S);
|
|
719
|
-
}(i = l.transformTo(o.uint8array ? "uint8array" : "array", i));
|
|
719
|
+
})(i = l.transformTo(o.uint8array ? "uint8array" : "array", i));
|
|
720
720
|
}, l.inherits(p, h), p.prototype.processChunk = function(i) {
|
|
721
721
|
var d = l.transformTo(o.uint8array ? "uint8array" : "array", i.data);
|
|
722
722
|
if (this.leftOver && this.leftOver.length) {
|
|
@@ -726,11 +726,11 @@ function Rt() {
|
|
|
726
726
|
} else d = this.leftOver.concat(d);
|
|
727
727
|
this.leftOver = null;
|
|
728
728
|
}
|
|
729
|
-
var u = function(c, v) {
|
|
729
|
+
var u = (function(c, v) {
|
|
730
730
|
var S;
|
|
731
731
|
for ((v = v || c.length) > c.length && (v = c.length), S = v - 1; 0 <= S && (192 & c[S]) == 128; ) S--;
|
|
732
732
|
return S < 0 || S === 0 ? v : S + _[c[S]] > v ? S : v;
|
|
733
|
-
}(d), a = d;
|
|
733
|
+
})(d), a = d;
|
|
734
734
|
u !== d.length && (o.uint8array ? (a = d.subarray(0, u), this.leftOver = d.subarray(u, d.length)) : (a = d.slice(0, u), this.leftOver = d.slice(u, d.length))), this.push({ data: k.utf8decode(a), meta: i.meta });
|
|
735
735
|
}, p.prototype.flush = function() {
|
|
736
736
|
this.leftOver && this.leftOver.length && (this.push({ data: k.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
@@ -767,19 +767,19 @@ function Rt() {
|
|
|
767
767
|
}, stringifyByChar: function(e) {
|
|
768
768
|
for (var u = "", a = 0; a < e.length; a++) u += String.fromCharCode(e[a]);
|
|
769
769
|
return u;
|
|
770
|
-
}, applyCanBeUsed: { uint8array: function() {
|
|
770
|
+
}, applyCanBeUsed: { uint8array: (function() {
|
|
771
771
|
try {
|
|
772
772
|
return l.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
773
773
|
} catch {
|
|
774
774
|
return !1;
|
|
775
775
|
}
|
|
776
|
-
}(), nodebuffer: function() {
|
|
776
|
+
})(), nodebuffer: (function() {
|
|
777
777
|
try {
|
|
778
778
|
return l.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
|
|
779
779
|
} catch {
|
|
780
780
|
return !1;
|
|
781
781
|
}
|
|
782
|
-
}() } };
|
|
782
|
+
})() } };
|
|
783
783
|
function g(e) {
|
|
784
784
|
var u = 65536, a = k.getTypeOf(e), c = !0;
|
|
785
785
|
if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 < u; ) try {
|
|
@@ -872,9 +872,9 @@ function Rt() {
|
|
|
872
872
|
}) : S;
|
|
873
873
|
}).then(function(S) {
|
|
874
874
|
var x = k.getTypeOf(S);
|
|
875
|
-
return x ? (x === "arraybuffer" ? S = k.transformTo("uint8array", S) : x === "string" && (v ? S = o.decode(S) : a && c !== !0 && (S = function(D) {
|
|
875
|
+
return x ? (x === "arraybuffer" ? S = k.transformTo("uint8array", S) : x === "string" && (v ? S = o.decode(S) : a && c !== !0 && (S = (function(D) {
|
|
876
876
|
return y(D, l.uint8array ? new Uint8Array(D.length) : new Array(D.length));
|
|
877
|
-
}(S))), S) : h.Promise.reject(new Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
877
|
+
})(S))), S) : h.Promise.reject(new Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
878
878
|
});
|
|
879
879
|
};
|
|
880
880
|
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(b, U, k) {
|
|
@@ -941,10 +941,10 @@ function Rt() {
|
|
|
941
941
|
}, readLocalPart: function(i) {
|
|
942
942
|
var d, e;
|
|
943
943
|
if (i.skip(22), this.fileNameLength = i.readInt(2), e = i.readInt(2), this.fileName = i.readData(this.fileNameLength), i.skip(e), this.compressedSize === -1 || this.uncompressedSize === -1) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
944
|
-
if ((d = function(u) {
|
|
944
|
+
if ((d = (function(u) {
|
|
945
945
|
for (var a in y) if (Object.prototype.hasOwnProperty.call(y, a) && y[a].magic === u) return y[a];
|
|
946
946
|
return null;
|
|
947
|
-
}(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
947
|
+
})(this.compressionMethod)) === null) throw new Error("Corrupted zip : compression " + o.pretty(this.compressionMethod) + " unknown (inner file : " + o.transformTo("string", this.fileName) + ")");
|
|
948
948
|
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, d, i.readData(this.compressedSize));
|
|
949
949
|
}, readCentralPart: function(i) {
|
|
950
950
|
this.versionMadeBy = i.readInt(2), i.skip(2), this.bitFlag = i.readInt(2), this.compressionMethod = i.readString(2), this.date = i.readDate(), this.crc32 = i.readInt(4), this.compressedSize = i.readInt(4), this.uncompressedSize = i.readInt(4);
|
|
@@ -1343,14 +1343,14 @@ function Rt() {
|
|
|
1343
1343
|
}, {}], 44: [function(b, U, k) {
|
|
1344
1344
|
U.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
1345
1345
|
}, {}], 45: [function(b, U, k) {
|
|
1346
|
-
var l = function() {
|
|
1346
|
+
var l = (function() {
|
|
1347
1347
|
for (var o, n = [], h = 0; h < 256; h++) {
|
|
1348
1348
|
o = h;
|
|
1349
1349
|
for (var _ = 0; _ < 8; _++) o = 1 & o ? 3988292384 ^ o >>> 1 : o >>> 1;
|
|
1350
1350
|
n[h] = o;
|
|
1351
1351
|
}
|
|
1352
1352
|
return n;
|
|
1353
|
-
}();
|
|
1353
|
+
})();
|
|
1354
1354
|
U.exports = function(o, n, h, _) {
|
|
1355
1355
|
var y = l, p = _ + h;
|
|
1356
1356
|
o ^= -1;
|
|
@@ -1452,9 +1452,9 @@ function Rt() {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
function ft(t) {
|
|
1454
1454
|
var R = it(t);
|
|
1455
|
-
return R === i && function(A) {
|
|
1455
|
+
return R === i && (function(A) {
|
|
1456
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;
|
|
1457
|
-
}(t.state), R;
|
|
1457
|
+
})(t.state), R;
|
|
1458
1458
|
}
|
|
1459
1459
|
function ut(t, R, A, f, s, w) {
|
|
1460
1460
|
if (!t) return d;
|
|
@@ -1520,7 +1520,7 @@ function Rt() {
|
|
|
1520
1520
|
} else if (t.avail_in === 0 && j(R) <= j(A) && R !== g) return $(t, -5);
|
|
1521
1521
|
if (f.status === 666 && t.avail_in !== 0) return $(t, -5);
|
|
1522
1522
|
if (t.avail_in !== 0 || f.lookahead !== 0 || R !== p && f.status !== 666) {
|
|
1523
|
-
var N = f.strategy === 2 ? function(z, Z) {
|
|
1523
|
+
var N = f.strategy === 2 ? (function(z, Z) {
|
|
1524
1524
|
for (var K; ; ) {
|
|
1525
1525
|
if (z.lookahead === 0 && (nt(z), z.lookahead === 0)) {
|
|
1526
1526
|
if (Z === p) return r;
|
|
@@ -1529,7 +1529,7 @@ function Rt() {
|
|
|
1529
1529
|
if (z.match_length = 0, K = n._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++, K && (C(z, !1), z.strm.avail_out === 0)) return r;
|
|
1530
1530
|
}
|
|
1531
1531
|
return z.insert = 0, Z === g ? (C(z, !0), z.strm.avail_out === 0 ? J : P) : z.last_lit && (C(z, !1), z.strm.avail_out === 0) ? r : T;
|
|
1532
|
-
}(f, R) : f.strategy === 3 ? function(z, Z) {
|
|
1532
|
+
})(f, R) : f.strategy === 3 ? (function(z, Z) {
|
|
1533
1533
|
for (var K, M, Y, et, tt = z.window; ; ) {
|
|
1534
1534
|
if (z.lookahead <= W) {
|
|
1535
1535
|
if (nt(z), z.lookahead <= W && Z === p) return r;
|
|
@@ -1545,7 +1545,7 @@ function Rt() {
|
|
|
1545
1545
|
if (z.match_length >= I ? (K = n._tr_tally(z, 1, z.match_length - I), z.lookahead -= z.match_length, z.strstart += z.match_length, z.match_length = 0) : (K = n._tr_tally(z, 0, z.window[z.strstart]), z.lookahead--, z.strstart++), K && (C(z, !1), z.strm.avail_out === 0)) return r;
|
|
1546
1546
|
}
|
|
1547
1547
|
return z.insert = 0, Z === g ? (C(z, !0), z.strm.avail_out === 0 ? J : P) : z.last_lit && (C(z, !1), z.strm.avail_out === 0) ? r : T;
|
|
1548
|
-
}(f, R) : l[f.level].func(f, R);
|
|
1548
|
+
})(f, R) : l[f.level].func(f, R);
|
|
1549
1549
|
if (N !== J && N !== P || (f.status = 666), N === r || N === J) return t.avail_out === 0 && (f.last_flush = -1), i;
|
|
1550
1550
|
if (N === T && (R === 1 ? n._tr_align(f) : R !== 5 && (n._tr_stored_block(f, 0, 0, !1), R === 3 && (V(f.head), f.lookahead === 0 && (f.strstart = 0, f.block_start = 0, f.insert = 0))), E(t), t.avail_out === 0)) return f.last_flush = -1, i;
|
|
1551
1551
|
}
|
|
@@ -2031,7 +2031,6 @@ function Rt() {
|
|
|
2031
2031
|
break t;
|
|
2032
2032
|
case 31:
|
|
2033
2033
|
return -4;
|
|
2034
|
-
case 32:
|
|
2035
2034
|
default:
|
|
2036
2035
|
return i;
|
|
2037
2036
|
}
|
|
@@ -2153,7 +2152,7 @@ function Rt() {
|
|
|
2153
2152
|
for (; s.heap_len < 2; ) Z[2 * (z = s.heap[++s.heap_len] = et < 2 ? ++et : 0)] = 1, s.depth[z] = 0, s.opt_len--, M && (s.static_len -= K[2 * z + 1]);
|
|
2154
2153
|
for (w.max_code = et, F = s.heap_len >> 1; 1 <= F; F--) it(s, Z, F);
|
|
2155
2154
|
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; ) ;
|
|
2156
|
-
s.heap[--s.heap_max] = s.heap[1], function(tt, ht) {
|
|
2155
|
+
s.heap[--s.heap_max] = s.heap[1], (function(tt, ht) {
|
|
2157
2156
|
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;
|
|
2158
2157
|
for (at = 0; at <= u; at++) tt.bl_count[at] = 0;
|
|
2159
2158
|
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)));
|
|
@@ -2164,7 +2163,7 @@ function Rt() {
|
|
|
2164
2163
|
} while (0 < bt);
|
|
2165
2164
|
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--);
|
|
2166
2165
|
}
|
|
2167
|
-
}(s, w), ot(Z, et, s.bl_count);
|
|
2166
|
+
})(s, w), ot(Z, et, s.bl_count);
|
|
2168
2167
|
}
|
|
2169
2168
|
function t(s, w, F) {
|
|
2170
2169
|
var N, z, Z = -1, K = w[1], M = 0, Y = 7, et = 4;
|
|
@@ -2181,12 +2180,12 @@ function Rt() {
|
|
|
2181
2180
|
h(j);
|
|
2182
2181
|
var A = !1;
|
|
2183
2182
|
function f(s, w, F, N) {
|
|
2184
|
-
G(s, (_ << 1) + (N ? 1 : 0), 3), function(z, Z, K, M) {
|
|
2183
|
+
G(s, (_ << 1) + (N ? 1 : 0), 3), (function(z, Z, K, M) {
|
|
2185
2184
|
rt(z), X(z, K), X(z, ~K), l.arraySet(z.pending_buf, z.window, Z, K, z.pending), z.pending += K;
|
|
2186
|
-
}(s, w, F);
|
|
2185
|
+
})(s, w, F);
|
|
2187
2186
|
}
|
|
2188
2187
|
k._tr_init = function(s) {
|
|
2189
|
-
A || (function() {
|
|
2188
|
+
A || ((function() {
|
|
2190
2189
|
var w, F, N, z, Z, K = new Array(u + 1);
|
|
2191
2190
|
for (z = N = 0; z < y - 1; z++) for (T[z] = N, w = 0; w < 1 << O[z]; w++) r[N++] = z;
|
|
2192
2191
|
for (r[N - 1] = z, z = Z = 0; z < 16; z++) for (j[z] = Z, w = 0; w < 1 << L[z]; w++) B[Z++] = z;
|
|
@@ -2198,30 +2197,30 @@ function Rt() {
|
|
|
2198
2197
|
for (; w <= 287; ) q[2 * w + 1] = 8, w++, K[8]++;
|
|
2199
2198
|
for (ot(q, g + 1, K), w = 0; w < i; w++) m[2 * w + 1] = 5, m[2 * w] = nt(w, 5);
|
|
2200
2199
|
J = new V(q, O, p + 1, g, u), P = new V(m, L, 0, i, u), $ = new V(new Array(0), I, 0, d, c);
|
|
2201
|
-
}(), A = !0), s.l_desc = new E(s.dyn_ltree, J), s.d_desc = new E(s.dyn_dtree, P), s.bl_desc = new E(s.bl_tree, $), s.bi_buf = 0, s.bi_valid = 0, Q(s);
|
|
2200
|
+
})(), A = !0), s.l_desc = new E(s.dyn_ltree, J), s.d_desc = new E(s.dyn_dtree, P), s.bl_desc = new E(s.bl_tree, $), s.bi_buf = 0, s.bi_valid = 0, Q(s);
|
|
2202
2201
|
}, k._tr_stored_block = f, k._tr_flush_block = function(s, w, F, N) {
|
|
2203
2202
|
var z, Z, K = 0;
|
|
2204
|
-
0 < s.level ? (s.strm.data_type === 2 && (s.strm.data_type = function(M) {
|
|
2203
|
+
0 < s.level ? (s.strm.data_type === 2 && (s.strm.data_type = (function(M) {
|
|
2205
2204
|
var Y, et = 4093624447;
|
|
2206
2205
|
for (Y = 0; Y <= 31; Y++, et >>>= 1) if (1 & et && M.dyn_ltree[2 * Y] !== 0) return o;
|
|
2207
2206
|
if (M.dyn_ltree[18] !== 0 || M.dyn_ltree[20] !== 0 || M.dyn_ltree[26] !== 0) return n;
|
|
2208
2207
|
for (Y = 32; Y < p; Y++) if (M.dyn_ltree[2 * Y] !== 0) return n;
|
|
2209
2208
|
return o;
|
|
2210
|
-
}(s)), ut(s, s.l_desc), ut(s, s.d_desc), K = function(M) {
|
|
2209
|
+
})(s)), ut(s, s.l_desc), ut(s, s.d_desc), K = (function(M) {
|
|
2211
2210
|
var Y;
|
|
2212
2211
|
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--) ;
|
|
2213
2212
|
return M.opt_len += 3 * (Y + 1) + 5 + 5 + 4, Y;
|
|
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) {
|
|
2213
|
+
})(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) {
|
|
2215
2214
|
var ht;
|
|
2216
2215
|
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);
|
|
2217
2216
|
R(M, M.dyn_ltree, Y - 1), R(M, M.dyn_dtree, et - 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);
|
|
2217
|
+
})(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);
|
|
2219
2218
|
}, k._tr_tally = function(s, w, F) {
|
|
2220
2219
|
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;
|
|
2221
2220
|
}, k._tr_align = function(s) {
|
|
2222
|
-
G(s, 2, 3), H(s, v, q), function(w) {
|
|
2221
|
+
G(s, 2, 3), H(s, v, q), (function(w) {
|
|
2223
2222
|
w.bi_valid === 16 ? (X(w, w.bi_buf), w.bi_buf = 0, w.bi_valid = 0) : 8 <= w.bi_valid && (w.pending_buf[w.pending++] = 255 & w.bi_buf, w.bi_buf >>= 8, w.bi_valid -= 8);
|
|
2224
|
-
}(s);
|
|
2223
|
+
})(s);
|
|
2225
2224
|
};
|
|
2226
2225
|
}, { "../utils/common": 41 }], 53: [function(b, U, k) {
|
|
2227
2226
|
U.exports = function() {
|
|
@@ -2236,14 +2235,14 @@ function Rt() {
|
|
|
2236
2235
|
Bt.nextTick(function() {
|
|
2237
2236
|
c(S);
|
|
2238
2237
|
});
|
|
2239
|
-
} : function() {
|
|
2238
|
+
} : (function() {
|
|
2240
2239
|
if (o.postMessage && !o.importScripts) {
|
|
2241
2240
|
var S = !0, x = o.onmessage;
|
|
2242
2241
|
return o.onmessage = function() {
|
|
2243
2242
|
S = !1;
|
|
2244
2243
|
}, o.postMessage("", "*"), o.onmessage = x, S;
|
|
2245
2244
|
}
|
|
2246
|
-
}() ? (p = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", v, !1) : o.attachEvent("onmessage", v), function(S) {
|
|
2245
|
+
})() ? (p = "setImmediate$" + Math.random() + "$", o.addEventListener ? o.addEventListener("message", v, !1) : o.attachEvent("onmessage", v), function(S) {
|
|
2247
2246
|
o.postMessage(p + S, "*");
|
|
2248
2247
|
}) : o.MessageChannel ? ((y = new MessageChannel()).port1.onmessage = function(S) {
|
|
2249
2248
|
c(S.data);
|
|
@@ -2305,7 +2304,7 @@ function Rt() {
|
|
|
2305
2304
|
}).call(this, typeof vt < "u" ? vt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2306
2305
|
}, {}] }, {}, [10])(10);
|
|
2307
2306
|
});
|
|
2308
|
-
}(xt)), xt.exports;
|
|
2307
|
+
})(xt)), xt.exports;
|
|
2309
2308
|
}
|
|
2310
2309
|
var Tt = Rt();
|
|
2311
2310
|
const Pt = /* @__PURE__ */ Ot(Tt);
|