1 line
305 KiB
JavaScript
1 line
305 KiB
JavaScript
|
"use strict";var e=require("./marp-cli-b9daa9b1.js"),t=require("./_commonjs-dynamic-modules-21d62193.js");require("process"),require("os"),require("tty"),require("yargs/yargs"),require("yargs"),require("fs"),require("path"),require("cosmiconfig"),require("util"),require("child_process"),require("url"),require("import-from"),require("stream"),require("events"),require("tmp"),require("@marp-team/marpit"),require("puppeteer-core"),require("net"),require("is-wsl"),require("crypto"),require("chokidar"),require("ws"),require("querystring"),require("serve-index"),require("@marp-team/marp-core/package.json");var a={};({get exports(){return a},set exports(e){a=e}}).exports=function e(a,r,n){function o(s,l){if(!r[s]){if(!a[s]){var c="function"==typeof t.c&&t.c;if(!l&&c)return c(s,!0);if(i)return i(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var d=r[s]={exports:{}};a[s][0].call(d.exports,(function(e){return o(a[s][1][e]||e)}),d,d.exports,e,a,r,n)}return r[s].exports}for(var i="function"==typeof t.c&&t.c,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(e,t,a){var r=e("./utils"),n=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(e){for(var t,a,n,i,s,l,c,p=[],d=0,h=e.length,f=h,u="string"!==r.getTypeOf(e);d<e.length;)f=h-d,n=u?(t=e[d++],a=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),a=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),i=t>>2,s=(3&t)<<4|a>>4,l=1<f?(15&a)<<2|n>>6:64,c=2<f?63&n:64,p.push(o.charAt(i)+o.charAt(s)+o.charAt(l)+o.charAt(c));return p.join("")},a.decode=function(e){var t,a,r,i,s,l,c=0,p=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=n.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(i=o.indexOf(e.charAt(c++)))>>4,a=(15&i)<<4|(s=o.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),h[p++]=t,64!==s&&(h[p++]=a),64!==l&&(h[p++]=r);return h}},{"./support":30,"./utils":32}],2:[function(e,t,a){var r=e("./external"),n=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),i=e("./stream/DataLengthProbe");function s(e,t,a,r,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=a,this.compression=r,this.compressedContent=n}s.prototype={getContentWorker:function(){var e=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,a){return e.pipe(new o).pipe(new i("uncompressedSize")).pipe(t.compressWorker(a)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,a){var r=e("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},a.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,a){var r=e("./utils"),n=function(){for(var e,t=[],a=0;a<256;a++){e=a;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[a]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,a,r){var o=n,i=0+a;e^=-1;for(var s=0;s<i;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,a,r){var o=n,i=0+a;e^=-1;for(var s=0;s<i;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e
|