@curatedotfun/translate-transform
Version:
Translation transform plugin for curatedotfun using DeepL
1 lines • 322 kB
JavaScript
exports.ids=["945"],exports.modules={5540:function(e,t,a){let n=a(4659),i=a(1017),o=a(4450),s=a(2715),r=(...e)=>n.findLast(e,e=>"boolean"==typeof e),c=(...e)=>n.findLast(e,e=>"string"==typeof e),p=(...e)=>n.findLast(e,e=>"function"==typeof e),l={noSort:!1,readEntries:!1,method:n.Constants.NONE,fs:null};e.exports=function(e,t){let a=null,u=Object.assign(Object.create(null),l);e&&"object"==typeof e&&(e instanceof Uint8Array||(Object.assign(u,e),e=u.input?u.input:void 0,u.input&&delete u.input),Buffer.isBuffer(e)&&(a=e,u.method=n.Constants.BUFFER,e=void 0)),Object.assign(u,t);let d=new n(u);if(("object"!=typeof u.decoder||"function"!=typeof u.decoder.encode||"function"!=typeof u.decoder.decode)&&(u.decoder=n.decoder),e&&"string"==typeof e)if(d.fs.existsSync(e))u.method=n.Constants.FILE,u.filename=e,a=d.fs.readFileSync(e);else throw n.Errors.INVALID_FILENAME();let m=new s(a,u),{canonical:f,sanitize:h,zipnamefix:x}=n;function v(e){if(e&&m){var t;if("string"==typeof e&&(t=m.getEntry(i.posix.normalize(e))),"object"==typeof e&&void 0!==e.entryName&&void 0!==e.header&&(t=m.getEntry(e.entryName)),t)return t}return null}function g(e){let{join:t,normalize:a,sep:n}=i.posix;return t(".",a(n+e.split("\\").join(n)+n))}function b(e){if(e instanceof RegExp)return function(t){return e.test(t)};return"function"!=typeof e?()=>!0:e}let y=(e,t)=>{let a=t.slice(-1);return a=a===d.sep?d.sep:"",i.relative(e,t)+a};return{readFile:function(e,t){var a=v(e);return a&&a.getData(t)||null},childCount:function(e){let t=v(e);if(t)return m.getChildCount(t)},readFileAsync:function(e,t){var a=v(e);a?a.getDataAsync(t):t(null,"getEntry failed for:"+e)},readAsText:function(e,t){var a=v(e);if(a){var n=a.getData();if(n&&n.length)return n.toString(t||"utf8")}return""},readAsTextAsync:function(e,t,a){var n=v(e);n?n.getDataAsync(function(e,n){if(n)return void t(e,n);e&&e.length?t(e.toString(a||"utf8")):t("")}):t("")},deleteFile:function(e,t=!0){var a=v(e);a&&m.deleteFile(a.entryName,t)},deleteEntry:function(e){var t=v(e);t&&m.deleteEntry(t.entryName)},addZipComment:function(e){m.comment=e},getZipComment:function(){return m.comment||""},addZipEntryComment:function(e,t){var a=v(e);a&&(a.comment=t)},getZipEntryComment:function(e){var t=v(e);return t&&t.comment||""},updateFile:function(e,t){var a=v(e);a&&a.setData(t)},addLocalFile:function(e,t,a,o){if(d.fs.existsSync(e)){t=t?g(t):"";let n=i.win32.basename(i.win32.normalize(e));t+=a||n;let s=d.fs.statSync(e),r=s.isFile()?d.fs.readFileSync(e):Buffer.alloc(0);s.isDirectory()&&(t+=d.sep),this.addFile(t,r,o,s)}else throw n.Errors.FILE_NOT_FOUND(e)},addLocalFileAsync:function(e,t){e="object"==typeof e?e:{localPath:e};let a=i.resolve(e.localPath),{comment:n}=e,{zipPath:o,zipName:s}=e,r=this;d.fs.stat(a,function(e,c){if(e)return t(e,!1);o=o?g(o):"";let p=i.win32.basename(i.win32.normalize(a));if(o+=s||p,c.isFile())d.fs.readFile(a,function(e,a){return e?t(e,!1):(r.addFile(o,a,n,c),setImmediate(t,void 0,!0))});else if(c.isDirectory())return o+=d.sep,r.addFile(o,Buffer.alloc(0),n,c),setImmediate(t,void 0,!0)})},addLocalFolder:function(e,t,a){if(a=b(a),t=t?g(t):"",e=i.normalize(e),d.fs.existsSync(e)){let n=d.findFiles(e);if(n.length)for(let o of n){let n=i.join(t,y(e,o));a(n)&&this.addLocalFile(o,i.dirname(n))}}else throw n.Errors.FILE_NOT_FOUND(e)},addLocalFolderAsync:function(e,t,a,o){o=b(o),a=a?g(a):"",e=i.normalize(e);var s=this;d.fs.open(e,"r",function(i){if(i&&"ENOENT"===i.code)t(void 0,n.Errors.FILE_NOT_FOUND(e));else if(i)t(void 0,i);else{var r=d.findFiles(e),c=-1,p=function(){if((c+=1)<r.length){var n=r[c],i=y(e,n).split("\\").join("/");i=i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),o(i)?d.fs.stat(n,function(e,o){e&&t(void 0,e),o.isFile()?d.fs.readFile(n,function(e,n){e?t(void 0,e):(s.addFile(a+i,n,"",o),p())}):(s.addFile(a+i+"/",Buffer.alloc(0),"",o),p())}):process.nextTick(()=>{p()})}else t(!0,void 0)};p()}})},addLocalFolderAsync2:function(e,t){let a=this;e="object"==typeof e?e:{localPath:e},localPath=i.resolve(g(e.localPath));let{zipPath:o,filter:s,namefix:r}=e;if(s instanceof RegExp){var c;c=s,s=function(e){return c.test(e)}}else"function"!=typeof s&&(s=function(){return!0});o=o?g(o):"","latin1"==r&&(r=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")),"function"!=typeof r&&(r=e=>e);let p=e=>i.join(o,r(y(localPath,e))),l=e=>i.win32.basename(i.win32.normalize(r(e)));d.fs.open(localPath,"r",function(e){e&&"ENOENT"===e.code?t(void 0,n.Errors.FILE_NOT_FOUND(localPath)):e?t(void 0,e):d.findFilesAsync(localPath,function(e,n){if(e)return t(e);(n=n.filter(e=>s(p(e)))).length||t(void 0,!1),setImmediate(n.reverse().reduce(function(e,t){return function(n,o){if(n||!1===o)return setImmediate(e,n,!1);a.addLocalFileAsync({localPath:t,zipPath:i.dirname(p(t)),zipName:l(t)},e)}},t))})})},addLocalFolderPromise:function(e,t){return new Promise((a,n)=>{this.addLocalFolderAsync2(Object.assign({localPath:e},t),(e,t)=>{e&&n(e),t&&a(this)})})},addFile:function(e,t,a,n){let i=v(e=x(e)),s=null!=i;s||((i=new o(u)).entryName=e),i.comment=a||"";let r="object"==typeof n&&n instanceof d.fs.Stats;r&&(i.header.time=n.mtime);var c=16*!!i.isDirectory;let p=i.isDirectory?16384:32768;return r?p|=4095&n.mode:"number"==typeof n?p|=4095&n:p|=i.isDirectory?493:420,c=(c|p<<16)>>>0,i.attr=c,i.setData(t),s||m.setEntry(i),i},getEntries:function(e){return m.password=e,m?m.entries:[]},getEntry:function(e){return v(e)},getEntryCount:function(){return m.getEntryCount()},forEach:function(e){return m.forEach(e)},extractEntryTo:function(e,t,a,o,s,p){o=r(!1,o),s=r(!1,s),a=r(!0,a),p=c(s,p);var l=v(e);if(!l)throw n.Errors.NO_ENTRY();var u=f(l.entryName),x=h(t,p&&!l.isDirectory?p:a?u:i.basename(u));if(l.isDirectory)return m.getEntryChildren(l).forEach(function(e){if(e.isDirectory)return;var r=e.getData();if(!r)throw n.Errors.CANT_EXTRACT_FILE();var c=f(e.entryName),p=h(t,a?c:i.basename(c));let l=s?e.header.fileAttr:void 0;d.writeFileTo(p,r,o,l)}),!0;var g=l.getData(m.password);if(!g)throw n.Errors.CANT_EXTRACT_FILE();if(d.fs.existsSync(x)&&!o)throw n.Errors.CANT_OVERRIDE();let b=s?e.header.fileAttr:void 0;return d.writeFileTo(x,g,o,b),!0},test:function(e){if(!m)return!1;for(var t in m.entries)try{if(t.isDirectory)continue;if(!m.entries[t].getData(e))return!1}catch(e){return!1}return!0},extractAllTo:function(e,t,a,i){if(i=c(a=r(!1,a),i),t=r(!1,t),!m)throw n.Errors.NO_ZIP();m.entries.forEach(function(o){var s=h(e,f(o.entryName));if(o.isDirectory)return void d.makeDir(s);var r=o.getData(i);if(!r)throw n.Errors.CANT_EXTRACT_FILE();let c=a?o.header.fileAttr:void 0;d.writeFileTo(s,r,t,c);try{d.fs.utimesSync(s,o.header.time,o.header.time)}catch(e){throw n.Errors.CANT_EXTRACT_FILE()}})},extractAllToAsync:function(e,t,a,o){if(o=p(t,a,o),a=r(!1,a),t=r(!1,t),!o)return new Promise((n,i)=>{this.extractAllToAsync(e,t,a,function(e){e?i(e):n(this)})});if(!m)return void o(n.Errors.NO_ZIP());e=i.resolve(e);let s=t=>h(e,i.normalize(f(t.entryName))),c=(e,t)=>Error(e+': "'+t+'"'),l=[],u=[];for(let e of(m.entries.forEach(e=>{e.isDirectory?l.push(e):u.push(e)}),l)){let t=s(e),n=a?e.header.fileAttr:void 0;try{d.makeDir(t),n&&d.fs.chmodSync(t,n),d.fs.utimesSync(t,e.header.time,e.header.time)}catch(e){o(c("Unable to create folder",t))}}u.reverse().reduce(function(o,s){return function(r){if(r)o(r);else{let r=i.normalize(f(s.entryName)),p=h(e,r);s.getDataAsync(function(e,i){if(i)o(i);else if(e){let n=a?s.header.fileAttr:void 0;d.writeFileToAsync(p,e,t,n,function(e){e||o(c("Unable to write file",p)),d.fs.utimes(p,s.header.time,s.header.time,function(e){e?o(c("Unable to set times",p)):o()})})}else o(n.Errors.CANT_EXTRACT_FILE())})}}},o)()},writeZip:function(e,t){if(1==arguments.length&&"function"==typeof e&&(t=e,e=""),!e&&u.filename&&(e=u.filename),e){var a=m.compressToBuffer();if(a){var n=d.writeFileTo(e,a,!0);"function"==typeof t&&t(n?null:Error("failed"),"")}}},writeZipPromise:function(e,t){let{overwrite:a,perm:n}=Object.assign({overwrite:!0},t);return new Promise((t,i)=>{!e&&u.filename&&(e=u.filename),e||i("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(o=>{d.writeFileToAsync(e,o,a,n,e=>e?t(e):i("ADM-ZIP: Wasn't able to write zip file"))},i)})},toBufferPromise:function(){return new Promise((e,t)=>{m.toAsyncBuffer(e,t)})},toBuffer:function(e,t,a,n){return"function"==typeof e?(m.toAsyncBuffer(e,t,a,n),null):m.compressToBuffer()}}}},4711:function(e,t,a){var n=a(4659),i=n.Constants;e.exports=function(){var e,t=10,a=0,o=0,s=0,r=0,c=0,p=0,l=0,u=0,d=0,m=0,f=0,h=0,x=0;e=20|(n.isWin?2560:768),a|=i.FLG_EFS;let v={extraLen:0},g=e=>Math.max(0,e)>>>0,b=e=>255&Math.max(0,e);return s=n.fromDate2DOS(new Date),{get made(){return e},set made(val){e=val},get version(){return t},set version(val){t=val},get flags(){return a},set flags(val){a=val},get flags_efs(){return(a&i.FLG_EFS)>0},set flags_efs(val){val?a|=i.FLG_EFS:a&=~i.FLG_EFS},get flags_desc(){return(a&i.FLG_DESC)>0},set flags_desc(val){val?a|=i.FLG_DESC:a&=~i.FLG_DESC},get method(){return o},set method(val){switch(val){case i.STORED:this.version=10;case i.DEFLATED:default:this.version=20}o=val},get time(){return n.fromDOS2Date(this.timeval)},set time(val){this.timeval=n.fromDate2DOS(val)},get timeval(){return s},set timeval(val){s=g(val)},get timeHighByte(){return b(s>>>8)},get crc(){return r},set crc(val){r=g(val)},get compressedSize(){return c},set compressedSize(val){c=g(val)},get size(){return p},set size(val){p=g(val)},get fileNameLength(){return l},set fileNameLength(val){l=val},get extraLength(){return u},set extraLength(val){u=val},get extraLocalLength(){return v.extraLen},set extraLocalLength(val){v.extraLen=val},get commentLength(){return d},set commentLength(val){d=val},get diskNumStart(){return m},set diskNumStart(val){m=g(val)},get inAttr(){return f},set inAttr(val){f=g(val)},get attr(){return h},set attr(val){h=g(val)},get fileAttr(){return(h||0)>>16&4095},get offset(){return x},set offset(val){x=g(val)},get encrypted(){return(a&i.FLG_ENC)===i.FLG_ENC},get centralHeaderSize(){return i.CENHDR+l+u+d},get realDataOffset(){return x+i.LOCHDR+v.fnameLen+v.extraLen},get localHeader(){return v},loadLocalHeaderFromBinary:function(e){var t=e.slice(x,x+i.LOCHDR);if(t.readUInt32LE(0)!==i.LOCSIG)throw n.Errors.INVALID_LOC();v.version=t.readUInt16LE(i.LOCVER),v.flags=t.readUInt16LE(i.LOCFLG),v.method=t.readUInt16LE(i.LOCHOW),v.time=t.readUInt32LE(i.LOCTIM),v.crc=t.readUInt32LE(i.LOCCRC),v.compressedSize=t.readUInt32LE(i.LOCSIZ),v.size=t.readUInt32LE(i.LOCLEN),v.fnameLen=t.readUInt16LE(i.LOCNAM),v.extraLen=t.readUInt16LE(i.LOCEXT);let a=x+i.LOCHDR+v.fnameLen,o=a+v.extraLen;return e.slice(a,o)},loadFromBinary:function(v){if(v.length!==i.CENHDR||v.readUInt32LE(0)!==i.CENSIG)throw n.Errors.INVALID_CEN();e=v.readUInt16LE(i.CENVEM),t=v.readUInt16LE(i.CENVER),a=v.readUInt16LE(i.CENFLG),o=v.readUInt16LE(i.CENHOW),s=v.readUInt32LE(i.CENTIM),r=v.readUInt32LE(i.CENCRC),c=v.readUInt32LE(i.CENSIZ),p=v.readUInt32LE(i.CENLEN),l=v.readUInt16LE(i.CENNAM),u=v.readUInt16LE(i.CENEXT),d=v.readUInt16LE(i.CENCOM),m=v.readUInt16LE(i.CENDSK),f=v.readUInt16LE(i.CENATT),h=v.readUInt32LE(i.CENATX),x=v.readUInt32LE(i.CENOFF)},localHeaderToBinary:function(){var e=Buffer.alloc(i.LOCHDR);return e.writeUInt32LE(i.LOCSIG,0),e.writeUInt16LE(t,i.LOCVER),e.writeUInt16LE(a,i.LOCFLG),e.writeUInt16LE(o,i.LOCHOW),e.writeUInt32LE(s,i.LOCTIM),e.writeUInt32LE(r,i.LOCCRC),e.writeUInt32LE(c,i.LOCSIZ),e.writeUInt32LE(p,i.LOCLEN),e.writeUInt16LE(l,i.LOCNAM),e.writeUInt16LE(v.extraLen,i.LOCEXT),e},centralHeaderToBinary:function(){var n=Buffer.alloc(i.CENHDR+l+u+d);return n.writeUInt32LE(i.CENSIG,0),n.writeUInt16LE(e,i.CENVEM),n.writeUInt16LE(t,i.CENVER),n.writeUInt16LE(a,i.CENFLG),n.writeUInt16LE(o,i.CENHOW),n.writeUInt32LE(s,i.CENTIM),n.writeUInt32LE(r,i.CENCRC),n.writeUInt32LE(c,i.CENSIZ),n.writeUInt32LE(p,i.CENLEN),n.writeUInt16LE(l,i.CENNAM),n.writeUInt16LE(u,i.CENEXT),n.writeUInt16LE(d,i.CENCOM),n.writeUInt16LE(m,i.CENDSK),n.writeUInt16LE(f,i.CENATT),n.writeUInt32LE(h,i.CENATX),n.writeUInt32LE(x,i.CENOFF),n},toJSON:function(){let s=function(e){return e+" bytes"};return{made:e,version:t,flags:a,method:n.methodToString(o),time:this.time,crc:"0x"+r.toString(16).toUpperCase(),compressedSize:s(c),size:s(p),fileNameLength:s(l),extraLength:s(u),commentLength:s(d),diskNumStart:m,inAttr:f,attr:h,offset:x,centralHeaderSize:s(i.CENHDR+l+u+d)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}},500:function(e,t,a){t.EntryHeader=a(4711),t.MainHeader=a(701)},701:function(e,t,a){var n=a(4659),i=n.Constants;e.exports=function(){var e=0,t=0,a=0,o=0,s=0;return{get diskEntries(){return e},set diskEntries(val){e=t=val},get totalEntries(){return t},set totalEntries(val){t=e=val},get size(){return a},set size(val){a=val},get offset(){return o},set offset(val){o=val},get commentLength(){return s},set commentLength(val){s=val},get mainHeaderSize(){return i.ENDHDR+s},loadFromBinary:function(r){if((r.length!==i.ENDHDR||r.readUInt32LE(0)!==i.ENDSIG)&&(r.length<i.ZIP64HDR||r.readUInt32LE(0)!==i.ZIP64SIG))throw n.Errors.INVALID_END();r.readUInt32LE(0)===i.ENDSIG?(e=r.readUInt16LE(i.ENDSUB),t=r.readUInt16LE(i.ENDTOT),a=r.readUInt32LE(i.ENDSIZ),o=r.readUInt32LE(i.ENDOFF),s=r.readUInt16LE(i.ENDCOM)):(e=n.readBigUInt64LE(r,i.ZIP64SUB),t=n.readBigUInt64LE(r,i.ZIP64TOT),a=n.readBigUInt64LE(r,i.ZIP64SIZE),o=n.readBigUInt64LE(r,i.ZIP64OFF),s=0)},toBinary:function(){var n=Buffer.alloc(i.ENDHDR+s);return n.writeUInt32LE(i.ENDSIG,0),n.writeUInt32LE(0,4),n.writeUInt16LE(e,i.ENDSUB),n.writeUInt16LE(t,i.ENDTOT),n.writeUInt32LE(a,i.ENDSIZ),n.writeUInt32LE(o,i.ENDOFF),n.writeUInt16LE(s,i.ENDCOM),n.fill(" ",i.ENDHDR),n},toJSON:function(){return{diskEntries:e,totalEntries:t,size:a+" bytes",offset:function(e,t){let a=e.toString(16).toUpperCase();for(;a.length<4;)a="0"+a;return"0x"+a}(o,0),commentLength:s}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}},7921:function(e,t,a){e.exports=function(e){var t=a(9796),n={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,n)},deflateAsync:function(a){var i=t.createDeflateRaw(n),o=[],s=0;i.on("data",function(e){o.push(e),s+=e.length}),i.on("end",function(){var e=Buffer.alloc(s),t=0;e.fill(0);for(var n=0;n<o.length;n++){var i=o[n];i.copy(e,t),t+=i.length}a&&a(e)}),i.end(e)}}}},5685:function(e,t,a){t.Deflater=a(7921),t.Inflater=a(2172),t.ZipCrypto=a(4159)},2172:function(e,t,a){let n=+(process.versions?process.versions.node:"").split(".")[0]||0;e.exports=function(e,t){var i=a(9796);let o=n>=15&&t>0?{maxOutputLength:t}:{};return{inflate:function(){return i.inflateRawSync(e,o)},inflateAsync:function(t){var a=i.createInflateRaw(o),n=[],s=0;a.on("data",function(e){n.push(e),s+=e.length}),a.on("end",function(){var e=Buffer.alloc(s),a=0;e.fill(0);for(var i=0;i<n.length;i++){var o=n[i];o.copy(e,a),a+=o.length}t&&t(e)}),a.end(e)}}}},4159:function(e,t,a){"use strict";let{randomFillSync:n}=a(6113),i=a(1936),o=new Uint32Array(256).map((e,t)=>{for(let e=0;e<8;e++)0!=(1&t)?t=t>>>1^0xedb88320:t>>>=1;return t>>>0}),s=(e,t)=>Math.imul(e,t)>>>0,r=(e,t)=>o[(e^t)&255]^e>>>8,c=()=>"function"==typeof n?n(Buffer.alloc(12)):c.node();c.node=()=>{let e=Buffer.alloc(12),t=e.length;for(let a=0;a<t;a++)e[a]=256*Math.random()&255;return e};let p={genSalt:c};function l(e){let t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([0x12345678,0x23456789,0x34567890]);for(let e=0;e<t.length;e++)this.updateKeys(t[e])}l.prototype.updateKeys=function(e){let t=this.keys;return t[0]=r(t[0],e),t[1]+=255&t[0],t[1]=s(t[1],0x8088405)+1,t[2]=r(t[2],t[1]>>>24),e},l.prototype.next=function(){let e=(2|this.keys[2])>>>0;return s(e,1^e)>>8&255},e.exports={decrypt:function(e,t,a){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);let n=function(e){let t=new l(e);return function(e){let a=Buffer.alloc(e.length),n=0;for(let i of e)a[n++]=t.updateKeys(i^t.next());return a}}(a),o=n(e.slice(0,12)),s=(8&t.flags)==8?t.timeHighByte:t.crc>>>24;if(o[11]!==s)throw i.WRONG_PASSWORD();return n(e.slice(12))},encrypt:function(e,t,a,n=!1){null==e&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));let i=function(e){let t=new l(e);return function(e,a,n=0){for(let i of(a||(a=Buffer.alloc(e.length)),e)){let e=t.next();a[n++]=i^e,t.updateKeys(i)}return a}}(a),o=p.genSalt();o[11]=t.crc>>>24&255,n&&(o[10]=t.crc>>>16&255);let s=Buffer.alloc(e.length+12);return i(o,s),i(e,s,12)},_salter:function(e){Buffer.isBuffer(e)&&e.length>=12?p.genSalt=function(){return e.slice(0,12)}:"node"===e?p.genSalt=c.node:p.genSalt=c}}},2578:function(e){e.exports={LOCHDR:30,LOCSIG:0x4034b50,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:0x8074b50,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:0x2014b50,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:0x6054b50,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:0x7064b50,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:0x6064b50,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:0xffffffff,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}},501:function(e){e.exports={efs:!0,encode:e=>Buffer.from(e,"utf8"),decode:e=>e.toString("utf8")}},1936:function(e,t){let a={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};for(let e of Object.keys(a))t[e]=function(e){return function(...t){return t.length&&(e=e.replace(/\{(\d)\}/g,(e,a)=>t[a]||"")),Error("ADM-ZIP: "+e)}}(a[e])},3516:function(e,t,a){let n=a(1017);e.exports=function(e,{fs:t}){var a=e||"",i={directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0},o=null;return a&&t.existsSync(a)?(i.directory=(o=t.statSync(a)).isDirectory(),i.mtime=o.mtime,i.atime=o.atime,i.executable=(73&o.mode)!=0,i.readonly=(128&o.mode)==0,i.hidden="."===n.basename(a)[0]):console.warn("Invalid path: "+a),{get directory(){return i.directory},get readOnly(){return i.readonly},get hidden(){return i.hidden},get mtime(){return i.mtime},get atime(){return i.atime},get executable(){return i.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:a,isDirectory:i.directory,isReadOnly:i.readonly,isHidden:i.hidden,isExecutable:i.executable,mTime:i.mtime,aTime:i.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}},4659:function(e,t,a){e.exports=a(2734),e.exports.Constants=a(2578),e.exports.Errors=a(1936),e.exports.FileAttr=a(3516),e.exports.decoder=a(501)},2734:function(e,t,a){let n=a(7147),i=a(1017),o=a(2578),s=a(1936),r="object"==typeof process&&"win32"===process.platform,c=e=>"object"==typeof e&&null!==e,p=new Uint32Array(256).map((e,t)=>{for(let e=0;e<8;e++)(1&t)!=0?t=0xedb88320^t>>>1:t>>>=1;return t>>>0});function l(e){this.sep=i.sep,this.fs=n,c(e)&&c(e.fs)&&"function"==typeof e.fs.statSync&&(this.fs=e.fs)}e.exports=l,l.prototype.makeDir=function(e){let t,a=this;t=e.split(a.sep)[0],e.split(a.sep).forEach(function(e){var n;if(e&&":"!==e.substr(-1,1)){t+=a.sep+e;try{n=a.fs.statSync(t)}catch(e){a.fs.mkdirSync(t)}if(n&&n.isFile())throw s.FILE_IN_THE_WAY(`"${t}"`)}})},l.prototype.writeFileTo=function(e,t,a,n){if(this.fs.existsSync(e)){var o;if(!a||this.fs.statSync(e).isDirectory())return!1}var s=i.dirname(e);this.fs.existsSync(s)||this.makeDir(s);try{o=this.fs.openSync(e,"w",438)}catch(t){this.fs.chmodSync(e,438),o=this.fs.openSync(e,"w",438)}if(o)try{this.fs.writeSync(o,t,0,t.length,0)}finally{this.fs.closeSync(o)}return this.fs.chmodSync(e,n||438),!0},l.prototype.writeFileToAsync=function(e,t,a,n,o){"function"==typeof n&&(o=n,n=void 0);let s=this;s.fs.exists(e,function(r){if(r&&!a)return o(!1);s.fs.stat(e,function(a,c){if(r&&c.isDirectory())return o(!1);var p=i.dirname(e);s.fs.exists(p,function(a){a||s.makeDir(p),s.fs.open(e,"w",438,function(a,i){a?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(a,i){s.fs.write(i,t,0,t.length,0,function(){s.fs.close(i,function(){s.fs.chmod(e,n||438,function(){o(!0)})})})})}):i?s.fs.write(i,t,0,t.length,0,function(){s.fs.close(i,function(){s.fs.chmod(e,n||438,function(){o(!0)})})}):s.fs.chmod(e,n||438,function(){o(!0)})})})})})},l.prototype.findFiles=function(e){let t=this;return function e(a,n,o){"boolean"==typeof n&&(o=n,n=void 0);let s=[];return t.fs.readdirSync(a).forEach(function(r){let c=i.join(a,r),p=t.fs.statSync(c);(!n||n.test(c))&&s.push(i.normalize(c)+(p.isDirectory()?t.sep:"")),p.isDirectory()&&o&&(s=s.concat(e(c,n,o)))}),s}(e,void 0,!0)},l.prototype.findFilesAsync=function(e,t){let a=this,n=[];a.fs.readdir(e,function(o,s){if(o)return t(o);let r=s.length;if(!r)return t(null,n);s.forEach(function(o){o=i.join(e,o),a.fs.stat(o,function(e,s){if(e)return t(e);s&&(n.push(i.normalize(o)+(s.isDirectory()?a.sep:"")),s.isDirectory()?a.findFilesAsync(o,function(e,a){if(e)return t(e);n=n.concat(a),--r||t(null,n)}):--r||t(null,n))})})})},l.prototype.getAttributes=function(){},l.prototype.setAttributes=function(){},l.crc32update=function(e,t){return p[(e^t)&255]^e>>>8},l.crc32=function(e){"string"==typeof e&&(e=Buffer.from(e,"utf8"));let t=e.length,a=-1;for(let n=0;n<t;)a=l.crc32update(a,e[n++]);return~a>>>0},l.methodToString=function(e){switch(e){case o.STORED:return"STORED ("+e+")";case o.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}},l.canonical=function(e){if(!e)return"";let t=i.posix.normalize("/"+e.split("\\").join("/"));return i.join(".",t)},l.zipnamefix=function(e){if(!e)return"";let t=i.posix.normalize("/"+e.split("\\").join("/"));return i.posix.join(".",t)},l.findLast=function(e,t){if(!Array.isArray(e))throw TypeError("arr is not array");let a=e.length>>>0;for(let n=a-1;n>=0;n--)if(t(e[n],n,e))return e[n]},l.sanitize=function(e,t){e=i.resolve(i.normalize(e));for(var a=t.split("/"),n=0,o=a.length;n<o;n++){var s=i.normalize(i.join(e,a.slice(n,o).join(i.sep)));if(0===s.indexOf(e))return s}return i.normalize(i.join(e,i.basename(t)))},l.toBuffer=function(e,t){return Buffer.isBuffer(e)?e:e instanceof Uint8Array?Buffer.from(e):"string"==typeof e?t(e):Buffer.alloc(0)},l.readBigUInt64LE=function(e,t){var a=Buffer.from(e.slice(t,t+8));return a.swap64(),parseInt(`0x${a.toString("hex")}`)},l.fromDOS2Date=function(e){return new Date((e>>25&127)+1980,Math.max((e>>21&15)-1,0),Math.max(e>>16&31,1),e>>11&31,e>>5&63,(31&e)<<1)},l.fromDate2DOS=function(e){let t=0,a=0;return e.getFullYear()>1979&&(t=(e.getFullYear()-1980&127)<<9|e.getMonth()+1<<5|e.getDate(),a=e.getHours()<<11|e.getMinutes()<<5|e.getSeconds()>>1),t<<16|a},l.isWin=r,l.crcTable=p},4450:function(e,t,a){var n=a(4659),i=a(500),o=n.Constants,s=a(5685);e.exports=function(e,t){var a=new i.EntryHeader,r=Buffer.alloc(0),c=Buffer.alloc(0),p=!1,l=null,u=Buffer.alloc(0),d=Buffer.alloc(0),m=!0;let f="object"==typeof e.decoder?e.decoder:n.decoder;function h(){return t&&t instanceof Uint8Array?(d=a.loadLocalHeaderFromBinary(t),t.slice(a.realDataOffset,a.realDataOffset+a.compressedSize)):Buffer.alloc(0)}function x(e){if(a.flags_desc){let i={},s=a.realDataOffset+a.compressedSize;if(t.readUInt32LE(s)==o.LOCSIG||t.readUInt32LE(s)==o.CENSIG)throw n.Errors.DESCRIPTOR_NOT_EXIST();if(t.readUInt32LE(s)==o.EXTSIG)i.crc=t.readUInt32LE(s+o.EXTCRC),i.compressedSize=t.readUInt32LE(s+o.EXTSIZ),i.size=t.readUInt32LE(s+o.EXTLEN);else if(19280===t.readUInt16LE(s+12))i.crc=t.readUInt32LE(s+o.EXTCRC-4),i.compressedSize=t.readUInt32LE(s+o.EXTSIZ-4),i.size=t.readUInt32LE(s+o.EXTLEN-4);else throw n.Errors.DESCRIPTOR_UNKNOWN();if(i.compressedSize!==a.compressedSize||i.size!==a.size||i.crc!==a.crc)throw n.Errors.DESCRIPTOR_FAULTY();if(n.crc32(e)!==i.crc)return!1}else if(n.crc32(e)!==a.localHeader.crc)return!1;return!0}function v(e,t,i){if(void 0===t&&"string"==typeof e&&(i=e,e=void 0),p)return e&&t&&t(Buffer.alloc(0),n.Errors.DIRECTORY_CONTENT_ERROR()),Buffer.alloc(0);var o=h();if(0===o.length)return e&&t&&t(o),o;if(a.encrypted){if("string"!=typeof i&&!Buffer.isBuffer(i))throw n.Errors.INVALID_PASS_PARAM();o=s.ZipCrypto.decrypt(o,a,i)}var c=Buffer.alloc(a.size);switch(a.method){case n.Constants.STORED:if(o.copy(c),x(c))return e&&t&&t(c),c;throw e&&t&&t(c,n.Errors.BAD_CRC()),n.Errors.BAD_CRC();case n.Constants.DEFLATED:var l=new s.Inflater(o,a.size);if(e)l.inflateAsync(function(e){e.copy(e,0),t&&(x(e)?t(e):t(e,n.Errors.BAD_CRC()))});else{if(l.inflate(c).copy(c,0),!x(c))throw n.Errors.BAD_CRC(`"${f.decode(r)}"`);return c}break;default:throw e&&t&&t(Buffer.alloc(0),n.Errors.UNKNOWN_METHOD()),n.Errors.UNKNOWN_METHOD()}}function g(e,i){if((!l||!l.length)&&Buffer.isBuffer(t))return e&&i&&i(h()),h();if(l.length&&!p){var o;switch(a.method){case n.Constants.STORED:return a.compressedSize=a.size,o=Buffer.alloc(l.length),l.copy(o),e&&i&&i(o),o;default:case n.Constants.DEFLATED:var r=new s.Deflater(l);if(e)r.deflateAsync(function(e){o=Buffer.alloc(e.length),a.compressedSize=e.length,e.copy(o),i&&i(o)});else{var c=r.deflate();return a.compressedSize=c.length,c}r=null}}else{if(!e||!i)return Buffer.alloc(0);i(Buffer.alloc(0))}}function b(e,t){return(e.readUInt32LE(t+4)<<4)+e.readUInt32LE(t)}return m=!!f.hasOwnProperty("efs")&&f.efs,{get entryName(){return f.decode(r)},get rawEntryName(){return r},set entryName(val){var y=(r=n.toBuffer(val,f.encode))[r.length-1];p=47===y||92===y,a.fileNameLength=r.length},get efs(){if("function"==typeof m)return m(this.entryName);return m},get extra(){return u},set extra(val){u=val,a.extraLength=val.length;try{for(var w,E,_,S=0;S+4<val.length;)w=val.readUInt16LE(S),S+=2,E=val.readUInt16LE(S),S+=2,_=val.slice(S,S+E),S+=E,o.ID_ZIP64===w&&function(e){var t,n,i,s;e.length>=o.EF_ZIP64_SCOMP&&(t=b(e,o.EF_ZIP64_SUNCOMP),a.size===o.EF_ZIP64_OR_32&&(a.size=t)),e.length>=o.EF_ZIP64_RHO&&(n=b(e,o.EF_ZIP64_SCOMP),a.compressedSize===o.EF_ZIP64_OR_32&&(a.compressedSize=n)),e.length>=o.EF_ZIP64_DSN&&(i=b(e,o.EF_ZIP64_RHO),a.offset===o.EF_ZIP64_OR_32&&(a.offset=i)),e.length>=o.EF_ZIP64_DSN+4&&(s=e.readUInt32LE(o.EF_ZIP64_DSN),a.diskNumStart===o.EF_ZIP64_OR_16&&(a.diskNumStart=s))}(_)}catch(e){throw n.Errors.EXTRA_FIELD_PARSE_ERROR()}},get comment(){return f.decode(c)},set comment(val){if(a.commentLength=(c=n.toBuffer(val,f.encode)).length,c.length>65535)throw n.Errors.COMMENT_TOO_LONG()},get name(){var C=f.decode(r);return p?C.substr(C.length-1).split("/").pop():C.split("/").pop()},get isDirectory(){return p},getCompressedData:function(){return g(!1,null)},getCompressedDataAsync:function(e){g(!0,e)},setData:function(e){l=n.toBuffer(e,n.decoder.encode),!p&&l.length?(a.size=l.length,a.method=n.Constants.DEFLATED,a.crc=n.crc32(e),a.changed=!0):a.method=n.Constants.STORED},getData:function(e){return a.changed?l:v(!1,null,e)},getDataAsync:function(e,t){a.changed?e(l):v(!0,e,t)},set attr(attr){a.attr=attr},get attr(){return a.attr},set header(data){a.loadFromBinary(data)},get header(){return a},packCentralHeader:function(){a.flags_efs=this.efs,a.extraLength=u.length;var e=a.centralHeaderToBinary(),t=n.Constants.CENHDR;return r.copy(e,t),t+=r.length,u.copy(e,t),t+=a.extraLength,c.copy(e,t),e},packLocalHeader:function(){let e=0;a.flags_efs=this.efs,a.extraLocalLength=d.length;let t=a.localHeaderToBinary(),n=Buffer.alloc(t.length+r.length+a.extraLocalLength);return t.copy(n,e),e+=t.length,r.copy(n,e),e+=r.length,d.copy(n,e),e+=d.length,n},toJSON:function(){let e=function(e){return"<"+(e&&e.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:a.toJSON(),compressedData:e(t),data:e(l)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}}},2715:function(e,t,a){let n=a(4450),i=a(500),o=a(4659);e.exports=function(e,t){var a=[],s={},r=Buffer.alloc(0),c=new i.MainHeader,p=!1;let l=new Set,{noSort:u,decoder:d}=t;function m(){if(p=!0,s={},c.diskEntries>(e.length-c.offset)/o.Constants.CENHDR)throw o.Errors.DISK_ENTRY_TOO_LARGE();a=Array(c.diskEntries);for(var i=c.offset,r=0;r<a.length;r++){var u=i,d=new n(t,e);d.header=e.slice(u,u+=o.Constants.CENHDR),d.entryName=e.slice(u,u+=d.header.fileNameLength),d.header.extraLength&&(d.extra=e.slice(u,u+=d.header.extraLength)),d.header.commentLength&&(d.comment=e.slice(u,u+d.header.commentLength)),i+=d.header.centralHeaderSize,a[r]=d,s[d.entryName]=d}l.clear(),function(){let e=new Set;for(let t of Object.keys(s)){let a=t.split("/");if(a.pop(),a.length)for(let t=0;t<a.length;t++){let n=a.slice(0,t+1).join("/")+"/";e.add(n)}}for(let i of e)if(!(i in s)){let e=new n(t);e.entryName=i,e.attr=16,e.temporary=!0,a.push(e),s[e.entryName]=e,l.add(e)}}()}function f(){a.length>1&&!u&&a.sort((e,t)=>e.entryName.toLowerCase().localeCompare(t.entryName.toLowerCase()))}return e?function(a){var n=e.length-o.Constants.ENDHDR,i=Math.max(0,n-65535),s=i,p=e.length,l=-1,u=0;for("boolean"==typeof t.trailingSpace&&t.trailingSpace&&(i=0);n>=s;n--)if(80===e[n]){if(e.readUInt32LE(n)===o.Constants.ENDSIG){l=n,u=n,p=n+o.Constants.ENDHDR,s=n-o.Constants.END64HDR;continue}if(e.readUInt32LE(n)===o.Constants.END64SIG){s=i;continue}if(e.readUInt32LE(n)===o.Constants.ZIP64SIG){l=n,p=n+o.readBigUInt64LE(e,n+o.Constants.ZIP64SIZE)+o.Constants.ZIP64LEAD;break}}if(-1==l)throw o.Errors.INVALID_FORMAT();c.loadFromBinary(e.slice(l,p)),c.commentLength&&(r=e.slice(u+o.Constants.ENDHDR)),a&&m()}(t.readEntries):p=!0,{get entries(){return p||m(),a.filter(e=>!l.has(e))},get comment(){return d.decode(r)},set comment(val){c.commentLength=(r=o.toBuffer(val,d.encode)).length},getEntryCount:function(){return p?a.length:c.diskEntries},forEach:function(e){this.entries.forEach(e)},getEntry:function(e){return p||m(),s[e]||null},setEntry:function(e){p||m(),a.push(e),s[e.entryName]=e,c.totalEntries=a.length},deleteFile:function(e,t=!0){p||m();let a=s[e];this.getEntryChildren(a,t).map(e=>e.entryName).forEach(this.deleteEntry)},deleteEntry:function(e){p||m();let t=s[e],n=a.indexOf(t);n>=0&&(a.splice(n,1),delete s[e],c.totalEntries=a.length)},getEntryChildren:function(e,t=!0){if(p||m(),"object"==typeof e)if(!e.isDirectory||!t)return[e];else{let t=[],n=e.entryName;for(let e of a)e.entryName.startsWith(n)&&t.push(e);return t}return[]},getChildCount:function(e){if(e&&e.isDirectory){let t=this.getEntryChildren(e);return t.includes(e)?t.length-1:t.length}return 0},compressToBuffer:function(){p||m(),f();let t=[],a=[],n=0,i=0;c.size=0,c.offset=0;let s=0;for(let e of this.entries){let o=e.getCompressedData();e.header.offset=i;let r=e.packLocalHeader(),p=r.length+o.length;i+=p,t.push(r),t.push(o);let l=e.packCentralHeader();a.push(l),c.size+=l.length,n+=p+l.length,s++}n+=c.mainHeaderSize,c.offset=i,c.totalEntries=s,i=0;let l=Buffer.alloc(n);for(let e of t)e.copy(l,i),i+=e.length;for(let e of a)e.copy(l,i),i+=e.length;let u=c.toBinary();return r&&r.copy(u,o.Constants.ENDHDR),u.copy(l,i),e=l,p=!1,l},toAsyncBuffer:function(t,a,n,i){try{p||m(),f();let a=[],s=[],l=0,u=0,d=0;c.size=0,c.offset=0;let h=function(m){if(m.length>0){let e=m.shift(),t=e.entryName+e.extra.toString();n&&n(t),e.getCompressedDataAsync(function(n){i&&i(t),e.header.offset=u;let o=e.packLocalHeader(),r=o.length+n.length;u+=r,a.push(o),a.push(n);let p=e.packCentralHeader();s.push(p),c.size+=p.length,l+=r+p.length,d++,h(m)})}else{l+=c.mainHeaderSize,c.offset=u,c.totalEntries=d,u=0;let n=Buffer.alloc(l);a.forEach(function(e){e.copy(n,u),u+=e.length}),s.forEach(function(e){e.copy(n,u),u+=e.length});let i=c.toBinary();r&&r.copy(i,o.Constants.ENDHDR),i.copy(n,u),e=n,p=!1,t(n)}};h(Array.from(this.entries))}catch(e){a(e)}}}}},9954:function(e,t,a){e.exports={parallel:a(8197),serial:a(8967),serialOrdered:a(982)}},190:function(e){e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}};function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}},1307:function(e,t,a){var n=a(8765);e.exports=function(e){var t=!1;return n(function(){t=!0}),function(a,i){t?e(a,i):n(function(){e(a,i)})}}},8765:function(e){e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},5798:function(e,t,a){var n=a(1307),i=a(190);e.exports=function(e,t,a,o){var s,r,c,p,l,u=a.keyedList?a.keyedList[a.index]:a.index;a.jobs[u]=(s=t,r=u,c=e[u],p=function(e,t){u in a.jobs&&(delete a.jobs[u],e?i(a):a.results[u]=t,o(e,a.results))},2==s.length?s(c,n(p)):s(c,r,n(p)))}},7379:function(e){e.exports=function(e,t){var a=!Array.isArray(e),n={index:0,keyedList:a||t?Object.keys(e):null,jobs:{},results:a?{}:[],size:a?Object.keys(e).length:e.length};return t&&n.keyedList.sort(a?t:function(a,n){return t(e[a],e[n])}),n}},3797:function(e,t,a){var n=a(190),i=a(1307);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,n(this),i(e)(null,this.results))}},8197:function(e,t,a){var n=a(5798),i=a(7379),o=a(3797);e.exports=function(e,t,a){for(var s=i(e);s.index<(s.keyedList||e).length;)n(e,t,s,function(e,t){return e?void a(e,t):0===Object.keys(s.jobs).length?void a(null,s.results):void 0}),s.index++;return o.bind(s,a)}},8967:function(e,t,a){var n=a(982);e.exports=function(e,t,a){return n(e,t,null,a)}},982:function(e,t,a){var n=a(5798),i=a(7379),o=a(3797);function s(e,t){return e<t?-1:+(e>t)}e.exports=function(e,t,a,s){var r=i(e,a);return n(e,t,r,function a(i,o){return i?void s(i,o):(r.index++,r.index<(r.keyedList||e).length)?void n(e,t,r,a):void s(null,r.results)}),o.bind(r,s)},e.exports.ascending=s,e.exports.descending=function(e,t){return -1*s(e,t)}},280:function(e,t,a){var n=a(6160),i=a(3837),o=a(1017),s=a(3685),r=a(5687),c=a(7310).parse,p=a(7147),l=a(2781).Stream,u=a(6856),d=a(9954),m=a(8677),f=a(1561);function h(e){if(!(this instanceof h))return new h(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],n.call(this),e=e||{})this[t]=e[t]}e.exports=h,i.inherits(h,n),h.LINE_BREAK="\r\n",h.DEFAULT_CONTENT_TYPE="application/octet-stream",h.prototype.append=function(e,t,a){"string"==typeof(a=a||{})&&(a={filename:a});var i=n.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),Array.isArray(t))return void this._error(Error("Arrays are not supported."));var o=this._multiPartHeader(e,t,a),s=this._multiPartFooter();i(o),i(t),i(s),this._trackLength(o,t,a)},h.prototype._trackLength=function(e,t,a){var n=0;null!=a.knownLength?n+=+a.knownLength:Buffer.isBuffer(t)?n=t.length:"string"==typeof t&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+h.LINE_BREAK.length,t&&(t.path||t.readable&&Object.prototype.hasOwnProperty.call(t,"httpVersion")||t instanceof l)&&(a.knownLength||this._valuesToMeasure.push(t))},h.prototype._lengthRetriever=function(e,t){Object.prototype.hasOwnProperty.call(e,"fd")?void 0!=e.end&&e.end!=1/0&&void 0!=e.start?t(null,e.end+1-(e.start?e.start:0)):p.stat(e.path,function(a,n){if(a)return void t(a);t(null,n.size-(e.start?e.start:0))}):Object.prototype.hasOwnProperty.call(e,"httpVersion")?t(null,+e.headers["content-length"]):Object.prototype.hasOwnProperty.call(e,"httpModule")?(e.on("response",function(a){e.pause(),t(null,+a.headers["content-length"])}),e.resume()):t("Unknown stream")},h.prototype._multiPartHeader=function(e,t,a){if("string"==typeof a.header)return a.header;var n,i=this._getContentDisposition(t,a),o=this._getContentType(t,a),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof a.header&&f(r,a.header),r)if(Object.prototype.hasOwnProperty.call(r,c)){if(null==(n=r[c]))continue;Array.isArray(n)||(n=[n]),n.length&&(s+=c+": "+n.join("; ")+h.LINE_BREAK)}return"--"+this.getBoundary()+h.LINE_BREAK+s+h.LINE_BREAK},h.prototype._getContentDisposition=function(e,t){var a,n;return"string"==typeof t.filepath?a=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?a=o.basename(t.filename||e.name||e.path):e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(a=o.basename(e.client._httpMessage.path||"")),a&&(n='filename="'+a+'"'),n},h.prototype._getContentType=function(e,t){var a=t.contentType;return!a&&e.name&&(a=u.lookup(e.name)),!a&&e.path&&(a=u.lookup(e.path)),!a&&e.readable&&Object.prototype.hasOwnProperty.call(e,"httpVersion")&&(a=e.headers["content-type"]),!a&&(t.filepath||t.filename)&&(a=u.lookup(t.filepath||t.filename)),a||"object"!=typeof e||(a=h.DEFAULT_CONTENT_TYPE),a},h.prototype._multiPartFooter=function(){return(function(e){var t=h.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}).bind(this)},h.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+h.LINE_BREAK},h.prototype.getHeaders=function(e){var t,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t.toLowerCase()]=e[t]);return a},h.prototype.setBoundary=function(e){this._boundary=e},h.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},h.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),a=0,n=this._streams.length;a<n;a++)"function"!=typeof this._streams[a]&&(e=Buffer.isBuffer(this._streams[a])?Buffer.concat([e,this._streams[a]]):Buffer.concat([e,Buffer.from(this._streams[a])]),("string"!=typeof this._streams[a]||this._streams[a].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(h.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},h.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},h.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(Error("Cannot calculate proper length in synchronous way.")),e},h.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},h.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length)return void process.nextTick(e.bind(this,null,t));d.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,n){if(a)return void e(a);n.forEach(function(e){t+=e}),e(null,t)})},h.prototype.submit=function(e,t){var a,n,i={method:"post"};return"string"==typeof e?n=f({port:(e=c(e)).port,path:e.pathname,host:e.hostname,protocol:e.protocol},i):(n=f(e,i)).port||(n.port="https:"==n.protocol?443:80),n.headers=this.getHeaders(e.headers),a="https:"==n.protocol?r.request(n):s.request(n),this.getLength((function(e,n){if(e&&"Unknown stream"!==e)return void this._error(e);if(n&&a.setHeader("Content-Length",n),this.pipe(a),t){var i,o=function(e,n){return a.removeListener("error",o),a.removeListener("response",i),t.call(this,e,n)};i=o.bind(this,null),a.on("error",o),a.on("response",i)}}).bind(this)),a},h.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},h.prototype.toString=function(){return"[object FormData]"},m(h,"FormData")},1561:function(e){e.exports=function(e,t){return Object.keys(t).forEach(function(a){e[a]=e[a]||t[a]}),e}},9919:function(e,t,a){"use strict";var n=a(4090),i=a(9638),o=a(8418);e.exports=a(6476)||n.call(o,i)},9638:function(e){"use strict";e.exports=Function.prototype.apply},8418:function(e){"use strict";e.exports=Function.prototype.call},8381:function(e,t,a){"use strict";var n=a(4090),i=a(5408),o=a(8418),s=a(9919);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return s(n,o,e)}},6476:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},6160:function(e,t,a){var n=a(3837),i=a(2781).Stream,o=a(8178);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,n.inherits(s,i),s.create=function(e){var t=new this;for(var a in e=e||{})t[a]=e[a];return t},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},s.prototype._realGetNext=function(){var e=this._streams.shift();return void 0===e?void this.end():"function"!=typeof e?void this._pipeNext(e):void e((function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}).bind(this))},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e)){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}this.write(e),this._getNext()},s.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},5130:function(e,t,a){let n;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;t.splice(1,0,a,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,a)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),n=!1,t.destroy=()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=a(7123)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:function(e,t,a){e.exports=function(e){function t(e){let a,i,o,s=null;function r(...e){if(!r.enabled)return;let n=Number(new Date);r.diff=n-(a||n),r.prev=a,r.curr=n,a=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,n)=>{if("%%"===a)return"%";i++;let o=t.formatters[n];if("function"==typeof o){let t=e[i];a=o.call(r,t),e.splice(i,1),i--}return a}),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=n,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(r),r}function n(e,a){let n=t(this.namespace+(void 0===a?":":a)+e);return n.log=this.log,n}function i(e,t){let a=0,n=0,i=-1,o=0;for(;a<e.length;)if(n<t.length&&(t[n]===e[a]||"*"===t[n]))"*"===t[n]?(i=n,o=a):a++,n++;else{if(-1===i)return!1;n=i+1,a=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let a of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean)))"-"===a[0]?t.skips.push(a.slice(1)):t.names.push(a)},t.enabled=function(e){for(let a of t.skips)if(i(e,a))return!1;for(let a of t.names)if(i(e,a))return!0;return!1},t.humanize=a(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(a=>{t[a]=e[a]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let a=0;for(let t=0;t<e.length;t++)a=(a<<5)-a+e.charCodeAt(t)|0;return t.colors[Math.abs(a)%t.colors.length]},t.enable(t.load()),t}},445:function(e,t,a){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=a(5130):e.exports=a(8414)},8414:function(e,t,a){let n=a(6224),i=a(3837);t.init=function(e){e.inspectOpts={};let a=Object.keys(t.inspectOpts);for(let n=0;n<a.length;n++)e.inspectOpts