diff --git a/.gitignore b/.gitignore index ac87e79..946f8e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .idea -dist input node_modules output diff --git a/.npmignore b/.npmignore index 946f8e3..11f8229 100644 --- a/.npmignore +++ b/.npmignore @@ -2,4 +2,6 @@ input node_modules output +src +tests tmp \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d541f7..2dec78d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## [1.0.10] +- Missing `dist` folder + ## [1.0.9] - Update readme diff --git a/README.md b/README.md index d149e31..e022e12 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,6 @@ For the graphic manipulation, it uses the [jimp library](https://www.npmjs.com/p Be sure you have installed [NodeJS](https://nodejs.org) (At least the LTS version) -I recommend to use [yarn package manager](https://yarnpkg.com), but of course you can also use `npm` (Should be included in NodeJS), if you want - ## CLI Clone the git repo: ```bash @@ -38,17 +36,6 @@ Switch to the working dir: cd ConvertMinecraftJavaTextureToBedrock ``` -Install the dependencies - -yarn: -```bash -yarn -``` -npm: -```bash -npm install -``` - You can now convert your texture packs like yarn: diff --git a/dist/cli.js b/dist/cli.js new file mode 100644 index 0000000..fa5c336 --- /dev/null +++ b/dist/cli.js @@ -0,0 +1,36 @@ +#!/usr/bin/env node +!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=304)}([function(t,e,n){"use strict";function r(t){if(void 0===t)return!1;if("function"!=typeof t)throw new TypeError("Callback must be a function");return!0}function i(t,e){if("string"==typeof t&&(t=new Error(t)),"function"==typeof e)return e.call(this,t);throw t}function o(t,e,n,r,i,o){e=Math.round(e),n=Math.round(n),r=Math.round(r),i=Math.round(i);for(var a=n;ar.promises})},function(t,e){t.exports=require("path")},function(t,e,n){try{var r=n(6);if("function"!=typeof r.inherits)throw"";t.exports=r.inherits}catch(e){t.exports=n(237)}},function(t,e){t.exports=require("stream")},function(t,e){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Buffer.isBuffer},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("fs")},function(t,e){t.exports=require("buffer")},function(t,e){t.exports=require("events")},function(t,e,n){var r=n(8).Buffer,i=r.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};var o=e.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!i(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function a(t){return t.toString(this.encoding)}function s(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function u(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived);var i;r=(e+=t.toString(this.encoding,0,r)).length-1;if((i=e.charCodeAt(r))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},o.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},o.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e}},function(t,e,n){"use strict";e.fromCallback=function(t){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((e,n)=>{arguments[arguments.length]=(t,r)=>{if(t)return n(t);e(r)},arguments.length++,t.apply(this,arguments)});t.apply(this,arguments)},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:t.name})}},function(t,e,n){var r=n(7),i=n(144),o=n(146),a=n(147),s=[],u=n(6);var c,l,p=function(){};function h(t){i(t),t.gracefulify=h,t.FileReadStream=p,t.FileWriteStream=g,t.createReadStream=function(t,e){return new p(t,e)},t.createWriteStream=function(t,e){return new g(t,e)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,i){return e(n,r,function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof i&&i.apply(this,arguments),d()):f([t,[n,r,i]])})}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,o){return n(e,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):f([t,[e,r,i,o]])})}(t,e,r,i)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,o){return r(e,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),d()):f([t,[e,n,i,o]])})}(t,e,n,i)});var a=t.readdir;function s(e){return a.apply(t,e)}if(t.readdir=function(t,e,n){var r=[t];"function"!=typeof e?r.push(e):n=e;return r.push(function(t,e){e&&e.sort&&e.sort(),!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),d()):f([s,[r]])}),s(r)},"v0.8"===process.version.substr(0,4)){var u=o(t);p=u.ReadStream,g=u.WriteStream}var c=t.ReadStream;c&&(p.prototype=Object.create(c.prototype),p.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())})});var l=t.WriteStream;function p(t,e){return this instanceof p?(c.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function g(t,e){return this instanceof g?(l.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}l&&(g.prototype=Object.create(l.prototype),g.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))})}),t.ReadStream=p,t.WriteStream=g;var m=t.open;function b(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,i){return m(e,n,r,function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):f([t,[e,n,r,i]])})}(t,e,n,r)}return t.open=b,t}function f(t){p("ENQUEUE",t[0].name,t[1]),s.push(t)}function d(){var t=s.shift();t&&(p("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}u.debuglog?p=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=u.format.apply(u,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(s),n(28).equal(s.length,0)}),t.exports=h(a(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=h(r),r.__patched=!0),t.exports.close=(c=r.close,function(t,e){return c.call(r,t,function(t){t||d(),"function"==typeof e&&e.apply(this,arguments)})}),t.exports.closeSync=(l=r.closeSync,function(t){var e=l.apply(r,arguments);return d(),e}),/\bgraceful-fs\b/.test(r.closeSync.toString())||(r.closeSync=t.exports.closeSync,r.close=t.exports.close)},function(t,e,n){(function(){var e,r,i,o,a,s,u,c,l,p,h,f,d={}.hasOwnProperty;f=n(18),h=f.isObject,p=f.isFunction,l=f.isEmpty,a=null,e=null,r=null,i=null,o=null,u=null,c=null,s=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],a||(a=n(31),e=n(32),r=n(33),i=n(34),o=n(35),u=n(40),c=n(41),s=n(42))}return t.prototype.element=function(t,e,n){var r,i,o,a,s,u,c,f,g,m;if(u=null,null==e&&(e={}),e=e.valueOf(),h(e)||(n=(g=[e,n])[0],e=g[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(o=0,c=t.length;o!0).catch(()=>!1)}),pathExistsSync:i.existsSync}},function(t,e){t.exports=require("zlib")},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;on&&s>0?(a+=t.common.lineHeight,o=i[s]+" "):o=u}return a}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e,n){"use strict";var r=n(43),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var o=n(5);o.inherits=n(3);var a=n(98),s=n(101);o.inherits(p,a);for(var u=i(s.prototype),c=0;c1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=P(t,360),e=P(e,100),n=P(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,u),p=!0,h="hsl"),t.hasOwnProperty("a")&&(n=t.a));var f,d,g;return n=M(n),{ok:p,format:t.format||h,r:c(255,l(e.r,0)),g:c(255,l(e.g,0)),b:c(255,l(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function f(t,e,n){t=P(t,255),e=P(e,255),n=P(n,255);var r,i,o=l(t,e,n),a=c(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(h(r));return o}function O(t,e){e=e||6;for(var n=h(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(h({h:r,s:i,v:o})),o=(o+s)%1;return a}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=M(t),this._roundA=u(100*this._a)/100,this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b),e=u(360*t.h),n=u(100*t.s),r=u(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=u(360*t.h),n=u(100*t.s),r=u(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[j(u(t).toString(16)),j(u(e).toString(16)),j(u(n).toString(16)),j(R(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*P(this._r,255))+"%",g:u(100*P(this._g,255))+"%",b:u(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*P(this._r,255))+"%, "+u(100*P(this._g,255))+"%, "+u(100*P(this._b,255))+"%)":"rgba("+u(100*P(this._r,255))+"%, "+u(100*P(this._g,255))+"%, "+u(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(I[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+m(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=h(t);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},h.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:F(t[r]));t=n}return h(t,e)},h.equals=function(t,e){return!(!t||!e)&&h(t).toRgbString()==h(e).toRgbString()},h.random=function(){return h.fromRatio({r:p(),g:p(),b:p()})},h.mix=function(t,e,n){n=0===n?0:n||50;var r=h(t).toRgb(),i=h(e).toRgb(),o=n/100;return h({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},h.readability=function(t,e){var n=h(t),r=h(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(t,e,n){var r,i,o=h.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},h.mostReadable=function(t,e,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;cu&&(u=r,s=h(e[c]));return h.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,h.mostReadable(t,["#fff","#000"],n))};var A=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=h.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(A);function M(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=c(e,l(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function L(t){return c(1,l(0,t))}function B(t){return parseInt(t,16)}function j(t){return 1==t.length?"0"+t:""+t}function F(t){return t<=1&&(t=100*t+"%"),t}function R(t){return i.round(255*parseFloat(t)).toString(16)}function N(t){return B(t)/255}var z,U,W,G=(U="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",W="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!G.CSS_UNIT.exec(t)}t.exports?t.exports=h:void 0===(r=function(){return h}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){var r=n(170);function i(t,e){var n=new r(t,e);return function(t){return n.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",t.exports=i},function(t,e){function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;el?"1":"0";return p};var i=[];t.exports=n},function(t,e,n){!function(){var e={};function r(){"undefined"==typeof process&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var n,i,o;n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=Error(),t.prototype.name="JpegError",t.constructor=t}(),o=function(){function t(t,e){this.message=t,this.g=e}return t.prototype=Error(),t.prototype.name="DNLMarkerError",t.constructor=t}(),function(){function e(){this.M=null,this.B=-1}function r(t,e){for(var n,r,i=0,o=[],a=16;0>--O&1;if(255===(T=t[e++])){var n=t[e++];if(n){if(220===n&&D){e+=2;var a=t[e++]<<8|t[e++];if(0>>7}function g(t){for(;;){if("number"==typeof(t=t[d()]))return t;if("object"!==(void 0===t?"undefined":n(t)))throw new i("invalid huffman sequence")}}function m(t){for(var e=0;0=1<>=4,0===i){if(15>r){A=m(r)+(1<t.a[n]?-1:1;switch(I){case 0:if(n=15&(o=g(t.o)),o>>=4,0===n)15>o?(A=m(o)+(1<n;){var r=g(t.o),i=15&r;if(r>>=4,0===i){if(15>r)break;n+=16}else n+=r,t.a[e+c[n]]=b(i),n++}},L=0,B=1===M?a[0].c*a[0].l:S*r.O;L=F)throw new i("marker was not found");if(!(65488<=F&&65495>=F))break;e+=2}return(F=u(t,e))&&F.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+F.f),e=F.offset),e-C}function s(t,e){for(var n=e.c,r=e.l,o=new Int16Array(64),a=0;ah;h+=8){var f=p[u+h],d=p[u+h+1],g=p[u+h+2],m=p[u+h+3],b=p[u+h+4],_=p[u+h+5],y=p[u+h+6],v=p[u+h+7];if(f*=l[h],0==(d|g|m|b|_|y|v))f=5793*f+512>>10,c[h]=f,c[h+1]=f,c[h+2]=f,c[h+3]=f,c[h+4]=f,c[h+5]=f,c[h+6]=f,c[h+7]=f;else{d*=l[h+1],g*=l[h+2],m*=l[h+3],b*=l[h+4],_*=l[h+5];var w=5793*f+128>>8,x=5793*b+128>>8,k=g,E=y*=l[h+6];x=(w=w+x+1>>1)-x,f=3784*k+1567*E+128>>8,k=1567*k-3784*E+128>>8,_=(b=(b=2896*(d-(v*=l[h+7]))+128>>8)+(_<<=4)+1>>1)-_,m=(v=(v=2896*(d+v)+128>>8)+(m<<=4)+1>>1)-m,E=(w=w+(E=f)+1>>1)-E,k=(x=x+k+1>>1)-k,f=2276*b+3406*v+2048>>12,b=3406*b-2276*v+2048>>12,v=f,f=799*m+4017*_+2048>>12,m=4017*m-799*_+2048>>12,_=f,c[h]=w+v,c[h+7]=w-v,c[h+1]=x+_,c[h+6]=x-_,c[h+2]=k+m,c[h+5]=k-m,c[h+3]=E+b,c[h+4]=E-b}}for(l=0;8>l;++l)f=c[l],0==((d=c[l+8])|(g=c[l+16])|(m=c[l+24])|(b=c[l+32])|(_=c[l+40])|(y=c[l+48])|(v=c[l+56]))?(f=-2040>(f=5793*f+8192>>14)?0:2024<=f?255:f+2056>>4,p[u+l]=f,p[u+l+8]=f,p[u+l+16]=f,p[u+l+24]=f,p[u+l+32]=f,p[u+l+40]=f,p[u+l+48]=f,p[u+l+56]=f):(w=5793*f+2048>>12,x=5793*b+2048>>12,f=3784*(k=g)+1567*(E=y)+2048>>12,k=1567*k-3784*E+2048>>12,E=f,_=(b=(b=2896*(d-v)+2048>>12)+_+1>>1)-_,m=(v=(v=2896*(d+v)+2048>>12)+m+1>>1)-m,f=2276*b+3406*v+2048>>12,b=3406*b-2276*v+2048>>12,v=f,f=799*m+4017*_+2048>>12,m=4017*m-799*_+2048>>12,d=(x=(x=(w=4112+(w+x+1>>1))-x)+k+1>>1)+(_=f),y=x-_,_=(k=x-k)-m,f=16>(f=(w=w+E+1>>1)+v)?0:4080<=f?255:f>>4,d=16>d?0:4080<=d?255:d>>4,g=16>(g=k+m)?0:4080<=g?255:g>>4,m=16>(m=(E=w-E)+b)?0:4080<=m?255:m>>4,b=16>(b=E-b)?0:4080<=b?255:b>>4,_=16>_?0:4080<=_?255:_>>4,y=16>y?0:4080<=y?255:y>>4,v=16>(v=w-v)?0:4080<=v?255:v>>4,p[u+l]=f,p[u+l+8]=d,p[u+l+16]=g,p[u+l+24]=m,p[u+l+32]=b,p[u+l+40]=_,p[u+l+48]=y,p[u+l+56]=v)}return e.a}function u(t,e){var n=2=r)return null;var i=t[e]<<8|t[e+1];if(65472<=i&&65534>=i)return{f:null,F:i,offset:e};for(var o=t[n]<<8|t[n+1];!(65472<=o&&65534>=o);){if(++n>=r)return null;o=t[n]<<8|t[n+1]}return{f:i.toString(16),F:o,offset:n}}var c=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);e.prototype={parse:function(t){function e(){var e=t[f]<<8|t[f+1];return f+=2,e}function n(){var n=e(),r=u(t,n=f+n-2,f);return r&&r.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+r.f),n=r.offset),n=t.subarray(f,n),f+=n.length,n}function l(t){for(var e=Math.ceil(t.v/8/t.s),n=Math.ceil(t.g/8/t.u),r=0;r>4)for(y=0;64>y;y++)x[v=c[y]]=t[f++];else{if(1!=w>>4)throw new i("DQT - invalid table spec");for(y=0;64>y;y++)x[v=c[y]]=e()}p[15&w]=x}break;case 65472:case 65473:case 65474:if(k)throw new i("Only single frame JPEGs supported");e();var k={};for(k.X=65473===_,k.S=65474===_,k.precision=t[f++],_=e(),k.g=h||_,k.v=e(),k.b=[],k.C={},y=t[f++],_=x=w=0;_>4,D=15&t[f+1];wy;y++,f++)E+=x[y]=t[f];for(D=new Uint8Array(E),y=0;y>4?b:m)[15&w]=r(x,D)}break;case 65501:e();var S=e();break;case 65498:for(y=1==++g&&!h,e(),w=t[f++],v=[],_=0;_>4],C.o=m[15&x],v.push(C)}_=t[f++],w=t[f++],x=t[f++];try{var T=a(t,f,k,v,S,_,w,x>>4,15&x,y);f+=T}catch(e){if(e instanceof o)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(t,{N:e.g});throw e}break;case 65500:f+=4;break;case 65535:255!==t[f]&&f--;break;default:if(255===t[f-3]&&192<=t[f-2]&&254>=t[f-2])f-=3;else{if(!(y=u(t,f-2))||!y.f)throw new i("unknown marker "+_.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+y.f),f=y.offset}}_=e()}for(this.width=k.v,this.height=k.g,this.A=d,this.b=[],_=0;_>8)+o[i+1];return u},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,n,r,i=0,o=t.length;i>>3)]),null==f&&(f=s.t325);var d=new Uint8Array(s.height*(p>>>3)),g=0;if(null!=s.t322){for(var m=s.t322[0],b=s.t323[0],_=Math.floor((s.width+m-1)/m),y=Math.floor((s.height+b-1)/b),v=new Uint8Array(0|Math.ceil(m*b*l/8)),w=0;w>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(p=0;p>>4,o[a++]=255&(g[p]<<4|g[p+1]>>>8),o[a++]=255&g[p+1]}}else{var b=new t.JpegDecoder;b.parse(c);var _=b.getData(b.width,b.height);for(p=0;p<_.length;p++)o[a+p]=_[p]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,n,i){var o,a,s,u,c,l=0,p=0,h=!1,f=t.t513,d=f?f[0]:0,g=t.t514,m=g?g[0]:0,b=t.t324||t.t273||f,_=t.t530,y=0,v=0,w=t.t277?t.t277[0]:1,x=t.t515;if(b&&(p=b[0],h=b.length>1),!h){if(255==e[n]&&216==e[n+1])return{jpegOffset:n};if(null!=f&&(255==e[n+d]&&216==e[n+d+1]?l=n+d:r("JPEGInterchangeFormat does not point to SOI"),null==g?r("JPEGInterchangeFormatLength field is missing"):(d>=p||d+m<=p)&&r("JPEGInterchangeFormatLength field value is invalid"),null!=l))return{jpegOffset:l}}if(null!=_&&(y=_[0],v=_[1]),null!=f&&null!=g)if(m>=2&&d+m<=p){for(o=255==e[n+d+m-2]&&216==e[n+d+m-1]?new Uint8Array(m-2):new Uint8Array(m),s=0;s offset to first strip or tile");if(null==o){var k=0,E=[];E[k++]=255,E[k++]=216;var D=t.t519;if(null==D)throw new Error("JPEGQTables tag is missing");for(s=0;s>>8,E[k++]=255&C,E[k++]=s|c<<4,u=0;u<16;u++)E[k++]=e[n+S[s]+u];for(u=0;u>>8&255,E[k++]=255&t.height,E[k++]=t.width>>>8&255,E[k++]=255&t.width,E[k++]=w,1==w)E[k++]=1,E[k++]=17,E[k++]=0;else for(s=0;s<3;s++)E[k++]=s+1,E[k++]=0!=s?17:(15&y)<<4|15&v,E[k++]=s;null!=x&&0!=x[0]&&(E[k++]=255,E[k++]=221,E[k++]=0,E[k++]=4,E[k++]=x[0]>>>8&255,E[k++]=255&x[0]),o=new Uint8Array(E)}var T=-1;for(s=0;s>>8&255,o[A++]=255&t.height,o[A++]=t.width>>>8&255,o[A++]=255&t.width,o[A++]=w,1==w)o[A++]=1,o[A++]=17,o[A++]=0;else for(s=0;s<3;s++)o[A++]=s+1,o[A++]=0!=s?17:(15&y)<<4|15&v,o[A++]=s}if(255==e[p]&&218==e[p+1]){var I=e[p+2]<<8|e[p+3];for((a=new Uint8Array(I+2))[0]=e[p],a[1]=e[p+1],a[2]=e[p+2],a[3]=e[p+3],s=0;s>>8&255,c[l.sofPosition+6]=255&e.height,c[l.sofPosition+7]=e.width>>>8&255,c[l.sofPosition+8]=255&e.width,255==n[r]&&n[r+1]==SOS||(c.set(l.sosMarker,bufoff),bufoff+=sosMarker.length),f=0;f=0&&u<128)for(var c=0;c=-127&&u<0){for(c=0;c<1-u;c++)a[i]=o[e],i++;e++}}},t.decode._decodeThunder=function(t,e,n,r,i){for(var o=[0,1,0,-1],a=[0,1,2,3,0,-3,-2,-1],s=e+n,u=2*i,c=0;e>>6,h=63&l;if(e++,3==p&&(c=15&h,r[u>>>1]|=c<<4*(1-u&1),u++),0==p)for(var f=0;f>>1]|=c<<4*(1-u&1),u++;if(2==p)for(f=0;f<2;f++){4!=(d=h>>>3*(1-f)&7)&&(c+=a[d],r[u>>>1]|=c<<4*(1-u&1),u++)}if(1==p)for(f=0;f<3;f++){var d;2!=(d=h>>>2*(2-f)&3)&&(c+=o[d],r[u>>>1]|=c<<4*(1-u&1),u++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,n,r){for(var i=0;i>>3>>3]>>>7-(7&c)&1),2==s&&(E=e[c>>>3]>>>(7&c)&1),c++,p+=E,"H"==w){if(null!=u._lens[y][p]){var D=u._lens[y][p];p="",l+=D,D<64&&(u._addNtimes(h,l,y),g+=l,y=1-y,l=0,0==--x&&(w=""))}}else"0001"==p&&(p="",u._addNtimes(h,_-g,y),g=_),"001"==p&&(p="",w="H",x=2),null!=u._dmap[p]&&(m=b+u._dmap[p],u._addNtimes(h,m-g,y),g=m,p="",y=1-y);h.length==a&&""==w&&(u._writeBits(h,i,8*o+v*k),y=0,v++,g=0,f=u._makeDiff(h),h=[])}},t.decode._findDiff=function(t,e,n){for(var r=0;r=e&&t[r+1]==n)return t[r]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var n=1;n>>3>>3]>>>7-(7&c)&1),2==s&&(D=e[c>>>3]>>>(7&c)&1),c++,p+=D,k){if(null!=u._lens[y][p]){var S=u._lens[y][p];p="",l+=S,S<64&&(u._addNtimes(h,l,y),y=1-y,l=0)}}else if("H"==w){if(null!=u._lens[y][p]){S=u._lens[y][p];p="",l+=S,S<64&&(u._addNtimes(h,l,y),g+=l,y=1-y,l=0,0==--x&&(w=""))}}else"0001"==p&&(p="",u._addNtimes(h,_-g,y),g=_),"001"==p&&(p="",w="H",x=2),null!=u._dmap[p]&&(m=b+u._dmap[p],u._addNtimes(h,m-g,y),g=m,p="",y=1-y);p.endsWith("000000000001")&&(v>=0&&u._writeBits(h,i,8*o+v*E),1==s&&(k=1==(e[c>>>3]>>>7-(7&c)&1)),2==s&&(k=1==(e[c>>>3]>>>(7&c)&1)),c++,null==u._decodeG3.allow2D&&(u._decodeG3.allow2D=k),u._decodeG3.allow2D||(k=!0,c--),p="",y=0,v++,g=0,f=u._makeDiff(h),h=[])}h.length==a&&u._writeBits(h,i,8*o+v*E)},t.decode._addNtimes=function(t,e,n){for(var r=0;r>>3]|=t[r]<<7-(n+r&7)},t.decode._decodeLZW=function(e,n,r,i){if(null==t.decode._lzwTab){for(var o=new Uint32Array(65535),a=new Uint16Array(65535),s=new Uint8Array(2e6),u=0;u<256;u++)s[u<<2]=u,o[u]=u<<2,a[u]=1;t.decode._lzwTab=[o,a,s]}for(var c=t.decode._copyData,l=t.decode._lzwTab[0],p=t.decode._lzwTab[1],h=(s=t.decode._lzwTab[2],258),f=1032,d=9,g=n<<3,m=0,b=0;m=(e[g>>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<=h)l[h]=f,s[l[h]]=_[0],p[h]=1,f=f+1+3&-4,h++;else l[h]=f,c(s,l[b],s,f,v=p[b]),s[f+v]=s[_],v++,p[h]=v,h++,f=f+v+3&-4;h+1==1<=h)l[h]=f,p[h]=0,h++;else l[h]=f,c(s,l[b],s,f,v=p[b]),s[f+v]=s[f],v++,p[h]=v,h++,c(s,f,r,i,v),i+=v,f=f+v+3&-4;h+1==1<4&&(e.writeUint(n,r,a),d=a),2==l&&e.writeASCII(n,d,p),3==l)for(var g=0;g4&&(a+=f+=1&f),r+=4}return[r,a]},t.toRGBA8=function(t){var e=t.width,n=t.height,i=e*n,o=4*i,a=t.data,s=new Uint8Array(4*i),u=t.t262[0],c=t.t258?Math.min(32,t.t258[0]):1,l=t.isLE?1:0;if(0==u)for(var p=Math.ceil(c*e/8),h=0;h>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*(1-b),s[m+3]=255}if(4==c)for(g=0;g>1)]>>4-4*(1&g)&15;s[m]=s[m+1]=s[m+2]=17*(15-b),s[m+3]=255}if(8==c)for(g=0;g>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*b,s[m+3]=255}if(2==c)for(g=0;g>2)]>>6-2*(3&g)&3;s[m]=s[m+1]=s[m+2]=85*b,s[m+3]=255}if(8==c)for(g=0;g0)for(g=0;g>8,s[m+1]=y[256+v]>>8,s[m+2]=y[512+v]>>8,s[m+3]=255}}else if(5==u){var w,x=(w=t.t258?t.t258.length:4)>4?1:0;for(g=0;g>8&255,t[e+1]=255&n},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255},writeASCII:function(t,e,n){for(var r=0;ro)return!0;if(c===o){if(l>a)return!0;if(l===a&&p>=s)return!0}return!1}function f(t,e){const n=i.resolve(t).split(i.sep).filter(t=>t),r=i.resolve(e).split(i.sep).filter(t=>t);return n.reduce((t,e,n)=>t&&r[n]===e,!0)}function d(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,n,i){!function(t,e,n){h()?r.stat(t,{bigint:!0},(t,i)=>{if(t)return n(t);r.stat(e,{bigint:!0},(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))}):r.stat(t,(t,i)=>{if(t)return n(t);r.stat(e,(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))})}(t,e,(r,o)=>{if(r)return i(r);const{srcStat:a,destStat:s}=o;return s&&s.ino&&s.dev&&s.ino===a.ino&&s.dev===a.dev?i(new Error("Source and destination must not be the same.")):a.isDirectory()&&f(t,e)?i(new Error(d(t,e,n))):i(null,{srcStat:a,destStat:s})})},checkPathsSync:function(t,e,n){const{srcStat:i,destStat:o}=function(t,e){let n,i;n=h()?r.statSync(t,{bigint:!0}):r.statSync(t);try{i=h()?r.statSync(e,{bigint:!0}):r.statSync(e)}catch(t){if("ENOENT"===t.code)return{srcStat:n,destStat:null};throw t}return{srcStat:n,destStat:i}}(t,e);if(o&&o.ino&&o.dev&&o.ino===i.ino&&o.dev===i.dev)throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&f(t,e))throw new Error(d(t,e,n));return{srcStat:i,destStat:o}},checkParentPaths:function t(e,n,o,a,s){const u=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(o));if(c===u||c===i.parse(c).root)return s();h()?r.stat(c,{bigint:!0},(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,c,a,s)):r.stat(c,(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,o,a))):t(e,n,c,a,s))},checkParentPathsSync:function t(e,n,o,a){const s=i.resolve(i.dirname(e)),u=i.resolve(i.dirname(o));if(u===s||u===i.parse(u).root)return;let c;try{c=h()?r.statSync(u,{bigint:!0}):r.statSync(u)}catch(t){if("ENOENT"===t.code)return;throw t}if(c.ino&&c.dev&&c.ino===n.ino&&c.dev===n.dev)throw new Error(d(e,o,a));return t(e,n,u,a)},isSrcSubdir:f}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(154);t.exports={remove:r(i),removeSync:i.sync}},function(t,e,n){(function(){var e,r,i,o,a,s={}.hasOwnProperty;a=n(18),o=a.isObject,i=a.isFunction,r=n(13),e=n(92),t.exports=function(t){function n(t,e,r){if(n.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name");this.name=this.stringify.eleName(e),this.attributes={},null!=r&&this.attribute(r),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){for(var n in e)s.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,r),n.prototype.clone=function(){var t,e,n,r;for(e in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes)s.call(r,e)&&(t=r[e],n.attributes[e]=t.clone());return n.children=[],this.children.forEach(function(t){var e;return(e=t.clone()).parent=n,n.children.push(e)}),n},n.prototype.attribute=function(t,n){var r,a;if(null!=t&&(t=t.valueOf()),o(t))for(r in t)s.call(t,r)&&(a=t[r],this.attribute(r,a));else i(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[t]=new e(this,t,n));return this},n.prototype.removeAttribute=function(t){var e,n,r;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(n=0,r=t.length;n>>8;return-1^n}function s(){return t=a.apply(null,arguments),(e=o(4)).writeInt32BE(t,0),e;var t,e}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),s.signed=function(){return a.apply(null,arguments)},s.unsigned=function(){return a.apply(null,arguments)>>>0},t.exports=s},function(t,e){t.exports=require("os")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.clone=u,e.addLast=p,e.addFirst=h,e.removeLast=f,e.removeFirst=d,e.insert=g,e.removeAt=m,e.replaceAt=b,e.getIn=_,e.set=y,e.setIn=v,e.update=w,e.updateIn=x,e.merge=k,e.mergeDeep=E,e.mergeIn=D,e.omit=S,e.addDefaults=C; +/*! + * Timm + * + * Immutability helpers with fast reads and acceptable writes. + * + * @copyright Guillermo Grau Panea 2016 + * @license MIT + */ +var i="INVALID_ARGS";function o(t){throw new Error(t)}function a(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var s={}.hasOwnProperty;function u(t){if(Array.isArray(t))return t.slice();for(var e=a(t),n={},r=0;r3?p-3:0),f=3;f=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function b(t,e,n){if(t[e]===n)return t;for(var r=t.length,i=Array(r),o=0;o6?a-6:0),u=6;u6?a-6:0),u=6;u7?u-7:0),p=7;p=0||(o[l]=t[l])}return o}function C(t,e,n,r,i,o){for(var a=arguments.length,s=Array(a>6?a-6:0),u=6;u0&&this.height>0?new Buffer(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new a(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(u,i),u.sync=s,u.prototype.pack=function(){return this.data&&this.data.length?(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},u.prototype.parse=function(t,e){var n,r;e&&(n=function(t){this.removeListener("error",r),this.data=t,e(null,this)}.bind(this),r=function(t){this.removeListener("parsed",n),e(t,null)}.bind(this),this.once("parsed",n),this.once("error",r));return this.end(t),this},u.prototype.write=function(t){return this._parser.write(t),!0},u.prototype.end=function(t){this._parser.end(t)},u.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},u.prototype._gamma=function(t){this.gamma=t},u.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},u.bitblt=function(t,e,n,r,i,o,a,s){if(r|=0,i|=0,o|=0,a|=0,s|=0,(n|=0)>t.width||r>t.height||n+i>t.width||r+o>t.height)throw new Error("bitblt reading outside image");if(a>e.width||s>e.height||a+i>e.width||s+o>e.height)throw new Error("bitblt writing outside image");for(var u=0;u"+this.newline},n.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},n.prototype.declaration=function(t,e){var n;return n=this.space(e),n+='",n+=this.newline},n.prototype.docType=function(t,n){var u,c,l,h,f;if(n||(n=0),h=this.space(n),h+="0){for(h+=" [",h+=this.newline,c=0,l=(f=t.children).length;c",h+=this.newline},n.prototype.element=function(t,n){var i,o,a,s,u,c,d,m,b,_,y,v,w;for(d in n||(n=0),w=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m="",m+=(v=this.space(n))+"<"+t.name,b=t.attributes)g.call(b,d)&&(i=b[d],m+=this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?m+=">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+=""+this.newline;else{if(this.dontprettytextnodes)for(a=0,u=(_=t.children).length;a"+this.newline,s=0,c=(y=t.children).length;s"+this.newline}return m},n.prototype.processingInstruction=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.dtdAttList=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdElement=function(t,e){return this.space(e)+""+this.newline},n.prototype.dtdEntity=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdNotation=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.openNode=function(t,e){var n,r,i,o;if(e||(e=0),t instanceof l){for(r in i=this.space(e)+"<"+t.name,o=t.attributes)g.call(o,r)&&(n=o[r],i+=this.attribute(n));return i+=(t.children?">":"/>")+this.newline}return i=this.space(e)+"")+this.newline},n.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof l):return this.space(e)+""+this.newline;case!(t instanceof c):return this.space(e)+"]>"+this.newline}},n}()}).call(this)},function(t,e,n){var r=n(4);(e=t.exports=n(104)).Stream=r,e.Readable=e,e.Writable=n(105),e.Duplex=n(55),e.Transform=n(106),e.PassThrough=n(246),process.browser||"disable"!==process.env.READABLE_STREAM||(t.exports=n(4))},function(t,e,n){t.exports=s;var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},i=n(5);i.inherits=n(3);var o=n(104),a=n(105);function s(t){if(!(this instanceof s))return new s(t);o.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(t,e){for(var n=0,r=t.length;n + * Build: `lodash modern -o ./dist/lodash.js` + * Copyright 2012-2013 The Dojo Foundation + * Based on Underscore.js 1.5.2 + * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */(function(){var i,o=[],a=[],s=0,u=+new Date+"",c=75,l=40,p=" \t\v\f \ufeff\n\r\u2028\u2029 ᠎              ",h=/\b__p \+= '';/g,f=/\b(__p \+=) '' \+/g,d=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,m=/\w*$/,b=/^\s*function[ \n\r\t]+\w/,_=/<%=([\s\S]+?)%>/g,y=RegExp("^["+p+"]*0+(?=.$)"),v=/($^)/,w=/\bthis\b/,x=/['\n\r\t\u2028\u2029\\]/g,k=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],E=0,D="[object Arguments]",S="[object Array]",C="[object Boolean]",T="[object Date]",O="[object Function]",A="[object Number]",I="[object Object]",M="[object RegExp]",P="[object String]",L={};L[O]=!1,L[D]=L[S]=L[C]=L[T]=L[A]=L[I]=L[M]=L[P]=!0;var B={leading:!1,maxWait:0,trailing:!1},j={configurable:!1,enumerable:!1,value:null,writable:!1},F={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},R={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},N=F[typeof window]&&window||this,z=F[typeof e]&&e&&!e.nodeType&&e,U=F[typeof t]&&t&&!t.nodeType&&t,W=(U&&U.exports,F[typeof global]&&global);function G(t,e,n){for(var r=(n||0)-1,i=t?t.length:0;++r-1?0:-1:t?0:-1}function $(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:u+t,i=e[n]||(e[n]={});"object"==n?(i[r]||(i[r]=[])).push(t):i[r]=!0}}function q(t){return t.charCodeAt(0)}function Y(t,e){for(var n=t.criteria,r=e.criteria,i=-1,o=n.length;++is||void 0===a)return 1;if(a=c&&r===G,a=[];if(o){var s=V(e);s?(r=H,e=s):o=!1}for(;++n-1});return i.pop(),o.pop(),g&&(Q(i),Q(o)),a}function Nt(t,e,n,r,i){(Jt(e)?we:ae)(e,function(e,o){var a,s,u=e,c=t[o];if(e&&((s=Jt(e))||fe(e))){for(var l,p=r.length;p--;)if(a=r[p]==e){c=i[p];break}a||(n&&(l=void 0!==(u=n(c,e)))&&(c=u),l||(c=s?Jt(c)?c:[]:fe(c)?c:{}),r.push(e),i.push(c),l||Nt(c,e,n,r,i))}else n&&void 0===(u=n(c,e))&&(u=e),void 0!==u&&(c=u);t[o]=c})}function zt(t,e){return t+ct(St()*(e-t+1))}function Ut(t,e,n){var r=-1,i=$t(),o=t?t.length:0,a=[],s=!e&&o>=c&&i===G,u=n||s?X():a;for(s&&(i=H,u=V(u));++r/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:_,variable:"",imports:{_:Tt}},_t||(Pt=function(){function t(){}return function(n){if(pe(n)){t.prototype=n;var r=new t;t.prototype=null}return r||e.Object()}}());var Yt=bt?function(t,e){j.value=e,bt(t,"__bindData__",j),j.value=null}:He;function Vt(t){var e,n;return!(!t||ot.call(t)!=I||le(e=t.constructor)&&!(e instanceof e))&&(oe(t,function(t,e){n=e}),void 0===n||ht.call(t,n))}function Zt(t){return te[t]}function Xt(t){return t&&"object"==typeof t&&"number"==typeof t.length&&ot.call(t)==D||!1}var Jt=yt||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&ot.call(t)==S||!1},Qt=xt?function(t){return pe(t)?xt(t):[]}:function(t){var e,n=t,r=[];if(!n)return r;if(!F[typeof t])return r;for(e in n)ht.call(n,e)&&r.push(e);return r},Kt={"&":"&","<":"<",">":">",'"':""","'":"'"},te=ce(Kt),ee=U("("+Qt(te).join("|")+")","g"),ne=U("["+Qt(Kt).join("")+"]","g"),re=function(t,e,n){var r,i=t,o=i;if(!i)return o;var a=arguments,s=0,u="number"==typeof n?2:a.length;if(u>3&&"function"==typeof a[u-2])var c=Lt(a[--u-1],a[u--],2);else u>2&&"function"==typeof a[u-1]&&(c=a[--u]);for(;++s-1:"number"==typeof o?a=(de(t)?t.indexOf(e,n):i(t,e,n))>-1:ae(t,function(t){if(++r>=n)return!(a=t===e)}),a}var be=Wt(function(t,e,n){ht.call(t,n)?t[n]++:t[n]=1});function _e(t,e,n){var r=!0;e=Tt.createCallback(e,n,3);var i=-1,o=t?t.length:0;if("number"==typeof o)for(;++ii&&(i=s)}else e=null==e&&de(t)?q:Tt.createCallback(e,n,3),we(t,function(t,n,o){var a=e(t,n,o);a>r&&(r=a,i=t)});return i}var Ce=De;function Te(t,e,n,r){if(!t)return n;var i=arguments.length<3;e=Tt.createCallback(e,r,4);var o=-1,a=t.length;if("number"==typeof a)for(i&&(n=t[++o]);++o>>1;n(t[a])1?arguments:arguments[0],e=-1,r=t?Se(Ce(t,"length")):0,i=n(r<0?0:r);++e2?Gt(t,17,tt(arguments,2),null,e):Gt(t,1,null,null,e)}function Ue(t,e,n){var r,o,a,s,u,c,l,p=0,h=!1,f=!0;if(!le(t))throw new $;if(e=kt(0,e)||0,!0===n){var d=!0;f=!1}else pe(n)&&(d=n.leading,h="maxWait"in n&&(kt(e,n.maxWait)||0),f="trailing"in n?n.trailing:f);var g=function(){var n=e-(qe()-s);if(n<=0){o&&ut(o);var h=l;o=c=l=i,h&&(p=qe(),a=t.apply(u,r),c||o||(r=u=null))}else c=dt(g,n)},m=function(){c&&ut(c),o=c=l=i,(f||h!==e)&&(p=qe(),a=t.apply(u,r),c||o||(r=u=null))};return function(){if(r=arguments,s=qe(),u=this,l=f&&(c||!d),!1===h)var n=d&&!c;else{o||d||(p=s);var i=h-(s-p),b=i<=0;b?(o&&(o=ut(o)),p=s,a=t.apply(u,r)):o||(o=dt(m,i))}return b&&c?c=ut(c):c||e===h||(c=dt(g,e)),n&&(b=!0,a=t.apply(u,r)),!b||c||o||(r=u=null),a}}function We(t){return t}function Ge(t,e,n){var r=!0,i=e&&ue(e);e&&(n||i.length)||(null==n&&(n=e),o=Ot,e=t,t=Tt,i=ue(e)),!1===n?r=!1:pe(n)&&"chain"in n&&(r=n.chain);var o=t,a=le(o);we(i,function(n){var i=t[n]=e[n];a&&(o.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,a=[n];ft.apply(a,arguments);var s=i.apply(t,a);if(r||e){if(n===s&&pe(s))return this;(s=new o(s)).__chain__=e}return s})})}function He(){}var $e,qe=qt(qe=o.now)&&qe||function(){return(new o).getTime()},Ye=8==Dt(p+"08")?Dt:function(t,e){return Dt(de(t)?t.replace(y,""):t,e||0)};function Ve(t){return function(e){return e[t]}}function Ze(){return this.__wrapped__}return Tt.after=function(t,e){if(!le(e))throw new $;return function(){if(--t<1)return e.apply(this,arguments)}},Tt.assign=re,Tt.at=function(t){for(var e=arguments,r=-1,i=Ft(e,!0,!1,1),o=e[2]&&e[2][e[1]]===t?1:i.length,a=n(o);++r1?Ft(arguments,!0,!1,1):ue(t),n=-1,r=e.length;++n2?Gt(e,19,tt(arguments,2),null,t):Gt(e,3,null,null,t)},Tt.chain=function(t){return(t=new Ot(t)).__chain__=!0,t},Tt.compact=function(t){for(var e=-1,n=t?t.length:0,r=[];++e=c&&V(e?t[e]:a)))}var u=t[0],l=-1,p=u?u.length:0,h=[];t:for(;++l3&&"function"==typeof e[n-2])var r=Lt(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);for(var i=tt(arguments,1,n),o=-1,a=X(),s=X();++o-1?t:0;var i=-1,o=n(t);for(e=Lt(e,r,1);++i=2044?2141175677:e-1980<<25|t.getMonth()+1<<21|t.getDate()<<16|t.getHours()<<11|t.getMinutes()<<5|t.getSeconds()/2},n.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},n.fromDosTime=function(t){return n.dosToDate(t.readUInt32LE())},n.getShortBytes=function(t){var e=new Buffer(2);return e.writeUInt16LE(t,0),e},n.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},n.getLongBytes=function(t){var e=new Buffer(4);return e.writeUInt32LE(t,0),e},n.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},n.toDosTime=function(t){return n.getLongBytes(n.dateToDos(t))}},function(t,e,n){t.exports=s;var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},i=n(5);i.inherits=n(3);var o=n(114),a=n(115);function s(t){if(!(this instanceof s))return new s(t);o.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(t,e){for(var n=0,r=t.length;n=10.0.0"},main:"dist/index.js",bin:{ConvertMinecraftJavaTextureToBedrock:"dist/cli.js"},scripts:{build:"webpack",cli:"node dist/cli.js",debug:"webpack --mode=development && node dist/cli.js",test:"webpack --mode=development && mocha tests"}}},function(t,e,n){var r=n(181),i=n(182);t.exports={encode:r,decode:i}},function(t,e,n){var r=n(193),i=n(194);t.exports={encode:r,decode:i}},function(t,e){t.exports={nearestNeighbor:function(t,e){for(var n=t.width,r=t.height,i=e.width,o=e.height,a=t.data,s=e.data,u=0;u0?i[k-4]:2*i[k]-i[k+4],D=i[k],S=i[k+4],C=_0?d[F-4*p]:2*d[F]-d[F+4*p],N=d[F],z=d[F+4*p],U=M1)for(var G=0;G"function"==typeof i[t]);Object.keys(i).forEach(t=>{"promises"!==t&&(e[t]=i[t])}),o.forEach(t=>{e[t]=r(i[t])}),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise(e=>i.exists(t,e))},e.read=function(t,e,n,r,o,a){return"function"==typeof a?i.read(t,e,n,r,o,a):new Promise((a,s)=>{i.read(t,e,n,r,o,(t,e,n)=>{if(t)return s(t);a({bytesRead:e,buffer:n})})})},e.write=function(t,e,...n){return"function"==typeof n[n.length-1]?i.write(t,e,...n):new Promise((r,o)=>{i.write(t,e,...n,(t,e,n)=>{if(t)return o(t);r({bytesWritten:e,buffer:n})})})}},function(t,e,n){"use strict";t.exports={copySync:n(148)}},function(t,e,n){"use strict";const r=n(2);function i(t){return(t=r.normalize(r.resolve(t)).split(r.sep)).length>0?t[0]:null}const o=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),o.test(t)}}},function(t,e,n){"use strict";const r=n(12),i=n(47),o=n(2);t.exports={hasMillisRes:function(t){let e=o.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=o.join(i.tmpdir(),e);const n=new Date(1435410243862);r.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",i=>{if(i)return t(i);r.open(e,"r+",(i,o)=>{if(i)return t(i);r.futimes(o,n,n,n=>{if(n)return t(n);r.close(o,n=>{if(n)return t(n);r.stat(e,(e,n)=>{if(e)return t(e);t(null,n.mtime>1435410243e3)})})})})})},hasMillisResSync:function(){let t=o.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=o.join(i.tmpdir(),t);const e=new Date(1435410243862);r.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");const n=r.openSync(t,"r+");return r.futimesSync(n,e,e),r.closeSync(n),r.statSync(t).mtime>1435410243e3},timeRemoveMillis:function(t){if("number"==typeof t)return 1e3*Math.floor(t/1e3);if(t instanceof Date)return new Date(1e3*Math.floor(t.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(t,e,n,i){r.open(t,"r+",(t,o)=>{if(t)return i(t);r.futimes(o,e,n,t=>{r.close(o,e=>{i&&i(t||e)})})})},utimesMillisSync:function(t,e,n){const i=r.openSync(t,"r+");return r.futimesSync(i,e,n),r.closeSync(i)}}},function(t,e,n){"use strict";const r=n(11).fromCallback;t.exports={copy:r(n(152))}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(171),o=n(172),a=n(75),s=n(173),u=n(16),c=n(6),l=function(t,e){if("string"!=typeof t&&!t.hasOwnProperty("url"))throw new Error("Missing url option from options for request method.");var n="object"===(void 0===t?"undefined":r(t))?a.parse(t.url):a.parse(t),c={hostname:n.hostname,port:n.port||("http:"===n.protocol.toLowerCase()?80:443),path:n.path,method:"GET",headers:{},auth:n.auth||null,parse:"none",stream:!1};if("object"===(void 0===t?"undefined":r(t))&&(c=Object.assign(c,t)),c.port=Number(c.port),c.hasOwnProperty("timeout")&&delete c.timeout,!0===c.compressed&&(c.headers["accept-encoding"]="gzip, deflate"),t.hasOwnProperty("form")){if("object"!==r(t.form))throw new Error("phin 'form' option must be of type Object if present.");var l=s.stringify(t.form);c.headers["Content-Type"]="application/x-www-form-urlencoded",c.headers["Content-Length"]=Buffer.byteLength(l),t.data=l}var p=void 0,h=function(t){var n=t;!0===c.compressed&&("gzip"===t.headers["content-encoding"]?n=t.pipe(u.createGunzip()):"deflate"===t.headers["content-encoding"]&&(n=t.pipe(u.createInflate()))),!0===c.stream?(t.stream=n,e&&e(null,t)):(t.body=new Buffer([]),n.on("data",function(e){t.body=Buffer.concat([t.body,e])}),n.on("end",function(){if(e){if("json"===c.parse)try{t.body=JSON.parse(t.body.toString())}catch(n){return void e("Invalid JSON received.",t)}e(null,t)}}))};switch(n.protocol.toLowerCase()){case"http:":p=i.request(c,h);break;case"https:":p=o.request(c,h);break;default:return void(e&&e(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&p.setTimeout(t.timeout,function(){p.abort(),e&&e(new Error("Timeout has been reached."),null),e=null}),p.on("error",function(t){e&&e(t,null)}),t.hasOwnProperty("data")){var f=t.data;if(!(t.data instanceof Buffer)&&"object"===r(t.data))if("application/x-www-form-urlencoded"===(c.headers["content-type"]||c.headers["Content-Type"]))f=s.stringify(t.data);else try{f=JSON.stringify(t.data)}catch(t){e&&e(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}p.write(f)}p.end()};l.promisified=function(t,e){return new Promise(function(e,n){l(t,function(t,r){t?n(t):e(r)})})},c.promisify&&(l[c.promisify.custom]=l.promisified),t.exports=l},function(t,e){t.exports=require("url")},function(t,e){function n(t,e){switch(t){case 1:return e.nextUInt8();case 3:return e.nextUInt16();case 4:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 8:return e.nextUInt16();case 9:return e.nextUInt32();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function r(t,e){var r,i,o=e.nextUInt16(),a=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(a),u=e.nextUInt32(),c=s*u;if(c>4&&(e=t.openWithOffset(e.nextUInt32())),2===a){var l=(r=e.nextString(u)).indexOf("\0");-1!==l&&(r=r.substr(0,l))}else if(7===a)r=e.nextBuffer(u);else if(0!==a)for(r=[],i=0;i0&&(this._paused=!1,this.emit("drain"))}.bind(this))},o.prototype.write=function(t,e){return this.writable?(n=Buffer.isBuffer(t)?t:new Buffer(t,e||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var n},o.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},o.prototype._processRead=function(t){this._reads.shift();for(var e=0,n=0,r=new Buffer(t.length);e0&&this._buffers.splice(0,n),this._buffered-=t.length,t.func.call(this,r)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},function(t,e,n){"use strict";var r=n(79),i=n(80);function o(t,e,n){var r=t*e;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var a=t.exports=function(t,e){var n=t.width,i=t.height,a=t.interlace,s=t.bpp,u=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],a)for(var c=r.getImagePasses(n,i),l=0;li?e[o-r]:0;e[o]=a+s}},a.prototype._unFilterType2=function(t,e,n){for(var r=this._lastLine,i=0;ii?e[a-r]:0,l=Math.floor((c+u)/2);e[a]=s+l}},a.prototype._unFilterType4=function(t,e,n){for(var r=this._xComparison,o=r-1,a=this._lastLine,s=0;so?e[s-r]:0,p=s>o&&a?a[s-r]:0,h=i(l,c,p);e[s]=u+h}},a.prototype._reverseFilterLine=function(t){var e,n=t[0],r=this._images[this._imageIndex],i=r.byteWidth;if(0===n)e=t.slice(1,i+1);else switch(e=new Buffer(i),n){case 1:this._unFilterType1(t,e,i);break;case 2:this._unFilterType2(t,e,i);break;case 3:this._unFilterType3(t,e,i);break;case 4:this._unFilterType4(t,e,i);break;default:throw new Error("Unrecognised filter type - "+n)}this.write(e),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=e,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},function(t,e,n){"use strict";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,o=e%8,a=(t-i)/8,s=(e-o)/8,u=0;u0&&p>0&&n.push({width:l,height:p,index:u})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var o=e%r[i].x.length,a=(e-o)/r[i].x.length*8+r[i].x[o],s=n%r[i].y.length;return 4*a+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n}},function(t,e,n){"use strict";var r=n(22),i=n(82),o=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};o.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(t){for(var e=r.PNG_SIGNATURE,n=0;nthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;e0?this._handleIDAT(n):this._handleChunkEnd()},o.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},o.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},function(t,e,n){"use strict";var r=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;r[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,n=0;n>>8;return-1^e}},function(t,e,n){"use strict";var r=n(79),i=[function(){},function(t,e,n,r){if(r===e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=255},function(t,e,n,r){if(r+1>=e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=e[r+1]},function(t,e,n,r){if(r+2>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=255},function(t,e,n,r){if(r+3>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3]}],o=[function(){},function(t,e,n,r){var i=e[0];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=r},function(t,e,n){var r=e[0];t[n]=r,t[n+1]=r,t[n+2]=r,t[n+3]=e[1]},function(t,e,n,r){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=r},function(t,e,n){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3]}];function a(t,e,n,r,o,a){for(var s=t.width,u=t.height,c=t.index,l=0;l>4,n.push(p,l);break;case 2:u=3&h,c=h>>2&3,l=h>>4&3,p=h>>6&3,n.push(p,l,c,u);break;case 1:i=1&h,o=h>>1&1,a=h>>2&1,s=h>>3&1,u=h>>4&1,c=h>>5&1,l=h>>6&1,p=h>>7&1,n.push(p,l,c,u,s,a,o,i)}}return{get:function(t){for(;n.length0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(17),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},e.buf2binstring=function(t){return u(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return u(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.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}},function(t,e){(function(){t.exports=function(){function t(t,e,n){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==n)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(this)},function(t,e){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,o;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{})n.call(i,r)&&(o=i[r],this[r]=o)}return t.prototype.eleName=function(t){return t=""+t||"",this.assertLegalChar(t)},t.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},t.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]>"),this.assertLegalChar(t)},t.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e;if(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/0?new Array(e).join(this.indent):""},t}()}).call(this)},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){"undefined"!=typeof process&&"renderer"===process.type?t.exports=n(226):t.exports=n(228)},function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?v(t,a,e,!1):D(t,a)):v(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=w?t=w:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(E,t):E(t))}function E(t){h("emit readable"),t.emit("readable"),O(t)}function D(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(S,t,e))}function S(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=u.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(M,e,t))}function M(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):k(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&I(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?A(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?c:_;function u(e,r){h("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),t.removeListener("close",m),t.removeListener("finish",b),t.removeListener("drain",l),t.removeListener("error",g),t.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",_),n.removeListener("data",d),p=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}function c(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",u);var l=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,O(t))}}(n);t.on("drain",l);var p=!1;var f=!1;function d(e){h("ondata"),f=!1,!1!==t.write(e)||f||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==P(i.pipes,t))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function g(e){h("onerror",e),_(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",b),_()}function b(){h("onfinish"),t.removeListener("close",m),_()}function _(){h("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",m),t.once("finish",b),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?setImmediate:r.nextTick;m.WritableState=g;var s=n(5);s.inherits=n(3);var u={deprecate:n(239)},c=n(99),l=n(44).Buffer,p=global.Uint8Array||function(){};var h,f=n(100);function d(){}function g(t,e){o=o||n(20),t=t||{};var s=e instanceof o;this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var u=t.highWaterMark,c=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:s&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===t.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),x(t,e))}(t,n,i,e,o);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),i?a(_,t,n,s,o):_(t,n,s,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(t){if(o=o||n(20),!(h.call(m,this)||this instanceof o))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function b(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function _(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),x(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,b(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,p=n.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,l,p),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)})}function x(t,e){var n=v(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}s.inherits(m,c),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):h=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,l.isBuffer(i)||i instanceof p);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=d),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),r.nextTick(i,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=f.destroy,m.prototype._undestroy=f.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}},function(t,e,n){"use strict";var r=n(44).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=p,e=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=a;var r=n(20),i=n(5);function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&o){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||o||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(o.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,o=e.length,a=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(s)n=r.shift();else if(!t||t>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},l.prototype._read=function(t){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:l;function s(t){t===n&&l()}function u(){t.end()}i.endEmitted?process.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function l(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",l),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===o.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},l.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i>a.SHORT_SHIFT&a.SHORT_MASK&a.MODE_MASK},u.prototype.getVersionNeededToExtract=function(){return this.minver},u.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},u.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},u.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},u.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},u.prototype.setExtra=function(t){this.extra=t},u.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof o))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},u.prototype.setInternalAttributes=function(t){this.inattr=t},u.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},u.prototype.setName=function(t){t=t.replace(/\\/g,"/").replace(/:/g,"").replace(/^\/+/,""),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},u.prototype.setPlatform=function(t){this.platform=t},u.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},u.prototype.setTime=function(t){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=s.dateToDos(t)},u.prototype.setUnixMode=function(t){t&=~a.S_IFDIR;var e=0;this.isDirectory()||(t|=a.S_IFREG),e&=~this.getExternalAttributes(),e|=t<0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&o){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||o||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(o.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,o=e.length,a=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(s)n=r.shift();else if(!t||t>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},l.prototype._read=function(t){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:l;function s(t){t===n&&l()}function u(){t.end()}i.endEmitted?process.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function l(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",l),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===o.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},l.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&o){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||o||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(o.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,o=e.length,a=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(s)n=r.shift();else if(!t||t>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},l.prototype._read=function(t){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:l;function s(t){t===n&&l()}function u(){t.end()}i.endEmitted?process.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function l(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",l),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===o.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},l.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&o){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||o||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(o.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,o=e.length,a=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(s)n=r.shift();else if(!t||t>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},l.prototype._read=function(t){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:l;function s(t){t===n&&l()}function u(){t.end()}i.endEmitted?process.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function l(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",l),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===o.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},l.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i=r?r:n>=0?n:(n+=r)>=0?n:0)).toString(),8);var n,r,o},u=function(t,e,n){return t.slice(e,i(t,0,e,e+n)).toString()},c=function(t){var e=Buffer.byteLength(t),n=Math.floor(Math.log(e)/Math.log(10))+1;return e+n>Math.pow(10,n)&&n++,e+n+t};e.encodePax=function(t){var e="";return t.name&&(e+=c(" path="+t.name+"\n")),t.linkname&&(e+=c(" linkpath="+t.linkname+"\n")),new Buffer(e)},e.decodePax=function(t){for(var e={};t.length;){for(var n=0;n100;){var s=r.indexOf("/");if(-1===s)return null;i+=i?"/"+r.slice(0,s):r.slice(0,s),r=r.slice(s+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(i)>155?null:t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(r),e.write(a(4095&t.mode,6),100),e.write(a(t.uid,6),108),e.write(a(t.gid,6),116),e.write(a(t.size,11),124),e.write(a(t.mtime.getTime()/1e3|0,11),136),e[156]=n+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&e.write(t.linkname,157),e.write("ustar\x0000",257),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(a(t.devmajor||0,6),329),e.write(a(t.devminor||0,6),337),i&&e.write(i,345),e.write(a(o(e),6),148),e)},e.decode=function(t){var e=0===t[156]?0:t[156]-n,i=(r(e),u(t,0,100)),a=s(t,100),c=s(t,108),l=s(t,116),p=s(t,124),h=s(t,136),f=0===t[157]?null:u(t,157,100),d=u(t,265,32),g=u(t,297,32),m=s(t,329),b=s(t,337);t[345]&&(i=u(t,345,155)+"/"+i);var _=o(t);if(256===_)return null;if(_!==s(t,148))throw new Error("invalid header");return{name:i,mode:a,uid:c,gid:l,size:p,mtime:new Date(1e3*h),type:r(e),linkname:f,uname:d,gname:g,devmajor:m,devminor:b}}},function(t,e,n){t.exports=p;var r=n(284),i=n(8).Buffer;p.ReadableState=l;var o=n(9).EventEmitter;o.listenerCount||(o.listenerCount=function(t,e){return t.listeners(e).length});var a,s=n(4),u=n(5);u.inherits=n(3);var c=n(6);function l(t,e){var r=n(21),i=(t=t||{}).highWaterMark,o=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,e instanceof r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=n(10).StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function p(t){n(21);if(!(this instanceof p))return new p(t);this._readableState=new l(t,this),this.readable=!0,s.call(this)}function h(t,e,n,r,i){var o=function(t,e){var n=null;u.isBuffer(e)||u.isString(e)||u.isNullOrUndefined(e)||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(e,n);if(o)t.emit("error",o);else if(u.isNullOrUndefined(n))e.reading=!1,e.ended||function(t,e){if(e.decoder&&!e.ended){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,g(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!i){var a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&i){a=new Error("stream.unshift() after end event");t.emit("error",a)}else!e.decoder||i||r||(n=e.decoder.write(n)),i||(e.reading=!1),e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&g(t)),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=f)t=f;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function g(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?process.nextTick(function(){m(t)}):m(t))}function m(t){c("emit readable"),t.emit("readable"),b(t)}function b(t){var e=t._readableState;if(c("flow",e.flowing),e.flowing)do{var n=t.read()}while(null!==n&&e.flowing)}function _(t,e){var n,r=e.buffer,o=e.length,a=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(s)n=r.shift();else if(!t||t>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");e.endEmitted||(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}p.prototype.read=function(t){c("read",t);var e=this._readableState,n=t;if((!u.isNumber(t)||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?y(this):g(this),null;if(0===(t=d(t,e))&&e.ended)return 0===e.length&&y(this),null;var r,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t0?_(t,e):null,u.isNull(r)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),n!==t&&e.ended&&0===e.length&&y(this),u.isNull(r)||this.emit("data",r),r},p.prototype._read=function(t){this.emit("error",new Error("not implemented"))},p.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:p;function s(t){c("onunpipe"),t===n&&p()}function u(){c("onend"),t.end()}i.endEmitted?process.nextTick(a):n.once("end",a),t.on("unpipe",s);var l=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o.listenerCount(t,"data")&&(e.flowing=!0,b(t))}}(n);function p(){c("cleanup"),t.removeListener("close",d),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",p),n.removeListener("data",h),!i.awaitDrain||t._writableState&&!t._writableState.needDrain||l()}function h(e){c("ondata"),!1===t.write(e)&&(c("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,n.pause())}function f(e){c("onerror",e),m(),t.removeListener("error",f),0===o.listenerCount(t,"error")&&t.emit("error",e)}function d(){t.removeListener("finish",g),m()}function g(){c("onfinish"),t.removeListener("close",d),m()}function m(){c("unpipe"),n.unpipe(t)}return t.on("drain",l),n.on("data",h),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(f):t._events.error=[f,t._events.error]:t.on("error",f),t.once("close",d),t.once("finish",g),t.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),t},p.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i1){for(var n=[],r=0;r0&&_++,b>2)return!1;s&&(Ew&&(w=E,l=x,p=k))}return!s||0!==y&&0!==_&&(!r(t,u,c,o,a)&&!r(s,u,c,o,a)||!r(t,l,p,o,a)&&!r(s,l,p,o,a))}function i(t,e,n,r,i){var c=t[n+3]/255,l=e[r+3]/255,p=u(t[n+0],c),h=u(t[n+1],c),f=u(t[n+2],c),d=u(e[r+0],l),g=u(e[r+1],l),m=u(e[r+2],l),b=o(p,h,f)-o(d,g,m);if(i)return b;var _=a(p,h,f)-a(d,g,m),y=s(p,h,f)-s(d,g,m);return.5053*b*b+.299*_*_+.1957*y*y}function o(t,e,n){return.29889531*t+.58662247*e+.11448223*n}function a(t,e,n){return.59597799*t-.2741761*e-.32180189*n}function s(t,e,n){return.21147017*t-.52261711*e+.31114694*n}function u(t,e){return 255+(t-255)*e}function c(t,e,n,r,i){t[e+0]=n,t[e+1]=r,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,n,a,s,l){l||(l={});for(var p=void 0===l.threshold?.1:l.threshold,h=35215*p*p,f=0,d=0;dh)l.includeAA||!r(t,g,d,a,s,e)&&!r(e,g,d,a,s,t)?(n&&c(n,m,255,0,0),f++):n&&c(n,m,255,255,0);else if(n){var _=u((w=void 0,x=void 0,k=void 0,E=void 0,w=(y=t)[(v=m)+3]/255,x=u(y[v+0],w),k=u(y[v+1],w),E=u(y[v+2],w),o(x,k,E)),.1);c(n,m,_,_,_)}}var y,v,w,x,k,E;return f}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e[...t].map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),o=r("[Content_Types].xml"),a=r("_rels/.rels");t.exports=t=>{const e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rn(r(t),e);if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])){if(n([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(n(i,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(s("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(s("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const t=(t,e=0)=>t.findIndex((t,n,r)=>n>=e&&80===r[n]&&75===r[n+1]&&3===r[n+2]&&4===r[n+3]);let r=0,u=!1,c=null;do{const i=r+30;if(u||(u=n(o,{offset:i})||n(a,{offset:i})),c||(s("word/",{offset:i})?c={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:s("ppt/",{offset:i})?c={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:s("xl/",{offset:i})&&(c={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),u&&c)return c;r=t(e,i)}while(r>=0);if(c)return c}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>[...n].every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(n([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let t=0;t<2&&t>=u,l-=u,m!==o){if(m===a)break;for(var b=mo;)y=d[y]>>8,++_;var v=y;if(h+_+(b!==m?1:0)>r)return void console.log("Warning, gif stream longer than expected.");n[h++]=v;var w=h+=_;for(b!==m&&(n[h++]=v),y=b;_--;)y=d[y],n[--w]=255&y,y>>=8;null!==g&&s<4096&&(d[s++]=g<<8|v,s>=c+1&&u<12&&(++u,c=c<<1|1)),g=m}else s=a+1,c=(1<<(u=i+1))-1,g=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||e>65535||n>65535)throw new Error("Width/Height invalid.");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,c=0;if(null!==a){for(var l=s(a);l>>=1;)++u;if(l=1<=l)throw new Error("Background index out of range.");if(0===c)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|u,t[i++]=c,t[i++]=0,null!==a)for(var p=0,h=a.length;p>16&255,t[i++]=f>>8&255,t[i++]=255&f}if(null!==o){if(o<0||o>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,n,r,o,u,c){if(!0===d&&(--i,d=!1),c=void 0===c?{}:c,e<0||n<0||e>65535||n>65535)throw new Error("x/y invalid.");if(r<=0||o<=0||r>65535||o>65535)throw new Error("Width/Height invalid.");if(u.length>=1;)++f;h=1<3)throw new Error("Disposal out of range.");var b=!1,_=0;if(void 0!==c.transparent&&null!==c.transparent&&(b=!0,(_=c.transparent)<0||_>=h))throw new Error("Transparent color index.");if((0!==m||b||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===b?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=_,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===l?128|f-1:0,!0===l)for(var y=0,v=p.length;y>16&255,t[i++]=w>>8&255,t[i++]=255&w}return i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<=n;)t[e++]=255&p,p>>=8,l-=8,e===i+256&&(t[i]=255,i=e++)}function f(t){p|=t<=8;)t[e++]=255&p,p>>=8,l-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(f(o),u=s+1,c=n+1,g={}):(u>=1<>7,s=1<<1+(7&o);t[e++],t[e++];var u=null,c=null;a&&(u=e,c=s,e+=3*s);var l=!0,p=[],h=0,f=null,d=0,g=null;for(this.width=n,this.height=i;l&&e=0))throw Error("Invalid block size");if(0===T)break;e+=T}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];h=t[e++]|t[e++]<<8,f=t[e++],0==(1&m)&&(f=null),d=m>>2&7,e++;break;case 254:for(;;){if(!((T=t[e++])>=0))throw Error("Invalid block size");if(0===T)break;e+=T}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var b=t[e++]|t[e++]<<8,_=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,k=1<<1+(7&w),E=u,D=c,S=!1;w>>7&&(S=!0,E=e,D=k,e+=3*k);var C=e;for(e++;;){var T;if(!((T=t[e++])>=0))throw Error("Invalid block size");if(0===T)break;e+=T}p.push({x:b,y:_,width:y,height:v,has_local_palette:S,palette_offset:E,palette_size:D,data_offset:C,data_length:e-C,transparent_index:f,interlaced:!!x,delay:h,disposal:d});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return g},this.frameInfo=function(t){if(t<0||t>=p.length)throw new Error("Frame index out of range.");return p[t]},this.decodeAndBlitFrameBGRA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var l=o.width,p=n-l,h=l,f=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=f,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var b=8,_=0,y=s.length;_=d&&(m=4*p+4*n*(b-1),g=f+(l+p)*(b<<1),b>>=1)),v===c)g+=4;else{var w=t[u+3*v],x=t[u+3*v+1],k=t[u+3*v+2];i[g++]=k,i[g++]=x,i[g++]=w,i[g++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,i){var o=this.frameInfo(e),a=o.width*o.height,s=new Uint8Array(a);r(t,o.data_offset,s,a);var u=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var l=o.width,p=n-l,h=l,f=4*(o.y*n+o.x),d=4*((o.y+o.height)*n+o.x),g=f,m=4*p;!0===o.interlaced&&(m+=4*n*7);for(var b=8,_=0,y=s.length;_=d&&(m=4*p+4*n*(b-1),g=f+(l+p)*(b<<1),b>>=1)),v===c)g+=4;else{var w=t[u+3*v],x=t[u+3*v+1],k=t[u+3*v+2];i[g++]=w,i[g++]=x,i[g++]=k,i[g++]=255}--h}}}}catch(t){}},function(t,e){function n(t,e,n,r,i,o,a){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(n)||0),this.targetHeight=Math.abs(Math.floor(r)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(o),this.resizeCallback="function"==typeof a?a:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var n,r,i=e?4:3,o=this.ratioWeightWidthPass,a=this.widthBuffer,s=0,u=0,c=0,l=0,p=0;for(n=0;s<1/3;n+=i,s+=o)for(u=n,c=0;u=p)){f+=l;break}f=h+=n,l-=p}while(l>0&&h=u)){l+=s;break}l=c=f,s-=u}while(s>0&&c3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(2),i=n.n(r),o=n(136),a=n.n(o),s=n(0),u=n(19);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&i.height>0){var o=e.pages[i.page];t.blit(o,n+i.xoffset,r+i.yoffset,i.x,i.y,i.width,i.height)}return t}var h=process.env.DIRNAME||"".concat(t,"/../");e.a=function(){return{constants:{measureText:u.a,measureTextHeight:u.b,FONT_SANS_8_BLACK:i.a.join(h,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:i.a.join(h,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:i.a.join(h,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:i.a.join(h,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:i.a.join(h,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:i.a.join(h,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:i.a.join(h,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:i.a.join(h,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:i.a.join(h,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:i.a.join(h,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:i.a.join(h,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:i.a.join(h,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:i.a.join(h,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(t,e){var n=this;return"string"!=typeof t?s.c.call(this,"file must be a string",e):new Promise(function(r,o){e=e||function(t,e){t?o(t):r(e)},a()(t,function(r,o){var a={},u={};if(r)return s.c.call(n,r,e);for(var c=0;ca&&(a=s),o.push(e)):(i.push(o),o=[e])}),i.push(o),{lines:i,longestLine:a}}(t,r,i),b=m.lines,_=m.longestLine;return b.forEach(function(r){var o=r.join(" "),a=function(t,e,n,r,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(r-Object(u.a)(e,n))/2:r-Object(u.a)(e,n)}(d.constructor,t,o,i,h);(function(t,e,n,r,i){for(var o=0;o>2,a=(31&t[e])<<3,s=128&t[e+1]):console.error("cant transform to Pixel"),this.pixels[n]=i,this.pixels[n+1]=o,this.pixels[n+2]=a,this.pixels[n+3]=s}readPixels(){r("readPixels");var t=this.header,e=(t.bytesPerPixel,t.width*t.height),n=new Uint8Array(this.buffer);this.pixels=new Uint8Array(4*e);for(var i=18,o=0;o>16&65535,h=40960==(61440&p),f=16384==(61440&p);f||"/"!==t.fileName.slice(-1)||(f=!0);var d=t.versionMadeBy>>8;f||(f=0===d&&16===t.externalFileAttributes),0===p&&(f?(e.defaultDirMode&&(p=parseInt(e.defaultDirMode,10)),p||(p=493)):(e.defaultFileMode&&(p=parseInt(e.defaultFileMode,10)),p||(p=420))),u("extracting entry",{filename:t.fileName,isDir:f,isSymlink:h});var g=~process.umask(),m=p&g,b=l;f||(b=i.dirname(l)),u("mkdirp",{dir:b}),a(b,function(e){return e?(u("mkdirp error",b,{error:e}),c=!0,n(e)):f?n():(u("opening read stream",l),void o.openReadStream(t,function(t,e){if(t)return u("openReadStream error",t),c=!0,n(t);e.on("error",function(t){console.log("read err",t)}),h?e.pipe(s(function(t){var e=t.toString();u("creating symlink",e,l),r.symlink(e,l,function(t){t&&(c=!0),n(t)})})):function(){var t=r.createWriteStream(l,{mode:m});e.pipe(t),t.on("finish",function(){n()}),t.on("error",function(t){return u("write error",{error:t}),c=!0,n(t)})}()}))})}(t,function(e){if(e)return c=!0,o.close(),n(e);u("finished processing",t.fileName),o.readEntry()})})})}})})})})}},function(t,e,n){var r=n(7),i=n(243);t.exports=function(t,e,n){var o=r.createWriteStream(e),a=i("zip");o.on("close",function(){n()}),a.pipe(o),a.bulk([{cwd:t,src:["**/*"],expand:!0}]),a.finalize(function(t,e){t&&n(t)})}},function(t,e,n){var r=n(141),i=function(){},o=function(t,e,n){if("function"==typeof e)return o(t,null,e);e||(e={}),n=r(n||i);var a=t._writableState,s=t._readableState,u=e.readable||!1!==e.readable&&t.readable,c=e.writable||!1!==e.writable&&t.writable,l=function(){t.writable||p()},p=function(){c=!1,u||n.call(t)},h=function(){u=!1,c||n.call(t)},f=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},d=function(e){n.call(t,e)},g=function(){return(!u||s&&s.ended)&&(!c||a&&a.ended)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",p)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?c&&!a&&(t.on("end",l),t.on("close",l)):(t.on("complete",p),t.on("abort",g),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",f),t.on("end",h),t.on("finish",p),!1!==e.error&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",p),t.removeListener("exit",f),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",g)}};t.exports=o},function(t,e,n){var r=n(287);function i(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function o(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}t.exports=r(i),t.exports.strict=r(o),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},function(t,e,n){"use strict";function r(t){this.name="YError",this.message=t||"yargs error",Error.captureStackTrace(this,r)}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.exports=r},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"AUTO",function(){return R}),n.d(r,"HORIZONTAL_ALIGN_LEFT",function(){return N}),n.d(r,"HORIZONTAL_ALIGN_CENTER",function(){return z}),n.d(r,"HORIZONTAL_ALIGN_RIGHT",function(){return U}),n.d(r,"VERTICAL_ALIGN_TOP",function(){return W}),n.d(r,"VERTICAL_ALIGN_MIDDLE",function(){return G}),n.d(r,"VERTICAL_ALIGN_BOTTOM",function(){return H}),n.d(r,"BLEND_SOURCE_OVER",function(){return $}),n.d(r,"BLEND_DESTINATION_OVER",function(){return q}),n.d(r,"BLEND_MULTIPLY",function(){return Y}),n.d(r,"BLEND_SCREEN",function(){return V}),n.d(r,"BLEND_OVERLAY",function(){return Z}),n.d(r,"BLEND_DARKEN",function(){return X}),n.d(r,"BLEND_LIGHTEN",function(){return J}),n.d(r,"BLEND_HARDLIGHT",function(){return Q}),n.d(r,"BLEND_DIFFERENCE",function(){return K}),n.d(r,"BLEND_EXCLUSION",function(){return tt}),n.d(r,"EDGE_EXTEND",function(){return et}),n.d(r,"EDGE_WRAP",function(){return nt}),n.d(r,"EDGE_CROP",function(){return rt});var i={};n.r(i),n.d(i,"srcOver",function(){return it}),n.d(i,"dstOver",function(){return ot}),n.d(i,"multiply",function(){return at}),n.d(i,"screen",function(){return st}),n.d(i,"overlay",function(){return ut}),n.d(i,"darken",function(){return ct}),n.d(i,"lighten",function(){return lt}),n.d(i,"hardLight",function(){return pt}),n.d(i,"difference",function(){return ht}),n.d(i,"exclusion",function(){return ft});var o=class extends Error{};var a=class extends o{};class s{constructor(t,e){if(this.constructor===s)throw new a("Can't instantiate abstract class!");this.path=t,this.temp=e}async input(){}async name(){}}var u=s;var c=class extends o{};class l{constructor(t,e,n=[]){if(this.constructor===l)throw new c("Can't instantiate abstract class!");this.path=t,this.input=e,this.data=n}async convert(){}async*getData(){}}var p=l,h=n(1),f=n.n(h),d=n(2),g=n.n(d);var m=class extends o{};class b{static fromPath(t,e){return g.a.join(e,t)}static log(t){b.verbose&&console.log(t)}static setVerbose(t=!0){b.verbose=t}static toPath(t,e,n){return t.startsWith("./")?g.a.join(g.a.dirname(e),t.substr(2)):g.a.join(n,t)}constructor(){throw new m("Can't instantiate this class!")}}b.verbose=!0;var _=b;var y=class extends p{async convert(){for await(const t of this.getData()){const e=_.fromPath(t,this.path);f.a.existsSync(e)&&(_.log(`Delete ${t}`),await f.a.remove(e))}return[]}async*getData(){const t=["assets","textures/blocks/conduit.png","textures/entity/conduit/break_particle.png","textures/blocks/dried_kelp_bottom.png","textures/blocks/water_overlay.png","textures/entity/cat/cat_collar.png","textures/entity/wolf/wolf_collar.png","bedrock_textures"];for(const e of t)yield e}};var v=class extends y{async*getData(){for(const t of this.data)yield t}},w=n(7),x=n.n(w),k=n(9),E=n.n(k),D=n(0),S=n(25),C=n.n(S),T=n(62),O=n.n(T),A=n(129),I=n.n(A),M=n(24),P=n.n(M),L=n(26),B=n.n(L),j=n(130),F=n.n(j),R=-1,N=1,z=2,U=4,W=8,G=16,H=32,$="srcOver",q="dstOver",Y="multiply",V="screen",Z="overlay",X="darken",J="lighten",Q="hardLight",K="difference",tt="exclusion",et=1,nt=2,rt=3;function it(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/r,g:(t.g*t.a+e.g*e.a*(1-t.a))/r,b:(t.b*t.a+e.b*e.a*(1-t.a))/r,a:r}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/r,g:(e.g*e.a+t.g*t.a*(1-e.a))/r,b:(e.b*e.a+t.b*t.a*(1-e.a))/r,a:r}}function at(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*u+o*(1-e.a)+u*(1-t.a))/r,b:(a*c+a*(1-e.a)+c*(1-t.a))/r,a:r}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+u*t.a-o*u+o*(1-e.a)+u*(1-t.a))/r,b:(a*e.a+c*t.a-a*c+a*(1-e.a)+c*(1-t.a))/r,a:r}}function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*u<=e.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/r,b:(2*c<=e.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/r,a:r}}function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.min(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/r,b:(Math.min(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/r,a:r}}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.max(o*e.a,u*t.a)+o*(1-e.a)+u*(1-t.a))/r,b:(Math.max(a*e.a,c*t.a)+a*(1-e.a)+c*(1-t.a))/r,a:r}}function pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*o<=t.a?2*o*u+o*(1-e.a)+u*(1-t.a):o*(1+e.a)+u*(1+t.a)-2*u*o-e.a*t.a)/r,b:(2*a<=t.a?2*a*c+a*(1-e.a)+c*(1-t.a):a*(1+e.a)+c*(1+t.a)-2*c*a-e.a*t.a)/r,a:r}}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/r,g:(o+u-2*Math.min(o*e.a,u*t.a))/r,b:(a+c-2*Math.min(a*e.a,c*t.a))/r,a:r}}function ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,o=t.g*t.a,a=t.b*t.a,s=e.r*e.a,u=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/r,g:(o*e.a+u*t.a-2*o*u+o*(1-e.a)+u*(1-t.a))/r,b:(a*e.a+c*t.a-2*a*c+a*(1-e.a)+c*(1-t.a))/r,a:r}}var dt=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i"));this._originalMime=r.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return D.c.call(this,"Unsupported MIME type: "+i,n);this.bitmap=this.constructor.decoders[i](t)}catch(t){return n.call(this,t,this)}try{this._exif=wt.a.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return n.call(this,null,this),this}function kt(t,e){if(t===R&&(t=this.getMIME()),"string"!=typeof t)return D.c.call(this,"mime must be a string",e);if("function"!=typeof e)return D.c.call(this,"cb must be a function",e);var n,r;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=Buffer.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,r=this,new n(r.bitmap.width,r.bitmap.height,r._background).composite(r,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}function Et(t){return dt(kt,this,t)}function Dt(t,e,n){return(Dt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&At(i,n.prototype),i}).apply(null,arguments)}function St(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ct(t,e){for(var n=0;n (HTTP: "+r.statusCode+")";return new Error(o)})}var zt,Ut={data:null,width:null,height:null},Wt=function(t){function e(){for(var t,n=arguments.length,r=new Array(n),i=0;i-1&&(r[0]=function(t){for(var e=Buffer.alloc(t.byteLength),n=new Uint8Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit("any",n),t&&this.emit(t,n),this.emit(e,n)}},{key:"emitError",value:function(t,e){this.emitMulti(t,"error",e)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return""}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||e.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return(gt[t.toLowerCase()]||[])[0]}},{key:"write",value:function(t,e){var n=this;if(!x.a||!x.a.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return D.c.call(this,"path must be a string",e);if(void 0===e&&(e=Rt),"function"!=typeof e)return D.c.call(this,"cb must be a function",e);var r=bt(t)||this.getMIME(),i=g.a.parse(t);return i.dir&&O.a.sync(i.dir),this.getBuffer(r,function(r,i){if(r)return D.c.call(n,r,e);var o=x.a.createWriteStream(t);o.on("open",function(){o.write(i),o.end()}).on("error",function(t){return D.c.call(n,t,e)}),o.on("finish",function(){e.call(n,null,n)})}),this}},{key:"getBase64",value:function(t,n){return t===e.AUTO&&(t=this.getMIME()),"string"!=typeof t?D.c.call(this,"mime must be a string",n):"function"!=typeof n?D.c.call(this,"cb must be a function",n):(this.getBuffer(t,function(e,r){if(e)return D.c.call(this,e,n);var i="data:"+t+";base64,"+r.toString("base64");n.call(this,null,i)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return D.c.call(this,"base must be a number",e);if(t<2||t>64)return D.c.call(this,"base must be a number between 2 and 64",e);var n=this.pHash();for(n=C()(C.a.BIN,Lt.slice(0,t))(n);n.length=this.bitmap.width&&(o=this.bitmap.width-1),n<0&&(a=0),n>=this.bitmap.height&&(a=this.bitmap.height-1)),r===e.EDGE_WRAP&&(t<0&&(o=this.bitmap.width+t),t>=this.bitmap.width&&(o=t%this.bitmap.width),n<0&&(o=this.bitmap.height+n),n>=this.bitmap.height&&(a=n%this.bitmap.height));var s=this.bitmap.width*a+o<<2;return(o<0||o>=this.bitmap.width)&&(s=-1),(a<0||a>=this.bitmap.height)&&(s=-1),Object(D.a)(i)&&i.call(this,null,s),s}},{key:"getPixelColor",value:function(t,e,n){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",n);t=Math.round(t),e=Math.round(e);var r=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(r);return Object(D.a)(n)&&n.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,n,r){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof n)return D.c.call(this,"hex, x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.getPixelIndex(e,n);return this.bitmap.data.writeUInt32BE(t,i),Object(D.a)(r)&&r.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Wt;Object.entries(t).forEach(function(t){var n=St(t,2),r=n[0],i=n[1];e[r]=i})}function Ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wt;Object.entries(t).forEach(function(t){var n=St(t,2),r=n[0],i=n[1];e.prototype[r]=i})}function $t(t,e,n){var r="before-"+e,i=e.replace(/e$/,"")+"ed";Wt.prototype[t]=function(){for(var e,o=arguments.length,a=new Array(o),s=0;s3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if("function"==typeof r&&(o=r,r={}),!(t instanceof this.constructor))return D.c.call(this,"The source must be a Jimp image",o);if("number"!=typeof e||"number"!=typeof n)return D.c.call(this,"x and y must be numbers",o);var a=r,s=a.mode,u=a.opacitySource,c=a.opacityDest;s||(s=$),("number"!=typeof u||u<0||u>1)&&(u=1),("number"!=typeof c||c<0||c>1)&&(c=1);var l=i[s];e=Math.round(e),n=Math.round(n);var p=this;return 1!==c&&p.opacity(c),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,i){var o=p.getPixelIndex(e+t,n+r,rt),a=l({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[o+0]/255,g:p.bitmap.data[o+1]/255,b:p.bitmap.data[o+2]/255,a:p.bitmap.data[o+3]/255},u);p.bitmap.data[o+0]=this.constructor.limit255(255*a.r),p.bitmap.data[o+1]=this.constructor.limit255(255*a.g),p.bitmap.data[o+2]=this.constructor.limit255(255*a.b),p.bitmap.data[o+3]=this.constructor.limit255(255*a.a)}),Object(D.a)(o)&&o.call(this,null,this),this}}),Wt.__extraConstructors=[],Wt.appendConstructorOption=function(t,e,n){Wt.__extraConstructors.push({name:t,test:e,run:n})},Wt.read=function(){for(var t=arguments.length,e=new Array(t),n=0;n255)return D.c.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&D.c.call(this,"g must be between 0 and 255",i),n<0||n>255)return D.c.call(this,"b must be between 0 and 255",i);if(r<0||r>255)return D.c.call(this,"a must be between 0 and 255",i);t=Math.round(t),n=Math.round(n),e=Math.round(e),r=Math.round(r);var o=t*Math.pow(256,3)+e*Math.pow(256,2)+n*Math.pow(256,1)+r*Math.pow(256,0);return Object(D.a)(i)&&i.call(this,null,o),o},Wt.intToRGBA=function(t,e){if("number"!=typeof t)return D.c.call(this,"i must be a number",e);var n={};return n.r=Math.floor(t/Math.pow(256,3)),n.g=Math.floor((t-n.r*Math.pow(256,3))/Math.pow(256,2)),n.b=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2))/Math.pow(256,1)),n.a=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2)-n.b*Math.pow(256,1))/Math.pow(256,0)),Object(D.a)(e)&&e.call(this,null,n),n},Wt.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt(P()(t).toHex8(),16)},Wt.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},Wt.diff=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof Wt&&e instanceof Wt))return D.c.call(this,"img1 and img2 must be an Jimp images");var r=t.bitmap,i=e.bitmap;if(r.width===i.width&&r.height===i.height||(r.width*r.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(r.width,r.height)),"number"!=typeof n||n<0||n>1)return D.c.call(this,"threshold must be a number between 0 and 1");var o=new Wt(r.width,r.height,4294967295);return{percent:I()(r.data,i.data,o.bitmap.data,o.bitmap.width,o.bitmap.height,{threshold:n})/(o.bitmap.width*o.bitmap.height),image:o}},Wt.distance=function(t,e){var n=new B.a,r=n.getHash(t),i=n.getHash(e);return n.distance(r,i)},Wt.compareHashes=function(t,e){return(new B.a).distance(t,e)},Wt.colorDiff=function(t,e){var n=function(t){return Math.pow(t,2)},r=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(r(n(t.r-e.r),n(t.r-e.r-t.a+e.a))+r(n(t.g-e.g),n(t.g-e.g-t.a+e.a))+r(n(t.b-e.b),n(t.b-e.b-t.a+e.a)))/195075},$t("clone","clone",function(t){var e=new Wt(this);return Object(D.a)(t)&&t.call(e,null,e),e}),qt("background",function(t,e){return"number"!=typeof t?D.c.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,Object(D.a)(e)&&e.call(this,null,this),this)}),qt("scan",function(t,e,n,r,i,o){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",o);if("number"!=typeof n||"number"!=typeof r)return D.c.call(this,"w and h must be numbers",o);if("function"!=typeof i)return D.c.call(this,"f must be a function",o);var a=Object(D.b)(this,t,e,n,r,i);return Object(D.a)(o)&&o.call(this,null,a),a}),"BROWSER"===process.env.ENVIRONMENT)&&("undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":Pt(window))&&(zt=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":Pt(self))&&(zt=self),zt.Jimp=Wt,zt.Buffer=Buffer);var Yt=Wt;function Vt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function Se(t,e){var n=this;return t&&Array.isArray(t)?(t=t.map(function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=P()(t.params[0]).toRgb()),t}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(r,i,o){var a={r:n.bitmap.data[o],g:n.bitmap.data[o+1],b:n.bitmap.data[o+2]},s=function(t,e){return n.constructor.limit255(a[t]+e)};t.forEach(function(t){if("mix"===t.apply)a=De(a,t.params[0],t.params[1]);else if("tint"===t.apply)a=De(a,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)a=De(a,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)a={r:a.r^t.params[0].r,g:a.g^t.params[0].g,b:a.b^t.params[0].b};else if("red"===t.apply)a.r=s("r",t.params[0]);else if("green"===t.apply)a.g=s("g",t.params[0]);else if("blue"===t.apply)a.b=s("b",t.params[0]);else{var r;if("hue"===t.apply&&(t.apply="spin"),!(a=P()(a))[t.apply])return D.c.call(n,"action "+t.apply+" not supported",e);a=(r=a)[t.apply].apply(r,we(t.params)).toRgb()}}),n.bitmap.data[o]=a.r,n.bitmap.data[o+1]=a.g,n.bitmap.data[o+2]=a.b}),Object(D.a)(e)&&e.call(this,null,this),this):D.c.call(this,"actions must be an array",e)}var Ce=n(135),Te=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],Oe=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function Ae(t){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ie=function(t,e,n){return 255*(t-e)/(n-e)},Me=function(t){return[t.findIndex(function(t){return t>0}),255-t.slice().reverse().findIndex(function(t){return t>0})]};function Pe(t,e,n){if("boolean"!=typeof t||"boolean"!=typeof e)return D.c.call(this,"horizontal and vertical must be Booleans",n);if(t&&e)return this.rotate(180,!0,n);var r=Buffer.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t?this.bitmap.width-1-n:n,s=e?this.bitmap.height-1-i:i,u=this.bitmap.width*s+a<<2,c=this.bitmap.data.readUInt32BE(o);r.writeUInt32BE(c,u)}),this.bitmap.data=Buffer.from(r),Object(D.a)(n)&&n.call(this,null,this),this}function Le(t){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Be(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0&&p>=0&&u-s>0&&c-p>0){var h=l.getPixelIndex(s,p),f={r:this.bitmap.data[a],g:this.bitmap.data[a+1],b:this.bitmap.data[a+2],a:this.bitmap.data[a+3]},d={r:l.bitmap.data[h],g:l.bitmap.data[h+1],b:l.bitmap.data[h+2],a:l.bitmap.data[h+3]};l.bitmap.data[h]=(f.a*(f.r-d.r)-d.r+255>>8)+d.r,l.bitmap.data[h+1]=(f.a*(f.g-d.g)-d.g+255>>8)+d.g,l.bitmap.data[h+2]=(f.a*(f.b-d.b)-d.b+255>>8)+d.b,l.bitmap.data[h+3]=this.constructor.limit255(d.a+f.a)}}),Object(D.a)(s)&&s.call(this,null,this),this}}},function(){return{rotate:function(t,e,n){return null==e&&(e=!0),"function"==typeof e&&void 0===n&&(n=e,e=!0),"number"!=typeof t?D.c.call(this,"deg must be a number",n):"boolean"!=typeof e&&"string"!=typeof e?D.c.call(this,"mode must be a boolean or a string",n):(function(t,e){var n=(t%=360)*Math.PI/180,r=Math.cos(n),i=Math.sin(n),o=this.bitmap.width,a=this.bitmap.height;if(!0===e||"string"==typeof e){(o=Math.ceil(Math.abs(this.bitmap.width*r)+Math.abs(this.bitmap.height*i))+1)%2!=0&&o++,(a=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*r))+1)%2!=0&&a++;var s=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)});var u=Math.max(o,a,this.bitmap.width,this.bitmap.height);this.resize(u,u,e),this.blit(s,this.bitmap.width/2-s.bitmap.width/2,this.bitmap.height/2-s.bitmap.height/2)}var c=this.bitmap.width,l=this.bitmap.height,p=Buffer.alloc(this.bitmap.data.length);function h(t,e){return function(n,r){return{x:n+t,y:r+e}}}for(var f=h(-c/2,-l/2),d=h(c/2+.5,l/2+.5),g=1;g<=l;g++)for(var m=1;m<=c;m++){var b=f(m,g),_=d(r*b.x-i*b.y,r*b.y+i*b.x),y=c*(g-1)+m-1<<2;if(_.x>=0&&_.x=0&&_.y1?D.c.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t<0?(this.bitmap.data[r]=this.bitmap.data[r]*(1+t),this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+t),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+t)):(this.bitmap.data[r]=this.bitmap.data[r]+(255-this.bitmap.data[r])*t,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*t,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*t)}),Object(D.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return D.c.call(this,"val must be numbers",e);if(t<-1||t>1)return D.c.call(this,"val must be a number between -1 and +1",e);var n=(t+1)/(1-t);function r(t){return(t=Math.floor(n*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=r(this.bitmap.data[n]),this.bitmap.data[n+1]=r(this.bitmap.data[n+1]),this.bitmap.data[n+2]=r(this.bitmap.data[n+2])}),Object(D.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(t-1))/(t-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(t-1))/(t-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(t-1))/(t-1)*255}),Object(D.a)(e)&&e.call(this,null,this),this)},greyscale:Ee,grayscale:Ee,opacity:function(t,e){return"number"!=typeof t?D.c.call(this,"f must be a number",e):t<0||t>1?D.c.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){var i=this.bitmap.data[r+3]*t;this.bitmap.data[r+3]=i}),Object(D.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){var r=this.bitmap.data[n],i=this.bitmap.data[n+1],o=this.bitmap.data[n+2];o=.272*(r=.393*r+.769*i+.189*o)+.534*(i=.349*r+.686*i+.168*o)+.131*o,this.bitmap.data[n]=r<255?r:255,this.bitmap.data[n+1]=i<255?i:255,this.bitmap.data[n+2]=o<255?o:255}),Object(D.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?D.c.call(this,"f must be a number",e):t<0||t>1?D.c.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),Object(D.a)(e)&&e.call(this,null,this),this)},convolution:function(t,e,n){"function"==typeof e&&void 0===n&&(n=e,e=null),e||(e=this.constructor.EDGE_EXTEND);var r,i,o,a,s,u,c,l,p,h,f=Buffer.from(this.bitmap.data),d=t.length,g=t[0].length,m=Math.floor(d/2),b=Math.floor(g/2),_=-m,y=-b;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,d,g){a=0,o=0,i=0;for(var v=_;v<=m;v++)for(var w=y;w<=b;w++)l=n+w,p=d+v,r=t[v+m][w+b],-1===(h=this.getPixelIndex(l,p,e))?(c=0,u=0,s=0):(s=this.bitmap.data[h+0],u=this.bitmap.data[h+1],c=this.bitmap.data[h+2]),i+=r*s,o+=r*u,a+=r*c;i<0&&(i=0),o<0&&(o=0),a<0&&(a=0),i>255&&(i=255),o>255&&(o=255),a>255&&(a=255),f[g+0]=i,f[g+1]=o,f[g+2]=a}),this.bitmap.data=f,Object(D.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n+3]=255}),Object(D.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,n,r,i,o){if("function"==typeof e)o=e,i=null,r=null,n=null,e=null;else{if("number"!=typeof t)return D.c.call(this,"size must be a number",o);if(ke(e)&&"number"!=typeof e)return D.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return D.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return D.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return D.c.call(this,"h must be a number",o)}var a=[[1/16,.125,1/16],[.125,.25,.125],[1/16,.125,1/16]];e=e||0,n=n||0,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){e=t*Math.floor(e/t),n=t*Math.floor(n/t);var i=xe(s,a,e,n);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]}),Object(D.a)(o)&&o.call(this,null,this),this},convolute:function(t,e,n,r,i,o){if(!Array.isArray(t))return D.c.call(this,"the kernel must be an array",o);if("function"==typeof e)o=e,e=null,n=null,r=null,i=null;else{if(ke(e)&&"number"!=typeof e)return D.c.call(this,"x must be a number",o);if(ke(n)&&"number"!=typeof n)return D.c.call(this,"y must be a number",o);if(ke(r)&&"number"!=typeof r)return D.c.call(this,"w must be a number",o);if(ke(i)&&"number"!=typeof i)return D.c.call(this,"h must be a number",o)}var a=(t.length-1)/2;e=ke(e)?e:a,n=ke(n)?n:a,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){var i=xe(s,t,e,n);this.bitmap.data[r]=this.constructor.limit255(i[0]),this.bitmap.data[r+1]=this.constructor.limit255(i[1]),this.bitmap.data[r+2]=this.constructor.limit255(i[2])}),Object(D.a)(o)&&o.call(this,null,this),this},color:Se,colour:Se}},Ce.a,function(){return{blur:function(t,e){if("number"!=typeof t)return D.c.call(this,"r must be a number",e);if(t<1)return D.c.call(this,"r must be greater than 0",e);for(var n,r,i,o,a,s,u,c,l,p,h,f,d,g,m=this.bitmap.width-1,b=this.bitmap.height-1,_=t+1,y=Te[t],v=Oe[t],w=[],x=[],k=[],E=[],S=[],C=[],T=2;T-- >0;){for(f=0,d=0,s=0;sm?m:u)<<2),n+=this.bitmap.data[c++],r+=this.bitmap.data[c++],i+=this.bitmap.data[c++],o+=this.bitmap.data[c];for(a=0;a0?c<<2:0),l=d+S[a],p=d+C[a],n+=this.bitmap.data[l++]-this.bitmap.data[p++],r+=this.bitmap.data[l++]-this.bitmap.data[p++],i+=this.bitmap.data[l++]-this.bitmap.data[p++],o+=this.bitmap.data[l]-this.bitmap.data[p],f++;d+=this.bitmap.width<<2}for(a=0;ab?0:this.bitmap.width],r+=x[h],i+=k[h],o+=E[h];for(f=a<<2,s=0;s>>v,this.bitmap.data[f+3]=g,g>255&&(this.bitmap.data[f+3]=255),g>0?(g=255/g,this.bitmap.data[f]=(n*y>>>v)*g,this.bitmap.data[f+1]=(r*y>>>v)*g,this.bitmap.data[f+2]=(i*y>>>v)*g):(this.bitmap.data[f+2]=0,this.bitmap.data[f+1]=0,this.bitmap.data[f]=0),0===a&&(S[s]=((c=s+_)0?c*this.bitmap.width:0),l=a+S[s],p=a+C[s],n+=w[l]-w[p],r+=x[l]-x[p],i+=k[l]-k[p],o+=E[l]-E[p],f+=this.bitmap.width<<2}}return Object(D.a)(e)&&e.call(this,null,this),this}}},function(t){return t("crop",function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"x and y must be numbers",i);if("number"!=typeof n||"number"!=typeof r)return D.c.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),n=Math.round(n),r=Math.round(r),0===t&&n===this.bitmap.width){var o=n*e+t<<2,a=o+r*n<<3;this.bitmap.data=this.bitmap.data.slice(o,a)}else{var s=Buffer.allocUnsafe(n*r*4),u=0;this.scanQuiet(t,e,n,r,function(t,e,n){var r=this.bitmap.data.readUInt32BE(n,!0);s.writeUInt32BE(r,u,!0),u+=4}),this.bitmap.data=s}return this.bitmap.width=n,this.bitmap.height=r,Object(D.a)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,n=this.bitmap.height,r=0,i=2e-4,o=!0,a=!1,s=0,u=arguments.length;si)break t}h++}l=this.getPixelColor(e,0);t:for(var v=0;vi)break t}f++}l=this.getPixelColor(0,n);t:for(var E=n-1;E>=h+1;E--){for(var S=e-f-1;S>=0;S--){var C=this.getPixelColor(S,E),T=this.constructor.intToRGBA(C);if(this.constructor.colorDiff(p,T)>i)break t}d++}l=this.getPixelColor(e,n);t:for(var O=e-1;O>=0+f+1;O--){for(var A=n-1;A>=0+h;A--){var I=this.getPixelColor(O,A),M=this.constructor.intToRGBA(I);if(this.constructor.colorDiff(p,M)>i)break t}g++}if(g-=r,f-=r,h-=r,d-=r,a){var P=Math.min(f,g),L=Math.min(h,d);g=P,f=P,h=L,d=L}var B=e-(g+f),j=n-(d+h);return g=g>=0?g:0,f=f>=0?f:0,h=h>=0?h:0,d=d>=0?d:0,(o?0!==f&&0!==h&&0!==g&&0!==d:0!==f||0!==h||0!==g||0!==d)&&this.crop(f,h,B,j),Object(D.a)(t)&&t.call(this,null,this),this}}}},function(){return{normalize:function(t){var e=function(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t.r[this.bitmap.data[r+0]]++,t.g[this.bitmap.data[r+1]]++,t.b[this.bitmap.data[r+2]]++}),t}.call(this),n={r:Me(e.r),g:Me(e.g),b:Me(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var i=this.bitmap.data[r+0],o=this.bitmap.data[r+1],a=this.bitmap.data[r+2];this.bitmap.data[r+0]=Ie(i,n.r[0],n.r[1]),this.bitmap.data[r+1]=Ie(o,n.g[0],n.g[1]),this.bitmap.data[r+2]=Ie(a,n.b[0],n.b[1])}),Object(D.a)(t)&&t.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=255-this.bitmap.data[n],this.bitmap.data[n+1]=255-this.bitmap.data[n+1],this.bitmap.data[n+2]=255-this.bitmap.data[n+2]}),Object(D.a)(t)&&t.call(this,null,this),this}}},function(){return{gaussian:function(t,e){if("number"!=typeof t)return D.c.call(this,"r must be a number",e);if(t<1)return D.c.call(this,"r must be greater than 0",e);for(var n=Math.ceil(2.57*t),r=2*n+1,i=t*t*2,o=i*Math.PI,a=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return D.c.call(this,"The source must be a Jimp image",r);if("number"!=typeof e||"number"!=typeof n)return D.c.call(this,"x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.bitmap.width,o=this.bitmap.height,a=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,s){var u=e+t,c=n+r;if(u>=0&&c>=0&&uthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,n),Object(D.a)(r)&&r.call(this,null,this),this}}},function(){return{displace:function(t,e,n){if("object"!==Le(t)||t.constructor!==this.constructor)return D.c.call(this,"The source must be a Jimp image",n);if("number"!=typeof e)return D.c.call(this,"factor must be a number",n);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,o){var a=t.bitmap.data[o]/256*e;a=Math.round(a);var s=this.getPixelIndex(n+a,i);this.bitmap.data[s]=r.bitmap.data[o],this.bitmap.data[s+1]=r.bitmap.data[o+1],this.bitmap.data[s+2]=r.bitmap.data[o+2]}),Object(D.a)(n)&&n.call(this,null,this),this}}},function(){return{contain:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"w and h must be numbers",i);"string"==typeof n&&("function"==typeof r&&void 0===i&&(i=r),r=n,n=null),"function"==typeof n&&(void 0===i&&(i=n),r=null,n=null),"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return D.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,l=this.cloneQuiet().scale(c,r);return this.resize(t,e,r),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)}),this.blit(l,(this.bitmap.width-l.bitmap.width)/2*s,(this.bitmap.height-l.bitmap.height)/2*u),Object(D.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return D.c.call(this,"w and h must be numbers",i);n&&"function"==typeof n&&void 0===i?(i=n,n=null,r=null):"function"==typeof r&&void 0===i&&(i=r,r=null);var o=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),a=n>>3;if((0===o||o&o-1)&&(0===a||a&a-1))return D.c.call(this,"only use one flag per alignment direction",i);var s=o>>1,u=a>>1,c=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(c,r),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*u,t,e),Object(D.a)(i)&&i.call(this,null,this),this}}}],Fe=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt,n={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=Jt(t,2),r=e[0],i=e[1];n[r]=Zt({},n[r],i)})}return t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?mt.apply(void 0,Vt(e.mime)):Object.entries(e.mime).forEach(function(t){return mt.apply(void 0,Vt(t))}),delete e.mime,r(e)}),e.decoders=Zt({},e.decoders,n.decoders),e.encoders=Zt({},e.encoders,n.encoders),e.hasAlpha=Zt({},e.hasAlpha,n.hasAlpha)),t.plugins&&t.plugins.forEach(function(t){var e=t(qt)||{};e.class||e.constants?r(e):r({class:e})}),Ht(n.class,e),Gt(n.constants,e),Yt}({types:[function(){return Object(Qt.mergeDeep)({mime:ee({},"image/jpeg",["jpeg","jpg","jpe"]),constants:{MIME_JPEG:"image/jpeg"},decoders:ee({},"image/jpeg",te.a.decode),encoders:ee({},"image/jpeg",function(t){return te.a.encode(t.bitmap,t._quality).data}),class:{_quality:100,quality:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be a number",e):t<0||t>100?D.c.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)}}},{mime:re({},"image/png",["png"]),constants:{MIME_PNG:"image/png",PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:re({},"image/png",!0),decoders:re({},"image/png",ne.PNG.sync.read),encoders:re({},"image/png",function(t){var e=new ne.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,ne.PNG.sync.write(e,{width:t.bitmap.width,height:t.bitmap.height,deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return"number"!=typeof t?D.c.call(this,"l must be a number",e):t<0||t>9?D.c.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?D.c.call(this,"s must be a number",e):t<0||t>3?D.c.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?D.c.call(this,"n must be a number",e):t<-1||t>4?D.c.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?D.c.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?D.c.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),Object(D.a)(e)&&e.call(this,null,this),this)}}},{mime:ae({},"image/bmp",["bmp"]),constants:{MIME_BMP:"image/bmp",MIME_X_MS_BMP:"image/x-ms-bmp"},decoders:(t={},ae(t,"image/bmp",se),ae(t,"image/x-ms-bmp",se),t),encoders:(e={},ae(e,"image/bmp",ue),ae(e,"image/x-ms-bmp",ue),e)},{mime:pe({},"image/tiff",["tiff","tif"]),constants:{MIME_TIFF:"image/tiff"},decoders:pe({},"image/tiff",function(t){var e=le.a.decode(t),n=e[0];le.a.decodeImages(t,e);var r=le.a.toRGBA8(n);return{data:Buffer.from(r),width:n.t256[0],height:n.t257[0]}}),encoders:pe({},"image/tiff",function(t){var e=le.a.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return Buffer.from(e)})},{mime:de({},"image/gif",["gif"]),constants:{MIME_GIF:"image/gif"},decoders:de({},"image/gif",function(t){var e=new fe.a.GifReader(t),n=Buffer.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,n),{data:n,width:e.width,height:e.height}})});var t,e}],plugins:[function(t){var e=je.map(function(e){var n=e(t)||{};return n.class||n.constants||(n={class:n}),n});return Qt.mergeDeep.apply(void 0,Be(e))}]});var Re=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=_.fromPath(e,this.path),o=_.toPath(r,i,this.path);let a=null;for(let i=0;i<=n;i++){const o=e+(i.toString().padStart(2,"0")+".png"),s=_.fromPath(o,this.path);if(f.a.existsSync(s)){const e=await Fe.read(s);null===a&&(_.log(`Create atlas ${r}`),a=await Fe.create(e.getWidth(),e.getHeight()*(n+1))),a.composite(e,0,e.getHeight()*i),t.push(o)}}null!==a&&await a.writeAsync(o)}return[[v,t]]}async*getData(){const t=[["textures/items/clock_",63,"./watch_atlas.png"],["textures/items/compass_",31,"./compass_atlas.png"]];for(const e of t)yield e}};var Ne=class extends p{async convert(){for await(const t of this.getData()){const e=_.fromPath(t,this.path);if(f.a.existsSync(e)){_.log(`Convert bed ${t}`);const n=await Fe.read(e),r=n.getWidth()/64,i=await Fe.create(n.getWidth(),n.getHeight());i.composite(n.clone().crop(0,0,44*r,22*r),0,0),i.composite(n.clone().crop(0,28*r,44*r,16*r),0,22*r),i.composite(n.clone().crop(22*r,22*r,16*r,6*r),22*r,0),i.composite(n.clone().crop(50*r,0,12*r,12*r),0,38*r),i.composite(n.clone().crop(50*r,12*r,12*r,12*r),12*r,38*r),await i.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/bed/black.png","textures/entity/bed/blue.png","textures/entity/bed/brown.png","textures/entity/bed/cyan.png","textures/entity/bed/gray.png","textures/entity/bed/green.png","textures/entity/bed/light_blue.png","textures/entity/bed/lime.png","textures/entity/bed/magenta.png","textures/entity/bed/orange.png","textures/entity/bed/pink.png","textures/entity/bed/purple.png","textures/entity/bed/red.png","textures/entity/bed/silver.png","textures/entity/bed/white.png","textures/entity/bed/yellow.png"];for(const e of t)yield e}};var ze=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,"",this.path);if(f.a.existsSync(n)){_.log(`Create chest front ${e}`);const t=await Fe.read(n),i=t.getWidth()/64,o=await Fe.create(14*i,14*i);o.composite(t.clone().crop(14*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(14*i,34*i,14*i,9*i),0,5*i),o.composite(t.clone().crop(i,i,2*i,4*i),6*i,3*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_front.png"],["textures/entity/chest/trapped.png","textures/blocks/trapped_chest_front.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_front.png"]];for(const e of t)yield e}};var Ue=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,"",this.path);if(f.a.existsSync(n)){_.log(`Create chest side ${e}`);const t=await Fe.read(n),i=t.getWidth()/64,o=await Fe.create(14*i,14*i);o.composite(t.clone().crop(28*i,14*i,14*i,5*i),0,0),o.composite(t.clone().crop(28*i,34*i,14*i,9*i),0,5*i),await o.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_side.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_side.png"]];for(const e of t)yield e}};var We=class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=_.toPath(n,"",this.path);let i=null;for(const[r,o,a]of e){const e=_.fromPath(r,this.path);if(f.a.existsSync(e)){const t=await Fe.read(e);null===i&&(_.log(`Colorize and overlay ${n}`),i=await Fe.create(t.getWidth(),t.getHeight())),Array.isArray(o)&&o.length>=3&&t.scan(0,0,t.getWidth(),t.getHeight(),(e,n,r)=>{t.bitmap.data[r]=t.bitmap.data[r]/255*o[0],t.bitmap.data[r+1]=t.bitmap.data[r+1]/255*o[1],t.bitmap.data[r+2]=t.bitmap.data[r+2]/255*o[2]}),i.composite(t,0,0)}a&&t.push(r)}null!==i&&await i.writeAsync(r)}return[[v,t]]}async*getData(){const t=[[[["textures/models/armor/leather_1.png",[167,105,67]]],"textures/models/armor/cloth_1.png"],[[["textures/models/armor/leather_2.png",[167,105,67]]],"textures/models/armor/cloth_2.png"],[[["textures/blocks/double_plant_fern_top.png",[79,156,37]]],"textures/blocks/double_plant_fern_carried.png"],[[["textures/blocks/double_plant_grass_top.png",[79,156,37]]],"textures/blocks/double_plant_grass_carried.png"],[[["textures/blocks/fern.png",[79,156,37]]],"textures/blocks/fern_carried.png"],[[["textures/blocks/grass_top.png",[120,182,66]]],"textures/blocks/grass_carried.png"],[[["textures/blocks/leaves_acacia.png",[68,177,8]]],"textures/blocks/leaves_acacia_carried.png"],[[["textures/blocks/leaves_big_oak.png",[68,177,8]]],"textures/blocks/leaves_big_oak_carried.png"],[[["textures/blocks/leaves_birch.png",[108,151,71]]],"textures/blocks/leaves_birch_carried.png"],[[["textures/blocks/leaves_jungle.png",[70,176,37]]],"textures/blocks/leaves_jungle_carried.png"],[[["textures/blocks/leaves_oak.png",[68,177,8]]],"textures/blocks/leaves_oak_carried.png"],[[["textures/blocks/leaves_spruce.png",[98,146,98]]],"textures/blocks/leaves_spruce_carried.png"],[[["textures/blocks/tallgrass.png",[79,156,37]]],"textures/blocks/tallgrass_carried.png"],[[["textures/blocks/waterlily.png",[30,128,48]]],"textures/blocks/carried_waterlily.png"],[[["textures/blocks/water_flow_grey.png",[86,132,254]]],"textures/blocks/water_flow.png"],[[["textures/blocks/water_still_grey.png",[161,161,161]]],"textures/blocks/cauldron_water.png"],[[["textures/blocks/water_still_grey.png",[86,132,254]]],"textures/blocks/water_still.png"],[[["textures/blocks/vine.png",[30,128,48]]],"textures/blocks/vine_carried.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_damageBoost.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_heal.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_jump.png"],[[["textures/items/potion_overlay.png",[242,255,202]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_luck.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_regeneration.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_wither.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[82,76,68]]],"textures/items/map_mansion.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[67,124,111]]],"textures/items/map_monument.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[103,90,173]]],"textures/items/map_nautilus.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[131,131,131],!0]],"textures/items/map_filled.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSpeed.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_drinkable.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,112,114]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_wither.png"],[[["textures/blocks/redstone_dust_cross.png"],["textures/blocks/redstone_dust_overlay.png"]],"textures/blocks/redstone_dust_cross.png"],[[["textures/blocks/redstone_dust_line.png"],["textures/blocks/redstone_dust_overlay.png",null,!0]],"textures/blocks/redstone_dust_line.png"],[[["textures/entity/pig/pig.png"],["textures/entity/saddle.png"]],"textures/entity/pig/pig_saddle.png"],[[["textures/items/potion_overlay.png",[88,184,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSpeed.png"],[[["textures/items/potion_overlay.png",[255,255,184]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_fireResistance.png"],[[["textures/items/potion_overlay.png",[212,32,28]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_harm.png"],[[["textures/items/potion_overlay.png",[255,116,112]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_wither.png"],[[["textures/items/spawn_egg.png",[65,53,41]],["textures/items/spawn_egg_overlay.png",[13,13,13]]],"textures/items/egg_bat.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[226,220,112]]],"textures/items/egg_blaze.png"],[[["textures/items/spawn_egg.png",[239,200,142]],["textures/items/spawn_egg_overlay.png",[135,101,74]]],"textures/items/egg_cat.png"],[[["textures/items/spawn_egg.png",[10,57,67]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_cave_spider.png"],[[["textures/items/spawn_egg.png",[138,138,138]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_chicken.png"],[[["textures/items/spawn_egg.png",[205,90,18]],["textures/items/spawn_egg_overlay.png",[226,221,212]]],"textures/items/egg_clownfish.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_cod.png"],[[["textures/items/spawn_egg.png",[58,46,33]],["textures/items/spawn_egg_overlay.png",[143,143,143]]],"textures/items/egg_cow.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[0,0,0]]],"textures/items/egg_creeper.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[221,221,221]]],"textures/items/egg_dolphin.png"],[[["textures/items/spawn_egg.png",[71,59,49]],["textures/items/spawn_egg_overlay.png",[119,104,90]]],"textures/items/egg_donkey.png"],[[["textures/items/spawn_egg.png",[123,207,185]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_drowned.png"],[[["textures/items/spawn_egg.png",[177,175,160]],["textures/items/spawn_egg_overlay.png",[103,105,130]]],"textures/items/egg_elderguardian.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[19,19,19]]],"textures/items/egg_enderman.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[97,97,97]]],"textures/items/egg_endermite.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[27,25,23]]],"textures/items/egg_evoker.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_fish.png"],[[["textures/items/spawn_egg.png",[214,214,214]],["textures/items/spawn_egg_overlay.png",[167,167,167]]],"textures/items/egg_ghast.png"],[[["textures/items/spawn_egg.png",[77,112,98]],["textures/items/spawn_egg_overlay.png",[214,111,43]]],"textures/items/egg_guardian.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[211,203,0]]],"textures/items/egg_horse.png"],[[["textures/items/spawn_egg.png",[102,99,83]],["textures/items/spawn_egg_overlay.png",[197,191,127]]],"textures/items/egg_husk.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[223,223,0]]],"textures/items/egg_lava_slime.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[136,84,57]]],"textures/items/egg_llama.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_mask.png"],[[["textures/items/spawn_egg.png",[23,2,0]],["textures/items/spawn_egg_overlay.png",[72,45,26]]],"textures/items/egg_mule.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[162,162,162]]],"textures/items/egg_mushroomcow.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_null.png"],[[["textures/items/spawn_egg.png",[205,191,107]],["textures/items/spawn_egg_overlay.png",[76,60,46]]],"textures/items/egg_ocelot.png"],[[["textures/items/spawn_egg.png",[217,217,215]],["textures/items/spawn_egg_overlay.png",[19,19,25]]],"textures/items/egg_panda.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_parrot.png"],[[["textures/items/spawn_egg.png",[58,70,119]],["textures/items/spawn_egg_overlay.png",[121,226,0]]],"textures/items/egg_phantom.png"],[[["textures/items/spawn_egg.png",[206,142,139]],["textures/items/spawn_egg_overlay.png",[194,88,84]]],"textures/items/egg_pig.png"],[[["textures/items/spawn_egg.png",[201,126,126]],["textures/items/spawn_egg_overlay.png",[67,100,36]]],"textures/items/egg_pigzombie.png"],[[["textures/items/spawn_egg.png",[208,208,208]],["textures/items/spawn_egg_overlay.png",[132,132,128]]],"textures/items/egg_polarbear.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[49,173,214]]],"textures/items/egg_pufferfish.png"],[[["textures/items/spawn_egg.png",[131,82,55]],["textures/items/spawn_egg_overlay.png",[102,64,43]]],"textures/items/egg_rabbit.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[12,117,103]]],"textures/items/egg_salmon.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[226,160,160]]],"textures/items/egg_sheep.png"],[[["textures/items/spawn_egg.png",[127,88,127]],["textures/items/spawn_egg_overlay.png",[68,50,73]]],"textures/items/egg_shulker.png"],[[["textures/items/spawn_egg.png",[94,94,94]],["textures/items/spawn_egg_overlay.png",[43,43,43]]],"textures/items/egg_silverfish.png"],[[["textures/items/spawn_egg.png",[166,166,166]],["textures/items/spawn_egg_overlay.png",[65,65,65]]],"textures/items/egg_skeleton.png"],[[["textures/items/spawn_egg.png",[89,89,89]],["textures/items/spawn_egg_overlay.png",[203,203,191]]],"textures/items/egg_skeletonhorse.png"],[[["textures/items/spawn_egg.png",[70,137,53]],["textures/items/spawn_egg_overlay.png",[112,169,97]]],"textures/items/egg_slime.png"],[[["textures/items/spawn_egg.png",[45,39,33]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_spider.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[99,121,136]]],"textures/items/egg_squid.png"],[[["textures/items/spawn_egg.png",[82,100,101]],["textures/items/spawn_egg_overlay.png",[193,206,205]]],"textures/items/egg_stray.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[0,155,155]]],"textures/items/egg_turtle.png"],[[["textures/items/spawn_egg.png",[105,124,141]],["textures/items/spawn_egg_overlay.png",[206,210,214]]],"textures/items/egg_vex.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[167,123,101]]],"textures/items/egg_villager.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[35,83,86]]],"textures/items/egg_vindicator.png"],[[["textures/items/spawn_egg.png",[55,84,130]],["textures/items/spawn_egg_overlay.png",[204,142,41]]],"textures/items/egg_wanderingtrader.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[72,142,55]]],"textures/items/egg_witch.png"],[[["textures/items/spawn_egg.png",[17,17,17]],["textures/items/spawn_egg_overlay.png",[63,68,68]]],"textures/items/egg_wither.png"],[[["textures/items/spawn_egg.png",[185,181,181]],["textures/items/spawn_egg_overlay.png",[183,155,133]]],"textures/items/egg_wolf.png"],[[["textures/items/spawn_egg.png",[0,150,150]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombie.png"],[[["textures/items/spawn_egg.png",[36,77,47]],["textures/items/spawn_egg_overlay.png",[117,184,113]]],"textures/items/egg_zombiehorse.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombievillager.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png"]],"textures/items/tipped_arrow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[214,144,54]]],"textures/items/tipped_arrow_fireres.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[65,10,9]]],"textures/items/tipped_arrow_harm.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[232,34,33]]],"textures/items/tipped_arrow_healing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[123,127,141]]],"textures/items/tipped_arrow_invisibility.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[33,247,74]]],"textures/items/tipped_arrow_leaping.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[49,148,0]]],"textures/items/tipped_arrow_luck.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[30,30,156]]],"textures/items/tipped_arrow_nightvision.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[74,138,46]]],"textures/items/tipped_arrow_poison.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[192,86,161]]],"textures/items/tipped_arrow_regen.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[87,105,125]]],"textures/items/tipped_arrow_slow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[247,232,202]]],"textures/items/tipped_arrow_slowfalling.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[142,35,34]]],"textures/items/tipped_arrow_strength.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[116,164,186]]],"textures/items/tipped_arrow_swift.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[113,88,96]]],"textures/items/tipped_arrow_turtlemaster.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[45,79,148]]],"textures/items/tipped_arrow_waterbreathing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[70,75,70]]],"textures/items/tipped_arrow_weakness.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[50,39,36]]],"textures/items/tipped_arrow_wither.png"]];for(const e of t)yield e}};var Ge=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);f.a.existsSync(n)&&(_.log(`Copy ${t} to ${e}`),await f.a.copy(n,r))}return[]}async*getData(){const t=[["textures/entity/cat/redtabby.png","./red.png"],["textures/entity/cat/siamesecat.png","./siamese.png"],["textures/entity/cat/tuxedo.png","./blackcat.png"],["textures/blocks/command_block_back_mipmap.png","./command_block.png"],["textures/blocks/fire_0.png","textures/flame_atlas.png"],["textures/blocks/kelp_a.tga","./kelp_b.tga"],["textures/blocks/kelp_a.tga","./kelp_c.tga"],["textures/blocks/kelp_a.tga","./kelp_d.tga"],["textures/blocks/kelp_top.tga","./kelp_top_bulb.tga"],["textures/blocks/lever.png","textures/items/lever.png"],["textures/entity/llama/llama_creamy.png","./llama.png"],["textures/items/skull_banner_pattern.png","./banner_pattern.png"],["textures/ui/sign.png","textures/gui/sign.png"],["textures/entity/creeper/creeper.png","textures/entity/skulls/creeper.png"],["textures/entity/skeleton/skeleton.png","textures/entity/skulls/skeleton.png"],["textures/entity/skeleton/wither_skeleton.png","textures/entity/skulls/wither_skeleton.png"],["textures/entity/zombie/zombie.png","textures/entity/skulls/zombie.png"],["textures/blocks/brick.png","textures/ui/icon_recipe_construction.png"],["textures/blocks/grass_side_carried.png","textures/ui/icon_recipe_nature.png"],["textures/items/bed_red.png","textures/ui/icon_recipe_item.png"],["textures/items/diamond_sword.png","textures/ui/icon_recipe_equipment.png"],["bedrock_textures","./textures"]];for(const e of t)yield e}};var He=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=_.fromPath(e,this.path),o=_.toPath(n,i,this.path),a=_.toPath(r,i,this.path);if(f.a.existsSync(i)&&f.a.existsSync(o)){_.log("Convert drowned");const t=await Fe.read(i),e=await Fe.read(o),n=t.getWidth()/64;t.composite(e.clone().crop(0,0,32*n,16*n),32*n,0),t.composite(e.clone().crop(0,16*n,64*n,16*n),0,32*n),t.composite(e.clone().crop(16*n,48*n,16*n,16*n),0,48*n),t.composite(e.clone().crop(32*n,48*n,16*n,16*n),48*n,48*n),await t.writeAsync(a)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/zombie/drowned.png","textures/entity/zombie/drowned_outer_layer.png","./drowned.png"]}};var $e=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);if(f.a.existsSync(n)){_.log("Convert fishhook");const t=await Fe.read(n),e=t.getWidth()/8,i=await Fe.create(24*e,3*e);i.composite(t.clone().crop(3*e,e,3*e,e),0,0),i.composite(t.clone().crop(3*e,e,e,e),0,e),i.composite(t.clone().crop(2*e,6*e,e,e),e,e),i.composite(t.clone().crop(3*e,e,e,e),2*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),0,2*e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,0),i.composite(t.clone().crop(3*e,e,e,e),3*e,e),i.composite(t.clone().crop(2*e,6*e,e,e),4*e,e),i.composite(t.clone().crop(3*e,e,e,e),5*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,2*e),i.composite(t.clone().crop(3*e,e,3*e,3*e),6*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),9*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),12*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),15*e,0),i.composite(t.clone().crop(2*e,5*e,3*e,3*e),18*e,0),i.composite(t.clone().crop(2*e,6*e,e,e),22*e,2*e),await i.writeAsync(r)}}return[]}async*getData(){yield["textures/entity/fishhook.png","./fishhook.png"]}},qe=n(67),Ye=n.n(qe);var Ve=class extends p{async convert(){const t=[];for await(const[e,n,r,i]of this.getData()){_.log(`Create metadata ${n}`);const o=_.fromPath(e,this.path),a=_.toPath(n,o,this.path),s=_.toPath(r,o,this.path);let u="";f.a.existsSync(s)?(u=await f.a.readFile(s,"utf8"),t.push(r)):u=Ye()();const c=_.toPath(i,o,this.path);let l="";f.a.existsSync(c)?(l=await f.a.readFile(c,"utf8"),t.push(i)):l=Ye()();const p=JSON.parse(await f.a.readFile(o,"utf8")),h={format_version:1,header:{description:p.pack.description,name:await this.input.name(),platform_locked:!1,uuid:u,version:[0,0,1]},modules:[{description:p.pack.description,type:"resources",uuid:l,version:[0,0,1]}]};await f.a.writeFile(a,JSON.stringify(h,null,2),"utf8"),t.push(e)}return[[v,t]]}async*getData(){yield["pack.mcmeta","./manifest.json","bedrock_uuid_header","bedrock_uuid_module"]}};var Ze=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);if(f.a.existsSync(n)){_.log(`Create opaque ${e}`);const t=await Fe.read(n),i=await Fe.create(t.getWidth(),t.getHeight(),"#000000");i.composite(t,0,0),await i.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/leaves_acacia.png","./leaves_acacia_opaque.png"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak_opaque.png"],["textures/blocks/leaves_birch.png","./leaves_birch_opaque.png"],["textures/blocks/leaves_jungle.png","./leaves_jungle_opaque.png"],["textures/blocks/leaves_oak.png","./leaves_oak_opaque.png"],["textures/blocks/leaves_spruce.png","./leaves_spruce_opaque.png"]];for(const e of t)yield e}};var Xe=class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=_.fromPath(e,this.path),s=_.toPath(n,a,this.path),u=_.toPath(r,a,this.path);if(f.a.existsSync(a)&&f.a.existsSync(s)){_.log(`Create translated overlay ${r}`);const t=await Fe.read(a),e=await Fe.read(s);t.scan(0,0,t.getWidth(),t.getHeight(),(n,r,o)=>{(i?255===e.bitmap.data[o+3]:0===t.bitmap.data[o+3])&&(t.bitmap.data[o]=e.bitmap.data[o],t.bitmap.data[o+1]=e.bitmap.data[o+1],t.bitmap.data[o+2]=e.bitmap.data[o+2],t.bitmap.data[o+3]=Math.min(1,e.bitmap.data[o+3]))}),await t.writeAsync(u)}o||t.push(_.toPath(n,e,""))}return[[v,t]]}async*getData(){const t=[["textures/entity/cat/graytabby_tame.png","./allblackcat.png","./allblackcat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./britishshorthair.png","./britishshorthair_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./calico.png","./calico_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./jellie.png","./jellie_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ocelot.png","./ocelot_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./persian.png","./persian_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ragdoll.png","./ragdoll_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./redtabby.png","./redtabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./siamesecat.png","./siamesecat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tabby.png","./tabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tuxedo.png","./tuxedo_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./white.png","./white_tame.png",!1,!0],["textures/entity/enderman/enderman.png","./enderman_eyes.png","./enderman.png",!0],["textures/items/fireworks_charge.png","./firework_star.png","./fireworks_charge.png",!1],["textures/blocks/grass_side.png","./grass_side_carried.png","./grass_side.png",!1,!0],["textures/items/leather_boots.png","./leather_boots_overlay.png","./leather_boots.png",!0],["textures/items/leather_chestplate.png","./leather_chestplate_overlay.png","./leather_chestplate.png",!0],["textures/items/leather_helmet.png","./leather_helmet_overlay.png","./leather_helmet.png",!0],["textures/items/leather_leggings.png","./leather_leggings_overlay.png","./leather_leggings.png",!0],["textures/models/armor/leather_1.png","./leather_1_overlay.png","./leather_1.png",!0],["textures/models/armor/leather_2.png","./leather_2_overlay.png","./leather_2.png",!0],["textures/entity/phantom.png","./phantom_eyes.png","./phantom.png",!0],["textures/entity/spider/cave_spider.png","textures/entity/spider_eyes.png","./cave_spider.png",!0,!0],["textures/entity/spider/spider.png","textures/entity/spider_eyes.png","./spider.png",!0],["textures/entity/wolf/wolf_collar.png","./wolf_tame.png","./wolf_tame.png",!1,!0]];for(const e of t)yield e}};var Je=class extends p{async convert(){for await(const[t,e,n,r]of this.getData()){const i=_.fromPath(t,this.path),o=_.fromPath(e,this.path),a=_.fromPath(n,this.path),s=_.toPath(r,"",this.path);if(f.a.existsSync(i)&&f.a.existsSync(o)&&f.a.existsSync(a)){_.log(`Create piston arm ${r}`);const t=await Fe.read(i),e=await Fe.read(o),n=await Fe.read(a),u=t.getWidth()/16,c=await Fe.create(128*u,32*u);c.composite(t,16*u,0),c.composite(e,32*u,0),n.crop(0,0,n.getWidth(),4*u),c.composite(n,0,16*u),c.composite(n,16*u,16*u),c.composite(n,32*u,16*u),c.composite(n,48*u,16*u);const l=n.clone().rotate(-90).crop(1,0,n.getHeight(),8*u);c.composite(l,64*u,4*u),c.composite(l,68*u,4*u),c.composite(l,72*u,4*u),c.composite(l,76*u,4*u);const p=l.clone().crop(0,l.getHeight()-u,l.getWidth(),u),h=n.clone().crop(7*u,0,u,n.getHeight()),f=l.clone().crop(0,2*u,l.getWidth(),4*u);c.composite(p,70*u,18*u),c.composite(p,74*u,18*u),c.composite(p,78*u,18*u),c.composite(h,70*u,19*u),c.composite(h,75*u,19*u),c.composite(h,76*u,19*u),c.composite(h,81*u,19*u),c.composite(p,70*u,23*u),c.composite(p,74*u,23*u),c.composite(p,78*u,23*u),c.composite(p,64*u,24*u),c.composite(p,68*u,24*u),c.composite(p,72*u,24*u),c.composite(p,76*u,24*u),c.composite(p,80*u,24*u),c.composite(p,84*u,24*u),c.composite(h,64*u,25*u),c.composite(h,64*u,29*u),c.composite(h,69*u,25*u),c.composite(h,69*u,29*u),c.composite(h,70*u,25*u),c.composite(h,70*u,29*u),c.composite(h,75*u,25*u),c.composite(h,75*u,29*u),c.composite(h,76*u,25*u),c.composite(h,76*u,29*u),c.composite(h,81*u,25*u),c.composite(h,81*u,29*u),c.composite(h,82*u,25*u),c.composite(h,82*u,29*u),c.composite(h,87*u,25*u),c.composite(h,87*u,29*u),c.composite(f,65*u,25*u),c.composite(f,65*u,29*u),c.composite(f,71*u,25*u),c.composite(f,71*u,29*u),c.composite(f,77*u,25*u),c.composite(f,77*u,29*u),c.composite(f,83*u,25*u),c.composite(f,83*u,29*u),await c.writeAsync(s)}}return[]}async*getData(){const t=[["textures/blocks/piston_top_normal.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArm.png"],["textures/blocks/piston_top_sticky.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArmSticky.png"]];for(const e of t)yield e}};var Qe=class extends p{async convert(){for await(const[t,e,n,r,i,o,a,s]of this.getData()){const u=_.fromPath(t,this.path),c=_.toPath(a,u,this.path);if(f.a.existsSync(u)){_.log(`Create placeholder ${a}`);let t=await Fe.read(u);const l=t.getWidth()/o;if(t.crop(e*l,n*l,r*l,i*l),!s){const e=Math.max(r,i);t=(await Fe.create(e*l,e*l)).composite(t,(e*l-r*l)/2,(e*l-i*l)/2)}await t.writeAsync(c)}}return[]}async*getData(){const t=[["textures/entity/bed/red.png",2,6,14,14,64,"textures/blocks/bed_head_top.png"],["textures/entity/bed/red.png",0,6,6,14,64,"textures/blocks/bed_head_side.png"],["textures/entity/bed/red.png",6,0,14,6,64,"textures/blocks/bed_head_end.png"],["textures/entity/bed/red.png",2,20,14,14,64,"textures/blocks/bed_feet_top.png"],["textures/entity/bed/red.png",22,0,14,6,64,"textures/blocks/bed_feet_end.png"],["textures/entity/bed/red.png",0,20,6,14,64,"textures/blocks/bed_feet_side.png"],["textures/entity/bed/black.png",6,6,16,32,64,"textures/items/bed_black.png"],["textures/entity/bed/blue.png",6,6,16,32,64,"textures/items/bed_blue.png"],["textures/entity/bed/brown.png",6,6,16,32,64,"textures/items/bed_brown.png"],["textures/entity/bed/cyan.png",6,6,16,32,64,"textures/items/bed_cyan.png"],["textures/entity/bed/gray.png",6,6,16,32,64,"textures/items/bed_gray.png"],["textures/entity/bed/green.png",6,6,16,32,64,"textures/items/bed_green.png"],["textures/entity/bed/light_blue.png",6,6,16,32,64,"textures/items/bed_light_blue.png"],["textures/entity/bed/lime.png",6,6,16,32,64,"textures/items/bed_lime.png"],["textures/entity/bed/magenta.png",6,6,16,32,64,"textures/items/bed_magenta.png"],["textures/entity/bed/orange.png",6,6,16,32,64,"textures/items/bed_orange.png"],["textures/entity/bed/pink.png",6,6,16,32,64,"textures/items/bed_pink.png"],["textures/entity/bed/purple.png",6,6,16,32,64,"textures/items/bed_purple.png"],["textures/entity/bed/red.png",6,6,16,32,64,"textures/items/bed_red.png"],["textures/entity/bed/silver.png",6,6,16,32,64,"textures/items/bed_silver.png"],["textures/entity/bed/white.png",6,6,16,32,64,"textures/items/bed_white.png"],["textures/entity/bed/yellow.png",6,6,16,32,64,"textures/items/bed_yellow.png"],["textures/entity/chest/normal.png",14,0,14,14,64,"textures/blocks/chest_top.png"],["textures/entity/chest/ender.png",14,0,14,14,64,"textures/blocks/ender_chest_top.png"],["textures/blocks/chain_command_block_back.png",0,0,16,16,16,"./chain_command_block_back_mipmap.png"],["textures/blocks/chain_command_block_conditional.png",0,0,16,16,16,"./chain_command_block_conditional_mipmap.png"],["textures/blocks/chain_command_block_front.png",0,0,16,16,16,"./chain_command_block_front_mipmap.png"],["textures/blocks/chain_command_block_side.png",0,0,16,16,16,"./chain_command_block_side_mipmap.png"],["textures/blocks/command_block_back.png",0,0,16,16,16,"./command_block_back_mipmap.png"],["textures/blocks/command_block_conditional.png",0,0,16,16,16,"./command_block_conditional_mipmap.png"],["textures/blocks/command_block_front.png",0,0,16,16,16,"./command_block_front_mipmap.png"],["textures/blocks/command_block_side.png",0,0,16,16,16,"./command_block_side_mipmap.png"],["textures/blocks/repeating_command_block_back.png",0,0,16,16,16,"./repeating_command_block_back_mipmap.png"],["textures/blocks/repeating_command_block_conditional.png",0,0,16,16,16,"./repeating_command_block_conditional_mipmap.png"],["textures/blocks/repeating_command_block_front.png",0,0,16,16,16,"./repeating_command_block_front_mipmap.png"],["textures/blocks/repeating_command_block_side.png",0,0,16,16,16,"./repeating_command_block_side_mipmap.png"],["textures/items/compass_atlas.png",0,0,16,16,16,"./compass_item.png"],["textures/items/watch_atlas.png",0,0,16,16,16,"./clock_item.png"],["textures/entity/sign_acacia.png",2,2,24,12,64,"textures/ui/sign_acacia.png",!0],["textures/entity/sign_birch.png",2,2,24,12,64,"textures/ui/sign_birch.png",!0],["textures/entity/sign_darkoak.png",2,2,24,12,64,"textures/ui/sign_darkoak.png",!0],["textures/entity/sign_jungle.png",2,2,24,12,64,"textures/ui/sign_jungle.png",!0],["textures/entity/sign.png",2,2,24,12,64,"textures/ui/sign.png",!0],["textures/entity/sign_spruce.png",2,2,24,12,64,"textures/ui/sign_spruce.png",!0],["textures/blocks/cauldron_water.png",0,0,16,16,16,"./cauldron_water_placeholder.png"],["textures/blocks/fire_0.png",0,0,16,16,16,"./fire_0_placeholder.png"],["textures/blocks/fire_1.png",0,0,16,16,16,"./fire_1_placeholder.png"],["textures/blocks/lava_still.png",0,0,16,16,16,"./lava_placeholder.png"],["textures/blocks/portal.png",0,0,16,16,16,"./portal_placeholder.png"],["textures/blocks/water_still.png",0,0,16,16,16,"./water_placeholder.png"],["textures/entity/pig/pigzombie.png",0,0,64,32,64,"./pigzombie.png",!0],["textures/entity/zombie/husk.png",0,0,64,32,64,"./husk.png",!0],["textures/entity/zombie/zombie.png",0,0,64,32,64,"./zombie.png",!0]];for(const e of t)yield e}},Ke=n(137),tn=n.n(Ke);async function en(...t){for(const e of t)nn.push(e)}const nn=[[Ve,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);f.a.existsSync(n)&&(_.log(`Rename ${t} to ${e}`),f.a.existsSync(g.a.dirname(r))||await f.a.mkdir(g.a.dirname(r)),await f.a.rename(n,r))}return[]}async*getData(){const t=[["pack.png","./pack_icon.png"],["assets/minecraft/textures","textures"],["textures/block","./blocks"],["textures/item","./items"],["textures/blocks/andesite.png","./stone_andesite.png"],["textures/blocks/polished_andesite.png","./stone_andesite_smooth.png"],["textures/blocks/anvil.png","./anvil_base.png"],["textures/blocks/anvil_top.png","./anvil_top_damaged_0.png"],["textures/blocks/chipped_anvil_top.png","./anvil_top_damaged_1.png"],["textures/blocks/damaged_anvil_top.png","./anvil_top_damaged_2.png"],["textures/items/golden_apple.png","./apple_golden.png"],["textures/entity/armorstand/wood.png","textures/entity/armor_stand.png"],["textures/entity/elytra.png","textures/models/armor/elytra.png"],["textures/items/golden_axe.png","./gold_axe.png"],["textures/items/golden_boots.png","./gold_boots.png"],["textures/items/golden_chestplate.png","./gold_chestplate.png"],["textures/items/golden_helmet.png","./gold_helmet.png"],["textures/items/golden_hoe.png","./gold_hoe.png"],["textures/items/golden_horse_armor.png","./gold_horse_armor.png"],["textures/items/golden_leggings.png","./gold_leggings.png"],["textures/items/golden_pickaxe.png","./gold_pickaxe.png"],["textures/items/golden_shovel.png","./gold_shovel.png"],["textures/items/golden_sword.png","./gold_sword.png"],["textures/items/wooden_axe.png","./wood_axe.png"],["textures/items/wooden_hoe.png","./wood_hoe.png"],["textures/items/wooden_pickaxe.png","./wood_pickaxe.png"],["textures/items/wooden_shovel.png","./wood_shovel.png"],["textures/items/wooden_sword.png","./wood_sword.png"],["textures/models/armor/chainmail_layer_1.png","./chain_1.png"],["textures/models/armor/chainmail_layer_2.png","./chain_2.png"],["textures/models/armor/diamond_layer_1.png","./diamond_1.png"],["textures/models/armor/diamond_layer_2.png","./diamond_2.png"],["textures/models/armor/gold_layer_1.png","./gold_1.png"],["textures/models/armor/gold_layer_2.png","./gold_2.png"],["textures/models/armor/iron_layer_1.png","./iron_1.png"],["textures/models/armor/iron_layer_2.png","./iron_2.png"],["textures/models/armor/leather_layer_1.png","./leather_1.png"],["textures/models/armor/leather_layer_1_overlay.png","./leather_1_overlay.png"],["textures/models/armor/leather_layer_2.png","./leather_2.png"],["textures/models/armor/leather_layer_2_overlay.png","./leather_2_overlay.png"],["textures/models/armor/turtle_layer_1.png","./turtle_1.png"],["textures/entity/arrow.png","./arrows.png"],["textures/blocks/bamboo_large_leaves.png","./bamboo_leaf.png"],["textures/blocks/bamboo_small_leaves.png","./bamboo_small_leaf.png"],["textures/blocks/bamboo_stage0.png","./bamboo_sapling.png"],["textures/blocks/bamboo_stalk.png","./bamboo_stem.png"],["textures/items/barrier.png","textures/blocks/barrier.png"],["textures/entity/bear/polarbear.png","textures/entity/polarbear.png"],["textures/entity/bed/light_gray.png","./silver.png"],["textures/blocks/beetroots_stage0.png","./beetroots_stage_0.png"],["textures/blocks/beetroots_stage1.png","./beetroots_stage_1.png"],["textures/blocks/beetroots_stage2.png","./beetroots_stage_2.png"],["textures/blocks/beetroots_stage3.png","./beetroots_stage_3.png"],["textures/entity/bell/bell_body.png","./bell.png"],["textures/items/bell.png","./villagebell.png"],["textures/entity/boat/acacia.png","./boat_acacia.png"],["textures/entity/boat/birch.png","./boat_birch.png"],["textures/entity/boat/dark_oak.png","./boat_darkoak.png"],["textures/entity/boat/jungle.png","./boat_jungle.png"],["textures/entity/boat/oak.png","./boat_oak.png"],["textures/entity/boat/spruce.png","./boat_spruce.png"],["textures/items/acacia_boat.png","./boat_acacia.png"],["textures/items/birch_boat.png","./boat_birch.png"],["textures/items/dark_oak_boat.png","./boat_darkoak.png"],["textures/items/jungle_boat.png","./boat_jungle.png"],["textures/items/oak_boat.png","./boat_oak.png"],["textures/items/spruce_boat.png","./boat_spruce.png"],["textures/items/bone_meal.png","./dye_powder_white.png"],["textures/items/book.png","./book_normal.png"],["textures/items/enchanted_book.png","./book_enchanted.png"],["textures/items/knowledge_book.png","./book_knowledge.png"],["textures/items/writable_book.png","./book_writable.png"],["textures/items/written_book.png","./book_written.png"],["textures/items/bow.png","./bow_standby.png"],["textures/blocks/bricks.png","./brick.png"],["textures/items/bucket.png","./bucket_empty.png"],["textures/items/cod_bucket.png","./bucket_cod.png"],["textures/items/lava_bucket.png","./bucket_lava.png"],["textures/items/milk_bucket.png","./bucket_milk.png"],["textures/items/pufferfish_bucket.png","./bucket_pufferfish.png"],["textures/items/salmon_bucket.png","./bucket_salmon.png"],["textures/items/tropical_fish_bucket.png","./bucket_tropical.png"],["textures/items/water_bucket.png","./bucket_water.png"],["textures/blocks/campfire_fire.png","./campfire.png"],["textures/blocks/carrots_stage0.png","./carrots_stage_0.png"],["textures/blocks/carrots_stage1.png","./carrots_stage_1.png"],["textures/blocks/carrots_stage2.png","./carrots_stage_2.png"],["textures/blocks/carrots_stage3.png","./carrots_stage_3.png"],["textures/items/golden_carrot.png","./carrot_golden.png"],["textures/entity/cat/all_black.png","./allblackcat.png"],["textures/entity/cat/black.png","./tuxedo.png"],["textures/entity/cat/british_shorthair.png","./britishshorthair.png"],["textures/entity/cat/cat_collar.png","./graytabby_tame.png"],["textures/entity/cat/red.png","./redtabby.png"],["textures/entity/cat/siamese.png","./siamesecat.png"],["textures/entity/chest/normal_double.png","./double_normal.png"],["textures/items/popped_chorus_fruit.png","./chorus_fruit_popped.png"],["textures/blocks/mossy_cobblestone.png","./cobblestone_mossy.png"],["textures/blocks/cobweb.png","./web.png"],["textures/blocks/cocoa_stage0.png","./cocoa_stage_0.png"],["textures/blocks/cocoa_stage1.png","./cocoa_stage_1.png"],["textures/blocks/cocoa_stage2.png","./cocoa_stage_2.png"],["textures/items/cocoa_beans.png","./dye_powder_brown.png"],["textures/blocks/comparator.png","./comparator_off.png"],["textures/blocks/composter_compost.png","./compost.png"],["textures/blocks/composter_ready.png","./compost_ready.png"],["textures/blocks/black_concrete.png","./concrete_black.png"],["textures/blocks/blue_concrete.png","./concrete_blue.png"],["textures/blocks/brown_concrete.png","./concrete_brown.png"],["textures/blocks/cyan_concrete.png","./concrete_cyan.png"],["textures/blocks/gray_concrete.png","./concrete_gray.png"],["textures/blocks/green_concrete.png","./concrete_green.png"],["textures/blocks/light_blue_concrete.png","./concrete_light_blue.png"],["textures/blocks/light_gray_concrete.png","./concrete_silver.png"],["textures/blocks/lime_concrete.png","./concrete_lime.png"],["textures/blocks/magenta_concrete.png","./concrete_magenta.png"],["textures/blocks/orange_concrete.png","./concrete_orange.png"],["textures/blocks/pink_concrete.png","./concrete_pink.png"],["textures/blocks/purple_concrete.png","./concrete_purple.png"],["textures/blocks/red_concrete.png","./concrete_red.png"],["textures/blocks/white_concrete.png","./concrete_white.png"],["textures/blocks/yellow_concrete.png","./concrete_yellow.png"],["textures/blocks/black_concrete_powder.png","./concrete_powder_black.png"],["textures/blocks/blue_concrete_powder.png","./concrete_powder_blue.png"],["textures/blocks/brown_concrete_powder.png","./concrete_powder_brown.png"],["textures/blocks/cyan_concrete_powder.png","./concrete_powder_cyan.png"],["textures/blocks/gray_concrete_powder.png","./concrete_powder_gray.png"],["textures/blocks/green_concrete_powder.png","./concrete_powder_green.png"],["textures/blocks/light_blue_concrete_powder.png","./concrete_powder_light_blue.png"],["textures/blocks/light_gray_concrete_powder.png","./concrete_powder_silver.png"],["textures/blocks/lime_concrete_powder.png","./concrete_powder_lime.png"],["textures/blocks/magenta_concrete_powder.png","./concrete_powder_magenta.png"],["textures/blocks/orange_concrete_powder.png","./concrete_powder_orange.png"],["textures/blocks/pink_concrete_powder.png","./concrete_powder_pink.png"],["textures/blocks/purple_concrete_powder.png","./concrete_powder_purple.png"],["textures/blocks/red_concrete_powder.png","./concrete_powder_red.png"],["textures/blocks/white_concrete_powder.png","./concrete_powder_white.png"],["textures/blocks/yellow_concrete_powder.png","./concrete_powder_yellow.png"],["textures/entity/conduit/base.png","textures/blocks/conduit_base.png"],["textures/entity/conduit/cage.png","textures/blocks/conduit_cage.png"],["textures/entity/conduit/closed_eye.png","textures/blocks/conduit_closed.png"],["textures/entity/conduit/open_eye.png","textures/blocks/conduit_open.png"],["textures/entity/conduit/wind.png","textures/blocks/conduit_wind_horizontal.png"],["textures/entity/conduit/wind_vertical.png","textures/blocks/conduit_wind_vertical.png"],["textures/items/heart_of_the_sea.png","./heartofthesea_closed.png"],["textures/blocks/brain_coral.png","./coral_plant_pink.png"],["textures/blocks/bubble_coral.png","./coral_plant_purple.png"],["textures/blocks/fire_coral.png","./coral_plant_red.png"],["textures/blocks/horn_coral.png","./coral_plant_yellow.png"],["textures/blocks/tube_coral.png","./coral_plant_blue.png"],["textures/blocks/brain_coral_block.png","./coral_pink.png"],["textures/blocks/bubble_coral_block.png","./coral_purple.png"],["textures/blocks/fire_coral_block.png","./coral_red.png"],["textures/blocks/horn_coral_block.png","./coral_yellow.png"],["textures/blocks/tube_coral_block.png","./coral_blue.png"],["textures/blocks/brain_coral_fan.png","./coral_fan_pink.png"],["textures/blocks/bubble_coral_fan.png","./coral_fan_purple.png"],["textures/blocks/fire_coral_fan.png","./coral_fan_red.png"],["textures/blocks/horn_coral_fan.png","./coral_fan_yellow.png"],["textures/blocks/tube_coral_fan.png","./coral_fan_blue.png"],["textures/blocks/dead_brain_coral_block.png","./coral_pink_dead.png"],["textures/blocks/dead_bubble_coral_block.png","./coral_purple_dead.png"],["textures/blocks/dead_fire_coral_block.png","./coral_red_dead.png"],["textures/blocks/dead_horn_coral_block.png","./coral_yellow_dead.png"],["textures/blocks/dead_tube_coral_block.png","./coral_blue_dead.png"],["textures/blocks/dead_brain_coral_fan.png","./coral_fan_pink_dead.png"],["textures/blocks/dead_bubble_coral_fan.png","./coral_fan_purple_dead.png"],["textures/blocks/dead_fire_coral_fan.png","./coral_fan_red_dead.png"],["textures/blocks/dead_horn_coral_fan.png","./coral_fan_yellow_dead.png"],["textures/blocks/dead_tube_coral_fan.png","./coral_fan_blue_dead.png"],["textures/entity/cow/red_mooshroom.png","./mooshroom.png"],["textures/blocks/dead_bush.png","./deadbush.png"],["textures/blocks/destroy_stage_0.png","textures/environment/destroy_stage_0.png"],["textures/blocks/destroy_stage_1.png","textures/environment/destroy_stage_1.png"],["textures/blocks/destroy_stage_2.png","textures/environment/destroy_stage_2.png"],["textures/blocks/destroy_stage_3.png","textures/environment/destroy_stage_3.png"],["textures/blocks/destroy_stage_4.png","textures/environment/destroy_stage_4.png"],["textures/blocks/destroy_stage_5.png","textures/environment/destroy_stage_5.png"],["textures/blocks/destroy_stage_6.png","textures/environment/destroy_stage_6.png"],["textures/blocks/destroy_stage_7.png","textures/environment/destroy_stage_7.png"],["textures/blocks/destroy_stage_8.png","textures/environment/destroy_stage_8.png"],["textures/blocks/destroy_stage_9.png","textures/environment/destroy_stage_9.png"],["textures/blocks/diorite.png","./stone_diorite.png"],["textures/blocks/polished_diorite.png","./stone_diorite_smooth.png"],["textures/blocks/dispenser_front.png","./dispenser_front_horizontal.png"],["textures/blocks/acacia_door_bottom.png","./door_acacia_lower.png"],["textures/blocks/birch_door_bottom.png","./door_birch_lower.png"],["textures/blocks/dark_oak_door_bottom.png","./door_dark_oak_lower.png"],["textures/blocks/iron_door_bottom.png","./door_iron_lower.png"],["textures/blocks/jungle_door_bottom.png","./door_jungle_lower.png"],["textures/blocks/oak_door_bottom.png","./door_wood_lower.png"],["textures/blocks/spruce_door_bottom.png","./door_spruce_lower.png"],["textures/blocks/acacia_door_top.png","./door_acacia_upper.png"],["textures/blocks/birch_door_top.png","./door_birch_upper.png"],["textures/blocks/dark_oak_door_top.png","./door_dark_oak_upper.png"],["textures/blocks/iron_door_top.png","./door_iron_upper.png"],["textures/blocks/jungle_door_top.png","./door_jungle_upper.png"],["textures/blocks/oak_door_top.png","./door_wood_upper.png"],["textures/blocks/spruce_door_top.png","./door_spruce_upper.png"],["textures/items/acacia_door.png","./door_acacia.png"],["textures/items/birch_door.png","./door_birch.png"],["textures/items/dark_oak_door.png","./door_dark_oak.png"],["textures/items/iron_door.png","./door_iron.png"],["textures/items/jungle_door.png","./door_jungle.png"],["textures/items/oak_door.png","./door_wood.png"],["textures/items/spruce_door.png","./door_spruce.png"],["textures/entity/enderdragon","./dragon"],["textures/entity/dragon/dragon_fireball.png","textures/items/dragon_fireball.png"],["textures/items/dragon_breath.png","./dragons_breath.png"],["textures/items/fire_charge.png","./fireball.png"],["textures/blocks/dropper_front.png","./dropper_front_horizontal.png"],["textures/items/black_dye.png","./dye_powder_black_new.png"],["textures/items/blue_dye.png","./dye_powder_blue_new.png"],["textures/items/brown_dye.png","./dye_powder_brown_new.png"],["textures/items/cyan_dye.png","./dye_powder_cyan.png"],["textures/items/gray_dye.png","./dye_powder_gray.png"],["textures/items/green_dye.png","./dye_powder_green.png"],["textures/items/light_blue_dye.png","./dye_powder_light_blue.png"],["textures/items/light_gray_dye.png","./dye_powder_silver.png"],["textures/items/lime_dye.png","./dye_powder_lime.png"],["textures/items/magenta_dye.png","./dye_powder_magenta.png"],["textures/items/orange_dye.png","./dye_powder_orange.png"],["textures/items/pink_dye.png","./dye_powder_pink.png"],["textures/items/purple_dye.png","./dye_powder_purple.png"],["textures/items/red_dye.png","./dye_powder_red.png"],["textures/items/white_dye.png","./dye_powder_white_new.png"],["textures/items/yellow_dye.png","./dye_powder_yellow.png"],["textures/entity/end_crystal","./endercrystal"],["textures/entity/endercrystal/end_crystal.png","./endercrystal.png"],["textures/entity/endercrystal/end_crystal_beam.png","./endercrystal_beam.png"],["textures/blocks/end_portal_frame_eye.png","./endframe_eye.png"],["textures/blocks/end_portal_frame_side.png","./endframe_side.png"],["textures/blocks/end_portal_frame_top.png","./endframe_top.png"],["textures/blocks/end_stone_bricks.png","./end_bricks.png"],["textures/blocks/farmland.png","./farmland_dry.png"],["textures/blocks/farmland_moist.png","./farmland_wet.png"],["textures/blocks/large_fern_bottom.png","./double_plant_fern_bottom.png"],["textures/blocks/large_fern_top.png","./double_plant_fern_top.png"],["textures/items/firework_rocket.png","./fireworks.png"],["textures/items/firework_star_overlay.png","./fireworks_charge.png"],["textures/entity/fishing_hook.png","./fishhook.png"],["textures/items/cod.png","./fish_raw.png"],["textures/items/cooked_cod.png","./fish_cooked.png"],["textures/items/cooked_salmon.png","./fish_salmon_cooked.png"],["textures/items/fishing_rod.png","./fishing_rod_uncast.png"],["textures/items/pufferfish.png","./fish_pufferfish_raw.png"],["textures/items/salmon.png","./fish_salmon_raw.png"],["textures/items/tropical_fish.png","./fish_clownfish_raw.png"],["textures/items/beef.png","./beef_raw.png"],["textures/items/chicken.png","./chicken_raw.png"],["textures/items/cooked_beef.png","./beef_cooked.png"],["textures/items/cooked_chicken.png","./chicken_cooked.png"],["textures/items/cooked_mutton.png","./mutton_cooked.png"],["textures/items/cooked_porkchop.png","./porkchop_cooked.png"],["textures/items/mutton.png","./mutton_raw.png"],["textures/items/porkchop.png","./porkchop_raw.png"],["textures/blocks/fletching_table_front.png","./fletcher_table_side2.png"],["textures/blocks/fletching_table_side.png","./fletcher_table_side1.png"],["textures/blocks/fletching_table_top.png","./fletcher_table_top.png"],["textures/blocks/allium.png","./flower_allium.png"],["textures/blocks/azure_bluet.png","./flower_houstonia.png"],["textures/blocks/blue_orchid.png","./flower_blue_orchid.png"],["textures/blocks/cornflower.png","./flower_cornflower.png"],["textures/blocks/dandelion.png","./flower_dandelion.png"],["textures/blocks/lilac_bottom.png","./double_plant_syringa_bottom.png"],["textures/blocks/lilac_top.png","./double_plant_syringa_top.png"],["textures/blocks/lily_of_the_valley.png","./flower_lily_of_the_valley.png"],["textures/blocks/orange_tulip.png","./flower_tulip_orange.png"],["textures/blocks/poppy.png","./flower_rose.png"],["textures/blocks/oxeye_daisy.png","./flower_oxeye_daisy.png"],["textures/blocks/peony_bottom.png","./double_plant_paeonia_bottom.png"],["textures/blocks/peony_top.png","./double_plant_paeonia_top.png"],["textures/blocks/pink_tulip.png","./flower_tulip_pink.png"],["textures/blocks/red_tulip.png","./flower_tulip_red.png"],["textures/blocks/rose_bush_bottom.png","./double_plant_rose_bottom.png"],["textures/blocks/rose_bush_top.png","./double_plant_rose_top.png"],["textures/blocks/sunflower_back.png","./double_plant_sunflower_back.png"],["textures/blocks/sunflower_bottom.png","./double_plant_sunflower_bottom.png"],["textures/blocks/sunflower_front.png","./double_plant_sunflower_front.png"],["textures/blocks/sunflower_top.png","./double_plant_sunflower_top.png"],["textures/blocks/white_tulip.png","./flower_tulip_white.png"],["textures/blocks/wither_rose.png","./flower_wither_rose.png"],["textures/blocks/blast_furnace_front.png","./blast_furnace_front_off.png"],["textures/blocks/furnace_front.png","./furnace_front_off.png"],["textures/blocks/smoker_front.png","./smoker_front_off.png"],["textures/blocks/black_stained_glass.png","./glass_black.png"],["textures/blocks/blue_stained_glass.png","./glass_blue.png"],["textures/blocks/brown_stained_glass.png","./glass_brown.png"],["textures/blocks/cyan_stained_glass.png","./glass_cyan.png"],["textures/blocks/gray_stained_glass.png","./glass_gray.png"],["textures/blocks/green_stained_glass.png","./glass_green.png"],["textures/blocks/light_blue_stained_glass.png","./glass_light_blue.png"],["textures/blocks/light_gray_stained_glass.png","./glass_silver.png"],["textures/blocks/lime_stained_glass.png","./glass_lime.png"],["textures/blocks/magenta_stained_glass.png","./glass_magenta.png"],["textures/blocks/orange_stained_glass.png","./glass_orange.png"],["textures/blocks/pink_stained_glass.png","./glass_pink.png"],["textures/blocks/purple_stained_glass.png","./glass_purple.png"],["textures/blocks/red_stained_glass.png","./glass_red.png"],["textures/blocks/white_stained_glass.png","./glass_white.png"],["textures/blocks/yellow_stained_glass.png","./glass_yellow.png"],["textures/blocks/black_stained_glass_pane_top.png","./glass_pane_top_black.png"],["textures/blocks/blue_stained_glass_pane_top.png","./glass_pane_top_blue.png"],["textures/blocks/brown_stained_glass_pane_top.png","./glass_pane_top_brown.png"],["textures/blocks/cyan_stained_glass_pane_top.png","./glass_pane_top_cyan.png"],["textures/blocks/gray_stained_glass_pane_top.png","./glass_pane_top_gray.png"],["textures/blocks/green_stained_glass_pane_top.png","./glass_pane_top_green.png"],["textures/blocks/light_blue_stained_glass_pane_top.png","./glass_pane_top_light_blue.png"],["textures/blocks/light_gray_stained_glass_pane_top.png","./glass_pane_top_silver.png"],["textures/blocks/lime_stained_glass_pane_top.png","./glass_pane_top_lime.png"],["textures/blocks/magenta_stained_glass_pane_top.png","./glass_pane_top_magenta.png"],["textures/blocks/orange_stained_glass_pane_top.png","./glass_pane_top_orange.png"],["textures/blocks/pink_stained_glass_pane_top.png","./glass_pane_top_pink.png"],["textures/blocks/purple_stained_glass_pane_top.png","./glass_pane_top_purple.png"],["textures/blocks/red_stained_glass_pane_top.png","./glass_pane_top_red.png"],["textures/blocks/white_stained_glass_pane_top.png","./glass_pane_top_white.png"],["textures/blocks/yellow_stained_glass_pane_top.png","./glass_pane_top_yellow.png"],["textures/blocks/black_glazed_terracotta.png","./glazed_terracotta_black.png"],["textures/blocks/blue_glazed_terracotta.png","./glazed_terracotta_blue.png"],["textures/blocks/brown_glazed_terracotta.png","./glazed_terracotta_brown.png"],["textures/blocks/cyan_glazed_terracotta.png","./glazed_terracotta_cyan.png"],["textures/blocks/gray_glazed_terracotta.png","./glazed_terracotta_gray.png"],["textures/blocks/green_glazed_terracotta.png","./glazed_terracotta_green.png"],["textures/blocks/light_blue_glazed_terracotta.png","./glazed_terracotta_light_blue.png"],["textures/blocks/light_gray_glazed_terracotta.png","./glazed_terracotta_silver.png"],["textures/blocks/lime_glazed_terracotta.png","./glazed_terracotta_lime.png"],["textures/blocks/magenta_glazed_terracotta.png","./glazed_terracotta_magenta.png"],["textures/blocks/orange_glazed_terracotta.png","./glazed_terracotta_orange.png"],["textures/blocks/pink_glazed_terracotta.png","./glazed_terracotta_pink.png"],["textures/blocks/purple_glazed_terracotta.png","./glazed_terracotta_purple.png"],["textures/blocks/red_glazed_terracotta.png","./glazed_terracotta_red.png"],["textures/blocks/white_glazed_terracotta.png","./glazed_terracotta_white.png"],["textures/blocks/yellow_glazed_terracotta.png","./glazed_terracotta_yellow.png"],["textures/blocks/granite.png","./stone_granite.png"],["textures/blocks/polished_granite.png","./stone_granite_smooth.png"],["textures/blocks/grass.png","./tallgrass.png"],["textures/blocks/grass_block_side.png","./grass_side_carried.png"],["textures/blocks/grass_block_side_overlay.png","./grass_side.png"],["textures/blocks/grass_block_snow.png","./grass_side_snowed.png"],["textures/blocks/grass_block_top.png","./grass_top.png"],["textures/blocks/tall_grass_bottom.png","./double_plant_grass_bottom.png"],["textures/blocks/tall_grass_top.png","./double_plant_grass_top.png"],["textures/entity/horse","./horse2"],["textures/blocks/packed_ice.png","./ice_packed.png"],["textures/entity/illager/evoker_fangs.png","./fangs.png"],["textures/entity/illager/pillager.png","textures/entity/pillager.png"],["textures/entity/illager/vex.png","textures/entity/vex/vex.png"],["textures/entity/illager/vex_charging.png","textures/entity/vex/vex_charging.png"],["textures/entity/illager/vindicator.png","textures/entity/vindicator.png"],["textures/items/ink_sac.png","./dye_powder_black.png"],["textures/blocks/item_frame.png","./itemframe_background.png"],["textures/blocks/jigsaw_bottom.png","./jigsaw_back.png"],["textures/blocks/jigsaw_top.png","./jigsaw_front.png"],["textures/blocks/dried_kelp_side.png","./dried_kelp_side_a.png"],["textures/blocks/kelp.png","./kelp_top.png"],["textures/blocks/kelp_plant.png","./kelp_a.png"],["textures/items/lapis_lazuli.png","./dye_powder_blue.png"],["textures/blocks/acacia_leaves.png","./leaves_acacia.png"],["textures/blocks/birch_leaves.png","./leaves_birch.png"],["textures/blocks/dark_oak_leaves.png","./leaves_big_oak.png"],["textures/blocks/jungle_leaves.png","./leaves_jungle.png"],["textures/blocks/oak_leaves.png","./leaves_oak.png"],["textures/blocks/spruce_leaves.png","./leaves_spruce.png"],["textures/blocks/lily_pad.png","./waterlily.png"],["textures/entity/llama/brown.png","./llama_brown.png"],["textures/entity/llama/creamy.png","./llama_creamy.png"],["textures/entity/llama/gray.png","./llama_gray.png"],["textures/entity/llama/white.png","./llama_white.png"],["textures/entity/llama/decor/black.png","./decor_black.png"],["textures/entity/llama/decor/blue.png","./decor_blue.png"],["textures/entity/llama/decor/brown.png","./decor_brown.png"],["textures/entity/llama/decor/cyan.png","./decor_cyan.png"],["textures/entity/llama/decor/gray.png","./decor_gray.png"],["textures/entity/llama/decor/green.png","./decor_green.png"],["textures/entity/llama/decor/light_blue.png","./decor_light_blue.png"],["textures/entity/llama/decor/light_gray.png","./decor_silver.png"],["textures/entity/llama/decor/lime.png","./decor_lime.png"],["textures/entity/llama/decor/magenta.png","./decor_magenta.png"],["textures/entity/llama/decor/orange.png","./decor_orange.png"],["textures/entity/llama/decor/pink.png","./decor_pink.png"],["textures/entity/llama/decor/purple.png","./decor_purple.png"],["textures/entity/llama/decor/red.png","./decor_red.png"],["textures/entity/llama/decor/trader_llama.png","./trader_llama_decor.png"],["textures/entity/llama/decor/white.png","./decor_white.png"],["textures/entity/llama/decor/yellow.png","./decor_yellow.png"],["textures/blocks/acacia_log.png","./log_acacia.png"],["textures/blocks/birch_log.png","./log_birch.png"],["textures/blocks/dark_oak_log.png","./log_big_oak.png"],["textures/blocks/jungle_log.png","./log_jungle.png"],["textures/blocks/oak_log.png","./log_oak.png"],["textures/blocks/spruce_log.png","./log_spruce.png"],["textures/blocks/acacia_log_top.png","./log_acacia_top.png"],["textures/blocks/birch_log_top.png","./log_birch_top.png"],["textures/blocks/dark_oak_log_top.png","./log_big_oak_top.png"],["textures/blocks/jungle_log_top.png","./log_jungle_top.png"],["textures/blocks/oak_log_top.png","./log_oak_top.png"],["textures/blocks/spruce_log_top.png","./log_spruce_top.png"],["textures/items/filled_map.png","./map_filled.png"],["textures/items/filled_map_markings.png","./map_filled_markings.png"],["textures/items/map.png","./map_empty.png"],["textures/blocks/attached_melon_stem.png","./melon_stem_connected.png"],["textures/blocks/melon_stem.png","./melon_stem_disconnected.png"],["textures/items/glistering_melon_slice.png","./melon_speckled.png"],["textures/items/melon_slice.png","./melon.png"],["textures/items/chest_minecart.png","./minecart_chest.png"],["textures/items/command_block_minecart.png","./minecart_command_block.png"],["textures/items/furnace_minecart.png","./minecart_furnace.png"],["textures/items/hopper_minecart.png","./minecart_hopper.png"],["textures/items/minecart.png","./minecart_normal.png"],["textures/items/tnt_minecart.png","./minecart_tnt.png"],["textures/blocks/brown_mushroom.png","./mushroom_brown.png"],["textures/blocks/red_mushroom.png","./mushroom_red.png"],["textures/blocks/brown_mushroom_block.png","./mushroom_block_skin_brown.png"],["textures/blocks/red_mushroom_block.png","./mushroom_block_skin_red.png"],["textures/blocks/mushroom_stem.png","./mushroom_block_skin_stem.png"],["textures/items/music_disc_11.png","./record_11.png"],["textures/items/music_disc_13.png","./record_13.png"],["textures/items/music_disc_blocks.png","./record_blocks.png"],["textures/items/music_disc_cat.png","./record_cat.png"],["textures/items/music_disc_chirp.png","./record_chirp.png"],["textures/items/music_disc_far.png","./record_far.png"],["textures/items/music_disc_mall.png","./record_mall.png"],["textures/items/music_disc_mellohi.png","./record_mellohi.png"],["textures/items/music_disc_stal.png","./record_stal.png"],["textures/items/music_disc_strad.png","./record_strad.png"],["textures/items/music_disc_wait.png","./record_wait.png"],["textures/items/music_disc_ward.png","./record_ward.png"],["textures/blocks/nether_bricks.png","./nether_brick.png"],["textures/blocks/red_nether_bricks.png","./red_nether_brick.png"],["textures/items/nether_brick.png","./netherbrick.png"],["textures/blocks/nether_portal.png","./portal.png"],["textures/blocks/nether_wart_stage0.png","./nether_wart_stage_0.png"],["textures/blocks/nether_wart_stage1.png","./nether_wart_stage_1.png"],["textures/blocks/nether_wart_stage2.png","./nether_wart_stage_2.png"],["textures/blocks/note_block.png","./noteblock.png"],["textures/items/nautilus_shell.png","./nautilus.png"],["textures/blocks/observer_back_on.png","./observer_back_lit.png"],["textures/entity/panda/aggressive_panda.png","./panda_aggressive.png"],["textures/entity/panda/brown_panda.png","./panda_brown.png"],["textures/entity/panda/lazy_panda.png","./panda_lazy.png"],["textures/entity/panda/playful_panda.png","./panda_playful.png"],["textures/entity/panda/weak_panda.png","./panda_sneezy.png"],["textures/entity/panda/worried_panda.png","./panda_worried.png"],["textures/blocks/piston_top.png","./piston_top_normal.png"],["textures/blocks/acacia_planks.png","./planks_acacia.png"],["textures/blocks/birch_planks.png","./planks_birch.png"],["textures/blocks/dark_oak_planks.png","./planks_big_oak.png"],["textures/blocks/jungle_planks.png","./planks_jungle.png"],["textures/blocks/oak_planks.png","./planks_oak.png"],["textures/blocks/spruce_planks.png","./planks_spruce.png"],["textures/blocks/podzol_side.png","./dirt_podzol_side.png"],["textures/blocks/podzol_top.png","./dirt_podzol_top.png"],["textures/blocks/potatoes_stage0.png","./potatoes_stage_0.png"],["textures/blocks/potatoes_stage1.png","./potatoes_stage_1.png"],["textures/blocks/potatoes_stage2.png","./potatoes_stage_2.png"],["textures/blocks/potatoes_stage3.png","./potatoes_stage_3.png"],["textures/items/baked_potato.png","./potato_baked.png"],["textures/items/poisonous_potato.png","./potato_poisonous.png"],["textures/items/lingering_potion.png","./potion_bottle_lingering_empty.png"],["textures/items/potion.png","./potion_bottle_empty.png"],["textures/items/splash_potion.png","./potion_bottle_splash_empty.png"],["textures/blocks/dark_prismarine.png","./prismarine_dark.png"],["textures/blocks/prismarine.png","./prismarine_rough.png"],["textures/blocks/attached_pumpkin_stem.png","./pumpkin_stem_connected.png"],["textures/blocks/carved_pumpkin.png","./pumpkin_face_off.png"],["textures/blocks/jack_o_lantern.png","./pumpkin_face_on.png"],["textures/blocks/pumpkin_stem.png","./pumpkin_stem_disconnected.png"],["textures/blocks/chiseled_quartz_block.png","./quartz_block_chiseled.png"],["textures/blocks/chiseled_quartz_block_top.png","./quartz_block_chiseled_top.png"],["textures/blocks/nether_quartz_ore.png","./quartz_ore.png"],["textures/blocks/quartz_pillar.png","./quartz_block_lines.png"],["textures/blocks/quartz_pillar_top.png","./quartz_block_lines_top.png"],["textures/entity/rabbit/black.png","./blackrabbit.png"],["textures/items/cooked_rabbit.png","./rabbit_cooked.png"],["textures/items/rabbit.png","./rabbit_raw.png"],["textures/blocks/activator_rail.png","./rail_activator.png"],["textures/blocks/activator_rail_on.png","./rail_activator_powered.png"],["textures/blocks/detector_rail.png","./rail_detector.png"],["textures/blocks/detector_rail_on.png","./rail_detector_powered.png"],["textures/blocks/powered_rail.png","./rail_golden.png"],["textures/blocks/powered_rail_on.png","./rail_golden_powered.png"],["textures/blocks/rail.png","./rail_normal.png"],["textures/blocks/rail_corner.png","./rail_normal_turned.png"],["textures/blocks/chiseled_red_sandstone.png","./red_sandstone_carved.png"],["textures/blocks/cut_red_sandstone.png","./red_sandstone_smooth.png"],["textures/blocks/red_sandstone.png","./red_sandstone_normal.png"],["textures/items/redstone.png","./redstone_dust.png"],["textures/blocks/redstone_lamp.png","./redstone_lamp_off.png"],["textures/blocks/repeater.png","./repeater_off.png"],["textures/entity/pig/pig_saddle.png","textures/entity/saddle.png"],["textures/blocks/chiseled_sandstone.png","./sandstone_carved.png"],["textures/blocks/cut_sandstone.png","./sandstone_smooth.png"],["textures/blocks/sandstone.png","./sandstone_normal.png"],["textures/blocks/acacia_sapling.png","./sapling_acacia.png"],["textures/blocks/birch_sapling.png","./sapling_birch.png"],["textures/blocks/dark_oak_sapling.png","./sapling_roofed_oak.png"],["textures/blocks/jungle_sapling.png","./sapling_jungle.png"],["textures/blocks/oak_sapling.png","./sapling_oak.png"],["textures/blocks/spruce_sapling.png","./sapling_spruce.png"],["textures/blocks/tall_seagrass_top.png","./seagrass_doubletall_top_a.png"],["textures/blocks/tall_seagrass_bottom.png","./seagrass_doubletall_bottom_a.png"],["textures/items/seagrass.png","textures/blocks/seagrass_carried.png"],["textures/items/beetroot_seeds.png","./seeds_beetroot.png"],["textures/items/melon_seeds.png","./seeds_melon.png"],["textures/items/pumpkin_seeds.png","./seeds_pumpkin.png"],["textures/items/wheat_seeds.png","./seeds_wheat.png"],["textures/entity/shield_base_nopattern.png","./shield.png"],["textures/blocks/black_shulker_box.png","./shulker_top_black.png"],["textures/blocks/blue_shulker_box.png","./shulker_top_blue.png"],["textures/blocks/brown_shulker_box.png","./shulker_top_brown.png"],["textures/blocks/cyan_shulker_box.png","./shulker_top_cyan.png"],["textures/blocks/gray_shulker_box.png","./shulker_top_gray.png"],["textures/blocks/green_shulker_box.png","./shulker_top_green.png"],["textures/blocks/light_blue_shulker_box.png","./shulker_top_light_blue.png"],["textures/blocks/light_gray_shulker_box.png","./shulker_top_silver.png"],["textures/blocks/lime_shulker_box.png","./shulker_top_lime.png"],["textures/blocks/magenta_shulker_box.png","./shulker_top_magenta.png"],["textures/blocks/orange_shulker_box.png","./shulker_top_orange.png"],["textures/blocks/pink_shulker_box.png","./shulker_top_pink.png"],["textures/blocks/purple_shulker_box.png","./shulker_top_purple.png"],["textures/blocks/red_shulker_box.png","./shulker_top_red.png"],["textures/blocks/shulker_box.png","./shulker_top_undyed.png"],["textures/blocks/white_shulker_box.png","./shulker_top_white.png"],["textures/blocks/yellow_shulker_box.png","./shulker_top_yellow.png"],["textures/entity/shulker/shulker.png","./shulker_undyed.png"],["textures/entity/shulker/shulker_black.png","./shulker_black.png"],["textures/entity/shulker/shulker_blue.png","./shulker_blue.png"],["textures/entity/shulker/shulker_brown.png","./shulker_brown.png"],["textures/entity/shulker/shulker_cyan.png","./shulker_cyan.png"],["textures/entity/shulker/shulker_gray.png","./shulker_gray.png"],["textures/entity/shulker/shulker_green.png","./shulker_green.png"],["textures/entity/shulker/shulker_light_blue.png","./shulker_light_blue.png"],["textures/entity/shulker/shulker_light_gray.png","./shulker_silver.png"],["textures/entity/shulker/shulker_lime.png","./shulker_lime.png"],["textures/entity/shulker/shulker_magenta.png","./shulker_magenta.png"],["textures/entity/shulker/shulker_orange.png","./shulker_orange.png"],["textures/entity/shulker/shulker_pink.png","./shulker_pink.png"],["textures/entity/shulker/shulker_purple.png","./shulker_purple.png"],["textures/entity/shulker/shulker_red.png","./shulker_red.png"],["textures/entity/shulker/shulker_white.png","./shulker_white.png"],["textures/entity/shulker/shulker_yellow.png","./shulker_yellow.png"],["textures/entity/signs/acacia.png","textures/entity/sign_acacia.png"],["textures/entity/signs/birch.png","textures/entity/sign_birch.png"],["textures/entity/signs/dark_oak.png","textures/entity/sign_darkoak.png"],["textures/entity/signs/jungle.png","textures/entity/sign_jungle.png"],["textures/entity/signs/oak.png","textures/entity/sign.png"],["textures/entity/signs/spruce.png","textures/entity/sign_spruce.png"],["textures/items/acacia_sign.png","./sign_acacia.png"],["textures/items/birch_sign.png","./sign_birch.png"],["textures/items/dark_oak_sign.png","./sign_darkoak.png"],["textures/items/jungle_sign.png","./sign_jungle.png"],["textures/items/oak_sign.png","./sign.png"],["textures/items/spruce_sign.png","./sign_spruce.png"],["textures/blocks/slime_block.png","./slime.png"],["textures/items/slime_ball.png","./slimeball.png"],["textures/blocks/smooth_stone.png","./stone_slab_top.png"],["textures/blocks/smooth_stone_slab_side.png","./stone_slab_side.png"],["textures/blocks/spawner.png","./mob_spawner.png"],["textures/items/fermented_spider_eye.png","./spider_eye_fermented.png"],["textures/blocks/wet_sponge.png","./sponge_wet.png"],["textures/blocks/chiseled_stone_bricks.png","./stonebrick_carved.png"],["textures/blocks/cracked_stone_bricks.png","./stonebrick_cracked.png"],["textures/blocks/mossy_stone_bricks.png","./stonebrick_mossy.png"],["textures/blocks/stone_bricks.png","./stonebrick.png"],["textures/blocks/stonecutter_bottom.png","./stonecutter2_bottom.png"],["textures/blocks/stonecutter_saw.png","./stonecutter2_saw.png"],["textures/blocks/stonecutter_side.png","./stonecutter2_side.png"],["textures/blocks/stonecutter_top.png","./stonecutter2_top.png"],["textures/items/structure_void.png","textures/blocks/structure_void.png"],["textures/blocks/sugar_cane.png","./reeds.png"],["textures/items/sugar_cane.png","./reeds.png"],["textures/blocks/black_terracotta.png","./hardened_clay_stained_black.png"],["textures/blocks/blue_terracotta.png","./hardened_clay_stained_blue.png"],["textures/blocks/brown_terracotta.png","./hardened_clay_stained_brown.png"],["textures/blocks/cyan_terracotta.png","./hardened_clay_stained_cyan.png"],["textures/blocks/gray_terracotta.png","./hardened_clay_stained_gray.png"],["textures/blocks/green_terracotta.png","./hardened_clay_stained_green.png"],["textures/blocks/light_blue_terracotta.png","./hardened_clay_stained_light_blue.png"],["textures/blocks/light_gray_terracotta.png","./hardened_clay_stained_silver.png"],["textures/blocks/lime_terracotta.png","./hardened_clay_stained_lime.png"],["textures/blocks/magenta_terracotta.png","./hardened_clay_stained_magenta.png"],["textures/blocks/orange_terracotta.png","./hardened_clay_stained_orange.png"],["textures/blocks/pink_terracotta.png","./hardened_clay_stained_pink.png"],["textures/blocks/purple_terracotta.png","./hardened_clay_stained_purple.png"],["textures/blocks/red_terracotta.png","./hardened_clay_stained_red.png"],["textures/blocks/terracotta.png","./hardened_clay.png"],["textures/blocks/white_terracotta.png","./hardened_clay_stained_white.png"],["textures/blocks/yellow_terracotta.png","./hardened_clay_stained_yellow.png"],["textures/blocks/redstone_torch.png","./redstone_torch_on.png"],["textures/blocks/torch.png","./torch_on.png"],["textures/items/totem_of_undying.png","./totem.png"],["textures/blocks/oak_trapdoor.png","./trapdoor.png"],["textures/blocks/tripwire.png","./trip_wire.png"],["textures/blocks/tripwire_hook.png","./trip_wire_source.png"],["textures/blocks/turtle_egg.png","./turtle_egg_not_cracked.png"],["textures/entity/turtle/big_sea_turtle.png","textures/entity/sea_turtle.png"],["textures/items/scute.png","./turtle_shell_piece.png"],["textures/entity/villager","./villager2"],["textures/entity/villager2/profession","./professions"],["textures/entity/villager2/profession_level","./levels"],["textures/entity/villager2/type","./biomes"],["textures/entity/villager2/biomes/desert.png","./biome_desert.png"],["textures/entity/villager2/biomes/jungle.png","./biome_jungle.png"],["textures/entity/villager2/biomes/plains.png","./biome_plains.png"],["textures/entity/villager2/biomes/savanna.png","./biome_savanna.png"],["textures/entity/villager2/biomes/snow.png","./biome_snow.png"],["textures/entity/villager2/biomes/swamp.png","./biome_swamp.png"],["textures/entity/villager2/biomes/taiga.png","./biome_taiga.png"],["textures/entity/villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/villager2/levels/gold.png","./level_gold.png"],["textures/entity/villager2/levels/iron.png","./level_iron.png"],["textures/entity/villager2/levels/stone.png","./level_stone.png"],["textures/entity/villager2/professions/mason.png","./stonemason.png"],["textures/blocks/water_flow.png","./water_flow_grey.png"],["textures/blocks/water_still.png","./water_still_grey.png"],["textures/blocks/wheat_stage0.png","./wheat_stage_0.png"],["textures/blocks/wheat_stage1.png","./wheat_stage_1.png"],["textures/blocks/wheat_stage2.png","./wheat_stage_2.png"],["textures/blocks/wheat_stage3.png","./wheat_stage_3.png"],["textures/blocks/wheat_stage4.png","./wheat_stage_4.png"],["textures/blocks/wheat_stage5.png","./wheat_stage_5.png"],["textures/blocks/wheat_stage6.png","./wheat_stage_6.png"],["textures/blocks/wheat_stage7.png","./wheat_stage_7.png"],["textures/entity/wither","./wither_boss"],["textures/blocks/black_wool.png","./wool_colored_black.png"],["textures/blocks/blue_wool.png","./wool_colored_blue.png"],["textures/blocks/brown_wool.png","./wool_colored_brown.png"],["textures/blocks/cyan_wool.png","./wool_colored_cyan.png"],["textures/blocks/gray_wool.png","./wool_colored_gray.png"],["textures/blocks/green_wool.png","./wool_colored_green.png"],["textures/blocks/light_blue_wool.png","./wool_colored_light_blue.png"],["textures/blocks/light_gray_wool.png","./wool_colored_silver.png"],["textures/blocks/lime_wool.png","./wool_colored_lime.png"],["textures/blocks/magenta_wool.png","./wool_colored_magenta.png"],["textures/blocks/orange_wool.png","./wool_colored_orange.png"],["textures/blocks/pink_wool.png","./wool_colored_pink.png"],["textures/blocks/purple_wool.png","./wool_colored_purple.png"],["textures/blocks/red_wool.png","./wool_colored_red.png"],["textures/blocks/white_wool.png","./wool_colored_white.png"],["textures/blocks/yellow_wool.png","./wool_colored_yellow.png"],["textures/entity/zombie_pigman.png","./pig/pigzombie.png"],["textures/entity/zombie_villager","./zombie_villager2"],["textures/entity/zombie_villager2/profession","./professions"],["textures/entity/zombie_villager2/profession_level","./levels"],["textures/entity/zombie_villager2/type","./biomes"],["textures/entity/zombie_villager2/zombie_villager.png","./zombie-villager.png"],["textures/entity/zombie_villager2/biomes/desert.png","./biome-desert-zombie.png"],["textures/entity/zombie_villager2/biomes/jungle.png","./biome-jungle-zombie.png"],["textures/entity/zombie_villager2/biomes/plains.png","./biome-plains-zombie.png"],["textures/entity/zombie_villager2/biomes/savanna.png","./biome-savanna-zombie.png"],["textures/entity/zombie_villager2/biomes/snow.png","./biome-snow-zombie.png"],["textures/entity/zombie_villager2/biomes/swamp.png","./biome-swamp-zombie.png"],["textures/entity/zombie_villager2/biomes/taiga.png","./biome-taiga-zombie.png"],["textures/entity/zombie_villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/zombie_villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/zombie_villager2/levels/gold.png","./level_gold.png"],["textures/entity/zombie_villager2/levels/iron.png","./level_iron.png"],["textures/entity/zombie_villager2/levels/stone.png","./level_stone.png"],["textures/entity/zombie_villager2/professions/mason.png","./stonemason.png"]];for(const e of t)yield e}},[]],[Re,[]],[Ne,[]],[ze,[]],[Ue,[]],[He,[]],[$e,[]],[Je,[]],[class extends p{async convert(){const t=[];for await(const[e,n,r,i,o]of this.getData()){const a=_.fromPath(e,this.path),s=_.fromPath(n,this.path),u=_.fromPath(r,this.path),c=_.toPath(i,s,this.path),l=_.toPath(o,s,this.path);if(f.a.existsSync(a)&&f.a.existsSync(s)&&f.a.existsSync(u)){_.log("Convert redstone dust");const t=await Fe.read(s);t.rotate(90).crop(0,0,t.getWidth()-2,t.getHeight()-2),await t.writeAsync(l),t.composite(await Fe.read(u),0,0),t.composite(await Fe.read(a),0,0),await t.writeAsync(c)}t.push(e),t.push(n),t.push(r)}return[[v,t]]}async*getData(){yield["textures/blocks/redstone_dust_dot.png","textures/blocks/redstone_dust_line0.png","textures/blocks/redstone_dust_line1.png","./redstone_dust_cross.png","./redstone_dust_line.png"]}},[]],[class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=_.fromPath(e,this.path),i=_.fromPath(n,this.path);if(f.a.existsSync(r)&&f.a.existsSync(i)){_.log("Convert sheep");const t=await Fe.read(r),e=await Fe.read(i),n=await Fe.create(t.getWidth(),t.getHeight()+e.getHeight());n.composite(t,0,0),n.composite(e,0,t.getHeight()),n.scan(0,0,n.getWidth(),t.getHeight(),(t,e,r)=>{255===n.bitmap.data[r+3]&&(n.bitmap.data[r+3]=1)}),await n.writeAsync(r)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/sheep/sheep.png","textures/entity/sheep/sheep_fur.png"]}},[]],[class extends p{async convert(){for await(const t of this.getData()){const e=_.fromPath(t,this.path);if(f.a.existsSync(e)){_.log(`Convert villager ${t}`);const n=await Fe.read(e);n.scan(0,0,n.getWidth(),n.getHeight(),(t,e,r)=>{0===n.bitmap.data[r+3]&&(n.bitmap.data[r]=255,n.bitmap.data[r+1]=255,n.bitmap.data[r+2]=255,n.bitmap.data[r+3]=0)}),await n.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/villager2/professions/armorer.png","textures/entity/villager2/professions/butcher.png","textures/entity/villager2/professions/cartographer.png","textures/entity/villager2/professions/cleric.png","textures/entity/villager2/professions/farmer.png","textures/entity/villager2/professions/fisherman.png","textures/entity/villager2/professions/fletcher.png","textures/entity/villager2/professions/leatherworker.png","textures/entity/villager2/professions/librarian.png","textures/entity/villager2/professions/nitwit.png","textures/entity/villager2/professions/shepherd.png","textures/entity/villager2/professions/stonemason.png","textures/entity/villager2/professions/toolsmith.png","textures/entity/villager2/professions/unskilled.png","textures/entity/villager2/professions/weaponsmith.png","textures/entity/zombie_villager2/professions/armorer.png","textures/entity/zombie_villager2/professions/butcher.png","textures/entity/zombie_villager2/professions/cartographer.png","textures/entity/zombie_villager2/professions/cleric.png","textures/entity/zombie_villager2/professions/farmer.png","textures/entity/zombie_villager2/professions/fisherman.png","textures/entity/zombie_villager2/professions/fletcher.png","textures/entity/zombie_villager2/professions/leatherworker.png","textures/entity/zombie_villager2/professions/librarian.png","textures/entity/zombie_villager2/professions/nitwit.png","textures/entity/zombie_villager2/professions/shepherd.png","textures/entity/zombie_villager2/professions/stonemason.png","textures/entity/zombie_villager2/professions/toolsmith.png","textures/entity/zombie_villager2/professions/weaponsmith.png"];for(const e of t)yield e}},[]],[Ze,[]],[Xe,[]],[We,[]],[Qe,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);if(f.a.existsSync(n)){_.log(`Create side rotate ${e}`);const t=await Fe.read(n);t.flip(!0,!1),await t.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/dried_kelp_side_a.png","./dried_kelp_side_b.png"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_b.png"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_b.png"]];for(const e of t)yield e}},[]],[class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=_.fromPath(e,this.path),o=_.toPath(n,i,this.path);if(f.a.existsSync(i)){_.log(`Create tga ${n}`);const a=await Fe.read(i),s=tn.a.createTgaBuffer(a.getWidth(),a.getHeight(),a.bitmap.data);await f.a.writeFile(o,s),r||t.push(e)}}return[[v,t]]}async*getData(){const t=[["textures/blocks/cactus_bottom.png","./cactus_bottom.tga"],["textures/blocks/cactus_side.png","./cactus_side.tga"],["textures/blocks/cactus_top.png","./cactus_top.tga"],["textures/blocks/double_plant_fern_bottom.png","./double_plant_fern_bottom.tga"],["textures/blocks/double_plant_fern_top.png","./double_plant_fern_top.tga"],["textures/blocks/double_plant_grass_bottom.png","./double_plant_grass_bottom.tga"],["textures/blocks/double_plant_grass_top.png","./double_plant_grass_top.tga"],["textures/blocks/double_plant_syringa_bottom.png","./double_plant_syringa_bottom.tga"],["textures/blocks/double_plant_syringa_top.png","./double_plant_syringa_top.tga"],["textures/blocks/fern.png","./fern.tga"],["textures/blocks/fern_carried.png","./fern_carried.tga"],["textures/blocks/grass_side.png","./grass_side.tga"],["textures/blocks/grass_side_snowed.png","./grass_side_snowed.tga",!0],["textures/blocks/grindstone_pivot.png","./grindstone_pivot.tga"],["textures/blocks/grindstone_round.png","./grindstone_round.tga"],["textures/blocks/grindstone_side.png","./grindstone_side.tga"],["textures/blocks/kelp_a.png","./kelp_a.tga"],["textures/blocks/kelp_b.png","./kelp_b.tga"],["textures/blocks/kelp_c.png","./kelp_c.tga"],["textures/blocks/kelp_d.png","./kelp_d.tga"],["textures/blocks/kelp_top.png","./kelp_top.tga"],["textures/blocks/kelp_top_bulb.png","./kelp_top_bulb.tga"],["textures/blocks/leaves_acacia.png","./leaves_acacia.tga"],["textures/blocks/leaves_acacia_carried.png","./leaves_acacia_carried.tga"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak.tga"],["textures/blocks/leaves_big_oak_carried.png","./leaves_big_oak_carried.tga"],["textures/blocks/leaves_birch.png","./leaves_birch.tga"],["textures/blocks/leaves_birch_carried.png","./leaves_birch_carried.tga"],["textures/blocks/leaves_jungle.png","./leaves_jungle.tga"],["textures/blocks/leaves_jungle_carried.png","./leaves_jungle_carried.tga"],["textures/blocks/leaves_oak.png","./leaves_oak.tga"],["textures/blocks/leaves_oak_carried.png","./leaves_oak_carried.tga"],["textures/blocks/leaves_spruce.png","./leaves_spruce.tga"],["textures/blocks/leaves_spruce_carried.png","./leaves_spruce_carried.tga"],["textures/blocks/reeds.png","./reeds.tga"],["textures/blocks/scaffolding_bottom.png","./scaffolding_bottom.tga"],["textures/blocks/scaffolding_side.png","./scaffolding_side.tga"],["textures/blocks/scaffolding_top.png","./scaffolding_top.tga"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_a.tga"],["textures/blocks/seagrass_doubletall_bottom_b.png","./seagrass_doubletall_bottom_b.tga"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_a.tga"],["textures/blocks/seagrass_doubletall_top_b.png","./seagrass_doubletall_top_b.tga"],["textures/blocks/stonecutter2_saw.png","./stonecutter2_saw.tga"],["textures/blocks/tallgrass.png","./tallgrass.tga",!0],["textures/blocks/tallgrass_carried.png","./tallgrass_carried.tga"],["textures/entity/blaze.png","./blaze.tga"],["textures/entity/phantom.png","./phantom.tga"],["textures/entity/banner/banner.png","./banner.tga"],["textures/entity/banner/banner_pattern_illager.png","./banner_pattern_illager.tga"],["textures/entity/cat/allblackcat_tame.png","./allblackcat_tame.tga"],["textures/entity/cat/britishshorthair_tame.png","./britishshorthair_tame.tga"],["textures/entity/cat/calico_tame.png","./calico_tame.tga"],["textures/entity/cat/graytabby_tame.png","./graytabby_tame.tga"],["textures/entity/cat/jellie_tame.png","./jellie_tame.tga"],["textures/entity/cat/ocelot_tame.png","./ocelot_tame.tga"],["textures/entity/cat/persian_tame.png","./persian_tame.tga"],["textures/entity/cat/ragdoll_tame.png","./ragdoll_tame.tga"],["textures/entity/cat/redtabby_tame.png","./redtabby_tame.tga"],["textures/entity/cat/siamesecat_tame.png","./siamesecat_tame.tga"],["textures/entity/cat/tabby_tame.png","./tabby_tame.tga"],["textures/entity/cat/tuxedo_tame.png","./tuxedo_tame.tga"],["textures/entity/cat/white_tame.png","./white_tame.tga"],["textures/entity/dragon/dragon.png","./dragon.tga"],["textures/entity/enderman/enderman.png","./enderman.tga"],["textures/entity/ghast/ghast_shooting.png","./ghast_shooting.tga"],["textures/entity/horse2/armor/horse_armor_leather.png","./horse_armor_leather.tga"],["textures/entity/sheep/sheep.png","./sheep.tga"],["textures/entity/slime/magmacube.png","./magmacube.tga"],["textures/entity/spider/cave_spider.png","./cave_spider.tga"],["textures/entity/spider/spider.png","./spider.tga"],["textures/entity/villager2/professions/armorer.png","./armorer.tga"],["textures/entity/villager2/professions/butcher.png","./butcher.tga"],["textures/entity/villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/villager2/professions/cleric.png","./cleric.tga"],["textures/entity/villager2/professions/farmer.png","./farmer.tga"],["textures/entity/villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/villager2/professions/librarian.png","./librarian.tga"],["textures/entity/villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/villager2/professions/unskilled.png","./unskilled.tga"],["textures/entity/villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/entity/wolf/wolf_tame.png","./wolf_tame.tga"],["textures/entity/zombie/drowned.png","./drowned.tga"],["textures/entity/zombie_villager2/professions/armorer.png","./armorer.tga"],["textures/entity/zombie_villager2/professions/butcher.png","./butcher.tga"],["textures/entity/zombie_villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/zombie_villager2/professions/cleric.png","./cleric.tga"],["textures/entity/zombie_villager2/professions/farmer.png","./farmer.tga"],["textures/entity/zombie_villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/zombie_villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/zombie_villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/zombie_villager2/professions/librarian.png","./librarian.tga"],["textures/entity/zombie_villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/zombie_villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/zombie_villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/zombie_villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/zombie_villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/items/fireworks_charge.png","./fireworks_charge.tga"],["textures/items/leather_boots.png","./leather_boots.tga"],["textures/items/leather_helmet.png","./leather_helmet.tga"],["textures/items/leather_horse_armor.png","./leather_horse_armor.tga"],["textures/items/leather_leggings.png","./leather_leggings.tga"],["textures/models/armor/leather_1.png","./leather_1.tga"],["textures/models/armor/leather_2.png","./leather_2.tga"]];for(const e of t)yield e}},[]],[Ge,[]],[y,[]]];var rn=class extends u{async input(){_.log(`Copy folder ${this.path} to ${this.temp}`),await f.a.copy(this.path,this.temp)}async name(){return g.a.basename(this.path)}},on=n(138),an=n.n(on),sn=n(6),un=n.n(sn);const cn=un.a.promisify(an.a);var ln=class extends u{async input(){_.log(`Extract ${this.path} to ${this.temp}`),await cn(this.path,{dir:g.a.resolve(this.temp)})}async name(){return g.a.parse(this.path).name}};var pn=function(t,e){if(!f.a.existsSync(t))throw new a(`The input ${t} does not exists!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"zip":return new ln(t,e);default:return new rn(t,e)}};var hn=class extends o{};class fn{constructor(t,e){if(this.constructor===fn)throw new hn("Can't instantiate abstract class!");this.path=t,this.temp=e}async getPath(){return this.path}async output(){}}var dn=fn;var gn=class extends dn{async output(){_.log(`Move ${this.temp} to ${this.path}`),await f.a.rename(this.temp,this.path)}},mn=n(139),bn=n.n(mn);const _n=un.a.promisify(bn.a);var yn=class extends dn{async output(){_.log(`Pack ${this.temp} to ${this.path}`),await _n(this.temp,this.path),_.log(`Clean ${this.temp}`),await f.a.remove(this.temp)}};var vn=function(t,e){if(f.a.existsSync(t))throw new hn(`The output ${t} exists already!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"mcpack":case"zip":return new yn(t,e);default:return new gn(t,e)}},wn=n(47),xn=n.n(wn),kn=n(63);var En=class extends o{};var Dn=async function(t=xn.a.tmpdir()){if(_.log("Init temp folder"),!f.a.existsSync(t))throw new En(`The temp ${t} does not exists!`);return t=_.fromPath(kn.productName,t),await f.a.remove(t),await f.a.mkdirs(t),t};e.default=async function(t,e,n={}){_.setVerbose(n.verbose);const r=await Dn(n.temp),i=pn(t,r),o=vn(e,r);await i.input();for await(const t of async function*(t,e){for(const[n,r]of nn)yield new n(t,e,r)}(r,i))await en(...await t.convert());return await o.output(),await o.getPath()}},function(t,e,n){var r=n(145),i=process.cwd,o=null,a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=i.call(process)),o};try{process.cwd()}catch(t){}var s=process.chdir;process.chdir=function(t){o=null,s.call(process,t)},t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){e?i&&i(e):t.fchmod(r,n,function(e){t.close(r,function(t){i&&i(e||t)})})})},t.lchmodSync=function(e,n){var i,o=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),a=!0;try{i=t.fchmodSync(o,n),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return i}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,n,i,o){t.open(e,r.O_SYMLINK,function(e,r){e?o&&o(e):t.futimes(r,n,i,function(e){t.close(r,function(t){o&&o(e||t)})})})},t.lutimesSync=function(e,n,i){var o,a=t.openSync(e,r.O_SYMLINK),s=!0;try{o=t.futimesSync(a,n,i),s=!1}finally{if(s)try{t.closeSync(a)}catch(t){}else t.closeSync(a)}return o}):(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===a&&(t.rename=(e=t.rename,function(n,r,i){var o=Date.now(),a=0;e(n,r,function s(u){if(u&&("EACCES"===u.code||"EPERM"===u.code)&&Date.now()-o<6e4)return setTimeout(function(){t.stat(r,function(t,o){t&&"ENOENT"===t.code?e(n,r,s):i(u)})},a),void(a<100&&(a+=10));i&&i(u)})}));var e;function n(e){return e?function(n,r,i){return e.call(t,n,r,function(t){l(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!l(t))throw t}}:e}function o(e){return e?function(n,r,i,o){return e.call(t,n,r,i,function(t){l(t)&&(t=null),o&&o.apply(this,arguments)})}:e}function s(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!l(t))throw t}}:e}function u(e){return e?function(n,r){return e.call(t,n,function(t,e){if(!e)return r.apply(this,arguments);e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296),r&&r.apply(this,arguments)})}:e}function c(e){return e?function(n){var r=e.call(t,n);return r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296),r}:e}function l(t){if(!t)return!0;if("ENOSYS"===t.code)return!0;var e=!process.getuid||0!==process.getuid();return!(!e||"EINVAL"!==t.code&&"EPERM"!==t.code)}t.read=(h=t.read,function(e,n,r,i,o,a){var s;if(a&&"function"==typeof a){var u=0;s=function(c,l,p){if(c&&"EAGAIN"===c.code&&u<10)return u++,h.call(t,e,n,r,i,o,s);a.apply(this,arguments)}}return h.call(t,e,n,r,i,o,s)}),t.readSync=(p=t.readSync,function(e,n,r,i,o){for(var a=0;;)try{return p.call(t,e,n,r,i,o)}catch(t){if("EAGAIN"===t.code&&a<10){a++;continue}throw t}});var p;var h}},function(t,e){t.exports=require("constants")},function(t,e,n){var r=n(4).Stream;t.exports=function(t){return{ReadStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);var o=this;this.path=n;this.fd=null;this.readable=!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;i=i||{};var a=Object.keys(i);for(var s=0,u=a.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick(function(){o._read()});t.open(this.path,this.flags,this.mode,function(t,e){if(t)return o.emit("error",t),void(o.readable=!1);o.fd=e,o.emit("open",e),o._read()})},WriteStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);this.path=n;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var o=Object.keys(i);for(var a=0,s=o.length;a= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}},function(t,e,n){"use strict";const r=n(7),i=n(2),o=n(14).mkdirsSync,a=n(72).utimesMillisSync,s=n(29);function u(t,e,n,o){if(!o.filter||o.filter(e,n))return function(t,e,n,o){const a=(o.dereference?r.statSync:r.lstatSync)(e);if(a.isDirectory())return function(t,e,n,i,o){if(!e)return function(t,e,n,i){return r.mkdirSync(n),l(e,n,i),r.chmodSync(n,t.mode)}(t,n,i,o);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return l(n,i,o)}(a,t,e,n,o);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return function(t,e,n,i,o){return e?function(t,e,n,i){if(i.overwrite)return r.unlinkSync(n),c(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,i,o):c(t,n,i,o)}(a,t,e,n,o);if(a.isSymbolicLink())return function(t,e,n,o){let a=r.readlinkSync(e);o.dereference&&(a=i.resolve(process.cwd(),a));if(t){let t;try{t=r.readlinkSync(n)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return r.symlinkSync(a,n);throw t}if(o.dereference&&(t=i.resolve(process.cwd(),t)),s.isSrcSubdir(a,t))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${t}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(t,a))throw new Error(`Cannot overwrite '${t}' with '${a}'.`);return function(t,e){return r.unlinkSync(e),r.symlinkSync(t,e)}(a,n)}return r.symlinkSync(a,n)}(t,e,n,o)}(t,e,n,o)}function c(t,e,i,o){return"function"==typeof r.copyFileSync?(r.copyFileSync(e,i),r.chmodSync(i,t.mode),o.preserveTimestamps?a(i,t.atime,t.mtime):void 0):function(t,e,i,o){const a=n(151)(65536),s=r.openSync(e,"r"),u=r.openSync(i,"w",t.mode);let c=0;for(;c(function(t,e,n,r){const o=i.join(e,t),a=i.join(n,t),{destStat:c}=s.checkPathsSync(o,a,"copy");return u(c,o,a,r)})(r,t,e,n))}t.exports=function(t,e,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:a,destStat:c}=s.checkPathsSync(t,e,"copy");return s.checkParentPathsSync(t,a,e,"copy"),function(t,e,n,a){if(a.filter&&!a.filter(e,n))return;const s=i.dirname(n);return r.existsSync(s)||o(s),u(t,e,n,a)}(c,t,e,n)}},function(t,e,n){"use strict";const r=n(12),i=n(2),o=n(71).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s,u){if("function"==typeof n?(s=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",s(t)}let c=n.mode;const l=n.fs||r;void 0===c&&(c=a&~process.umask()),u||(u=null),s=s||function(){},e=i.resolve(e),l.mkdir(e,c,r=>{if(!r)return s(null,u=u||e);switch(r.code){case"ENOENT":if(i.dirname(e)===e)return s(r);t(i.dirname(e),n,(r,i)=>{r?s(r,i):t(e,n,s,i)});break;default:l.stat(e,(t,e)=>{t||!e.isDirectory()?s(r,u):s(null,u)})}})}},function(t,e,n){"use strict";const r=n(12),i=n(2),o=n(71).invalidWin32Path,a=parseInt("0777",8);t.exports=function t(e,n,s){n&&"object"==typeof n||(n={mode:n});let u=n.mode;const c=n.fs||r;if("win32"===process.platform&&o(e)){const t=new Error(e+" contains invalid WIN32 path characters.");throw t.code="EINVAL",t}void 0===u&&(u=a&~process.umask()),s||(s=null),e=i.resolve(e);try{c.mkdirSync(e,u),s=s||e}catch(r){if("ENOENT"===r.code){if(i.dirname(e)===e)throw r;s=t(i.dirname(e),n,s),t(e,n,s)}else{let t;try{t=c.statSync(e)}catch(t){throw r}if(!t.isDirectory())throw r}}return s}},function(t,e,n){"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},function(t,e,n){"use strict";const r=n(7),i=n(2),o=n(14).mkdirs,a=n(15).pathExists,s=n(72).utimesMillis,u=n(29);function c(t,e,n,r,s){const u=i.dirname(n);a(u,(i,a)=>i?s(i):a?p(t,e,n,r,s):void o(u,i=>i?s(i):p(t,e,n,r,s)))}function l(t,e,n,r,i,o){Promise.resolve(i.filter(n,r)).then(a=>a?t(e,n,r,i,o):o(),t=>o(t))}function p(t,e,n,r,i){return r.filter?l(h,t,e,n,r,i):h(t,e,n,r,i)}function h(t,e,n,i,o){(i.dereference?r.stat:r.lstat)(e,(a,s)=>a?o(a):s.isDirectory()?function(t,e,n,i,o,a){if(!e)return function(t,e,n,i,o){r.mkdir(n,a=>{if(a)return o(a);g(e,n,i,e=>e?o(e):r.chmod(n,t.mode,o))})}(t,n,i,o,a);if(e&&!e.isDirectory())return a(new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`));return g(n,i,o,a)}(s,t,e,n,i,o):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(t,e,n,i,o,a){return e?function(t,e,n,i,o){if(!i.overwrite)return i.errorOnExist?o(new Error(`'${n}' already exists`)):o();r.unlink(n,r=>r?o(r):f(t,e,n,i,o))}(t,n,i,o,a):f(t,n,i,o,a)}(s,t,e,n,i,o):s.isSymbolicLink()?b(t,e,n,i,o):void 0)}function f(t,e,n,i,o){return"function"==typeof r.copyFile?r.copyFile(e,n,e=>e?o(e):d(t,n,i,o)):function(t,e,n,i,o){const a=r.createReadStream(e);a.on("error",t=>o(t)).once("open",()=>{const e=r.createWriteStream(n,{mode:t.mode});e.on("error",t=>o(t)).on("open",()=>a.pipe(e)).once("close",()=>d(t,n,i,o))})}(t,e,n,i,o)}function d(t,e,n,i){r.chmod(e,t.mode,r=>r?i(r):n.preserveTimestamps?s(e,t.atime,t.mtime,i):i())}function g(t,e,n,i){r.readdir(t,(r,o)=>r?i(r):m(o,t,e,n,i))}function m(t,e,n,r,o){const a=t.pop();return a?function(t,e,n,r,o,a){const s=i.join(n,e),c=i.join(r,e);u.checkPaths(s,c,"copy",(e,i)=>{if(e)return a(e);const{destStat:u}=i;p(u,s,c,o,e=>e?a(e):m(t,n,r,o,a))})}(t,a,e,n,r,o):o()}function b(t,e,n,o,a){r.readlink(e,(e,s)=>e?a(e):(o.dereference&&(s=i.resolve(process.cwd(),s)),t?void r.readlink(n,(e,c)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?r.symlink(s,n,a):a(e):(o.dereference&&(c=i.resolve(process.cwd(),c)),u.isSrcSubdir(s,c)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&u.isSrcSubdir(c,s)?a(new Error(`Cannot overwrite '${c}' with '${s}'.`)):function(t,e,n){r.unlink(e,i=>i?n(i):r.symlink(t,e,n))}(s,n,a))):r.symlink(s,n,a)))}t.exports=function(t,e,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),u.checkPaths(t,e,"copy",(i,o)=>{if(i)return r(i);const{srcStat:a,destStat:s}=o;u.checkParentPaths(t,a,e,"copy",i=>i?r(i):n.filter?l(c,s,t,e,n,r):c(s,t,e,n,r))})}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(7),o=n(2),a=n(14),s=n(30),u=r(function(t,e){e=e||function(){},i.readdir(t,(n,r)=>{if(n)return a.mkdirs(t,e);r=r.map(e=>o.join(t,e)),function t(){const n=r.pop();if(!n)return e();s.remove(n,n=>{if(n)return e(n);t()})}()})});function c(t){let e;try{e=i.readdirSync(t)}catch(e){return a.mkdirsSync(t)}e.forEach(e=>{e=o.join(t,e),s.removeSync(e)})}t.exports={emptyDirSync:c,emptydirSync:c,emptyDir:u,emptydir:u}},function(t,e,n){"use strict";const r=n(12),i=n(2),o=n(28),a="win32"===process.platform;function s(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(e=>{t[e]=t[e]||r[e],t[e+="Sync"]=t[e]||r[e]}),t.maxBusyTries=t.maxBusyTries||3}function u(t,e,n){let r=0;"function"==typeof e&&(n=e,e={}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(e,"rimraf: invalid options argument provided"),o.strictEqual(typeof e,"object","rimraf: options should be object"),s(e),c(t,e,function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&rc(t,e,i),100*r)}"ENOENT"===o.code&&(o=null)}n(o)})}function c(t,e,n){o(t),o(e),o("function"==typeof n),e.lstat(t,(r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&a?l(t,e,r,n):i&&i.isDirectory()?h(t,e,r,n):void e.unlink(t,r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return a?l(t,e,r,n):h(t,e,r,n);if("EISDIR"===r.code)return h(t,e,r,n)}return n(r)}))}function l(t,e,n,r){o(t),o(e),o("function"==typeof r),n&&o(n instanceof Error),e.chmod(t,438,i=>{i?r("ENOENT"===i.code?null:n):e.stat(t,(i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?h(t,e,n,r):e.unlink(t,r)})})}function p(t,e,n){let r;o(t),o(e),n&&o(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw n}try{r=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw n}r.isDirectory()?d(t,e,n):e.unlinkSync(t)}function h(t,e,n,r){o(t),o(e),n&&o(n instanceof Error),o("function"==typeof r),e.rmdir(t,a=>{!a||"ENOTEMPTY"!==a.code&&"EEXIST"!==a.code&&"EPERM"!==a.code?a&&"ENOTDIR"===a.code?r(n):r(a):function(t,e,n){o(t),o(e),o("function"==typeof n),e.readdir(t,(r,o)=>{if(r)return n(r);let a,s=o.length;if(0===s)return e.rmdir(t,n);o.forEach(r=>{u(i.join(t,r),e,r=>{if(!a)return r?n(a=r):void(0==--s&&e.rmdir(t,n))})})})}(t,e,r)})}function f(t,e){let n;s(e=e||{}),o(t,"rimraf: missing path"),o.strictEqual(typeof t,"string","rimraf: path should be a string"),o(e,"rimraf: missing options"),o.strictEqual(typeof e,"object","rimraf: options should be object");try{n=e.lstatSync(t)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&a&&p(t,e,n)}try{n&&n.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return a?p(t,e,n):d(t,e,n);if("EISDIR"!==n.code)throw n;d(t,e,n)}}function d(t,e,n){o(t),o(e),n&&o(n instanceof Error);try{e.rmdirSync(t)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(t,e){if(o(t),o(e),e.readdirSync(t).forEach(n=>f(i.join(t,n),e)),!a){const n=e.rmdirSync(t,e);return n}{const n=Date.now();do{try{const n=e.rmdirSync(t,e);return n}catch(t){}}while(Date.now()-n<500)}}(t,e);else if("ENOENT"!==r.code)throw r}}t.exports=u,u.sync=f},function(t,e,n){"use strict";const r=n(156),i=n(157),o=n(158);t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(2),o=n(12),a=n(14),s=n(15).pathExists;t.exports={createFile:r(function(t,e){function n(){o.writeFile(t,"",t=>{if(t)return e(t);e()})}o.stat(t,(r,o)=>{if(!r&&o.isFile())return e();const u=i.dirname(t);s(u,(t,r)=>t?e(t):r?n():void a.mkdirs(u,t=>{if(t)return e(t);n()}))})}),createFileSync:function(t){let e;try{e=o.statSync(t)}catch(t){}if(e&&e.isFile())return;const n=i.dirname(t);o.existsSync(n)||a.mkdirsSync(n),o.writeFileSync(t,"")}}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(2),o=n(12),a=n(14),s=n(15).pathExists;t.exports={createLink:r(function(t,e,n){function r(t,e){o.link(t,e,t=>{if(t)return n(t);n(null)})}s(e,(u,c)=>u?n(u):c?n(null):void o.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);const u=i.dirname(e);s(u,(i,o)=>i?n(i):o?r(t,e):void a.mkdirs(u,i=>{if(i)return n(i);r(t,e)}))}))}),createLinkSync:function(t,e){if(o.existsSync(e))return;try{o.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return o.existsSync(n)?o.linkSync(t,e):(a.mkdirsSync(n),o.linkSync(t,e))}}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(2),o=n(12),a=n(14),s=a.mkdirs,u=a.mkdirsSync,c=n(159),l=c.symlinkPaths,p=c.symlinkPathsSync,h=n(160),f=h.symlinkType,d=h.symlinkTypeSync,g=n(15).pathExists;t.exports={createSymlink:r(function(t,e,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,g(e,(a,u)=>a?r(a):u?r(null):void l(t,e,(a,u)=>{if(a)return r(a);t=u.toDst,f(u.toCwd,n,(n,a)=>{if(n)return r(n);const u=i.dirname(e);g(u,(n,i)=>n?r(n):i?o.symlink(t,e,a,r):void s(u,n=>{if(n)return r(n);o.symlink(t,e,a,r)}))})}))}),createSymlinkSync:function(t,e,n){if(o.existsSync(e))return;const r=p(t,e);t=r.toDst,n=d(r.toCwd,n);const a=i.dirname(e);return o.existsSync(a)?o.symlinkSync(t,e,n):(u(a),o.symlinkSync(t,e,n))}}},function(t,e,n){"use strict";const r=n(2),i=n(12),o=n(15).pathExists;t.exports={symlinkPaths:function(t,e,n){if(r.isAbsolute(t))return i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:t}));{const a=r.dirname(e),s=r.join(a,t);return o(s,(e,o)=>e?n(e):o?n(null,{toCwd:s,toDst:t}):i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:r.relative(a,t)})))}},symlinkPathsSync:function(t,e){let n;if(r.isAbsolute(t)){if(!(n=i.existsSync(t)))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const o=r.dirname(e),a=r.join(o,t);if(n=i.existsSync(a))return{toCwd:a,toDst:t};if(!(n=i.existsSync(t)))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:r.relative(o,t)}}}}},function(t,e,n){"use strict";const r=n(12);t.exports={symlinkType:function(t,e,n){if(n="function"==typeof e?e:n,e="function"!=typeof e&&e)return n(null,e);r.lstat(t,(t,r)=>{if(t)return n(null,"file");e=r&&r.isDirectory()?"dir":"file",n(null,e)})},symlinkTypeSync:function(t,e){let n;if(e)return e;try{n=r.lstatSync(t)}catch(t){return"file"}return n&&n.isDirectory()?"dir":"file"}}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(50);i.outputJson=r(n(163)),i.outputJsonSync=n(164),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},function(t,e,n){var r;try{r=n(12)}catch(t){r=n(7)}function i(t,e){var n,r="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(n=e.spaces),e.EOL&&(r=e.EOL)),JSON.stringify(t,e?e.replacer:null,n).replace(/\n/g,r)+r}function o(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,"")}var a={readFile:function(t,e,n){null==n&&(n=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||r,a=!0;"throws"in e&&(a=e.throws),i.readFile(t,e,function(r,i){if(r)return n(r);var s;i=o(i);try{s=JSON.parse(i,e?e.reviver:null)}catch(e){return a?(e.message=t+": "+e.message,n(e)):n(null,null)}n(null,s)})},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var n=e.fs||r,i=!0;"throws"in e&&(i=e.throws);try{var a=n.readFileSync(t,e);return a=o(a),JSON.parse(a,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,n,o){null==o&&(o=n,n={});var a=(n=n||{}).fs||r,s="";try{s=i(e,n)}catch(t){return void(o&&o(t,null))}a.writeFile(t,s,n,o)},writeFileSync:function(t,e,n){var o=(n=n||{}).fs||r,a=i(e,n);return o.writeFileSync(t,a,n)}};t.exports=a},function(t,e,n){"use strict";const r=n(2),i=n(14),o=n(15).pathExists,a=n(50);t.exports=function(t,e,n,s){"function"==typeof n&&(s=n,n={});const u=r.dirname(t);o(u,(r,o)=>r?s(r):o?a.writeJson(t,e,n,s):void i.mkdirs(u,r=>{if(r)return s(r);a.writeJson(t,e,n,s)}))}},function(t,e,n){"use strict";const r=n(12),i=n(2),o=n(14),a=n(50);t.exports=function(t,e,n){const s=i.dirname(t);r.existsSync(s)||o.mkdirsSync(s),a.writeJsonSync(t,e,n)}},function(t,e,n){"use strict";t.exports={moveSync:n(166)}},function(t,e,n){"use strict";const r=n(7),i=n(2),o=n(70).copySync,a=n(30).removeSync,s=n(14).mkdirpSync,u=n(29);function c(t,e,n){try{r.renameSync(t,e)}catch(r){if("EXDEV"!==r.code)throw r;return function(t,e,n){return o(t,e,{overwrite:n,errorOnExist:!0}),a(t)}(t,e,n)}}t.exports=function(t,e,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:l}=u.checkPathsSync(t,e,"move");return u.checkParentPathsSync(t,l,e,"move"),s(i.dirname(e)),function(t,e,n){if(n)return a(e),c(t,e,n);if(r.existsSync(e))throw new Error("dest already exists.");return c(t,e,n)}(t,e,o)}},function(t,e,n){"use strict";const r=n(11).fromCallback;t.exports={move:r(n(168))}},function(t,e,n){"use strict";const r=n(7),i=n(2),o=n(73).copy,a=n(30).remove,s=n(14).mkdirp,u=n(15).pathExists,c=n(29);function l(t,e,n,i){r.rename(t,e,r=>r?"EXDEV"!==r.code?i(r):function(t,e,n,r){o(t,e,{overwrite:n,errorOnExist:!0},e=>e?r(e):a(t,r))}(t,e,n,i):i())}t.exports=function(t,e,n,r){"function"==typeof n&&(r=n,n={});const o=n.overwrite||n.clobber||!1;c.checkPaths(t,e,"move",(n,p)=>{if(n)return r(n);const{srcStat:h}=p;c.checkParentPaths(t,h,e,"move",n=>{if(n)return r(n);s(i.dirname(e),n=>n?r(n):function(t,e,n,r){if(n)return a(e,i=>i?r(i):l(t,e,n,r));u(e,(i,o)=>i?r(i):o?r(new Error("dest already exists.")):l(t,e,n,r))}(t,e,o,r))})})}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(12),o=n(2),a=n(14),s=n(15).pathExists;t.exports={outputFile:r(function(t,e,n,r){"function"==typeof n&&(r=n,n="utf8");const u=o.dirname(t);s(u,(o,s)=>o?r(o):s?i.writeFile(t,e,n,r):void a.mkdirs(u,o=>{if(o)return r(o);i.writeFile(t,e,n,r)}))}),outputFileSync:function(t,...e){const n=o.dirname(t);if(i.existsSync(n))return i.writeFileSync(t,...e);a.mkdirsSync(n),i.writeFileSync(t,...e)}}},function(t,e,n){"use strict";function r(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}r.prototype.convert=function(t){var e,n,r,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=t.length,u="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e=a?(i[r++]=parseInt(n/a,10),n%=a):r>0&&(i[r++]=0);s=r,u=this.dstAlphabet.slice(n,n+1).concat(u)}while(0!==r);return u},r.prototype.isValid=function(t){for(var e=0;e0&&218!==r;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");n=(r=t.nextUInt8())>=208&&r<=217||218===r?0:t.nextUInt16()-2,e(r,t.branch(0,n)),t.skip(n)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,n;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:t>=224&&t<=239?(e="APP",n=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",n=t-192):t>=208&&t<=215&&(e="RST",n=t-208)}var r={name:e};return"number"==typeof n&&(r.index=n),r}}},function(t,e,n){var r=n(76),i=n(177),o=[{section:r.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:r.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],a=[{section:r.SubIFD,type:306,name:"ModifyDate"},{section:r.SubIFD,type:36867,name:"DateTimeOriginal"},{section:r.SubIFD,type:36868,name:"CreateDate"},{section:r.SubIFD,type:306,name:"ModifyDate"}];t.exports={castDegreeValues:function(t,e){o.forEach(function(n){var r=t(n);if(r){var i=t({section:n.section,type:n.refType,name:n.refName})===n.posVal?1:-1,o=(r[0]+r[1]/60+r[2]/3600)*i;e(n,o)}})},castDateValues:function(t,e){a.forEach(function(n){var r=t(n);if(r){var o=i.parseExifDate(r);void 0!==o&&e(n,o)}})},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map(function(t){return 10===e||5===e?t[0]/t[1]:t})).length&&(t=t[0]),t}}},function(t,e){function n(t){return parseInt(t,10)}var r=3600,i=60;function o(t,e){t=t.map(n),e=e.map(n);var r=t[0],i=t[1]-1,o=t[2],a=e[0],s=e[1],u=e[2];return Date.UTC(r,i,o,a,s,u,0)/1e3}function a(t){var e=t.substr(0,10).split("-"),a=t.substr(11,8).split(":"),s=t.substr(19,6).split(":").map(n),u=s[0]*r+s[1]*i,c=o(e,a);if("number"==typeof(c-=u)&&!isNaN(c))return c}function s(t){var e=t.split(" "),n=o(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:a,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?a(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65000:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},function(t,e){function n(t,e,n,r,i,o){this.global=i,e=e||0,n=n||t.byteLength-e,this.arrayBuffer=t.slice(e,e+n),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(r),this.offset=0,this.parentOffset=(o||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=n},function(t,e){function n(t,e,n,r){this.buffer=t,this.offset=e||0,n="number"==typeof n?n:t.length,this.endPosition=this.offset+n,this.setBigEndian(r)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=n},function(t,e){function n(t){Math.round;var e,n,r,i,o,a=Math.floor,s=new Array(64),u=new Array(64),c=new Array(64),l=new Array(64),p=new Array(65535),h=new Array(65535),f=new Array(64),d=new Array(64),g=[],m=0,b=7,_=new Array(64),y=new Array(64),v=new Array(64),w=new Array(256),x=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],C=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],O=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function M(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function P(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<>8&255),L(255&t)}function j(t,e,n,r,i){for(var o,a=i[0],s=i[240],u=function(t,e){var n,r,i,o,a,s,u,c,l,p,h=0;for(l=0;l<8;++l){n=t[h],r=t[h+1],i=t[h+2],o=t[h+3],a=t[h+4],s=t[h+5],u=t[h+6];var d=n+(c=t[h+7]),g=n-c,m=r+u,b=r-u,_=i+s,y=i-s,v=o+a,w=o-a,x=d+v,k=d-v,E=m+_,D=m-_;t[h]=x+E,t[h+4]=x-E;var S=.707106781*(D+k);t[h+2]=k+S,t[h+6]=k-S;var C=.382683433*((x=w+y)-(D=b+g)),T=.5411961*x+C,O=1.306562965*D+C,A=.707106781*(E=y+b),I=g+A,M=g-A;t[h+5]=M+T,t[h+3]=M-T,t[h+1]=I+O,t[h+7]=I-O,h+=8}for(h=0,l=0;l<8;++l){n=t[h],r=t[h+8],i=t[h+16],o=t[h+24],a=t[h+32],s=t[h+40],u=t[h+48];var P=n+(c=t[h+56]),L=n-c,B=r+u,j=r-u,F=i+s,R=i-s,N=o+a,z=o-a,U=P+N,W=P-N,G=B+F,H=B-F;t[h]=U+G,t[h+32]=U-G;var $=.707106781*(H+W);t[h+16]=W+$,t[h+48]=W-$;var q=.382683433*((U=z+R)-(H=j+L)),Y=.5411961*U+q,V=1.306562965*H+q,Z=.707106781*(G=R+j),X=L+Z,J=L-Z;t[h+40]=J+Y,t[h+24]=J-Y,t[h+8]=X+V,t[h+56]=X-V,h++}for(l=0;l<64;++l)p=t[l]*e[l],f[l]=p>0?p+.5|0:p-.5|0;return f}(t,e),c=0;c<64;++c)d[k[c]]=u[c];var l=d[0]-n;n=d[0],0==l?P(r[0]):(P(r[h[o=32767+l]]),P(p[o]));for(var g=63;g>0&&0==d[g];g--);if(0==g)return P(a),n;for(var m,b=1;b<=g;){for(var _=b;0==d[b]&&b<=g;++b);var y=b-_;if(y>=16){m=y>>4;for(var v=1;v<=m;++v)P(s);y&=15}o=32767+d[b],P(i[(y<<4)+h[o]]),P(p[o]),b++}return 63!=g&&P(a),n}function F(t){if(t<=0&&(t=1),t>100&&(t=100),o!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),s[k[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var p=a((i[o]*t+50)/100);p<1?p=1:p>255&&(p=255),u[k[o]]=p}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,d=0;d<8;d++)for(var g=0;g<8;g++)c[f]=1/(s[k[f]]*h[d]*h[g]*8),l[f]=1/(u[k[f]]*h[d]*h[g]*8),f++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t}}this.encode=function(t,o){(new Date).getTime();o&&F(o),g=new Array,m=0,b=7,B(65496),B(65504),B(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),B(1),B(1),L(0),L(0),function(){B(65499),B(132),L(0);for(var t=0;t<64;t++)L(s[t]);L(1);for(var e=0;e<64;e++)L(u[e])}(),function(t,e){B(65472),B(17),L(8),B(e),B(t),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(t.width,t.height),function(){B(65476),B(418),L(0);for(var t=0;t<16;t++)L(E[t+1]);for(var e=0;e<=11;e++)L(D[e]);L(16);for(var n=0;n<16;n++)L(S[n+1]);for(var r=0;r<=161;r++)L(C[r]);L(1);for(var i=0;i<16;i++)L(T[i+1]);for(var o=0;o<=11;o++)L(O[o]);L(17);for(var a=0;a<16;a++)L(A[a+1]);for(var s=0;s<=161;s++)L(I[s])}(),B(65498),B(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var a=0,p=0,h=0;m=0,b=7,this.encode.displayName="_encode_";for(var f,d,w,k,M,R,N,z,U,W=t.data,G=t.width,H=t.height,$=4*G,q=0;q>3)*$+(N=4*(7&U)),q+z>=H&&(R-=$*(q+1+z-H)),f+N>=$&&(R-=f+N-$+4),d=W[R++],w=W[R++],k=W[R++],_[U]=(x[d]+x[w+256>>0]+x[k+512>>0]>>16)-128,y[U]=(x[d+768>>0]+x[w+1024>>0]+x[k+1280>>0]>>16)-128,v[U]=(x[d+1280>>0]+x[w+1536>>0]+x[k+1792>>0]>>16)-128;a=j(_,c,a,e,r),p=j(y,l,p,n,i),h=j(v,l,h,n,i),f+=32}q+=8}if(b>=0){var Y=[];Y[1]=b+1,Y[0]=(1<>0]=38470*t,x[t+512>>0]=7471*t+32768,x[t+768>>0]=-11059*t,x[t+1024>>0]=-21709*t,x[t+1280>>0]=32768*t+8421375,x[t+1536>>0]=-27439*t,x[t+1792>>0]=-5329*t}(),F(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new n(e).encode(t,e),width:t.width,height:t.height}}},function(t,e){var n=function(){"use strict";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,o=1567,a=3784,s=5793,u=2896;function c(){}function l(t,e){for(var n,r,i=0,o=[],a=16;a>0&&!t[a-1];)a--;o.push({children:[],index:0});var s,u=o[0];for(n=0;n0;)u=o.pop();for(u.index++,o.push(u);o.length<=n;)o.push(s={children:[],index:0}),u.children[u.index]=s.children,u=s;i++}n+10)return f>>--d&1;if(255==(f=e[n++])){var t=e[n++];if(t)throw new Error("unexpected marker: "+(f<<8|t).toString(16))}return d=7,f>>>7}function m(t){for(var e,n=t;null!==(e=g());){if("number"==typeof(n=n[e]))return n;if("object"!=typeof n)throw new Error("invalid huffman sequence")}return null}function b(t){for(var e=0;t>0;){var n=g();if(null===n)return;e=e<<1|n,t--}return e}function _(t){var e=b(t);return e>=1<0)y--;else for(var r=a,i=s;r<=i;){var o=m(e.huffmanTableAC),u=15&o,l=o>>4;if(0!==u)n[t[r+=l]]=_(u)*(1<>4,0===h)o<15?(y=b(o)+(1<>4;if(0!==s)n[t[o+=u]]=_(s),o++;else{if(u<15)break;o+=16}}};var I,M,P,L,B=0;for(M=1==A?i[0].blocksPerLine*i[0].blocksPerColumn:l*r.mcusPerColumn,o||(o=M);B=65488&&I<=65495))break;n+=2}return n-h}function h(t,c){var l,p,h=[],f=c.blocksPerLine,d=c.blocksPerColumn,g=f<<3,m=new Int32Array(64),b=new Uint8Array(64);function _(t,l,p){var h,f,d,g,m,b,_,y,v,w,x=c.quantizationTable,k=p;for(w=0;w<64;w++)k[w]=t[w]*x[w];for(w=0;w<8;++w){var E=8*w;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(h=s*k[0+E]+128>>8,f=s*k[4+E]+128>>8,d=k[2+E],g=k[6+E],m=u*(k[1+E]-k[7+E])+128>>8,y=u*(k[1+E]+k[7+E])+128>>8,b=k[3+E]<<4,_=k[5+E]<<4,v=h-f+1>>1,h=h+f+1>>1,f=v,v=d*a+g*o+128>>8,d=d*o-g*a+128>>8,g=v,v=m-_+1>>1,m=m+_+1>>1,_=v,v=y+b+1>>1,b=y-b+1>>1,y=v,v=h-g+1>>1,h=h+g+1>>1,g=v,v=f-d+1>>1,f=f+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=b*n+_*e+2048>>12,b=b*e-_*n+2048>>12,_=v,k[0+E]=h+y,k[7+E]=h-y,k[1+E]=f+_,k[6+E]=f-_,k[2+E]=d+b,k[5+E]=d-b,k[3+E]=g+m,k[4+E]=g-m):(v=s*k[0+E]+512>>10,k[0+E]=v,k[1+E]=v,k[2+E]=v,k[3+E]=v,k[4+E]=v,k[5+E]=v,k[6+E]=v,k[7+E]=v)}for(w=0;w<8;++w){var D=w;0!=k[8+D]||0!=k[16+D]||0!=k[24+D]||0!=k[32+D]||0!=k[40+D]||0!=k[48+D]||0!=k[56+D]?(h=s*k[0+D]+2048>>12,f=s*k[32+D]+2048>>12,d=k[16+D],g=k[48+D],m=u*(k[8+D]-k[56+D])+2048>>12,y=u*(k[8+D]+k[56+D])+2048>>12,b=k[24+D],_=k[40+D],v=h-f+1>>1,h=h+f+1>>1,f=v,v=d*a+g*o+2048>>12,d=d*o-g*a+2048>>12,g=v,v=m-_+1>>1,m=m+_+1>>1,_=v,v=y+b+1>>1,b=y-b+1>>1,y=v,v=h-g+1>>1,h=h+g+1>>1,g=v,v=f-d+1>>1,f=f+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=b*n+_*e+2048>>12,b=b*e-_*n+2048>>12,_=v,k[0+D]=h+y,k[56+D]=h-y,k[8+D]=f+_,k[48+D]=f-_,k[16+D]=d+b,k[40+D]=d-b,k[24+D]=g+m,k[32+D]=g-m):(v=s*p[w+0]+8192>>14,k[0+D]=v,k[8+D]=v,k[16+D]=v,k[24+D]=v,k[32+D]=v,k[40+D]=v,k[48+D]=v,k[56+D]=v)}for(w=0;w<64;++w){var S=128+(k[w]+8>>4);l[w]=S<0?0:S>255?255:S}}for(var y=0;y255?255:t}return c.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var n=0;e.length;function r(){var t=e[n]<<8|e[n+1];return n+=2,t}function i(){var t=r(),i=e.subarray(n,n+t-2);return n+=i.length,i}function o(t){var e,n,r=0,i=0;for(n in t.components)t.components.hasOwnProperty(n)&&(r<(e=t.components[n]).h&&(r=e.h),i>4==0)for(U=0;U<64;U++){w[t[U]]=e[n++]}else{if(v>>4!=1)throw new Error("DQT: invalid table spec");for(U=0;U<64;U++){w[t[U]]=r()}}f[15&v]=w}break;case 65472:case 65473:case 65474:r(),(a={}).extended=65473===b,a.progressive=65474===b,a.precision=e[n++],a.scanLines=r(),a.samplesPerLine=r(),a.components={},a.componentsOrder=[];var x,k=e[n++];for(N=0;N>4,D=15&e[n+1],S=e[n+2];a.componentsOrder.push(x),a.components[x]={h:E,v:D,quantizationIdx:S},n+=3}o(a),d.push(a);break;case 65476:var C=r();for(N=2;N>4==0?m:g)[15&T]=l(O,I)}break;case 65501:r(),s=r();break;case 65498:r();var M=e[n++],P=[];for(N=0;N>4],W.huffmanTableAC=g[15&L],P.push(W)}var B=e[n++],j=e[n++],F=e[n++],R=p(e,n,a,P,s,B,j,F>>4,15&F);n+=R;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}throw new Error("unknown JPEG marker "+b.toString(16))}b=r()}if(1!=d.length)throw new Error("only single frame JPEGs supported");for(var N=0;N>3))*this._bitmapInfo.height,n=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:n});var r=e,o=this.emit.bind(this,"error");this._inflate.on("error",function(t){r&&o(t)}),this._filter.on("complete",this._complete.bind(this));var a=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,a(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},l.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new a(this._bitmapInfo)},l.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},l.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},l.prototype._simpleTransparency=function(){this._metaData.alpha=!0},l.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},l.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},l.prototype._complete=function(t){if(!this.errord){try{var e=u.dataToBitMap(t,this._bitmapInfo),n=c(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",n)}}},function(t,e,n){"use strict";var r=n(6),i=n(77),o=n(78),a=t.exports=function(t){i.call(this);var e=[],n=this;this._filter=new o(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){n.emit("complete",Buffer.concat(e))}}),this._filter.start()};r.inherits(a,i)},function(t,e,n){"use strict";var r=n(6),i=n(4),o=n(22),a=n(85),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new a(e),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,i),s.prototype.pack=function(t,e,n,r){this.emit("data",new Buffer(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,n)),r&&this.emit("data",this._packer.packGAMA(r));var i=this._packer.filterData(t,e,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}},function(t,e,n){"use strict";var r=n(22);t.exports=function(t,e,n,i){var o,a=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(i.colorType);if(i.colorType===i.inputColorType){var s=(o=new ArrayBuffer(2),new DataView(o).setInt16(0,256,!0),256!==new Int16Array(o)[0]);if(8===i.bitDepth||16===i.bitDepth&&s)return t}var u=16!==i.bitDepth?t:new Uint16Array(t.buffer),c=255,l=r.COLORTYPE_TO_BPP_MAP[i.inputColorType];4!==l||i.inputHasAlpha||(l=3);var p=r.COLORTYPE_TO_BPP_MAP[i.colorType];16===i.bitDepth&&(c=65535,p*=2);var h=new Buffer(e*n*p),f=0,d=0,g=i.bgColor||{};function m(){var t,e,n,o=c;switch(i.inputColorType){case r.COLORTYPE_COLOR_ALPHA:o=u[f+3],t=u[f],e=u[f+1],n=u[f+2];break;case r.COLORTYPE_COLOR:t=u[f],e=u[f+1],n=u[f+2];break;case r.COLORTYPE_ALPHA:o=u[f+1],e=t=u[f],n=t;break;case r.COLORTYPE_GRAYSCALE:e=t=u[f],n=t;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(a||(o/=c,t=Math.min(Math.max(Math.round((1-o)*g.red+o*t),0),c),e=Math.min(Math.max(Math.round((1-o)*g.green+o*e),0),c),n=Math.min(Math.max(Math.round((1-o)*g.blue+o*n),0),c))),{red:t,green:e,blue:n,alpha:o}}void 0===g.red&&(g.red=c),void 0===g.green&&(g.green=c),void 0===g.blue&&(g.blue=c);for(var b=0;b=o?t[e+a-o]:0,u=t[e+a]-s;r[i+a]=u}},2:function(t,e,n,r,i){for(var o=0;o0?t[e+o-n]:0,s=t[e+o]-a;r[i+o]=s}},3:function(t,e,n,r,i,o){for(var a=0;a=o?t[e+a-o]:0,u=e>0?t[e+a-n]:0,c=t[e+a]-(s+u>>1);r[i+a]=c}},4:function(t,e,n,i,o,a){for(var s=0;s=a?t[e+s-a]:0,c=e>0?t[e+s-n]:0,l=e>0&&s>=a?t[e+s-(n+a)]:0,p=t[e+s]-r(u,c,l);i[o+s]=p}}},o={0:function(t,e,n){for(var r=0,i=e+n,o=e;o=r?t[e+o-r]:0,s=t[e+o]-a;i+=Math.abs(s)}return i},2:function(t,e,n){for(var r=0,i=e+n,o=e;o0?t[o-n]:0,s=t[o]-a;r+=Math.abs(s)}return r},3:function(t,e,n,r){for(var i=0,o=0;o=r?t[e+o-r]:0,s=e>0?t[e+o-n]:0,u=t[e+o]-(a+s>>1);i+=Math.abs(u)}return i},4:function(t,e,n,i){for(var o=0,a=0;a=i?t[e+a-i]:0,u=e>0?t[e+a-n]:0,c=e>0&&a>=i?t[e+a-(n+i)]:0,l=t[e+a]-r(s,u,c);o+=Math.abs(l)}return o}};t.exports=function(t,e,n,r,a){var s;if("filterType"in r&&-1!==r.filterType){if("number"!=typeof r.filterType)throw new Error("unrecognised filter types");s=[r.filterType]}else s=[0,1,2,3,4];16===r.bitDepth&&(a*=2);for(var u=e*a,c=0,l=0,p=new Buffer((u+1)*n),h=s[0],f=0;f1)for(var d=1/0,g=0;g>3))*p.height;g=o(m,{chunkSize:b,maxLength:b})}if(m=null,!g||!g.length)throw new Error("bad png - invalid inflate data response");var _=s.process(g,p);m=null;var y=c.dataToBitMap(_,p);_=null;var v=l(y,p);return p.data=v,p.gamma=h||0,p}},function(t,e,n){"use strict";var r=n(28).ok,i=n(16),o=n(6),a=n(8).kMaxLength;function s(t){if(!(this instanceof s))return new s(t);t&&t.chunkSize=0,"have should not go down"),n>0){var i=s._buffer.slice(s._offset,s._offset+n);if(s._offset+=n,i.length>p&&(i=i.slice(0,p)),f.push(i),d+=i.length,0===(p-=i.length))return!1}return(0===e||s._offset>=s._chunkSize)&&(l=s._chunkSize,s._offset=0,s._buffer=Buffer.allocUnsafe(s._chunkSize)),0===e&&(h+=c-t,c=t,!0)}}this.on("error",function(t){o=t}),r(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,h,c,this._buffer,this._offset,l);m=m||this._writeState}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw o;if(d>=a)throw u(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+a.toString(16)+" bytes");var b=Buffer.concat(f,d);return u(this),b},o.inherits(s,i.Inflate),t.exports=e=c,e.Inflate=s,e.createInflate=function(t){return new s(t)},e.inflateSync=c},function(t,e,n){"use strict";var r=n(86),i=n(78);e.process=function(t,e){var n=[],o=new r(t);return new i(e,{read:o.read.bind(o),write:function(t){n.push(t)},complete:function(){}}).start(),o.process(),Buffer.concat(n)}},function(t,e,n){"use strict";var r=!0,i=n(16);i.deflateSync||(r=!1);var o=n(22),a=n(85);t.exports=function(t,e){if(!r)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var n=new a(e||{}),s=[];s.push(new Buffer(o.PNG_SIGNATURE)),s.push(n.packIHDR(t.width,t.height)),t.gamma&&s.push(n.packGAMA(t.gamma));var u=n.filterData(t.data,t.width,t.height),c=i.deflateSync(u,n.getDeflateOptions());if(u=null,!c||!c.length)throw new Error("bad png - invalid compressed data response");return s.push(n.packIDAT(c)),s.push(n.packIEND()),Buffer.concat(s)}},function(t,e){function n(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}n.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,n=3*this.width+this.extraBytes,r=0;r0){var a=this.pos+r*n+3*this.width;t.fill(0,a,a+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new n(t).encode(),width:t.width,height:t.height}}},function(t,e){function n(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<=0?this.height-1:-this.height;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-s&1];this.data[a+4*s]=0,this.data[a+4*s+1]=u.blue,this.data[a+4*s+2]=u.green,this.data[a+4*s+3]=u.red}0!=e&&(this.pos+=4-e)}},n.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,n=!1;t>4),1&u&&u+1>1&1)&&this.pos++}}else for(u=0;u>4),n=!n}function c(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4}}else{var l=Math.ceil(this.width/2),p=l%4;for(a=this.height-1;a>=0;a--){var h=this.bottom_up?a:this.height-1-a;for(o=0;o>4,d=15&i,g=this.palette[f];if(this.data[t]=0,this.data[t+1]=g.blue,this.data[t+2]=g.green,this.data[t+3]=g.red,2*o+1>=this.width)break;g=this.palette[d],this.data[t+4]=0,this.data[t+4+1]=g.blue,this.data[t+4+2]=g.green,this.data[t+4+3]=g.red}0!=p&&(this.pos+=4-p)}}},n.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t=0;o--){var l=this.bottom_up?o:this.height-1-o;for(i=0;i=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&e)/e*255|0,u=(o>>10&e)/e*255|0,c=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=c,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=u}this.pos+=t}},n.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&e[0]++,this.maskGreen>>n&1&&e[1]++,this.maskBlue>>n&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>e[1],c=(a&this.maskRed)>>e[2],l=i*this.width*4+4*o;this.data[l]=0,this.data[l+1]=s,this.data[l+2]=u,this.data[l+3]=c}this.pos+=t}},n.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(e=this.bottom_up?t:this.height-1-t,n=0;n0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==c)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,d))!==c)throw new Error(a[n]);this._dict_set=!0}}function d(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(t,e){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,a))&&n!==c)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),s.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=f,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,n){"use strict";var r,i=n(17),o=n(198),a=n(87),s=n(88),u=n(51),c=0,l=1,p=3,h=4,f=5,d=0,g=1,m=-2,b=-3,_=-5,y=-1,v=1,w=2,x=3,k=4,E=0,D=2,S=8,C=9,T=15,O=8,A=286,I=30,M=19,P=2*A+1,L=15,B=3,j=258,F=j+B+1,R=32,N=42,z=69,U=73,W=91,G=103,H=113,$=666,q=1,Y=2,V=3,Z=4,X=3;function J(t,e){return t.msg=u[e],e}function Q(t){return(t<<1)-(t>4?9:0)}function K(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-F?t.strstart-(t.w_size-F):0,c=t.window,l=t.w_mask,p=t.prev,h=t.strstart+j,f=c[o+a-1],d=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===d&&c[n+a-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&oa){if(t.match_start=e,a=r,r>=s)break;f=c[o+a-1],d=c[o+a]}}}while((e=p[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function ot(t){var e,n,r,o,u,c,l,p,h,f,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-F)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,l=t.window,p=t.strstart+t.lookahead,h=o,f=void 0,(f=c.avail_in)>h&&(f=h),n=0===f?0:(c.avail_in-=f,i.arraySet(l,c.input,c.next_in,f,p),1===c.state.wrap?c.adler=a(c.adler,l,f,p):2===c.state.wrap&&(c.adler=s(c.adler,l,f,p)),c.next_in+=f,c.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=B)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<=B&&(t.ins_h=(t.ins_h<=B)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-B),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=B){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=B&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=B-1)),t.prev_length>=B&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-B,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-B),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),o<1||o>C||n!==S||r<8||r>15||e<0||e>9||a<0||a>k)return J(t,m);8===r&&(r=9);var u=new ct;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===c)return q;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return q;if(t.strstart-t.block_start>=t.w_size-F&&(et(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===h?(et(t,!0),0===t.strm.avail_out?V:Z):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),q)}),new ut(4,4,8,4,at),new ut(4,5,16,8,at),new ut(4,6,32,32,at),new ut(4,4,16,16,st),new ut(8,16,32,32,st),new ut(8,16,128,128,st),new ut(8,32,128,256,st),new ut(32,128,258,1024,st),new ut(32,258,258,4096,st)],e.deflateInit=function(t,e){return ht(t,e,S,T,O,E)},e.deflateInit2=ht,e.deflateReset=pt,e.deflateResetKeep=lt,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,d):m},e.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>f||e<0)return t?J(t,m):m;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===$&&e!==h)return J(t,0===t.avail_out?_:m);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===N)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=z):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,X),i.status=H);else{var b=S+(i.w_bits-8<<4)<<8;b|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=R),b+=31-b%31,i.status=H,rt(i,b),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===z)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=W)}else i.status=W;if(i.status===W)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=G)}else i.status=G;if(i.status===G&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=H)):i.status=H),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,d}else if(0===t.avail_in&&Q(e)<=Q(n)&&e!==h)return J(t,_);if(i.status===$&&0!==t.avail_in)return J(t,_);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==$){var y=i.strategy===w?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===c)return q;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===h?(et(t,!0),0===t.strm.avail_out?V:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?q:Y}(i,e):i.strategy===x?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=j){if(ot(t),t.lookahead<=j&&e===c)return q;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=B&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+j;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=B?(n=o._tr_tally(t,1,t.match_length-B),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return q}return t.insert=0,e===h?(et(t,!0),0===t.strm.avail_out?V:Z):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?q:Y}(i,e):r[i.level].func(i,e);if(y!==V&&y!==Z||(i.status=$),y===q||y===V)return 0===t.avail_out&&(i.last_flush=-1),d;if(y===Y&&(e===l?o._tr_align(i):e!==f&&(o._tr_stored_block(i,0,0,!1),e===p&&(K(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,d}return e!==h?d:i.wrap<=0?g:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:g)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==N&&e!==z&&e!==U&&e!==W&&e!==G&&e!==H&&e!==$?J(t,m):(t.state=null,e===H?J(t,b):d):m},e.deflateSetDictionary=function(t,e){var n,r,o,s,u,c,l,p,h=e.length;if(!t||!t.state)return m;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==N||n.lookahead)return m;for(1===s&&(t.adler=a(t.adler,e,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(K(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,e,h-n.w_size,n.w_size,0),e=p,h=n.w_size),u=t.avail_in,c=t.next_in,l=t.input,t.avail_in=h,t.next_in=0,t.input=e,ot(n);n.lookahead>=B;){r=n.strstart,o=n.lookahead-(B-1);do{n.ins_h=(n.ins_h<=0;)t[e]=0}var c=0,l=1,p=2,h=29,f=256,d=f+1+h,g=30,m=19,b=2*d+1,_=15,y=16,v=7,w=256,x=16,k=17,E=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(2*(d+2));u(O);var A=new Array(2*g);u(A);var I=new Array(512);u(I);var M=new Array(256);u(M);var P=new Array(h);u(P);var L,B,j,F=new Array(g);function R(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function N(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function z(t){return t<256?I[t]:I[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function W(t,e,n){t.bi_valid>y-n?(t.bi_buf|=e<>y-t.bi_valid,t.bi_valid+=n-y):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function $(t,e,n){var r,i,o=new Array(_+1),a=0;for(r=1;r<=_;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=H(o[s]++,s))}}function q(t){var e;for(e=0;e8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function V(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)Z(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Z(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,p=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,d=e.stat_desc.max_length,g=0;for(o=0;o<=_;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;nd&&(o=d,g++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=f&&(a=h[r-f]),s=u[2*r],t.opt_len+=s*(o+a),p&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==g){do{for(o=d-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[d]--,g-=2}while(g>0);for(o=d;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),$(o,c,t.bl_count)}function Q(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s>=7;r0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e=3&&0===t.bl_tree[2*T[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),u=t.opt_len+3+7>>>3,(c=t.static_len+3+7>>>3)<=u&&(u=c)):u=c=n+5,n+4<=u&&-1!==e?et(t,e,n,r):t.strategy===i||c===u?(W(t,(l<<1)+(r?1:0),3),X(t,O,A)):(W(t,(p<<1)+(r?1:0),3),function(t,e,n,r){var i;for(W(t,e-257,5),W(t,n-1,5),W(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(M[n]+f+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){W(t,l<<1,3),G(t,w,O),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(200),i=n(17),o=n(89),a=n(91),s=n(51),u=n(90),c=n(203),l=Object.prototype.toString;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[n])}function h(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}p.prototype.push=function(t,e){var n,s,u,c,p,h=this.strm,f=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(f),h.next_out=0,h.avail_out=f),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,p=o.buf2string(h.output,u),h.next_out=c,h.avail_out=f-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(p)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=p,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,n){"use strict";var r=n(17),i=n(87),o=n(88),a=n(201),s=n(202),u=0,c=1,l=2,p=4,h=5,f=6,d=0,g=1,m=2,b=-2,_=-3,y=-4,v=-5,w=8,x=1,k=2,E=3,D=4,S=5,C=6,T=7,O=8,A=9,I=10,M=11,P=12,L=13,B=14,j=15,F=16,R=17,N=18,z=19,U=20,W=21,G=22,H=23,$=24,q=25,Y=26,V=27,Z=28,X=29,J=30,Q=31,K=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=x,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):b}function at(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,ot(t)):b}function st(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?b:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):b}function ut(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=st(t,e))!==d&&(t.state=null),n):b}var ct,lt,pt=!0;function ht(t){if(pt){var e;for(ct=new r.Buf32(512),lt=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,ct,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,lt,0,t.work,{bits:5}),pt=!1}t.lencode=ct,t.lenbits=9,t.distcode=lt,t.distbits=5}function ft(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,Ct,2,0),st=0,ut=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=J;break}if((15&st)!==w){t.msg="unknown compression method",n.mode=J;break}if(ut-=4,xt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=xt;else if(xt>n.wbits){t.msg="invalid window size",n.mode=J;break}n.dmax=1<>8&1),512&n.flags&&(Ct[0]=255&st,Ct[1]=st>>>8&255,n.check=o(n.check,Ct,2,0)),st=0,ut=0,n.mode=E;case E:for(;ut<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,Ct[2]=st>>>16&255,Ct[3]=st>>>24&255,n.check=o(n.check,Ct,4,0)),st=0,ut=0,n.mode=D;case D:for(;ut<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>8),512&n.flags&&(Ct[0]=255&st,Ct[1]=st>>>8&255,n.check=o(n.check,Ct,2,0)),st=0,ut=0,n.mode=S;case S:if(1024&n.flags){for(;ut<16;){if(0===ot)break t;ot--,st+=tt[nt++]<>>8&255,n.check=o(n.check,Ct,2,0)),st=0,ut=0}else n.head&&(n.head.extra=null);n.mode=C;case C:if(1024&n.flags&&((pt=n.length)>ot&&(pt=ot),pt&&(n.head&&(xt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,pt,xt)),512&n.flags&&(n.check=o(n.check,tt,pt,nt)),ot-=pt,nt+=pt,n.length-=pt),n.length))break t;n.length=0,n.mode=T;case T:if(2048&n.flags){if(0===ot)break t;pt=0;do{xt=tt[nt+pt++],n.head&&xt&&n.length<65536&&(n.head.name+=String.fromCharCode(xt))}while(xt&&pt>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=P;break;case I:for(;ut<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=7&ut,ut-=7&ut,n.mode=V;break}for(;ut<3;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=1)){case 0:n.mode=B;break;case 1:if(ht(n),n.mode=U,e===f){st>>>=2,ut-=2;break t}break;case 2:n.mode=R;break;case 3:t.msg="invalid block type",n.mode=J}st>>>=2,ut-=2;break;case B:for(st>>>=7&ut,ut-=7&ut;ut<32;){if(0===ot)break t;ot--,st+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&st,st=0,ut=0,n.mode=j,e===f)break t;case j:n.mode=F;case F:if(pt=n.length){if(pt>ot&&(pt=ot),pt>at&&(pt=at),0===pt)break t;r.arraySet(et,tt,nt,pt,it),ot-=pt,nt+=pt,at-=pt,it+=pt,n.length-=pt;break}n.mode=P;break;case R:for(;ut<14;){if(0===ot)break t;ot--,st+=tt[nt++]<>>=5,ut-=5,n.ndist=1+(31&st),st>>>=5,ut-=5,n.ncode=4+(15&st),st>>>=4,ut-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=J;break}n.have=0,n.mode=N;case N:for(;n.have>>=3,ut-=3}for(;n.have<19;)n.lens[Tt[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Et={bits:n.lenbits},kt=s(u,n.lens,0,19,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid code lengths set",n.mode=J;break}n.have=0,n.mode=z;case z:for(;n.have>>16&255,_t=65535&St,!((mt=St>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=mt,ut-=mt,n.lens[n.have++]=_t;else{if(16===_t){for(Dt=mt+2;ut>>=mt,ut-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=J;break}xt=n.lens[n.have-1],pt=3+(3&st),st>>>=2,ut-=2}else if(17===_t){for(Dt=mt+3;ut>>=mt)),st>>>=3,ut-=3}else{for(Dt=mt+7;ut>>=mt)),st>>>=7,ut-=7}if(n.have+pt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=J;break}for(;pt--;)n.lens[n.have++]=xt}}if(n.mode===J)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=J;break}if(n.lenbits=9,Et={bits:n.lenbits},kt=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid literal/lengths set",n.mode=J;break}if(n.distbits=6,n.distcode=n.distdyn,Et={bits:n.distbits},kt=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Et),n.distbits=Et.bits,kt){t.msg="invalid distances set",n.mode=J;break}if(n.mode=U,e===f)break t;case U:n.mode=W;case W:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ut,a(t,lt),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ut=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;bt=(St=n.lencode[st&(1<>>16&255,_t=65535&St,!((mt=St>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,_t=65535&St,!(yt+(mt=St>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ut-=yt,n.back+=yt}if(st>>>=mt,ut-=mt,n.back+=mt,n.length=_t,0===bt){n.mode=Y;break}if(32&bt){n.back=-1,n.mode=P;break}if(64&bt){t.msg="invalid literal/length code",n.mode=J;break}n.extra=15&bt,n.mode=G;case G:if(n.extra){for(Dt=n.extra;ut>>=n.extra,ut-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;bt=(St=n.distcode[st&(1<>>16&255,_t=65535&St,!((mt=St>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<>yt)])>>>16&255,_t=65535&St,!(yt+(mt=St>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<>>=yt,ut-=yt,n.back+=yt}if(st>>>=mt,ut-=mt,n.back+=mt,64&bt){t.msg="invalid distance code",n.mode=J;break}n.offset=_t,n.extra=15&bt,n.mode=$;case $:if(n.extra){for(Dt=n.extra;ut>>=n.extra,ut-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=J;break}n.mode=q;case q:if(0===at)break t;if(pt=lt-at,n.offset>pt){if((pt=n.offset-pt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=J;break}pt>n.wnext?(pt-=n.wnext,dt=n.wsize-pt):dt=n.wnext-pt,pt>n.length&&(pt=n.length),gt=n.window}else gt=et,dt=it-n.offset,pt=n.length;pt>at&&(pt=at),at-=pt,n.length-=pt;do{et[it++]=gt[dt++]}while(--pt);0===n.length&&(n.mode=W);break;case Y:if(0===at)break t;et[it++]=n.length,at--,n.mode=W;break;case V:if(n.wrap){for(;ut<32;){if(0===ot)break t;ot--,st|=tt[nt++]<>>=v=y>>>24,d-=v,0===(v=y>>>16&255))S[o++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=g[(65535&y)+(f&(1<>>=v,d-=v),d<15&&(f+=D[r++]<>>=v=y>>>24,d-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(f&(1<u){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=v,d-=v,x>(v=o-a)){if((v=x-v)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,E=h,0===p){if(k+=c-v,v2;)S[o++]=E[k++],S[o++]=E[k++],S[o++]=E[k++],w-=3;w&&(S[o++]=E[k++],w>1&&(S[o++]=E[k++]))}else{k=o-x;do{S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],w-=3}while(w>2);w&&(S[o++]=S[k++],w>1&&(S[o++]=S[k++]))}break}}break}}while(r>3,f&=(1<<(d-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r=1&&0===B[S];S--);if(C>S&&(C=S),0===S)return c[l++]=20971520,c[l++]=20971520,h.bits=1,0;for(D=1;D0&&(0===t||1!==S))return-1;for(j[1]=0,k=1;k<15;k++)j[k+1]=j[k]+B[k];for(E=0;E852||2===t&&I>592)return 1;for(;;){y=k-O,p[E]<_?(v=0,w=p[E]):p[E]>_?(v=F[R+p[E]],w=P[L+p[E]]):(v=96,w=0),f=1<>O)+(d-=f)]=y<<24|v<<16|w|0}while(0!==d);for(f=1<>=1;if(0!==f?(M&=f-1,M+=f):M=0,E++,0==--B[k]){if(k===S)break;k=e[n+p[E]]}if(k>C&&(M&m)!==g){for(0===O&&(O=C),b+=D,A=1<<(T=k-O);T+O852||2===t&&I>592)return 1;c[g=M&m]=C<<24|T<<16|b-l|0}}return 0!==M&&(c[b+M]=k-O<<24|64<<16|0),h.bits=C,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){function n(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var o=[],a=0;a root";n=n.font,e.common=i(n.common[0].$),e.info=i(n.info[0].$);for(var r=0;r=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},a=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.Builder=function(){function e(t){var e,n,i;for(e in this.options={},n=r[.2])s.call(n,e)&&(i=n[e],this.options[e]=i);for(e in t)s.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var n,i,u,c,l,p;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r[.2].rootName?e=e[l=Object.keys(e)[0]]:l=this.options.rootName,p=this,u=function(t,e){var r,c,l,h,f,d;if("object"!=typeof e)p.options.cdata&&o(e)?t.raw(a(e)):t.txt(e);else if(Array.isArray(e)){for(h in e)if(s.call(e,h))for(f in c=e[h])l=c[f],t=u(t.ele(f),l).up()}else for(f in e)if(s.call(e,f))if(c=e[f],f===n){if("object"==typeof c)for(r in c)d=c[r],t=t.att(r,d)}else if(f===i)t=p.options.cdata&&o(c)?t.raw(a(c)):t.txt(c);else if(Array.isArray(c))for(h in c)s.call(c,h)&&(t="string"==typeof(l=c[h])?p.options.cdata&&o(l)?t.ele(f).raw(a(l)).up():t.ele(f,l).up():u(t.ele(f),l).up());else"object"==typeof c?t=u(t.ele(f),c).up():"string"==typeof c&&p.options.cdata&&o(c)?t=t.ele(f).raw(a(c)).up():(null==c&&(c=""),t=t.ele(f,c.toString()).up());return t},c=t.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),u(c,e).end(this.options.renderOpts)},e}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,u;u=n(18),a=u.assign,s=u.isFunction,e=n(209),r=n(210),o=n(53),i=n(211),t.exports.create=function(t,n,r,i){var o,s;if(null==t)throw new Error("Root element needs a name");return i=a({},n,r,i),s=(o=new e(i)).element(t),i.headless||(o.declaration(i),null==i.pubID&&null==i.sysID||o.doctype(i)),s},t.exports.begin=function(t,n,i){var o;return s(t)&&(n=(o=[t,n])[0],i=o[1],t={}),n?new r(t,n,i):new e(t)},t.exports.stringWriter=function(t){return new o(t)},t.exports.streamWriter=function(t,e){return new i(t,e)}}).call(this)},function(t,e,n){(function(){var e,r,i,o,a={}.hasOwnProperty;o=n(18).isPlainObject,e=n(13),i=n(93),r=n(53),t.exports=function(t){function n(t){n.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new r),this.options=t,this.stringify=new i(t),this.isDocument=!0}return function(t,e){for(var n in e)a.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,e),n.prototype.end=function(t){var e;return t?o(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},n.prototype.toString=function(t){return this.options.writer.set(t).document(this)},n}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,u,c,l,p,h,f,d,g,m,b,_,y,v,w={}.hasOwnProperty;v=n(18),_=v.isObject,b=v.isFunction,y=v.isPlainObject,p=n(31),r=n(32),i=n(33),f=n(40),m=n(41),h=n(42),c=n(34),l=n(35),o=n(36),s=n(37),a=n(38),u=n(39),e=n(92),g=n(93),d=n(53),t.exports=function(){function t(t,e,n){var r;t||(t={}),t.writer?y(t.writer)&&(r=t.writer,t.writer=new d(r)):t.writer=new d(t),this.options=t,this.writer=t.writer,this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,n){var r;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),_(e)||(n=(r=[e,n])[0],e=r[1]),this.currentNode=new p(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},t.prototype.element=function(t,e,n){return this.currentNode&&this.currentNode instanceof l?this.dtdElement.apply(this,arguments):this.node(t,e,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),_(t))for(r in t)w.call(t,r)&&(i=t[r],this.attribute(r,i));else b(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new m(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new r(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new f(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var n,r,i,o,a;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(n=0,o=t.length;n=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof p&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,n){return this.node(t,e,n)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},t.prototype.dtd=function(t,e,n){return this.doctype(t,e,n)},t.prototype.e=function(t,e,n){return this.element(t,e,n)},t.prototype.n=function(t,e,n){return this.node(t,e,n)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof l?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,u,c,l,p,h,f,d,g={}.hasOwnProperty;u=n(34),c=n(35),e=n(32),r=n(33),l=n(31),h=n(40),f=n(41),p=n(42),i=n(36),o=n(38),a=n(37),s=n(39),d=n(94),t.exports=function(t){function n(t,e){n.__super__.constructor.call(this,e),this.stream=t}return function(t,e){for(var n in e)g.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,d),n.prototype.document=function(t){var e,n,i,o,a,s,l,h;for(n=0,o=(s=t.children).length;n"+this.endline(t))},n.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},n.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('"),this.stream.write(this.endline(t))},n.prototype.docType=function(t,n){var u,c,l,h;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),c=0,l=(h=t.children).length;c"),this.stream.write(this.endline(t))},n.prototype.element=function(t,n){var i,o,a,s,u,c,d,m;for(u in n||(n=0),m=this.space(n),this.stream.write(m+"<"+t.name),c=t.attributes)g.call(c,u)&&(i=c[u],this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),a=0,s=(d=t.children).length;a")}return this.stream.write(this.endline(t))},n.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},n}()}).call(this)},function(t,e,n){(function(){"use strict";var t,r,i,o,a,s,u,c,l=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;u=n(213),i=n(9),t=n(215),s=n(95),c=n(216).setImmediate,r=n(52).defaults,o=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},a=function(t,e,n){var r,i;for(r=0,i=t.length;r0&&(u[t.options.childkey]=l),l=u;return r.length>0?t.assignOrPush(d,c,l):(t.options.explicitRoot&&(f=l,(l={})[c]=f),t.resultObject=l,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],(i={"#name":"__text__"})[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){var e;if(e=n(t))return e.cdata=!0}},h.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,c(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},h}(),e.parseString=function(t,n,r){var i,o;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),new e.Parser(o).parseString(t,i)}}).call(this)},function(t,e,n){!function(t){t.parser=function(t,e){return new i(t,e)},t.SAXParser=i,t.SAXStream=a,t.createStream=function(t,e){return new a(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,n){if(!(this instanceof i))return new i(e,n);!function(t){for(var e=0,n=r.length;e"===i?(C(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=E.TEXT):b(i)?(this.state=E.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case E.SGML_DECL_QUOTED:i===this.q&&(this.state=E.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case E.DOCTYPE:">"===i?(this.state=E.TEXT,C(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=E.DOCTYPE_DTD:b(i)&&(this.state=E.DOCTYPE_QUOTED,this.q=i));continue;case E.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=E.DOCTYPE:b(i)&&(this.state=E.DOCTYPE_DTD_QUOTED,this.q=i);continue;case E.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=E.DOCTYPE_DTD,this.q="");continue;case E.COMMENT:"-"===i?this.state=E.COMMENT_ENDING:this.comment+=i;continue;case E.COMMENT_ENDING:"-"===i?(this.state=E.COMMENT_ENDED,this.comment=O(this.opt,this.comment),this.comment&&C(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==i?(M(this,"Malformed comment"),this.comment+="--"+i,this.state=E.COMMENT):this.state=E.TEXT;continue;case E.CDATA:"]"===i?this.state=E.CDATA_ENDING:this.cdata+=i;continue;case E.CDATA_ENDING:"]"===i?this.state=E.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===i?(this.cdata&&C(this,"oncdata",this.cdata),C(this,"onclosecdata"),this.cdata="",this.state=E.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=E.CDATA);continue;case E.PROC_INST:"?"===i?this.state=E.PROC_INST_ENDING:m(i)?this.state=E.PROC_INST_BODY:this.procInstName+=i;continue;case E.PROC_INST_BODY:if(!this.procInstBody&&m(i))continue;"?"===i?this.state=E.PROC_INST_ENDING:this.procInstBody+=i;continue;case E.PROC_INST_ENDING:">"===i?(C(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=E.TEXT):(this.procInstBody+="?"+i,this.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:y(f,i)?this.tagName+=i:(P(this),">"===i?j(this):"/"===i?this.state=E.OPEN_TAG_SLASH:(m(i)||M(this,"Invalid character in tag name"),this.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===i?(j(this,!0),F(this)):(M(this,"Forward-slash in opening tag not followed by >"),this.state=E.ATTRIB);continue;case E.ATTRIB:if(m(i))continue;">"===i?j(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(h,i)?(this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):M(this,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===i?this.state=E.ATTRIB_VALUE:">"===i?(M(this,"Attribute without value"),this.attribValue=this.attribName,B(this),j(this)):m(i)?this.state=E.ATTRIB_NAME_SAW_WHITE:y(f,i)?this.attribName+=i:M(this,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=E.ATTRIB_VALUE;else{if(m(i))continue;M(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",C(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?j(this):y(h,i)?(this.attribName=i,this.state=E.ATTRIB_NAME):(M(this,"Invalid attribute name"),this.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(m(i))continue;b(i)?(this.q=i,this.state=E.ATTRIB_VALUE_QUOTED):(M(this,"Unquoted attribute value"),this.state=E.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case E.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}B(this),this.q="",this.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:m(i)?this.state=E.ATTRIB:">"===i?j(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(h,i)?(M(this,"No whitespace between attributes"),this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):M(this,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!_(i)){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}B(this),">"===i?j(this):this.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(this.tagName)">"===i?F(this):y(f,i)?this.tagName+=i:this.script?(this.script+=""===i?F(this):M(this,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var c,l;switch(this.state){case E.TEXT_ENTITY:c=E.TEXT,l="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:c=E.ATTRIB_VALUE_QUOTED,l="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:c=E.ATTRIB_VALUE_UNQUOTED,l="attribValue"}";"===i?(this[l]+=R(this),this.entity="",this.state=c):y(this.entity.length?g:d,i)?this.entity+=i:(M(this,"Invalid character in entity name"),this[l]+="&"+this.entity+i,this.entity="",this.state=c);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,o=0,a=r.length;on)switch(r[o]){case"textNode":T(e);break;case"cdata":C(e,"oncdata",e.cdata),e.cdata="";break;case"script":C(e,"onscript",e.script),e.script="";break;default:A(e,"Max buffer length exceeded: "+r[o])}i=Math.max(i,s)}var u=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=u+e.position}(this);return this} +/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;T(t=this),""!==t.cdata&&(C(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(C(t,"onscript",t.script),t.script="")}};try{e=n(4).Stream}catch(t){e=function(){}}var o=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function a(t,n){if(!(this instanceof a))return new a(t,n);e.apply(this),this._parser=new i(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,o.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}a.prototype=Object.create(e.prototype,{constructor:{value:a}}),a.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=n(214).StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},a.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},a.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===o.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var s="[CDATA[",u="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",p={xml:c,xmlns:l},h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function b(t){return'"'===t||"'"===t}function _(t){return">"===t||m(t)}function y(t,e){return t.test(e)}function v(t,e){return!y(t,e)}var w,x,k,E=0;for(var D in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r}),t.STATE)t.STATE[t.STATE[D]]=D;function S(t,e,n){t[e]&&t[e](n)}function C(t,e,n){t.textNode&&T(t),S(t,e,n)}function T(t){t.textNode=O(t.opt,t.textNode),t.textNode&&S(t,"ontext",t.textNode),t.textNode=""}function O(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function A(t,e){return T(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,S(t,"onerror",e),t}function I(t){return t.sawRoot&&!t.closedRoot&&M(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&A(t,"Unexpected end"),T(t),t.c="",t.closed=!0,S(t,"onend"),i.call(t,t.strict,t.opt),t}function M(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&A(t,e)}function P(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,C(t,"onopentagstart",n)}function L(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function B(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=L(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==c)M(t,"xml: prefix must be bound to "+c+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==l)M(t,"xmlns: prefix must be bound to "+l+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,C(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function j(t,e){if(t.opt.xmlns){var n=t.tag,r=L(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(M(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){C(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=E.SCRIPT);C(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;M(t,"Unexpected close tag")}if(e<0)return M(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=E.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,C(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];C(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function R(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(M(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function N(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):m(e)||(M(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function z(t,e){var n="";return e1114111||x(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(t=55296+((a-=65536)>>10),e=a%1024+56320,n.push(t,e)),(r+1===i||n.length>16384)&&(o+=w.apply(null,n),n.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k)}(e)},function(t,e){t.exports=require("string_decoder")},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){t.exports=require("timers")},function(t,e){t.exports=function(t){for(var e in"chasrset"in t&&(t.charset=t.chasrset,delete t.chasrset),t)"face"!==e&&"charset"!==e&&(t[e]="padding"===e||"spacing"===e?t[e].split(",").map(function(t){return parseInt(t,10)}):parseInt(t[e],10));return t}},function(t,e){var n=[66,77,70];function r(t,e,n){if(n>e.length-1)return 0;var r=e.readUInt8(n++),o=e.readInt32LE(n);switch(n+=4,r){case 1:t.info=function(t,e){var n={};n.size=t.readInt16LE(e);var r=t.readUInt8(e+2);n.smooth=r>>7&1,n.unicode=r>>6&1,n.italic=r>>5&1,n.bold=r>>4&1,r>>3&1&&(n.fixedHeight=1);return n.charset=t.readUInt8(e+3)||"",n.stretchH=t.readUInt16LE(e+4),n.aa=t.readUInt8(e+6),n.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],n.spacing=[t.readInt8(e+11),t.readInt8(e+12)],n.outline=t.readUInt8(e+13),n.face=function(t,e){return i(t,e).toString("utf8")}(t,e+14),n}(e,n);break;case 2:t.common=function(t,e){var n={};n.lineHeight=t.readUInt16LE(e),n.base=t.readUInt16LE(e+2),n.scaleW=t.readUInt16LE(e+4),n.scaleH=t.readUInt16LE(e+6),n.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return n.packed=0,n.alphaChnl=t.readUInt8(e+11),n.redChnl=t.readUInt8(e+12),n.greenChnl=t.readUInt8(e+13),n.blueChnl=t.readUInt8(e+14),n}(e,n);break;case 3:t.pages=function(t,e,n){for(var r=[],o=i(t,e),a=o.length+1,s=n/a,u=0;u3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var i={kernings:[],chars:[]},o=0;o<5;o++)e+=r(i,t,e);return i}},function(t,e,n){n(2);var r=n(7);function i(){this.types=Object.create(null),this.extensions=Object.create(null)}i.prototype.define=function(t){for(var e in t){for(var n=t[e],r=0;r4&&r(t.slice(0,4),i)}},function(t,e,n){var r=n(8).Buffer;t.exports=function(t,e){if(r.isBuffer(t)&&r.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,a=365.25*o;function s(t,e,n){if(!(t0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===c&&!1===isNaN(t))return e.long?s(u=t,o,"day")||s(u,i,"hour")||s(u,r,"minute")||s(u,n,"second")||u+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=i)return Math.round(t/i)+"h";if(t>=r)return Math.round(t/r)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(229),i=n(6);(e=t.exports=n(97)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;rNumber.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var i=Math.min(65558,e),o=new Buffer(i),a=e-o.length;_(t,o,0,i,a,function(s){if(s)return r(s);for(var u=i-22;u>=0;u-=1)if(101010256===o.readUInt32LE(u)){var c=o.slice(u),l=c.readUInt16LE(4);if(0!==l)return r(new Error("multi-disk zip files are not supported: found disk number: "+l));var p=c.readUInt16LE(10),h=c.readUInt32LE(16),d=c.readUInt16LE(20),g=c.length-22;if(d!==g)return r(new Error("invalid comment length. expected: "+g+". found: "+d));var m=k(c,22,c.length,!1);if(65535!==p&&4294967295!==h)return r(null,new f(t,h,e,p,m,n.autoClose,n.lazyEntries));var b=new Buffer(20),y=a+u-b.length;return void _(t,b,0,b.length,y,function(i){if(i)return r(i);if(117853008!==b.readUInt32LE(0))return r(new Error("invalid ZIP64 End of Central Directory Locator signature"));var o=E(b,8),a=new Buffer(56);_(t,a,0,a.length,o,function(i){return i?r(i):101075792!==a.readUInt32LE(0)?r(new Error("invalid ZIP64 end of central directory record signature")):(p=E(a,32),h=E(a,48),r(null,new f(t,h,e,p,m,n.autoClose,n.lazyEntries)))})})}r(new Error("end of central directory record signature not found"))})}function f(t,e,n,r,i,o,a){var u=this;s.call(u),u.reader=t,u.reader.on("error",function(t){g(u,t)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=e,u.fileSize=n,u.entryCount=r,u.comment=i,u.entriesRead=0,u.autoClose=!!o,u.lazyEntries=!!a,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u.readEntry()}function d(t,e){t.autoClose&&t.close(),g(t,e)}function g(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}function m(){}function b(t,e){return new Date(1980+(t>>9&127),(t>>5&15)-1,31&t,e>>11&31,e>>5&63,2*(31&e),0)}function _(t,e,n,r,i,o){if(0===r)return setImmediate(function(){o(null,new Buffer(0))});t.read(e,n,r,i,function(t,e){return t?o(t):ef.length)return d(t,new Error("Zip64 Extended Information Extra Field does not include Original Size"));r.uncompressedSize=E(f,m),m+=8}if(4294967295===r.compressedSize){if(m+8>f.length)return d(t,new Error("Zip64 Extended Information Extra Field does not include Compressed Size"));r.compressedSize=E(f,m),m+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(m+8>f.length)return d(t,new Error("Zip64 Extended Information Extra Field does not include Relative Header Offset"));r.relativeOffsetOfLocalHeader=E(f,m),m+=8}}if(0===r.compressionMethod&&r.compressedSize!==r.uncompressedSize){var b="compressed/uncompressed size mismatch for stored file: "+r.compressedSize+" != "+r.uncompressedSize;return d(t,new Error(b))}if(-1!==r.fileName.indexOf("\\"))return d(t,new Error("invalid characters in fileName: "+r.fileName));if(/^[a-zA-Z]:/.test(r.fileName)||/^\//.test(r.fileName))return d(t,new Error("absolute path: "+r.fileName));if(-1!==r.fileName.split("/").indexOf(".."))return d(t,new Error("invalid relative path: "+r.fileName));t.emit("entry",r),t.lazyEntries||t.readEntry()}})}})}}else setImmediate(function(){t.autoClose&&t.close(),t.emittedError||t.emit("end")})},f.prototype.openReadStream=function(t,e){var n=this;if(!n.isOpen)return e(new Error("closed"));n.reader.ref();var r=new Buffer(30);_(n.reader,r,0,r.length,t.relativeOffsetOfLocalHeader,function(o){try{if(o)return e(o);var a=r.readUInt32LE(0);if(67324752!==a)return e(new Error("invalid local file header signature: 0x"+a.toString(16)));var s,u=r.readUInt16LE(26),c=r.readUInt16LE(28),l=t.relativeOffsetOfLocalHeader+r.length+u+c;if(0===t.compressionMethod)s=!1;else{if(8!==t.compressionMethod)return e(new Error("unsupported compression method: "+t.compressionMethod));s=!0}var p=l,h=p+t.compressedSize;if(0!==t.compressedSize&&h>n.fileSize)return e(new Error("file data overflows file bounds: "+p+" + "+t.compressedSize+" > "+n.fileSize));var f=n.reader.createReadStream({start:p,end:h}),d=f;if(s){var g=!1,m=i.createInflateRaw();f.on("error",function(t){setImmediate(function(){g||m.emit("error",t)})});var b=new y(t.uncompressedSize);m.on("error",function(t){setImmediate(function(){g||b.emit("error",t)})}),b.destroy=function(){g=!0,m.unpipe(b),f.unpipe(m),f.destroy()},d=f.pipe(m).pipe(b)}e(null,d)}finally{n.reader.unref()}})},m.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},a.inherits(y,u),y.prototype._transform=function(t,e,n){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,t)},y.prototype._flush=function(t){if(this.actualByteCount0)){if(t.refCount<0)throw new Error("invalid unref");t.close(function(e){if(e)return t.emit("error",e);t.emit("close")})}},v.prototype.createReadStream=function(t){var e=t.start,n=t.end;if(e===n){var r=new c;return setImmediate(function(){r.end()}),r}var i=this._readStreamForRange(e,n),o=!1,a=new w(this);i.on("error",function(t){setImmediate(function(){o||a.emit("error",t)})}),a.destroy=function(){i.unpipe(a),a.unref(),i.destroy()};var s=new y(n-e);return a.on("error",function(t){setImmediate(function(){o||s.emit("error",t)})}),s.destroy=function(){o=!0,a.unpipe(s),a.destroy()},i.pipe(a).pipe(s)},v.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")},v.prototype.read=function(t,e,n,r,i){var o=this.createReadStream({start:r,end:r+n}),a=new l,s=0;a._write=function(n,r,i){n.copy(t,e+s,0,n.length),s+=n.length,i()},a.on("finish",i),o.on("error",function(t){i(t)}),o.pipe(a)},v.prototype.close=function(t){setImmediate(t)},a.inherits(w,c),w.prototype._flush=function(t){this.unref(),t()},w.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var x="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function k(t,e,n,r){if(r)return t.toString("utf8",e,n);for(var i="",o=e;o0)){if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&r.close(t.fd,function(e){e?t.emit("error",e):t.emit("close")})}},i.inherits(h,a),h.prototype._read=function(t){var e=this;if(!e.destroyed){var n=Math.min(e._readableState.highWaterMark,t);if(null!=e.endOffset&&(n=Math.min(n,e.endOffset-e.pos)),n<=0)return e.destroyed=!0,e.push(null),void e.context.unref();e.context.pend.go(function(t){if(e.destroyed)return t();var i=new Buffer(n);r.read(e.context.fd,i,0,n,e.pos,function(n,r){n?e.destroy(n):0===r?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=r,e.push(i.slice(0,r))),t()})})}},h.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())},i.inherits(f,s),f.prototype._write=function(t,e,n){var i=this;if(!i.destroyed){if(i.pos+t.length>i.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",i.destroy(),void n(o)}i.context.pend.go(function(e){if(i.destroyed)return e();r.write(i.context.fd,t,0,t.length,i.pos,function(t,r){t?(i.destroy(),e(),n(t)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),e(),n())})})}},f.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(d,l),d.prototype.read=function(t,e,n,r,i){var o=r+n,a=o-this.buffer.length,s=a>0?a:n;this.buffer.copy(t,e,r,o),setImmediate(function(){i(null,s)})},d.prototype.write=function(t,e,n,r,i){t.copy(this.buffer,r,e,e+n),setImmediate(function(){i(null,n,t)})},d.prototype.createReadStream=function(t){var e=new u(t=t||{});return e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length,e.destroyed=!1,e.write(this.buffer.slice(e.start,e.pos)),e.end(),e.destroy=function(){e.destroyed=!0},e},d.prototype.createWriteStream=function(t){var e=this,n=new s(t=t||{});return n.start=t.start||0,n.endOffset=null==t.end?this.buffer.length:+t.end,n.bytesWritten=0,n.pos=n.start,n.destroyed=!1,n._write=function(t,r,i){if(!n.destroyed){var o=n.pos+t.length;if(o>n.endOffset){var a=new Error("maximum file length exceeded");return a.code="ETOOBIG",n.destroyed=!0,void i(a)}t.copy(e.buffer,n.pos,0,t.length),n.bytesWritten+=t.length,n.pos=o,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},d.prototype.ref=function(){this.refCount+=1},d.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},function(t,e){function n(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function r(t){t.pending+=1;var e=!1;return function(r){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||r,t.pending-=1,t.waiting.length>0&&t.pending0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){t.exports=n(6).deprecate},function(t,e,n){"use strict";t.exports=o;var r=n(103),i=n(5);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(3),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e){var n=Object.prototype.toString,r="function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;t.exports=function(t,e,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return o=t,"ArrayBuffer"===n.call(o).slice(8,-1)?function(t,e,n){e>>>=0;var i=t.byteLength-e;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(t.slice(e,e+n)):new Buffer(new Uint8Array(t.slice(e,e+n)))}(t,e,i):"string"==typeof t?function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(t,e):new Buffer(t,e)}(t,e):r?Buffer.from(t):new Buffer(t);var o}},function(t,e){var n,r,i,o=void 0,a=1e5,s=(n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,{Class:function(t){return n.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(t,e){return e in t},HasOwnProperty:function(t,e){return r.call(t,e)},IsCallable:function(t){return"function"==typeof t},ToInt32:function(t){return t>>0},ToUint32:function(t){return t>>>0}}),u=Math.LN2,c=Math.abs,l=Math.floor,p=Math.log,h=Math.min,f=Math.pow,d=Math.round;function g(t){if(m&&i){var e,n=m(t);for(e=0;e>n}function _(t,e){var n=32-e;return t<>>n}function y(t){return[255&t]}function v(t){return b(t[0],8)}function w(t){return[255&t]}function x(t){return _(t[0],8)}function k(t){return[(t=d(Number(t)))<0?0:t>255?255:255&t]}function E(t){return[t>>8&255,255&t]}function D(t){return b(t[0]<<8|t[1],16)}function S(t){return[t>>8&255,255&t]}function C(t){return _(t[0]<<8|t[1],16)}function T(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]}function O(t){return b(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function A(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]}function I(t){return _(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function M(t,e,n){var r,i,o,a,s,d,g,m=(1<.5?e+1:e%2?e+1:e}for(t!=t?(i=(1<=f(2,1-m)?(i=h(l(p(t)/u),1023),(o=b(t/f(2,i)*f(2,n)))/f(2,n)>=2&&(i+=1,o=1),i>m?(i=(1<>=1;return p.reverse(),a=p.join(""),s=(1<0?u*f(2,c-s)*(1+l/f(2,n)):0!==l?u*f(2,-(s-1))*(l/f(2,n)):u<0?-0:0}function L(t){return P(t,11,52)}function B(t){return M(t,11,52)}function j(t){return P(t,8,23)}function F(t){return M(t,8,23)}!function(){var t=function(t){if((t=s.ToInt32(t))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var e;for(this.byteLength=t,this._bytes=[],this._bytes.length=t,e=0;ethis.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=s.ToUint32(r),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(u=arguments[0],this.length=s.ToUint32(u.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,l=0;la)throw new RangeError("Array too large for polyfill");var e;for(e=0;e=this.length)return o;var e,n,r=[];for(e=0,n=this.byteOffset+t*this.BYTES_PER_ELEMENT;e=this.length)return o;var n,r,i=this._pack(e);for(n=0,r=this.byteOffset+t*this.BYTES_PER_ELEMENT;nthis.length)throw new RangeError("Offset plus length of array is out of range");if(l=this.byteOffset+i*this.BYTES_PER_ELEMENT,p=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(h=[],a=0,u=n.byteOffset;athis.length)throw new RangeError("Offset plus length of array is out of range");for(a=0;an?n:t}t=s.ToInt32(t),e=s.ToInt32(e),arguments.length<1&&(t=0),arguments.length<2&&(e=this.length),t<0&&(t=this.length+t),e<0&&(e=this.length+e),t=n(t,0,this.length);var r=(e=n(e,0,this.length))-t;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+t*this.BYTES_PER_ELEMENT,r)},c}var u=r(1,y,v),c=r(1,w,x),l=r(1,k,x),p=r(2,E,D),h=r(2,S,C),f=r(4,T,O),d=r(4,A,I),m=r(4,F,j),b=r(8,B,L);e.Int8Array=e.Int8Array||u,e.Uint8Array=e.Uint8Array||c,e.Uint8ClampedArray=e.Uint8ClampedArray||l,e.Int16Array=e.Int16Array||p,e.Uint16Array=e.Uint16Array||h,e.Int32Array=e.Int32Array||f,e.Uint32Array=e.Uint32Array||d,e.Float32Array=e.Float32Array||m,e.Float64Array=e.Float64Array||b}(),function(){function t(t,e){return s.IsCallable(t.get)?t.get(e):t[e]}var n,r=(n=new e.Uint16Array([4660]),18===t(new e.Uint8Array(n.buffer),0)),i=function(t,n,r){if(0===arguments.length)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||"ArrayBuffer"===s.Class(t)))throw new TypeError("TypeError");if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=s.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=s.ToUint32(r),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");g(this)};function o(n){return function(i,o){if((i=s.ToUint32(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var a,u=new e.Uint8Array(this.buffer,i,n.BYTES_PER_ELEMENT),c=[];for(a=0;athis.byteLength)throw new RangeError("Array index out of range");var u,c=new n([o]),l=new e.Uint8Array(c.buffer),p=[];for(u=0;u=t.length&&n()}c(t,function(t){e(t,a(i))})},o.forEach=o.each,o.eachSeries=function(t,e,n){if(n=n||function(){},!t.length)return n();var r=0,i=function(){e(t[r],function(e){e?(n(e),n=function(){}):(r+=1)>=t.length?n():i()})};i()},o.forEachSeries=o.eachSeries,o.eachLimit=function(t,e,n,r){h(e).apply(null,[t,n,r])},o.forEachLimit=o.eachLimit;var h=function(t){return function(e,n,r){if(r=r||function(){},!e.length||t<=0)return r();var i=0,o=0,a=0;!function s(){if(i>=e.length)return r();for(;a=e.length?r():s())})}()}},f=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[o.each].concat(e))}},d=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[o.eachSeries].concat(e))}},g=function(t,e,n,r){if(e=l(e,function(t,e){return{index:e,value:t}}),r){var i=[];t(e,function(t,e){n(t.value,function(n,r){i[t.index]=r,e(n)})},function(t){r(t,i)})}else t(e,function(t,e){n(t.value,function(t){e(t)})})};o.map=f(g),o.mapSeries=d(g),o.mapLimit=function(t,e,n,r){return m(e)(t,n,r)};var m=function(t){return function(t,e){return function(){var n=Array.prototype.slice.call(arguments);return e.apply(null,[h(t)].concat(n))}}(t,g)};o.reduce=function(t,e,n,r){o.eachSeries(t,function(t,r){n(e,t,function(t,n){e=n,r(t)})},function(t){r(t,e)})},o.inject=o.reduce,o.foldl=o.reduce,o.reduceRight=function(t,e,n,r){var i=l(t,function(t){return t}).reverse();o.reduce(i,e,n,r)},o.foldr=o.reduceRight;var b=function(t,e,n,r){var i=[];t(e=l(e,function(t,e){return{index:e,value:t}}),function(t,e){n(t.value,function(n){n&&i.push(t),e()})},function(t){r(l(i.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})};o.filter=f(b),o.filterSeries=d(b),o.select=o.filter,o.selectSeries=o.filterSeries;var _=function(t,e,n,r){var i=[];t(e=l(e,function(t,e){return{index:e,value:t}}),function(t,e){n(t.value,function(n){n||i.push(t),e()})},function(t){r(l(i.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})};o.reject=f(_),o.rejectSeries=d(_);var y=function(t,e,n,r){t(e,function(t,e){n(t,function(n){n?(r(t),r=function(){}):e()})},function(t){r()})};o.detect=f(y),o.detectSeries=d(y),o.some=function(t,e,n){o.each(t,function(t,r){e(t,function(t){t&&(n(!0),n=function(){}),r()})},function(t){n(!1)})},o.any=o.some,o.every=function(t,e,n){o.each(t,function(t,r){e(t,function(t){t||(n(!1),n=function(){}),r()})},function(t){n(!0)})},o.all=o.every,o.sortBy=function(t,e,n){o.map(t,function(t,n){e(t,function(e,r){e?n(e):n(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,l(e.sort(function(t,e){var n=t.criteria,r=e.criteria;return nr?1:0}),function(t){return t.value}))})},o.auto=function(t,e){e=e||function(){};var n=p(t),r=n.length;if(!r)return e();var i={},a=[],s=function(t){a.unshift(t)},l=function(){r--,c(a.slice(0),function(t){t()})};s(function(){if(!r){var t=e;e=function(){},t(null,i)}}),c(n,function(n){var r=u(t[n])?t[n]:[t[n]],h=function(t){var r=Array.prototype.slice.call(arguments,1);if(r.length<=1&&(r=r[0]),t){var a={};c(p(i),function(t){a[t]=i[t]}),a[n]=r,e(t,a),e=function(){}}else i[n]=r,o.setImmediate(l)},f=r.slice(0,Math.abs(r.length-1))||[],d=function(){return e=function(t,e){return t&&i.hasOwnProperty(e)},r=!0,((t=f).reduce?t.reduce(e,r):(c(t,function(t,n,i){r=e(r,t,n,i)}),r))&&!i.hasOwnProperty(n);var t,e,r};if(d())r[r.length-1](h,i);else{var g=function(){d()&&(!function(t){for(var e=0;e>>1);n(e,t[o])>=0?r=o:i=o-1}return r}(t.tasks,a,n)+1,0,a),t.saturated&&t.tasks.length===t.concurrency&&t.saturated(),o.setImmediate(t.process)})}(r,t,e,i)},delete r.unshift,r},o.cargo=function(t,e){var n=!1,r=[],i={tasks:r,payload:e,saturated:null,empty:null,drain:null,drained:!0,push:function(t,n){u(t)||(t=[t]),c(t,function(t){r.push({data:t,callback:"function"==typeof n?n:null}),i.drained=!1,i.saturated&&r.length===e&&i.saturated()}),o.setImmediate(i.process)},process:function o(){if(!n){if(0===r.length)return i.drain&&!i.drained&&i.drain(),void(i.drained=!0);var a="number"==typeof e?r.splice(0,e):r.splice(0,r.length),s=l(a,function(t){return t.data});i.empty&&i.empty(),n=!0,t(s,function(){n=!1;var t=arguments;c(a,function(e){e.callback&&e.callback.apply(null,t)}),o()})}},length:function(){return r.length},running:function(){return n}};return i};var x=function(t){return function(e){var n=Array.prototype.slice.call(arguments,1);e.apply(null,n.concat([function(e){var n=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(e?console.error&&console.error(e):console[t]&&c(n,function(e){console[t](e)}))}]))}};o.log=x("log"),o.dir=x("dir"),o.memoize=function(t,e){var n={},r={};e=e||function(t){return t};var i=function(){var i=Array.prototype.slice.call(arguments),a=i.pop(),s=e.apply(null,i);s in n?o.nextTick(function(){a.apply(null,n[s])}):s in r?r[s].push(a):(r[s]=[a],t.apply(null,i.concat([function(){n[s]=arguments;var t=r[s];delete r[s];for(var e=0,i=t.length;e2){var r=Array.prototype.slice.call(arguments,2);return n.apply(this,r)}return n};o.applyEach=f(k),o.applyEachSeries=d(k),o.forever=function(t,e){!function n(r){if(r){if(e)return e(r);throw r}t(n)}()},t.exports?t.exports=o:void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r=n(6),i=n(4).PassThrough||n(249);function o(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function a(t,e){if(!(this instanceof a))return new a(t,e);i.call(this,e),o(this,"_read",function(){t.call(this,e).pipe(this)}),this.emit("readable")}function s(t,e){if(!(this instanceof s))return new s(t,e);i.call(this,e),o(this,"_write",function(){var n=t.call(this,e);this.pipe(n)}),this.emit("writable")}t.exports={Readable:a,Writable:s},r.inherits(a,i),r.inherits(s,i)},function(t,e,n){t.exports=n(250)},function(t,e,n){t.exports=o;var r=n(251),i=n(5);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(3),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=a;var r=n(107),i=n(5);function o(t,e){this.afterTransform=function(t,n){return function(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&t.push(n);i&&i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&o){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||o||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(o.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,o=e.length,a=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(s)n=r.shift();else if(!t||t>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},l.prototype._read=function(t){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:l;function s(t){t===n&&l()}function u(){t.end()}i.endEmitted?process.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function l(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",l),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===o.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},l.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;ie?1:tprocessEmitQueue",t===this.EOF?":EOF:":t),!t){this.log(">processEmitQueue, falsey m"),this._processingEmitQueue=!1;break}if(t===this.EOF||!this.mark||this.stat)this.log("peq: unmarked, or eof"),i.call(this,0,!1);else if(this.statCache[t]){var n,r=this.statCache[t];r&&(n=r.isDirectory()?2:1),this.log("peq: stat cached"),i.call(this,n,2===n)}else this.log("peq: _stat, then next"),this._stat(t,i);function i(n,r){this.log("next",t,n,r);var i=t===this.EOF?"end":"match";c(!this._endEmitted),"end"===i&&(this._endEmitted=!0),n&&(r&&!t.match(/\/$/)?t+="/":!r&&t.match(/\/$/)&&(t=t.replace(/\/+$/,""))),this.log("emit",i,t),this.emit(i,t),this._processingEmitQueue=!1,e&&t!==this.EOF&&!this.paused&&this._processEmitQueue()}}e=!0},h.prototype._process=function(t,e,n,r){c(this instanceof h);var o=function(t,e){c(this instanceof h),this.paused?(this._processQueue||(this._processQueue=[],this.once("resume",function(){var t=this._processQueue;this._processQueue=null,t.forEach(function(t){t()})})),this._processQueue.push(r.bind(this,t,e))):r.call(this,t,e)}.bind(this);if(this.aborted)return o();if(e>this.maxDepth)return o();for(var a,s,l=0;"string"==typeof t[l];)l++;switch(l){case t.length:return a=t.join("/"),void this._stat(a,function(t,e){return t&&(a&&g(a)&&!this.nomount&&(a="/"===a.charAt(0)?u.join(this.root,a):u.resolve(this.root,a)),"win32"===process.platform&&(a=a.replace(/\\/g,"/")),this.matches[n]=this.matches[n]||{},this.matches[n][a]=!0,this.emitMatch(a)),o()});case 0:a=null;break;default:a=(a=t.slice(0,l)).join("/")}return null===a?s=".":g(a)||g(t.join("/"))?(a&&g(a)||(a=u.join("/",a)),s=a=u.resolve(a),this.log("absolute: ",a,this.root,t,s)):s=a,this.log("readdir(%j)",s,this.cwd,this.root),this._readdir(s,function(r,s){if(r)return o();if(t[l]!==i.GLOBSTAR){t[l];var c=t[l]._glob,p=this.dot||"."===c.charAt(0);if(s=s.filter(function(e){return("."!==e.charAt(0)||p)&&e.match(t[l])}),l===t.length-1&&!this.mark&&!this.stat)return s.forEach(function(t){a&&(t="/"!==a?a+"/"+t:a+t),"/"!==t.charAt(0)||this.nomount||(t=u.join(this.root,t)),"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this.matches[n]=this.matches[n]||{},this.matches[n][t]=!0,this.emitMatch(t)},this),o.call(this);f=s.length,d=null;if(0===f)return o();s.forEach(function(r){var i=t.slice(0,l).concat(r).concat(t.slice(l+1));this._process(i,e+1,n,function(t){if(!d)return t?o(d=t):0==--f?o.call(this):void 0})},this)}else{var h=[t.slice(0,l).concat(t.slice(l+1))];if(s.forEach(function(e){("."!==e.charAt(0)||this.dot)&&(h.push(t.slice(0,l).concat(e).concat(t.slice(l+1))),h.push(t.slice(0,l).concat(e).concat(t.slice(l))))},this),!(h=h.filter(function(t){var e=function(t){return"**"+t.map(function(t){return t===i.GLOBSTAR?"**":""+t}).join("/")}(t),n=!this._globstars[e];return this._globstars[e]=!0,n},this)).length)return o();var f=h.length,d=null;h.forEach(function(t){this._process(t,e+1,n,function(t){if(!d)return t?o(d=t):--f<=0?o():void 0})},this)}})},h.prototype._stat=function(t,e){c(this instanceof h);var n=t;if("/"===t.charAt(0)?n=u.join(this.root,t):this.changedCwd&&(n=u.resolve(this.cwd,t)),t.length>this.maxLength)return(s=new Error("Path name too long")).code="ENAMETOOLONG",s.path=t,this._afterStat(t,n,e,s);if(this.log("stat",[this.cwd,t,"=",n]),!this.stat&&this.cache.hasOwnProperty(t)){var i=this.cache[t],o=i&&(Array.isArray(i)||2===i);return this.sync?e.call(this,!!i,o):process.nextTick(e.bind(this,!!i,o))}var a=this.statCache[n];if(this.sync||a){var s;try{a=r.statSync(n)}catch(t){s=t}this._afterStat(t,n,e,s,a)}else r.stat(n,this._afterStat.bind(this,t,n,e))},h.prototype._afterStat=function(t,e,n,r,i){var o;c(this instanceof h),"/"===e.slice(-1)&&i&&!i.isDirectory()&&(this.log("should be ENOTDIR, fake it"),(r=new Error("ENOTDIR, not a directory '"+e+"'")).path=e,r.code="ENOTDIR",i=null);var a=!this.statCache[e];this.statCache[e]=i,r||!i?o=!1:(o=i.isDirectory()?2:1,a&&this.emit("stat",t,i)),this.cache[t]=this.cache[t]||o,n.call(this,!!o,2===o)},h.prototype._readdir=function(t,e){c(this instanceof h);var n=t;if("/"===t.charAt(0)?n=u.join(this.root,t):g(t)?n=t:this.changedCwd&&(n=u.resolve(this.cwd,t)),t.length>this.maxLength)return(a=new Error("Path name too long")).code="ENAMETOOLONG",a.path=t,this._afterReaddir(t,n,e,a);if(this.log("readdir",[this.cwd,t,n]),this.cache.hasOwnProperty(t)){var i=this.cache[t];if(Array.isArray(i))return this.sync?e.call(this,null,i):process.nextTick(e.bind(this,null,i));if(!i||1===i){var o=i?"ENOTDIR":"ENOENT";return(a=new Error((i?"Not a directory":"Not found")+": "+t)).path=t,a.code=o,this.log(t,a),this.sync?e.call(this,a):process.nextTick(e.bind(this,a))}}if(this.sync){var a,s;try{s=r.readdirSync(n)}catch(t){a=t}return this._afterReaddir(t,n,e,a,s)}r.readdir(n,this._afterReaddir.bind(this,t,n,e))},h.prototype._afterReaddir=function(t,e,n,r,i){if(c(this instanceof h),i&&!r)return this.cache[t]=i,this.mark||this.stat||i.forEach(function(e){e="/"===t?t+e:t+"/"+e,this.cache[e]=!0},this),n.call(this,r,i);if(r)switch(r.code){case"ENOTDIR":return this.cache[t]=1,n.call(this,r);case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":return this.cache[t]=!1,n.call(this,r);default:return this.cache[t]=!1,this.strict&&this.emit("error",r),this.silent||console.error("glob error",r),n.call(this,r)}};var g="win32"===process.platform?function(t){if(m(t))return!0;var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),n=e[1]||"",r=n&&":"!==n.charAt(1);return!!e[2]||r}:m;function m(t){return"/"===t.charAt(0)||""===t}},function(t,e,n){(function(t){!function(t,e,r,i){r?r.exports=m:e.minimatch=m,m.Minimatch=b;var o=n(258),a=m.cache=new o({max:100}),s=m.GLOBSTAR=b.GLOBSTAR={},u=n(259),c=(n(2),"[^/]"),l=c+"*?",p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",h="(?:(?!(?:\\/|^)\\.).)*?",f="().*{}+?[]^$\\!".split("").reduce(function(t,e){return t[e]=!0,t},{});var d=/\/+/;function g(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function m(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new b(e,n).match(t))}function b(t,e){if(!(this instanceof b))return new b(t,e,a);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"win32"===i&&(t=t.split("\\").join("/"));var n=t+"\n"+u(e),r=m.cache.get(n);if(r)return r;m.cache.set(n,this),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}m.filter=function(t,e){return e=e||{},function(n,r,i){return m(n,t,e)}},m.defaults=function(t){if(!t||!Object.keys(t).length)return m;var e=m,n=function(n,r,i){return e.minimatch(n,r,g(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,g(t,r))},n},b.defaults=function(t){return t&&Object.keys(t).length?m.defaults(t).Minimatch:b},b.prototype.debug=function(){},b.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(d)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n},b.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,o=t.length;ih?-1:1,d=[],o=p;o!=h+f;o+=f)for(var g=0,m=l.length;g=0&&!(r=t[a]);a--);for(var a=0,s=o.length;a>> no match, partial?",t,h,e,f),h!==a))}if("string"==typeof l?(c=r.nocase?p.toLowerCase()===l.toLowerCase():p===l,this.debug("string match",l,p,c)):(c=p.match(l),this.debug("pattern match",l,p,c)),!c)return!1}if(i===a&&o===u)return!0;if(i===a)return n;if(o===u)return i===a-1&&""===t[i];throw new Error("wtf?")}}(0,this,t,"object"==typeof process?process.platform:"win32")}).call(this,n(68)(t))},function(t,e,n){!function(){function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function n(){return 1}t.exports?t.exports=o:this.LRUCache=o;var r=!1;function i(t){r||"string"==typeof t||"number"==typeof t||(r=!0,console.error(new TypeError("LRU: key must be a string or number. Almost certainly a bug! "+typeof t).stack))}function o(t){if(!(this instanceof o))return new o(t);"number"==typeof t&&(t={max:t}),t||(t={}),this._max=t.max,(!this._max||"number"!=typeof this._max||this._max<=0)&&(this._max=1/0),this._lengthCalculator=t.length||n,"function"!=typeof this._lengthCalculator&&(this._lengthCalculator=n),this._allowStale=t.stale||!1,this._maxAge=t.maxAge||null,this._dispose=t.dispose,this.reset()}function a(t,e,n){i(e);var r=t._cache[e];return r&&(s(t,r)?(l(t,r),t._allowStale||(r=void 0)):n&&function(t,e){c(t,e),e.lu=t._mru++,t._lruList[e.lu]=e}(t,r),r&&(r=r.value)),r}function s(t,e){if(!e||!e.maxAge&&!t._maxAge)return!1;var n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t._maxAge&&n>t._maxAge}function u(t){for(;t._lrut._max;)l(t,t._lruList[t._lru])}function c(t,e){for(delete t._lruList[e.lu];t._lruthis._max&&u(this)},get:function(){return this._max},enumerable:!0}),Object.defineProperty(o.prototype,"lengthCalculator",{set:function(t){if("function"!=typeof t)for(var e in this._lengthCalculator=n,this._length=this._itemCount,this._cache)this._cache[e].length=1;else for(var e in this._lengthCalculator=t,this._length=0,this._cache)this._cache[e].length=this._lengthCalculator(this._cache[e].value),this._length+=this._cache[e].length;this._length>this._max&&u(this)},get:function(){return this._lengthCalculator},enumerable:!0}),Object.defineProperty(o.prototype,"length",{get:function(){return this._length},enumerable:!0}),Object.defineProperty(o.prototype,"itemCount",{get:function(){return this._itemCount},enumerable:!0}),o.prototype.forEach=function(t,e){e=e||this;for(var n=0,r=this._itemCount,i=this._mru-1;i>=0&&n=0&&e=0&&e=0&&ethis._max?(l(this,this._cache[t]),!1):(this._dispose&&this._dispose(t,this._cache[t].value),this._cache[t].now=o,this._cache[t].maxAge=r,this._cache[t].value=n,this._length+=a-this._cache[t].length,this._cache[t].length=a,this.get(t),this._length>this._max&&u(this),!0);var s=new p(t,n,this._mru++,a,o,r);return s.length>this._max?(this._dispose&&this._dispose(t,n),!1):(this._length+=s.length,this._lruList[s.lu]=this._cache[t]=s,this._itemCount++,this._length>this._max&&u(this),!0)},o.prototype.has=function(t){return i(t),!!e(this._cache,t)&&!s(this,this._cache[t])},o.prototype.get=function(t){return i(t),a(this,t,!0)},o.prototype.peek=function(t){return i(t),a(this,t,!1)},o.prototype.pop=function(){var t=this._lruList[this._lru];return l(this,t),t||null},o.prototype.del=function(t){i(t),l(this,this._cache[t])},o.prototype.load=function(t){this.reset();for(var e=Date.now(),n=t.length-1;n>=0;n--){var r=t[n];i(r.k);var o=r.e||0;if(0===o)this.set(r.k,r.v);else{var a=o-e;a>0&&this.set(r.k,r.v,a)}}}}()},function(t,e){t.exports=function(t,e){e=e||10;var n=[],r="",i=RegExp;return function t(o,a){a>e||"function"!=typeof o&&void 0!==o&&("object"!=typeof o||!o||o instanceof i?r+=o:-1===n.indexOf(o)&&a!==e&&(n.push(o),r+="{",Object.keys(o).forEach(function(e,n,i){if("_"!==e.charAt(0)){var s=typeof o[e];"function"!==s&&"undefined"!==s&&(r+=e,t(o[e],a+1))}})))}(t,0),r}},function(t,e,n){var r=n(261),i=n(45),o=t.exports=function(t){t=this.options=i.defaults(t,{comment:"",forceUTC:!1,store:!1}),this.supports={directory:!0},this.engine=new r(t)};o.prototype.append=function(t,e,n){this.engine.entry(t,e,n)},o.prototype.finalize=function(){this.engine.finalize()},o.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},o.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)}},function(t,e,n){var r=n(6).inherits,i=n(108).ZipArchiveOutputStream,o=n(108).ZipArchiveEntry,a=n(271),s=t.exports=function(t){if(!(this instanceof s))return new s(t);(t=this.options=t||{}).zlib=t.zlib||{},i.call(this,t),"number"==typeof t.level&&t.level>=0&&(t.zlib.level=t.level,delete t.level),t.zlib.level&&0===t.zlib.level&&(t.store=!0),t.comment&&t.comment.length>0&&this.setComment(t.comment)};r(s,i),s.prototype._normalizeFileData=function(t){var e="directory"===(t=a.defaults(t,{type:"file",name:null,date:null,mode:null,store:this.options.store,comment:""})).type;return t.name&&(t.name=a.sanitizePath(t.name),"/"===t.name.slice(-1)?(e=!0,t.type="directory"):e&&(t.name+="/")),e&&(t.store=!0),t.date=a.dateify(t.date),t},s.prototype.entry=function(t,e,n){if("function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),"file"===(e=this._normalizeFileData(e)).type||"directory"===e.type){if("string"==typeof e.name&&0!==e.name.length){var r=new o(e.name);return r.setTime(e.date),e.store&&r.setMethod(0),e.comment.length>0&&r.setComment(e.comment),"number"==typeof e.mode&&r.setUnixMode(e.mode),i.prototype.entry.call(this,r,t,n)}n(new Error("entry name must be a non-empty string value"))}else n(new Error(e.type+" entries not currently supported"))},s.prototype.finalize=function(){this.finish()}},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){t.exports=o;var r=n(116),i=n(5);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(3),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(6).inherits,i=n(46),o=n(265),a=o.DeflateCRC32Stream,s=n(112),u=(n(109),n(110),n(111)),c=(n(117),n(58)),l=t.exports=function(t){if(!(this instanceof l))return new l(t);(t=this.options=t||{}).zlib=this._zlibDefaults(t.zlib),s.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1}};r(l,s),l.prototype._afterAppend=function(t){this._entries.push(t),this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},l.prototype._appendBuffer=function(t,e,n){0===e.length&&t.setMethod(u.METHOD_STORED);var r=t.getMethod();return r===u.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(i.unsigned(e))),this._writeLocalFileHeader(t),r===u.METHOD_STORED?(this.write(e),this._afterAppend(t),void n(null,t)):r===u.METHOD_DEFLATED?void this._smartStream(t,n).end(e):void n(new Error("compression method "+r+" not implemented"))},l.prototype._appendStream=function(t,e,n){t.getGeneralPurposeBit().useDataDescriptor(!0),this._writeLocalFileHeader(t);var r=this._smartStream(t,n);e.pipe(r)},l.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},l.prototype._setDefaults=function(t){-1===t.getMethod()&&t.setMethod(u.METHOD_DEFLATED),t.getMethod()===u.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(u.DATA_DESCRIPTOR_MIN_VERSION)),-1===t.getTime()&&t.setTime(new Date),t._offsets={file:0,data:0,contents:0}},l.prototype._smartStream=function(t,e){var n=t.getMethod()===u.METHOD_DEFLATED?new a(this.options.zlib):new o;return n.once("error",e),n.once("end",function(r){t.setCrc(n.digest()),t.setSize(n.size()),t.setCompressedSize(n.size(!0)),this._afterAppend(t),e(null,t)}.bind(this)),n.pipe(this,{end:!1}),n},l.prototype._writeCentralDirectoryEnd=function(){this.write(c.getLongBytes(u.SIG_EOCD)),this.write(u.SHORT_ZERO),this.write(u.SHORT_ZERO),this.write(c.getShortBytes(this._entries.length)),this.write(c.getShortBytes(this._entries.length)),this.write(c.getLongBytes(this._archive.centralLength)),this.write(c.getLongBytes(this._archive.centralOffset));var t=this.getComment(),e=Buffer.byteLength(t);this.write(c.getShortBytes(e)),this.write(t)},l.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t._offsets;this.write(c.getLongBytes(u.SIG_CFH)),this.write(c.getShortBytes(t.getPlatform()<<8|u.DATA_DESCRIPTOR_MIN_VERSION)),this._writeVersionGeneral(t),this.write(c.getShortBytes(n)),this.write(c.getLongBytes(t.getTimeDos())),this.write(c.getLongBytes(t.getCrc())),this.write(c.getLongBytes(t.getCompressedSize())),this.write(c.getLongBytes(t.getSize()));var i=t.getName(),o=t.getComment(),a=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(i=new Buffer(i),o=new Buffer(o)),this.write(c.getShortBytes(i.length)),this.write(c.getShortBytes(a.length)),this.write(c.getShortBytes(o.length)),this.write(u.SHORT_ZERO),this.write(c.getShortBytes(t.getInternalAttributes())),this.write(c.getLongBytes(t.getExternalAttributes())),this.write(c.getLongBytes(r.file)),this.write(i),this.write(a),this.write(o)},l.prototype._writeDataDescriptor=function(t){t.getGeneralPurposeBit().usesDataDescriptor()&&(this.write(c.getLongBytes(u.SIG_DD)),this.write(c.getLongBytes(t.getCrc())),this.write(c.getLongBytes(t.getCompressedSize())),this.write(c.getLongBytes(t.getSize())))},l.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t.getName(),i=t.getLocalFileDataExtra();e.usesUTF8ForNames()&&(r=new Buffer(r)),t._offsets.file=this.offset,this.write(c.getLongBytes(u.SIG_LFH)),this._writeVersionGeneral(t),this.write(c.getShortBytes(n)),this.write(c.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,t.getGeneralPurposeBit().usesDataDescriptor()?(this.write(u.LONG_ZERO),this.write(u.LONG_ZERO),this.write(u.LONG_ZERO)):(this.write(c.getLongBytes(t.getCrc())),this.write(c.getLongBytes(t.getCompressedSize())),this.write(c.getLongBytes(t.getSize()))),this.write(c.getShortBytes(r.length)),this.write(c.getShortBytes(i.length)),this.write(r),this.write(i),t._offsets.contents=this.offset},l.prototype._writeVersionGeneral=function(t){this.write(c.getShortBytes(t.getVersionNeededToExtract())),this.write(t.getGeneralPurposeBit().encode())},l.prototype._zlibDefaults=function(t){return"object"!=typeof t&&(t={}),"number"!=typeof t.level&&(t.level=u.ZLIB_BEST_SPEED),t},l.prototype.getComment=function(t){return null!==this._archive.comment?this._archive.comment:""},l.prototype.setComment=function(t){this._archive.comment=t}},function(t,e,n){(e=t.exports=n(266)).CRC32Stream=e,e.DeflateCRC32Stream=n(270)},function(t,e,n){var r=n(6).inherits,i=n(267).Transform,o=n(46),a=t.exports=function(t){i.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0};r(a,i),a.prototype._transform=function(t,e,n){t&&(this.checksum=o(t,this.checksum),this.rawSize+=t.length),n(null,t)},a.prototype.digest=function(){return o.unsigned(0,this.checksum)},a.prototype.hex=function(){return this.digest().toString(16).toUpperCase()},a.prototype.size=function(){return this.rawSize}},function(t,e,n){var r=n(4);(e=t.exports=n(118)).Stream=r,e.Readable=e,e.Writable=n(119),e.Duplex=n(60),e.Transform=n(120),e.PassThrough=n(269),process.browser||"disable"!==process.env.READABLE_STREAM||(t.exports=n(4))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){t.exports=o;var r=n(120),i=n(5);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(3),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(16),i=n(6).inherits,o=n(46),a=t.exports=function(t){r.DeflateRaw.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0,"function"!=typeof r.DeflateRaw.prototype.push&&this.on("data",function(t){t&&(this.compressedSize+=t.length)})};i(a,r.DeflateRaw),a.prototype.push=function(t,e){return t&&(this.compressedSize+=t.length),r.DeflateRaw.prototype.push.call(this,t,e)},a.prototype.write=function(t,e,n){return t&&(this.checksum=o(t,this.checksum),this.rawSize+=t.length),r.DeflateRaw.prototype.write.call(this,t,e,n)},a.prototype.digest=function(){return o.unsigned(0,this.checksum)},a.prototype.hex=function(){return this.digest().toString(16).toUpperCase()},a.prototype.size=function(t){return(t=t||!1)?this.compressedSize:this.rawSize}},function(t,e,n){n(7);var r=n(2),i=n(4).Stream,o=n(272).PassThrough,a=n(56),s=t.exports={};s.convertDateTimeDos=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},s.dateify=function(t){return t=(t=t||new Date)instanceof Date?t:"string"==typeof t?new Date(t):new Date},s.defaults=function(t,e,n){var r=arguments;return r[0]=r[0]||{},a.defaults.apply(a,r)},s.dosDateTime=function(t,e){t=t instanceof Date?t:s.dateify(t);var n=(e=e||!1)?t.getUTCFullYear():t.getFullYear();return n<1980?2162688:n>=2044?2141175677:n-1980<<25|(e?t.getUTCMonth():t.getMonth())+1<<21|(e?t.getUTCDate():t.getDate())<<16|(e?t.getUTCHours():t.getHours())<<11|(e?t.getUTCMinutes():t.getMinutes())<<5|(e?t.getUTCSeconds():t.getSeconds())/2},s.isStream=function(t){return t instanceof i},s.normalizeInputSource=function(t){if(null===t)return new Buffer(0);if("string"==typeof t)return new Buffer(t);if(s.isStream(t)&&!t._readableState){var e=new o;return t.pipe(e),e}return t},s.sanitizePath=function(){return r.join.apply(r,arguments).replace(/\\/g,"/").replace(/:/g,"").replace(/^\/+/,"")},s.unixifyPath=function(){return r.join.apply(r,arguments).replace(/\\/g,"/")}},function(t,e,n){var r=n(4);(e=t.exports=n(121)).Stream=r,e.Readable=e,e.Writable=n(122),e.Duplex=n(61),e.Transform=n(123),e.PassThrough=n(274),process.browser||"disable"!==process.env.READABLE_STREAM||(t.exports=n(4))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){t.exports=o;var r=n(123),i=n(5);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(3),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(16),i=n(276),o=n(45),a=t.exports=function(t){"object"!=typeof(t=this.options=o.defaults(t,{gzip:!1})).gzipOptions&&(t.gzipOptions={}),this.supports={directory:!0},this.engine=i.pack(t),this.compressor=!1,t.gzip&&(this.compressor=r.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};a.prototype._onCompressorError=function(t){this.engine.emit("error",t)},a.prototype.append=function(t,e,n){var r=this;function i(t,i){t?n(t):r.engine.entry(e,i,function(t){n(t,e)})}if(e.mtime=e.date,"buffer"===e.sourceType)i(null,t);else if("stream"===e.sourceType&&e._stats){e.size=e._stats.size;var a=r.engine.entry(e,function(t){n(t,e)});t.pipe(a)}else"stream"===e.sourceType&&o.collectStream(t,i)},a.prototype.finalize=function(){this.engine.finalize()},a.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},a.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)}},function(t,e,n){e.extract=n(277),e.pack=n(286)},function(t,e,n){var r=n(6),i=n(278),o=n(283),a=n(125),s=n(23).Writable,u=n(23).PassThrough,c=function(){},l=function(t){return(t&=511)&&512-t},p=function(t){if(!(this instanceof p))return new p(t);s.call(this,t),this._buffer=i(),this._missing=0,this._onparse=c,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null;var e=this,n=e._buffer,r=function(){e._continue()},h=function(t){if(e._locked=!1,t)return e.destroy(t);e._stream||r()},f=function(){e._stream=null;var t=l(e._header.size);t?e._parse(t,d):e._parse(512,b),e._locked||r()},d=function(){e._buffer.consume(l(e._header.size)),e._parse(512,b),r()},g=function(){var t=e._header.size;e._paxGlobal=a.decodePax(n.slice(0,t)),n.consume(t),f()},m=function(){var t=e._header.size;e._pax=a.decodePax(n.slice(0,t)),e._paxGlobal&&(e._pax=o(e._paxGlobal,e._pax)),n.consume(t),f()},b=function(){var t,i;try{t=e._header=a.decode(n.slice(0,512))}catch(t){e.emit("error",t)}return n.consume(512),t?"pax-global-header"===t.type?(e._parse(t.size,g),void r()):"pax-header"===t.type?(e._parse(t.size,m),void r()):(e._pax&&(e._header=t=function(t,e){return e.path&&(t.name=e.path),e.linkpath&&(t.linkname=e.linkpath),t}(t,e._pax),e._pax=null),e._locked=!0,t.size?(e._stream=new u,e.emit("entry",t,e._stream,h),e._parse(t.size,f),void r()):(e._parse(512,b),void e.emit("entry",t,(i=new u,i.end(),i),h))):(e._parse(512,b),void r())};this._parse(512,b)};r.inherits(p,s),p.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.emit("close"))},p.prototype._parse=function(t,e){this._destroyed||(this._missing=t,this._onparse=e)},p.prototype._continue=function(t){if(!this._destroyed){var e=this._cb;this._cb=c,this._overflow?this._write(this._overflow,void 0,e):e()}},p.prototype._write=function(t,e,n){if(!this._destroyed){var r=this._stream,i=this._buffer,o=this._missing;if(t.lengtho&&(a=t.slice(o),t=t.slice(0,o)),r?r.end(t):i.append(t),this._overflow=a,this._onparse()}},t.exports=p},function(t,e,n){var r=n(279);function i(t){if(!(this instanceof i))return new i(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)})}else Buffer.isBuffer(t)?this.append(t):Array.isArray(t)&&t.forEach(function(t){Buffer.isBuffer(t)&&this.append(t)}.bind(this));r.call(this)}n(6).inherits(i,r),i.prototype._offset=function(t){for(var e,n=0,r=0;rthis.length)&&(r=this.length),n>=this.length)return t||new Buffer(0);if(r<=0)return t||new Buffer(0);var i,o,a=!!t,s=this._offset(n),u=r-n,c=u,l=a&&e||0,p=s[1];if(0===n&&r==this.length){if(!a)return Buffer.concat(this._bufs);for(o=0;o(i=this._bufs[o].length-p))){this._bufs[o].copy(t,l,p,p+c);break}this._bufs[o].copy(t,l,p),l+=i,c-=i,p&&(p=0)}return t},i.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},i.prototype.consume=function(t){for(;this._bufs.length;){if(!(t>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},i.prototype.duplicate=function(){for(var t=0,e=new i;t0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&o){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||o||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(o.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,o=e.length,a=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(s)n=r.shift();else if(!t||t>=o)n=a?r.join(""):i.concat(r,o),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},l.prototype._read=function(t){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var a=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?u:l;function s(t){t===n&&l()}function u(){t.end()}i.endEmitted?process.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function l(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",l),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===o.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},l.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;il)throw new i(`Too many arguments provided. Expected max ${l} but received ${n}.`);u.demanded.forEach(t=>{const e=c.shift(),n=a(e),r=t.cmd.filter(t=>t===n||"*"===t);0===r.length&&s(n,t.cmd,o,!1),o+=1}),u.optional.forEach(t=>{if(0===c.length)return;const e=c.shift(),n=a(e),r=t.cmd.filter(t=>t===n||"*"===t);0===r.length&&s(n,t.cmd,o,!0),o+=1})}catch(t){console.warn(t.stack)}};const r=n(293)(),i=n(142),o=["first","second","third","fourth","fifth","sixth"];function a(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function s(t,e,n,r){throw new i(`Invalid ${o[n]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}},function(t,e,n){"use strict";const r=n(316),i=n(318),o=n(319)();t.exports=t=>{if("string"!=typeof(t=t.replace(o," "))||0===t.length)return 0;t=r(t);let e=0;for(let n=0;n=127&&r<=159||(r>=768&&r<=879||(r>65535&&n++,e+=i(r)?2:1))}return e}},function(t,e,n){"use strict";t.exports=function(t,e){const n={};return e=e||((t,e)=>!0),Object.keys(t||{}).forEach(r=>{e(r,t[r])&&(n[r]=t[r])}),n}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=292},function(t,e,n){"use strict";const r=n(6).inspect,i=n(294),{applyMiddleware:o,commandMiddlewareFactory:a}=n(295),s=n(2),u=n(296),c=/(^\*)|(^\$0)/;t.exports=function(t,e,l,p){const h={};let f,d,g={},m={};function b(t){return!t.getUsageInstance().getUsageDisabled()&&0===t.getUsageInstance().getUsage().length}function _(t,e){const n=c.test(e.original)?e.original.replace(c,"").trim():e.original,r=t.filter(t=>!c.test(t));return r.push(n),`$0 ${r.join(" ")}`}function y(t,e,n,r){const i=t.cmd[0];t.variadic?n[i]=e._.splice(0).map(String):e._.length&&(n[i]=[String(e._.shift())])}function v(e,n,r){const i=Object.assign({},t.getOptions());i.default=Object.assign(r.default,i.default),i.alias=Object.assign(r.alias,i.alias),i.array=i.array.concat(r.array),delete i.config;const o=[];if(Object.keys(n).forEach(t=>{n[t].map(e=>{o.push(`--${t}`),o.push(e)})}),!o.length)return;const a=u.detailed(o,i);if(a.error)t.getUsageInstance().fail(a.error.message,a.error);else{const t=Object.keys(n);Object.keys(n).forEach(e=>{[].push.apply(t,a.aliases[e])}),Object.keys(a.argv).forEach(r=>{-1!==t.indexOf(r)&&(n[r]||(n[r]=a.argv[r]),e[r]=a.argv[r])})}}return p=p||[],h.addHandler=function(t,i,o,u,l){let p=[];const d=a(l);if(u=u||(()=>{}),Array.isArray(t))p=t.slice(1),t=t[0];else if("object"==typeof t){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:function(t){const e=n(311)(t);if(!e)throw new Error(`No command name given for module: ${r(t)}`);return i=e.filename,s.basename(i,s.extname(i));var i}(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void h.addHandler(e,function(t){for(let e,n=["describe","description","desc"],r=0,i=n.length;rh.parseCommand(t).cmd);let _=!1;const y=[b.cmd].concat(p).filter(t=>!c.test(t)||(_=!0,!1));0===y.length&&_&&y.push("$0"),_&&(b.cmd=y[0],p=y.slice(1),t=t.replace(c,b.cmd)),p.forEach(t=>{m[t]=b.cmd}),!1!==i&&e.command(t,i,_,p),g[b.cmd]={original:t,description:i,handler:u,builder:o||{},middlewares:d||[],demanded:b.demanded,optional:b.optional},_&&(f=g[b.cmd])},h.addDirectory=function(t,e,r,i,o){"boolean"!=typeof(o=o||{}).recurse&&(o.recurse=!1),Array.isArray(o.extensions)||(o.extensions=["js"]);const a="function"==typeof o.visit?o.visit:t=>t;o.visit=function(t,n,r){const i=a(t,n,r);if(i){if(~e.files.indexOf(n))return i;e.files.push(n),h.addHandler(i)}return i},n(310)({require:r,filename:i},t,o)},h.parseCommand=function(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,r={cmd:e.shift().replace(n,""),demanded:[],optional:[]};return e.forEach((t,i)=>{let o=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&i===e.length-1&&(o=!0),/^\[/.test(t)?r.optional.push({cmd:t.replace(n,"").split("|"),variadic:o}):r.demanded.push({cmd:t.replace(n,"").split("|"),variadic:o})}),r},h.getCommands=()=>Object.keys(g).concat(Object.keys(m)),h.getCommandHandlers=()=>g,h.hasDefaultCommand=()=>!!f,h.runCommand=function(t,e,n,r){let a=n.aliases;const s=g[t]||g[m[t]]||f,u=e.getContext();let c=u.files.length;const d=u.commands.slice();let w=n.argv,x=null,k={};t&&(u.commands.push(t),u.fullCommands.push(s.original)),"function"==typeof s.builder?(x=s.builder(e.reset(n.aliases)),!1===e.parsed?(b(e)&&e.getUsageInstance().usage(_(d,s),s.description),w=x?x._parseArgs(null,null,!0,r):e._parseArgs(null,null,!0,r)):w=e.parsed.argv,a=x&&!1===e.parsed?x.parsed.aliases:e.parsed.aliases):"object"==typeof s.builder&&(b(x=e.reset(n.aliases))&&x.getUsageInstance().usage(_(d,s),s.description),Object.keys(s.builder).forEach(t=>{x.option(t,s.builder[t])}),w=x._parseArgs(null,null,!0,r),a=x.parsed.aliases),e._hasOutput()||(k=function(t,e,n,r){e._=e._.slice(n.commands.length);const i=t.demanded.slice(0),o=t.optional.slice(0),a={};l.positionalCount(i.length,e._.length);for(;i.length;){const t=i.shift();y(t,e,a)}for(;o.length;){const t=o.shift();y(t,e,a)}return e._=n.commands.concat(e._),v(e,a,h.cmdToParseOptions(t.original)),a}(s,w,u));const E=p.slice(0).concat(s.middlewares||[]);if(o(w,e,E,!0),e._hasOutput()||e._runValidation(w,a,k,e.parsed.error),s.handler&&!e._hasOutput()){e._setHasOutput(),w=o(w,e,E,!1);const t=i(w)?w.then(t=>s.handler(t)):s.handler(w);i(t)&&t.catch(t=>e.getUsageInstance().fail(null,t))}return t&&(u.commands.pop(),u.fullCommands.pop()),(c=u.files.length-c)>0&&u.files.splice(-1*c,c),w},h.runDefaultBuilderOn=function(t){if(b(t)){const e=c.test(f.original)?f.original:f.original.replace(/^[^[\]<>]*/,"$0 ");t.getUsageInstance().usage(e,f.description)}const e=f.builder;"function"==typeof e?e(t):Object.keys(e).forEach(n=>{t.option(n,e[n])})},h.cmdToParseOptions=function(t){const e={array:[],default:{},alias:{},demand:{}},n=h.parseCommand(t);return n.demanded.forEach(t=>{const n=t.cmd.slice(0),r=n.shift();t.variadic&&(e.array.push(r),e.default[r]=[]),n.forEach(t=>{e.alias[r]=t}),e.demand[r]=!0}),n.optional.forEach(t=>{const n=t.cmd.slice(0),r=n.shift();t.variadic&&(e.array.push(r),e.default[r]=[]),n.forEach(t=>{e.alias[r]=t})}),e},h.reset=()=>(g={},m={},f=void 0,h),h.freeze=()=>{(d={}).handlers=g,d.aliasMap=m,d.defaultCommand=f},h.unfreeze=()=>{g=d.handlers,m=d.aliasMap,f=d.defaultCommand,d=void 0},h}},function(t,e){t.exports=function(t){return t instanceof Promise}},function(t,e,n){"use strict";t.exports={applyMiddleware:function(t,e,n,i){const o=new Error("middleware cannot return a promise when applyBeforeValidation is true");return n.reduce((n,a)=>{if(a.applyBeforeValidation!==i&&!r(n))return n;if(r(n))return n.then(t=>Promise.all([t,a(t,e)])).then(([t,e])=>Object.assign(t,e));{const s=a(t,e);if(i&&r(s))throw o;return r(s)?s.then(t=>Object.assign(n,t)):Object.assign(n,s)}},t)},commandMiddlewareFactory:function(t){return t?t.map(t=>(t.applyBeforeValidation=!1,t)):[]},globalMiddlewareFactory:function(t,e){return function(n,r=!1){if(i(" [boolean]",[n,r],arguments.length),Array.isArray(n)){for(let t=0;t1&&/[A-Z]/.test(e)&&l["camel-case-expansion"]){var n=i(e,"-");n!==t&&-1===y.aliases[t].indexOf(n)&&(y.aliases[t].push(n),m[n]=!0)}}),y.aliases[t].forEach(function(e){y.aliases[e]=[t].concat(y.aliases[t].filter(function(t){return e!==t}))}))})})}(e.key,u,e.default,y.arrays),Object.keys(p).forEach(function(t){(y.aliases[t]||[]).forEach(function(e){p[e]=p[t]})});var x={_:[]};Object.keys(y.bools).forEach(function(t){Object.prototype.hasOwnProperty.call(p,t)&&(B(t,p[t]),function(t){[].concat(y.aliases[t]||[],t).forEach(function(t){y.defaulted[t]=!0})}(t))});for(var k=[],E=0;EE+1?(t.splice(E+1,0,T[2]),E=L(E,T[1],t)):B(T[1],T[2]);else if(I.match(w)&&l["boolean-negation"])B(S=I.match(w)[1],!1);else if(I.match(/^--.+/)||!l["short-option-groups"]&&I.match(/^-[^-]+/))G(S=I.match(/^--?(.+)/)[1],y.nargs)?E=P(E,S,t):G(S,y.arrays)&&t.length>E+1?E=L(E,S,t):void 0===(O=0===y.nargs[S]?void 0:t[E+1])||O.match(/^-/)&&!O.match(v)||G(S,y.bools)||G(S,y.counts)?/^(true|false)$/.test(O)?(B(S,O),E++):B(S,H(S)):(B(S,O),E++);else if(I.match(/^-.\..+=/))B((T=I.match(/^-([^=]+)=([\s\S]*)$/))[1],T[2]);else if(I.match(/^-.\..+/))O=t[E+1],S=I.match(/^-(.\..+)/)[1],void 0===O||O.match(/^-/)||G(S,y.bools)||G(S,y.counts)?B(S,H(S)):(B(S,O),E++);else if(I.match(/^-[^-]+/)&&!I.match(v)){C=I.slice(1,-1).split(""),D=!1;for(var M=0;ME+1?(t.splice(E+1,0,A),E=L(E,S,t)):B(S,A),D=!0;break}if("-"!==O){if(/[A-Za-z]/.test(C[M])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)){B(C[M],O),D=!0;break}if(C[M+1]&&C[M+1].match(/\W/)){B(C[M],O),D=!0;break}B(C[M],H(C[M]))}else B(C[M],O)}S=I.slice(-1)[0],D||"-"===S||(G(S,y.nargs)?E=P(E,S,t):G(S,y.arrays)&&t.length>E+1?E=L(E,S,t):void 0===(O=t[E+1])||/^(-|--)[^-]/.test(O)&&!O.match(v)||G(S,y.bools)||G(S,y.counts)?/^(true|false)$/.test(O)?(B(S,O),E++):B(S,H(S)):(B(S,O),E++))}else{if("--"===I){k=t.slice(E+1);break}if(l["halt-at-non-option"]){k=t.slice(E);break}x._.push(F("_",I))}}function P(t,e,n){var r;const i=G(e,y.nargs);var o=0;for(r=t+1;r0,a=t+1;a1&&l["dot-notation"]&&(y.aliases[a[0]]||[]).forEach(function(t){t=t.split(".");var e=[].concat(a);e.shift(),t=t.concat(e),W(x,t,i)}),G(t,y.normalize)&&!G(t,y.arrays))&&[t].concat(y.aliases[t]||[]).forEach(function(t){x.__defineSetter__(t,function(t){e=o.normalize(t)}),x.__defineGetter__(t,function(){return"string"==typeof e?o.normalize(e):e})})}function j(t,e){"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]||(e=e.substring(1,e.length-1)),(G(t,y.bools)||G(t,y.counts))&&"string"==typeof e&&(e="true"===e);var n=F(t,e);return G(t,y.counts)&&(q(n)||"boolean"==typeof n)&&(n=c),G(t,y.normalize)&&G(t,y.arrays)&&(n=Array.isArray(e)?e.map(o.normalize):o.normalize(e)),n}function F(t,e){if(!G(t,y.strings)&&!G(t,y.coercions)){(null!=(n=e)&&("number"==typeof n||!!/^0x[0-9a-f]+$/i.test(n)||!(n.length>1&&"0"===n[0])&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n))&&l["parse-numbers"]&&Number.isSafeInteger(Math.floor(e))||!q(e)&&G(t,y.numbers))&&(e=Number(e))}var n;return e}function R(t,e){Object.keys(t).forEach(function(n){var r=t[n],i=e?e+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&l["dot-notation"]?R(r,i):(!U(x,i.split("."))||y.defaulted[i]||y.arrays[i]&&l["combine-arrays"])&&B(i,r)})}function N(t,e){if(void 0!==f){var n="string"==typeof f?f:"";Object.keys(process.env).forEach(function(i){if(""===n||0===i.lastIndexOf(n,0)){var o=i.split("__").map(function(t,e){return 0===e&&(t=t.substring(n.length)),r(t)});!(e&&y.configs[o.join(".")]||!e)||U(t,o)&&!y.defaulted[o.join(".")]||B(o.join("."),process.env[i])}})}}function z(t,e,n){Object.keys(n).forEach(function(r){U(t,r.split("."))||(W(t,r.split("."),n[r]),(e[r]||[]).forEach(function(e){U(t,e.split("."))||W(t,e.split("."),n[r])}))})}function U(t,e){var n=t;l["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach(function(t){n=n[t]||{}});var r=e[e.length-1];return"object"==typeof n&&r in n}function W(t,e,n){var r=t;l["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach(function(t,e){"object"==typeof r&&void 0===r[t]&&(r[t]={}),"object"!=typeof r[t]||Array.isArray(r[t])?(Array.isArray(r[t])?r[t].push({}):r[t]=[r[t],{}],r=r[t][r[t].length-1]):r=r[t]});var i=e[e.length-1],o=G(e.join("."),y.arrays),a=Array.isArray(n),s=l["duplicate-arguments-array"];!s&&G(i,y.nargs)&&(s=!0,(!q(r[i])&&1===y.nargs[i]||Array.isArray(r[i])&&r[i].length===y.nargs[i])&&(r[i]=void 0)),n===c?r[i]=c(r[i]):Array.isArray(r[i])?s&&o&&a?r[i]=l["flatten-duplicate-arrays"]?r[i].concat(n):(Array.isArray(r[i][0])?r[i]:[r[i]]).concat([n]):s||Boolean(o)!==Boolean(a)?r[i]=r[i].concat([n]):r[i]=n:void 0===r[i]&&o?r[i]=a?n:[n]:s&&!(void 0===r[i]||G(i,y.bools)||G(e.join("."),y.bools)||G(i,y.counts))?r[i]=[r[i],n]:r[i]=n}function G(t,e){var n=!1;return[].concat(y.aliases[t]||[],t).forEach(function(t){e[t]&&(n=e[t])}),n}function H(t){return!G(t,y.bools)&&!G(t,y.counts)&&`${t}`in p?p[t]:$(function(t){var e="boolean";G(t,y.strings)?e="string":G(t,y.numbers)?e="number":G(t,y.arrays)&&(e="array");return e}(t))}function $(t){return{boolean:!0,string:"",number:void 0,array:[]}[t]}function q(t){return void 0===t}return N(x,!0),N(x,!1),function(t){var e={};z(e,y.aliases,p),Object.keys(y.configs).forEach(function(r){var i=t[r]||e[r];if(i)try{var a=null,s=o.resolve(process.cwd(),i);if("function"==typeof y.configs[r]){try{a=y.configs[r](s)}catch(t){a=t}if(a instanceof Error)return void(_=a)}else a=n(309)(s);R(a)}catch(e){t[r]&&(_=Error(b("Invalid JSON config file: %s",i)))}})}(x),function(){if(void 0===h)return;h.forEach(function(t){R(t)})}(),z(x,y.aliases,p),function(t){var e,n={};Object.keys(t).forEach(function(r){if(!n.hasOwnProperty(r)&&"function"==typeof(e=G(r,y.coercions)))try{var i=e(t[r]);[].concat(y.aliases[r]||[],r).forEach(e=>{n[e]=t[e]=i})}catch(t){_=t}})}(x),l["set-placeholder-key"]&&function(t){y.keys.forEach(e=>{~e.indexOf(".")||void 0===t[e]&&(t[e]=void 0)})}(x),Object.keys(y.counts).forEach(function(t){U(x,t.split("."))||B(t,0)}),d&&k.length&&(x[g]=[]),k.forEach(function(t){x[g].push(t)}),l["camel-case-expansion"]&&l["strip-dashed"]&&Object.keys(x).filter(t=>"--"!==t&&t.includes("-")).forEach(t=>{delete x[t]}),l["strip-aliased"]&&[].concat(...Object.keys(u).map(t=>u[t])).forEach(t=>{l["camel-case-expansion"]&&delete x[t.split(".").map(t=>r(t)).join(".")],delete x[t]}),{argv:x,error:_,aliases:y.aliases,newAliases:m,configuration:l}}function c(t){return void 0!==t?t+1:1}function l(t,e){return u(t.slice(),e).argv}l.detailed=function(t,e){return u(t.slice(),e)},t.exports=l},function(t,e){t.exports=function(t){[process.stdout,process.stderr].forEach(function(e){e._handle&&e.isTTY&&"function"==typeof e._handle.setBlocking&&e._handle.setBlocking(t)})}},function(t,e,n){"use strict";const r=n(321),i=t=>"string"==typeof t?t.replace(r(),""):t;t.exports=i,t.exports.default=i},function(t,e,n){var r=n(325),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?e=0:r===s?e=(i-o)/u:i===s?e=2+(o-r)/u:o===s&&(e=4+(r-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,u=t[2]/255,c=Math.max(a,s,u),l=c-Math.min(a,s,u),p=function(t){return(c-t)/6/l+.5};return 0===l?i=o=0:(o=l/c,e=p(a),n=p(s),r=p(u),a===c?i=r-n:s===c?i=1/3+e-r:u===c&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var c=r[u],l=(o=t,a=c,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));l.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[o=255*u,o,o];e=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[c]=255*o;return i},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(r/=2)]},a.hwb.rgb=function(t){var e,n,r,i,o,a,s,u=t[0]/360,c=t[1]/100,l=t[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(r=1-r),i=c+r*((n=1-l)-c),e){default:case 6:case 0:o=n,a=i,s=c;break;case 1:o=i,a=n,s=c;break;case 2:o=c,a=n,s=i;break;case 3:o=c,a=i,s=n;break;case 4:o=i,a=c,s=n;break;case 5:o=n,a=c,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(t){var e,n,r,i=t[0];e=t[1]/500+(n=(i+16)/116),r=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},a.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},a.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return e=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=300},function(t,e){t.exports=require("child_process")},function(t,e,n){"use strict";t.exports=t=>{const e=(t=t||{}).env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).find(t=>"PATH"===t.toUpperCase())||"Path"}},function(t,e,n){"use strict";const r=n(305);function i(t,e){const o=r(t,e,n(292));var a;return a=o,Object.keys(a).forEach(t=>{"argv"===t?i.__defineGetter__(t,a.__lookupGetter__(t)):i[t]="function"==typeof a[t]?a[t].bind(a):a[t]}),o}i(process.argv.slice(2)),t.exports=i},function(t,e,n){"use strict";n.r(e);var r=n(143),i=n(47),o=n.n(i),a=n(63),s=n(303),u=n.n(s);(async()=>{const t=u()(process.argv).options({i:{alias:"input",demand:!0,describe:"Input",type:"string"},o:{alias:"output",demand:!0,describe:"Output",type:"string"},t:{alias:"temp",default:o.a.tmpdir(),describe:"Temp directory",type:"string"},l:{alias:"verbose",default:!0,describe:"Verbose log",type:"boolean"}}).help("help").alias("h","help").version("version",a.version).alias("v","version").argv;return await Object(r.default)(t.input,t.output,{temp:t.temp,verbose:t.verbose})})().then(t=>{console.log(`Output: ${t}`)}).catch(t=>{console.error(t.message)})},function(t,e,n){"use strict";(function(e){const r=n(289),i=n(7),o=n(293),a=n(312),s=n(296),u=n(2),c=n(314),l=n(327),p=n(329),h=n(291),f=n(297),d=n(330),{globalMiddlewareFactory:g}=n(295),m=n(142);function b(t,e){return u.relative(t,e)}(t.exports=function(t,_,y){t=t||[];const v={};let w=null,x=null,k={},E=[],D="",S={},C=null,T=null;const O=p({directory:u.resolve(e,"./locales"),updateFiles:!1});v.middleware=g(E,v),_||(_=process.cwd());v.scriptName=function(t){return v.$0=t,v},/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])?v.$0=process.argv.slice(1,2):v.$0=process.argv.slice(0,1);v.$0=v.$0.map((t,e)=>{const n=b(_,t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&n.length{I[t].push(e)})}function L(t,e,n,r,i){if(Array.isArray(r)){const e={};r.forEach(t=>{e[t]=i}),t(e)}else"object"==typeof r?Object.keys(r).forEach(e=>{t(e,r[e])}):I[n][r]=e?(I[n][r]||[]).concat(i):i}function B(t){Object.keys(I).forEach(e=>{const n=I[e];Array.isArray(n)?~n.indexOf(t)&&n.splice(n.indexOf(t),1):"object"==typeof n&&delete n[t]}),delete C.getDescriptions()[t]}v.getContext=()=>A,v.resetOptions=v.reset=function(t){A.resets++,t=t||{},I=I||{};const e={};e.local=I.local?I.local:[],e.configObjects=I.configObjects?I.configObjects:[];const n={};e.local.forEach(e=>{n[e]=!0,(t[e]||[]).forEach(t=>{n[t]=!0})}),S=Object.keys(k).reduce((t,e)=>{const r=k[e].filter(t=>!(t in n));return r.length>0&&(t[e]=r),t},{}),k={};return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach(t=>{e[t]=(I[t]||[]).filter(t=>!n[t])}),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","coerce"].forEach(t=>{e[t]=h(I[t],(t,e)=>!n[t])}),e.envPrefix=I.envPrefix,I=e,C=C?C.reset(n):c(v,O),T=T?T.reset(n):l(v,C,O),w=w?w.reset():o(v,C,T,E),x||(x=a(v,C,w)),$=null,D="",V=null,Y=!1,v.parsed=!1,v},v.resetOptions(),v.boolean=function(t){return r("",[t],arguments.length),P("boolean",t),v},v.array=function(t){return r("",[t],arguments.length),P("array",t),v},v.number=function(t){return r("",[t],arguments.length),P("number",t),v},v.normalize=function(t){return r("",[t],arguments.length),P("normalize",t),v},v.count=function(t){return r("",[t],arguments.length),P("count",t),v},v.string=function(t){return r("",[t],arguments.length),P("string",t),v},v.requiresArg=function(t){return r("",[t],arguments.length),L(v.nargs,!1,"narg",t,1),v},v.skipValidation=function(t){return r("",[t],arguments.length),P("skipValidation",t),v},v.nargs=function(t,e){return r(" [number]",[t,e],arguments.length),L(v.nargs,!1,"narg",t,e),v},v.choices=function(t,e){return r(" [string|array]",[t,e],arguments.length),L(v.choices,!0,"choices",t,e),v},v.alias=function(t,e){return r(" [string|array]",[t,e],arguments.length),L(v.alias,!0,"alias",t,e),v},v.default=v.defaults=function(t,e,n){return r(" [*] [string]",[t,e,n],arguments.length),n&&(I.defaultDescription[t]=n),"function"==typeof e&&(I.defaultDescription[t]||(I.defaultDescription[t]=C.functionDescription(e)),e=e.call()),L(v.default,!1,"default",t,e),v},v.describe=function(t,e){return r(" [string]",[t,e],arguments.length),L(v.describe,!1,"key",t,!0),C.describe(t,e),v},v.demandOption=function(t,e){return r(" [string]",[t,e],arguments.length),L(v.demandOption,!1,"demandedOptions",t,e),v},v.coerce=function(t,e){return r(" [function]",[t,e],arguments.length),L(v.coerce,!1,"coerce",t,e),v},v.config=function(t,e,n){return r("[object|string] [string|function] [function]",[t,e,n],arguments.length),"object"==typeof t?(t=d(t,_),I.configObjects=(I.configObjects||[]).concat(t),v):("function"==typeof e&&(n=e,e=null),t=t||"config",v.describe(t,e||C.deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(t=>{I.config[t]=n||!0}),v)},v.example=function(t,e){return r(" [string]",[t,e],arguments.length),C.example(t,e),v},v.command=function(t,e,n,i,o){return r(" [string|boolean] [function|object] [function] [array]",[t,e,n,i,o],arguments.length),w.addHandler(t,e,n,i,o),v},v.commandDir=function(t,e){r(" [object]",[t,e],arguments.length);const i=y||n(292);return w.addDirectory(t,v.getContext(),i,n(331)(),e),v},v.demand=v.required=v.require=function(t,e,n){return Array.isArray(e)?(e.forEach(t=>{v.demandOption(t,n)}),e=1/0):"number"!=typeof e&&(n=e,e=1/0),"number"==typeof t?v.demandCommand(t,e,n,n):Array.isArray(t)?t.forEach(t=>{v.demandOption(t,n)}):"string"==typeof n?v.demandOption(t,n):!0!==n&&void 0!==n||v.demandOption(t),v},v.demandCommand=function(t,e,n,i){return r("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,n,i],arguments.length),void 0===t&&(t=1),"number"!=typeof e&&(n=e,e=1/0),v.global("_",!1),I.demandedCommands._={min:t,max:e,minMsg:n,maxMsg:i},v},v.getDemandedOptions=()=>(r([],0),I.demandedOptions),v.getDemandedCommands=()=>(r([],0),I.demandedCommands),v.implies=function(t,e){return r(" [number|string|array]",[t,e],arguments.length),T.implies(t,e),v},v.conflicts=function(t,e){return r(" [string|array]",[t,e],arguments.length),T.conflicts(t,e),v},v.usage=function(t,e,n,i){if(r(" [string|boolean] [function|object] [function]",[t,e,n,i],arguments.length),void 0!==e){if((t||"").match(/^\$0( |$)/))return v.command(t,e,n,i);throw new m(".usage() description must start with $0 if being used as alias for .command()")}return C.usage(t),v},v.epilogue=v.epilog=function(t){return r("",[t],arguments.length),C.epilog(t),v},v.fail=function(t){return r("",[t],arguments.length),C.failFn(t),v},v.check=function(t,e){return r(" [boolean]",[t,e],arguments.length),T.check(t,!1!==e),v},v.global=function(t,e){return r(" [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?I.local=I.local.filter(e=>-1===t.indexOf(e)):t.forEach(t=>{-1===I.local.indexOf(t)&&I.local.push(t)}),v},v.pkgConf=function(t,e){r(" [string]",[t,e],arguments.length);let n=null;const i=F(e||_);return i[t]&&"object"==typeof i[t]&&(n=d(i[t],e||_),I.configObjects=(I.configObjects||[]).concat(n)),v};const j={};function F(t){const e=t||"*";if(j[e])return j[e];const r=n(332);let o={};try{let e=t||n(338)(y||n(292));!t&&u.extname(e)&&(e=u.dirname(e));const a=r.sync("package.json",{cwd:e});o=JSON.parse(i.readFileSync(a))}catch(t){}return j[e]=o||{},j[e]}let R=null,N=null;v.parse=function(e,n,i){if(r("[string|array] [function|boolean|object] [function]",[e,n,i],arguments.length),void 0===e)return v._parseArgs(t);"object"==typeof n&&(N=n,n=i),"function"==typeof n&&(R=n,n=null),n||(t=e),(M={}).options=I,M.configObjects=I.configObjects.slice(0),M.exitProcess=H,M.groups=k,C.freeze(),T.freeze(),w.freeze(),M.strict=z,M.completionCommand=$,M.output=D,M.exitError=V,M.hasOutput=Y,M.parsed=v.parsed,R&&(H=!1);const o=v._parseArgs(e,n);return R&&R(V,o,D),(I=M.options).configObjects=M.configObjects,H=M.exitProcess,k=M.groups,D=M.output,V=M.exitError,Y=M.hasOutput,v.parsed=M.parsed,C.unfreeze(),T.unfreeze(),w.unfreeze(),z=M.strict,$=M.completionCommand,R=null,N=null,M=void 0,o},v._getParseContext=()=>N||{},v._hasParseCallback=()=>!!R,v.option=v.options=function(t,e){if(r(" [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach(e=>{v.options(e,t[e])});else{"object"!=typeof e&&(e={}),I.key[t]=!0,e.alias&&v.alias(t,e.alias);const n=e.demand||e.required||e.require;n&&v.demand(t,n),e.demandOption&&v.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),"conflicts"in e&&v.conflicts(t,e.conflicts),"default"in e&&v.default(t,e.default),"implies"in e&&v.implies(t,e.implies),"nargs"in e&&v.nargs(t,e.nargs),e.config&&v.config(t,e.configParser),e.normalize&&v.normalize(t),"choices"in e&&v.choices(t,e.choices),"coerce"in e&&v.coerce(t,e.coerce),"group"in e&&v.group(t,e.group),(e.boolean||"boolean"===e.type)&&(v.boolean(t),e.alias&&v.boolean(e.alias)),(e.array||"array"===e.type)&&(v.array(t),e.alias&&v.array(e.alias)),(e.number||"number"===e.type)&&(v.number(t),e.alias&&v.number(e.alias)),(e.string||"string"===e.type)&&(v.string(t),e.alias&&v.string(e.alias)),(e.count||"count"===e.type)&&v.count(t),"boolean"==typeof e.global&&v.global(t,e.global),e.defaultDescription&&(I.defaultDescription[t]=e.defaultDescription),e.skipValidation&&v.skipValidation(t);const r=e.describe||e.description||e.desc;v.describe(t,r),e.hidden&&v.hide(t),e.requiresArg&&v.requiresArg(t)}return v},v.getOptions=()=>I,v.positional=function(t,e){if(r(" ",[t,e],arguments.length),0===A.resets)throw new m(".positional() can only be called in a command's builder function");const n=["default","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=h(e,(t,e)=>{let r=-1!==n.indexOf(t);return"type"===t&&-1===["string","number","boolean"].indexOf(e)&&(r=!1),r});const i=A.fullCommands[A.fullCommands.length-1],o=i?w.cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return Object.keys(o).forEach(n=>{Array.isArray(o[n])?-1!==o[n].indexOf(t)&&(e[n]=!0):!o[n][t]||n in e||(e[n]=o[n][t])}),v.group(t,C.getPositionalGroupName()),v.option(t,e)},v.group=function(t,e){r(" ",[t,e],arguments.length);const n=S[e]||k[e];S[e]&&delete S[e];const i={};return k[e]=(n||[]).concat(t).filter(t=>!i[t]&&(i[t]=!0)),v},v.getGroups=()=>Object.assign({},k,S),v.env=function(t){return r("[string|boolean]",[t],arguments.length),I.envPrefix=!1===t?void 0:t||"",v},v.wrap=function(t){return r("",[t],arguments.length),C.wrap(t),v};let z=!1;v.strict=function(t){return r("[boolean]",[t],arguments.length),z=!1!==t,v},v.getStrict=()=>z;let U={};v.parserConfiguration=function(t){return r("",[t],arguments.length),U=t,v},v.getParserConfiguration=()=>U,v.showHelp=function(e){return r("[string|function]",[e],arguments.length),v.parsed||v._parseArgs(t),w.hasDefaultCommand()&&(A.resets++,w.runDefaultBuilderOn(v,!0)),C.showHelp(e),v};let W=null;v.version=function(t,e,n){if(r("[boolean|string] [string] [string]",[t,e,n],arguments.length),W&&(B(W),C.version(void 0),W=null),0===arguments.length)n=F().version||"unknown",t="version";else if(1===arguments.length){if(!1===t)return v;n=t,t="version"}else 2===arguments.length&&(n=e,e=null);return W="string"==typeof t?t:"version",e=e||C.deferY18nLookup("Show version number"),C.version(n||void 0),v.boolean(W),v.describe(W,e),v};let G=null;v.addHelpOpt=v.help=function(t,e){return r("[string|boolean] [string]",[t,e],arguments.length),G&&(B(G),G=null),1===arguments.length&&!1===t?v:(G="string"==typeof t?t:"help",v.boolean(G),v.describe(G,e||C.deferY18nLookup("Show help")),v)};I.showHiddenOpt="show-hidden",v.addShowHiddenOpt=v.showHidden=function(t,e){if(r("[string|boolean] [string]",[t,e],arguments.length),1===arguments.length&&!1===t)return v;const n="string"==typeof t?t:"show-hidden";return v.boolean(n),v.describe(n,e||C.deferY18nLookup("Show hidden options")),I.showHiddenOpt=n,v},v.hide=function(t){return r("",[t],arguments.length),I.hiddenOptions.push(t),v},v.showHelpOnFail=function(t,e){return r("[boolean|string] [string]",[t,e],arguments.length),C.showHelpOnFail(t,e),v};var H=!0;v.exitProcess=function(t){return r("[boolean]",[t],arguments.length),"boolean"!=typeof t&&(t=!0),H=t,v},v.getExitProcess=()=>H;var $=null;v.completion=function(t,e,n){return r("[string] [string|boolean|function] [function]",[t,e,n],arguments.length),"function"==typeof e&&(n=e,e=null),$=t||"completion",e||!1===e||(e="generate completion script"),v.command($,e),n&&x.registerFunction(n),v},v.showCompletionScript=function(t){return r("[string]",[t],arguments.length),t=t||v.$0,Z.log(x.generateCompletionScript(t,$)),v},v.getCompletion=function(t,e){r(" ",[t,e],arguments.length),x.getCompletion(t,e)},v.locale=function(t){return r("[string]",[t],arguments.length),0===arguments.length?(J(),O.getLocale()):(q=!1,O.setLocale(t),v)},v.updateStrings=v.updateLocale=function(t){return r("",[t],arguments.length),q=!1,O.updateLocale(t),v};let q=!0;v.detectLocale=function(t){return r("",[t],arguments.length),q=t,v},v.getDetectLocale=()=>q;var Y=!1,V=null;v.exit=(t,e)=>{Y=!0,V=e,H&&process.exit(t)};const Z={log(){const t=[];for(let e=0;eZ,v._hasOutput=()=>Y,v._setHasOutput=()=>{Y=!0},v.recommendCommands=function(t){return r("[boolean]",[t],arguments.length),X="boolean"!=typeof t||t,v},v.getUsageInstance=()=>C,v.getValidationInstance=()=>T,v.getCommandInstance=()=>w,v.terminalWidth=()=>(r([],0),void 0!==process.stdout.columns?process.stdout.columns:null),Object.defineProperty(v,"argv",{get:()=>v._parseArgs(t),enumerable:!0}),v._parseArgs=function(e,n,r,i){let o=!!r;e=e||t,I.__=O.__,I.configuration=v.getParserConfiguration();let a=F().yargs;a&&(console.warn("Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead."),I.configuration=Object.assign({},a,I.configuration));const u=s.detailed(e,I);let c=u.argv;N&&(c=Object.assign({},c,N));const l=u.aliases;c.$0=v.$0,v.parsed=u;try{if(J(),n)return c;G&&~[G].concat(l[G]||[]).filter(t=>t.length>1).indexOf(c._[c._.length-1])&&(c._.pop(),c[G]=!0);const t=w.getCommands(),r=x.completionKey in c,a=c[G]||r,s=a&&(t.length>1||"$0"!==t[0]);if(c._.length){if(t.length){let e;for(let n,r=i||0;void 0!==c._[r];r++){if(n=String(c._[r]),~t.indexOf(n)&&n!==$)return w.runCommand(n,v,u,r+1);if(!e&&n!==$){e=n;break}}if(w.hasDefaultCommand()&&!s)return w.runCommand(null,v,u);X&&e&&!a&&T.recommendCommands(e,t)}$&&~c._.indexOf($)&&!r&&(H&&f(!0),v.showCompletionScript(),v.exit(0))}else if(w.hasDefaultCommand()&&!s)return w.runCommand(null,v,u);if(r){H&&f(!0);const t=e.slice(e.indexOf(`--${x.completionKey}`)+1);return x.getCompletion(t,t=>{(t||[]).forEach(t=>{Z.log(t)}),v.exit(0)}),c}if(Y||Object.keys(c).forEach(t=>{t===G&&c[t]?(H&&f(!0),o=!0,v.showHelp("log"),v.exit(0)):t===W&&c[t]&&(H&&f(!0),o=!0,C.showVersion(),v.exit(0))}),!o&&I.skipValidation.length>0&&(o=Object.keys(c).some(t=>I.skipValidation.indexOf(t)>=0&&!0===c[t])),!o){if(u.error)throw new m(u.error.message);r||v._runValidation(c,l,{},u.error)}}catch(t){if(!(t instanceof m))throw t;C.fail(t.message,t)}return c},v._runValidation=function(t,e,n,r){if(r)throw new m(r.message||r);T.nonOptionCount(t),T.requiredArguments(t),z&&T.unknownArguments(t,e,n),T.customChecks(t,e),T.limitedChoices(t),T.implications(t),T.conflicting(t)},v.help(),v.version(),v}).rebase=b}).call(this,"/")},function(t,e,n){"use strict";const r=(t,e)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");e=Object.assign({pascalCase:!1},e);return 0===(t=Array.isArray(t)?t.map(t=>t.trim()).filter(t=>t.length).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=(t=>{let e=!1,n=!1,r=!1;for(let i=0;ie.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t)(t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(t,e)=>e.toUpperCase()).replace(/\d+(\w|$)/g,t=>t.toUpperCase())))};t.exports=r,t.exports.default=r},function(t,e,n){"use strict";t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("Expected a string");return e=void 0===e?"_":e,t.replace(/([a-z\d])([A-Z])/g,"$1"+e+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+e+"$2").toLowerCase()}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t.map(t=>"string"!=typeof t?t+"":t);t=t.trim();for(var e=0,n=null,r=null,i=null,o=[],a=0;a{process.nextTick(()=>{r(t)})}).catch(t=>{process.nextTick(()=>{throw t})}):r(t)}return s(u,c,t=>{r(t)})}const h=i.getCommandHandlers();for(let e=0,r=n.length;e{const e=i.parseCommand(t[0]).cmd;if(-1===n.indexOf(e))if(a){const n=t[1]||"";o.push(e.replace(/:/g,"\\:")+":"+n)}else o.push(e)}),u.match(/^-/)||""===u&&0===o.length){const r=e.getDescriptions();Object.keys(t.getOptions().key).forEach(t=>{if([t].concat(l[t]||[]).every(t=>-1===n.indexOf(`--${t}`)))if(a){const e=r[t]||"";o.push(`--${t.replace(/:/g,"\\:")}:${e.replace("__yargsString__:","")}`)}else o.push(`--${t}`)})}r(o)},o.generateCompletionScript=function(t,e){const i=n(313);let o=a?i.completionZshTemplate:i.completionShTemplate;const s=r.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),(o=(o=o.replace(/{{app_name}}/g,s)).replace(/{{completion_command}}/g,e)).replace(/{{app_path}}/g,t)};let s=null;return o.registerFunction=t=>{s=t},o}},function(t,e){e.completionShTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o default -F _yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n',e.completionZshTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n'},function(t,e,n){"use strict";const r=n(315),i=n(290),o=n(291),a=n(2),s=n(297),u=n(142);t.exports=function(t,e){const c=e.__,l={},p=[];l.failFn=function(t){p.push(t)};let h=null,f=!0;l.showHelpOnFail=function(t,e){return"string"==typeof t?(e=t,t=!0):void 0===t&&(t=!0),h=e,f=t,l};let d=!1;l.fail=function(e,n){const r=t._getLoggerInstance();if(!p.length){if(t.getExitProcess()&&s(!0),d||(d=!0,f&&(t.showHelp("error"),r.error()),(e||n)&&r.error(e||n),h&&((e||n)&&r.error(""),r.error(h))),n=n||new u(e),t.getExitProcess())return t.exit(1);if(t._hasParseCallback())return t.exit(1,n);throw n}for(let t=p.length-1;t>=0;--t)p[t](e,n,l)};let g=[],m=!1;l.usage=(t,e)=>null===t?(m=!0,void(g=[])):(m=!1,g.push([t,e||""]),l),l.getUsage=()=>g,l.getUsageDisabled=()=>m,l.getPositionalGroupName=()=>c("Positionals:");let b=[];l.example=(t,e)=>{b.push([t,e||""])};let _=[];l.command=function(t,e,n,r){n&&(_=_.map(t=>(t[2]=!1,t))),_.push([t,e||"",n,r])},l.getCommands=()=>_;let y,v={};l.describe=function(t,e){"object"==typeof t?Object.keys(t).forEach(e=>{l.describe(e,t[e])}):v[t]=e},l.getDescriptions=()=>v,l.epilog=t=>{y=t};let w,x=!1;function k(){return x||(w="object"==typeof process&&process.stdout&&process.stdout.columns?Math.min(80,process.stdout.columns):80,x=!0),w}l.wrap=t=>{x=!0,w=t};l.deferY18nLookup=t=>"__yargsString__:"+t;const E="Options:";function D(t,e,n){let r=0;return Array.isArray(t)||(t=Object.keys(t).map(e=>[t[e]])),t.forEach(t=>{r=Math.max(i(n?`${n} ${t[0]}`:t[0]),r)}),e&&(r=Math.min(r,parseInt(.5*e,10))),r}function S(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function C(t,e){let n=`[${c("default:")} `;if(void 0===t&&!e)return null;if(e)n+=e;else switch(typeof t){case"string":n+=`"${t}"`;break;case"object":n+=JSON.stringify(t);break;default:n+=t}return`${n}]`}l.help=function(){!function(){const e=t.getDemandedOptions(),n=t.getOptions();(Object.keys(n.alias)||[]).forEach(r=>{n.alias[r].forEach(i=>{v[i]&&l.describe(r,v[i]),i in e&&t.demandOption(r,e[i]),~n.boolean.indexOf(i)&&t.boolean(r),~n.count.indexOf(i)&&t.count(r),~n.string.indexOf(i)&&t.string(r),~n.normalize.indexOf(i)&&t.normalize(r),~n.array.indexOf(i)&&t.array(r),~n.number.indexOf(i)&&t.number(r)})})}();const e=a.basename(t.$0),r=t.getDemandedOptions(),i=t.getDemandedCommands(),o=t.getGroups(),s=t.getOptions();let u=[];u=(u=(u=(u=(u=u.concat(Object.keys(v))).concat(Object.keys(r))).concat(Object.keys(i))).concat(Object.keys(s.default))).filter(S),u=Object.keys(u.reduce((t,e)=>("_"!==e&&(t[e]=!0),t),{}));const p=k(),h=n(320)({width:p,wrap:!!p});if(!m)if(g.length)g.forEach(t=>{h.div(`${t[0].replace(/\$0/g,e)}`),t[1]&&h.div({text:`${t[1]}`,padding:[1,0,0,0]})}),h.div();else if(_.length){let t=null;t=i._?`${e} <${c("command")}>\n`:`${e} [${c("command")}]\n`,h.div(`${t}`)}if(_.length){h.div(c("Commands:"));const n=t.getContext(),r=n.commands.length?`${n.commands.join(" ")} `:"";!0===t.getParserConfiguration()["sort-commands"]&&(_=_.sort((t,e)=>t[0].localeCompare(e[0]))),_.forEach(t=>{const n=`${e} ${r}${t[0].replace(/^\$0 ?/,"")}`;h.span({text:n,padding:[0,2,0,2],width:D(_,p,`${e}${r}`)+4},{text:t[1]});const i=[];t[2]&&i.push(`[${c("default:").slice(0,-1)}]`),t[3]&&t[3].length&&i.push(`[${c("aliases:")} ${t[3].join(", ")}]`),i.length?h.div({text:i.join(" "),padding:[0,0,0,2],align:"right"}):h.div()}),h.div()}const f=(Object.keys(s.alias)||[]).concat(Object.keys(t.parsed.newAliases)||[]);if(u=u.filter(e=>!t.parsed.newAliases[e]&&f.every(t=>-1===(s.alias[t]||[]).indexOf(e))),o[E]||(o[E]=[]),function(t,e,n){let r=[],i=null;Object.keys(n).forEach(t=>{r=r.concat(n[t])}),t.forEach(t=>{(i=[t].concat(e[t])).some(t=>-1!==r.indexOf(t))||n[E].push(t)})}(u,s.alias,o),Object.keys(o).forEach(t=>{if(!o[t].length)return;const e=o[t].filter(S).map(t=>{if(~f.indexOf(t))return t;for(let e,n=0;void 0!==(e=f[n]);n++)if(~(s.alias[e]||[]).indexOf(t))return e;return t});if(e.length<1)return;h.div(c(t));const n=e.reduce((e,n)=>(e[n]=[n].concat(s.alias[n]||[]).map(e=>t===l.getPositionalGroupName()?e:(e.length>1?"--":"-")+e).join(", "),e),{});e.forEach(t=>{const e=n[t];let i=v[t]||"",o=null;~i.lastIndexOf("__yargsString__:")&&(i=c(i.substring("__yargsString__:".length))),~s.boolean.indexOf(t)&&(o=`[${c("boolean")}]`),~s.count.indexOf(t)&&(o=`[${c("count")}]`),~s.string.indexOf(t)&&(o=`[${c("string")}]`),~s.normalize.indexOf(t)&&(o=`[${c("string")}]`),~s.array.indexOf(t)&&(o=`[${c("array")}]`),~s.number.indexOf(t)&&(o=`[${c("number")}]`);const a=[o,t in r?`[${c("required")}]`:null,s.choices&&s.choices[t]?`[${c("choices:")} ${l.stringifiedValues(s.choices[t])}]`:null,C(s.default[t],s.defaultDescription[t])].filter(Boolean).join(" ");h.span({text:e,padding:[0,2,0,2],width:D(n,p)+4},i),a?h.div({text:a,padding:[0,0,0,2],align:"right"}):h.div()}),h.div()}),b.length&&(h.div(c("Examples:")),b.forEach(t=>{t[0]=t[0].replace(/\$0/g,e)}),b.forEach(t=>{""===t[1]?h.div({text:t[0],padding:[0,2,0,2]}):h.div({text:t[0],padding:[0,2,0,2],width:D(b,p)+4},{text:t[1]})}),h.div()),y){const t=y.replace(/\$0/g,e);h.div(`${t}\n`)}return h.toString().replace(/\s*$/,"")},l.showHelp=e=>{const n=t._getLoggerInstance();e||(e="error"),("function"==typeof e?e:n[e])(l.help())},l.functionDescription=t=>{return["(",t.name?r(t.name,"-"):c("generated-value"),")"].join("")},l.stringifiedValues=function(t,e){let n="";const r=e||", ",i=[].concat(t);return t&&i.length?(i.forEach(t=>{n.length&&(n+=r),n+=JSON.stringify(t)}),n):n};let T,O=null;return l.version=t=>{O=t},l.showVersion=()=>{t._getLoggerInstance().log(O)},l.reset=function(t){return h=null,d=!1,g=[],m=!1,y=void 0,b=[],_=[],v=o(v,(e,n)=>!t[e]),l},l.freeze=function(){(T={}).failMessage=h,T.failureOutput=d,T.usages=g,T.usageDisabled=m,T.epilog=y,T.examples=b,T.commands=_,T.descriptions=v},l.unfreeze=function(){h=T.failMessage,d=T.failureOutput,g=T.usages,m=T.usageDisabled,y=T.epilog,b=T.examples,_=T.commands,v=T.descriptions,T=void 0},l}},function(t,e,n){"use strict";t.exports=(t,e)=>(e=void 0===e?"_":e,t.replace(/([a-z\d])([A-Z])/g,`$1${e}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${e}$2`).toLowerCase())},function(t,e,n){"use strict";const r=n(317),i=t=>"string"==typeof t?t.replace(r(),""):t;t.exports=i,t.exports.default=i},function(t,e,n){"use strict";t.exports=t=>{t=Object.assign({onlyFirst:!1},t);const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}},function(t,e,n){"use strict";t.exports=t=>!Number.isNaN(t)&&(t>=4352&&(t<=4447||9001===t||9002===t||11904<=t&&t<=12871&&12351!==t||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141))},function(t,e,n){"use strict";t.exports=function(){return/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g}},function(t,e,n){var r=n(290),i=n(298),o=n(322),a={right:function(t,e){t=t.trim();var n="",i=r(t);i1&&r(n[0])>i&&(i=Math.min(Math.floor(.5*e.width),r(n[0])))}),n.forEach(function(t){var n=t.split("\t");e.div.apply(e,n.map(function(t,r){return{text:t.trim(),padding:e._measurePadding(t),width:0===r&&n.length>1?i:void 0}}))}),this.rows[this.rows.length-1]},c.prototype._colFromString=function(t){return{text:t,padding:this._measurePadding(t)}},c.prototype._measurePadding=function(t){var e=i(t);return[0,e.match(/\s*$/)[0].length,0,e.match(/^\s*/)[0].length]},c.prototype.toString=function(){var t=this,e=[];return t.rows.forEach(function(n,r){t.rowToString(n,e)}),(e=e.filter(function(t){return!t.hidden})).map(function(t){return t.text}).join("\n")},c.prototype.rowToString=function(t,e){var n,i,o,c,p=this,h=this._rasterize(t),f="";return h.forEach(function(h,d){f="",h.forEach(function(h,g){i="",o=t[g].width,c=p._negatePadding(t[g]),i+=h;for(var m=0;m0&&(f=p._renderInline(f,e[e.length-1]))}),e.push({text:f.replace(/ +$/,""),span:t.span})}),e},c.prototype._renderInline=function(t,e){var n=t.match(/^ */)[0].length,i=e.text,o=r(i.trimRight());return e.span?this.wrap?n{t=Object.assign({onlyFirst:!1},t);const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t.onlyFirst?void 0:"g")}},function(t,e,n){"use strict";const r=n(290),i=n(298),o=n(323),a=new Set(["","›"]),s=t=>`${a.values().next().value}[${t}m`,u=(t,e,n)=>{const o=[...e];let s=!1,u=r(i(t[t.length-1]));for(const[e,i]of o.entries()){const c=r(i);if(u+c<=n?t[t.length-1]+=i:(t.push(i),u=0),a.has(i))s=!0;else if(s&&"m"===i){s=!1;continue}s||(u+=c)===n&&e0&&t.length>1&&(t[t.length-2]+=t.pop())},c=t=>{const e=t.split(" ");let n=e.length;for(;n>0&&!(r(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},l=(t,e,n={})=>{if(!1!==n.trim&&""===t.trim())return"";let i,l="",p="";const h=(t=>t.split(" ").map(t=>r(t)))(t);let f=[""];for(const[i,o]of t.split(" ").entries()){!1!==n.trim&&(f[f.length-1]=f[f.length-1].trimLeft());let t=r(f[f.length-1]);if(0!==i&&(t>=e&&(!1===n.wordWrap||!1===n.trim)&&(f.push(""),t=0),(t>0||!1===n.trim)&&(f[f.length-1]+=" ",t++)),n.hard&&h[i]>e){const n=e-t,r=1+Math.floor((h[i]-n-1)/e);Math.floor((h[i]-1)/e)e&&t>0&&h[i]>0){if(!1===n.wordWrap&&te&&!1===n.wordWrap?u(f,o,e):f[f.length-1]+=o}}!1!==n.trim&&(f=f.map(c)),l=f.join("\n");for(const[t,e]of[...l].entries()){if(p+=e,a.has(e)){const e=parseFloat(/\d[^m]*/.exec(l.slice(t,t+4)));i=39===e?null:e}const n=o.codes.get(Number(i));i&&n&&("\n"===l[t+1]?p+=s(n):"\n"===e&&(p+=s(i)))}return p};t.exports=(t,e,n)=>String(t).normalize().split("\n").map(t=>l(t,e,n)).join("\n")},function(t,e,n){"use strict";(function(t){const e=n(324),r=(t,n)=>(function(){return`[${t.apply(e,arguments)+n}m`}),i=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${38+n};5;${r}m`}),o=(t,n)=>(function(){const r=t.apply(e,arguments);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`});Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,n={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};n.color.grey=n.color.gray;for(const e of Object.keys(n)){const r=n[e];for(const e of Object.keys(r)){const i=r[e];n[e]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[e]=n[e],t.set(i[0],i[1])}Object.defineProperty(n,e,{value:r,enumerable:!1}),Object.defineProperty(n,"codes",{value:t,enumerable:!1})}const a=t=>t,s=(t,e,n)=>[t,e,n];n.color.close="",n.bgColor.close="",n.color.ansi={ansi:r(a,0)},n.color.ansi256={ansi256:i(a,0)},n.color.ansi16m={rgb:o(s,0)},n.bgColor.ansi={ansi:r(a,10)},n.bgColor.ansi256={ansi256:i(a,10)},n.bgColor.ansi16m={rgb:o(s,10)};for(let t of Object.keys(e)){if("object"!=typeof e[t])continue;const a=e[t];"ansi16"===t&&(t="ansi"),"ansi16"in a&&(n.color.ansi[t]=r(a.ansi16,0),n.bgColor.ansi[t]=r(a.ansi16,10)),"ansi256"in a&&(n.color.ansi256[t]=i(a.ansi256,0),n.bgColor.ansi256[t]=i(a.ansi256,10)),"rgb"in a&&(n.color.ansi16m[t]=o(a.rgb,0),n.bgColor.ansi16m[t]=o(a.rgb,10))}return n}})}).call(this,n(68)(t))},function(t,e,n){var r=n(299),i=n(326),o={};Object.keys(r).forEach(function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var r=e[n];o[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,i=0;i1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)})}),t.exports=o},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){var r=n(299);function i(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,i=0;ir._.max)&&(ir._.max&&(void 0!==r._.maxMsg?e.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,i).replace(/\$1/,r._.max):null):e.fail(s("Too many non-option arguments: got %s, maximum of %s",i,r._.max))))},positionalCount:function(t,n){n{n.hasOwnProperty(t)&&void 0!==n[t]||((i=i||{})[t]=r[t])}),i){const t=[];Object.keys(i).forEach(e=>{const n=i[e];n&&t.indexOf(n)<0&&t.push(n)});const n=t.length?`\n${t.join("\n")}`:"";e.fail(u("Missing required argument: %s","Missing required arguments: %s",Object.keys(i).length,Object.keys(i).join(", ")+n))}},unknownArguments:function(n,r,i){const a=t.getCommandInstance().getCommands(),s=[],c=t.getContext();Object.keys(n).forEach(e=>{-1!==o.indexOf(e)||i.hasOwnProperty(e)||t._getParseContext().hasOwnProperty(e)||r.hasOwnProperty(e)||s.push(e)}),a.length>0&&n._.slice(c.commands.length).forEach(t=>{-1===a.indexOf(t)&&s.push(t)}),s.length>0&&e.fail(u("Unknown argument: %s","Unknown arguments: %s",s.length,s.join(", ")))},limitedChoices:function(n){const r=t.getOptions(),i={};if(!Object.keys(r.choices).length)return;Object.keys(n).forEach(t=>{-1===o.indexOf(t)&&r.choices.hasOwnProperty(t)&&[].concat(n[t]).forEach(e=>{-1===r.choices[t].indexOf(e)&&void 0!==e&&(i[t]=(i[t]||[]).concat(e))})});const a=Object.keys(i);if(!a.length)return;let u=s("Invalid values:");a.forEach(t=>{u+=`\n ${s("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(i[t]),e.stringifiedValues(r.choices[t]))}`}),e.fail(u)}};let l=[];c.check=function(t,e){l.push({func:t,global:e})},c.customChecks=function(t,n){for(let r,i=0;void 0!==(r=l[i]);i++){const i=r.func;let o=null;try{o=i(t,n)}catch(t){e.fail(t.message?t.message:t,t);continue}o?("string"==typeof o||o instanceof Error)&&e.fail(o.toString(),o):e.fail(s("Argument check failed: %s",i.toString()))}};let p={};c.implies=function(e,n){r(" [array|number|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach(t=>{c.implies(t,e[t])}):(t.global(e),p[e]||(p[e]=[]),Array.isArray(n)?n.forEach(t=>c.implies(e,t)):p[e].push(n))},c.getImplied=function(){return p},c.implications=function(t){const n=[];if(Object.keys(p).forEach(e=>{const r=e;(p[e]||[]).forEach(e=>{let i,o=r;const a=e;i=Number(o),"number"==typeof(o=isNaN(i)?o:i)?o=t._.length>=o:o.match(/^--no-.+/)?(o=o.match(/^--no-(.+)/)[1],o=!t[o]):o=t[o],i=Number(e),"number"==typeof(e=isNaN(i)?e:i)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!t[e]):e=t[e],o&&!e&&n.push(` ${r} -> ${a}`)})}),n.length){let t=`${s("Implications failed:")}\n`;n.forEach(e=>{t+=e}),e.fail(t)}};let h,f={};return c.conflicts=function(e,n){r(" [array|string]",[e,n],arguments.length),"object"==typeof e?Object.keys(e).forEach(t=>{c.conflicts(t,e[t])}):(t.global(e),f[e]||(f[e]=[]),Array.isArray(n)?n.forEach(t=>c.conflicts(e,t)):f[e].push(n))},c.getConflicting=()=>f,c.conflicting=function(t){Object.keys(t).forEach(n=>{f[n]&&f[n].forEach(r=>{r&&void 0!==t[n]&&void 0!==t[r]&&e.fail(s("Arguments %s and %s are mutually exclusive",n,r))})})},c.recommendCommands=function(t,r){const i=n(328);r=r.sort((t,e)=>e.length-t.length);let o=null,a=1/0;for(let e,n=0;void 0!==(e=r[n]);n++){const n=i(t,e);n<=3&&n!t[e]),f=i(f,(e,n)=>!t[e]),l=l.filter(t=>t.global),c},c.freeze=function(){(h={}).implied=p,h.checks=l,h.conflicting=f},c.unfreeze=function(){p=h.implied,l=h.checks,f=h.conflicting,h=void 0},c}},function(t,e,n){"use strict";t.exports=function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const n=[];let r,i;for(r=0;r<=e.length;r++)n[r]=[r];for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)===t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]}},function(t,e,n){var r=n(7),i=n(2),o=n(6);function a(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles="boolean"!=typeof t.updateFiles||t.updateFiles,this.locale=t.locale||"en",this.fallbackToLanguage="boolean"!=typeof t.fallbackToLanguage||t.fallbackToLanguage,this.cache={},this.writeQueue=[]}a.prototype.__=function(){if("string"!=typeof arguments[0])return this._taggedLiteral.apply(this,arguments);var t=Array.prototype.slice.call(arguments),e=t.shift(),n=function(){};return"function"==typeof t[t.length-1]&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]=e,this._enqueueWrite([this.directory,this.locale,n])):n(),o.format.apply(o,[this.cache[this.locale][e]||e].concat(t))},a.prototype._taggedLiteral=function(t){var e=arguments,n="";return t.forEach(function(t,r){var i=e[r+1];n+=t,void 0!==i&&(n+="%s")}),this.__.apply(null,[n].concat([].slice.call(arguments,1)))},a.prototype._enqueueWrite=function(t){this.writeQueue.push(t),1===this.writeQueue.length&&this._processWriteQueue()},a.prototype._processWriteQueue=function(){var t=this,e=this.writeQueue[0],n=e[0],i=e[1],o=e[2],a=this._resolveLocaleFile(n,i),s=JSON.stringify(this.cache[i],null,2);r.writeFile(a,s,"utf-8",function(e){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),o(e)})},a.prototype._readLocaleFile=function(){var t={},e=this._resolveLocaleFile(this.directory,this.locale);try{t=JSON.parse(r.readFileSync(e,"utf-8"))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+e),"ENOENT"!==n.code)throw n;t={}}this.cache[this.locale]=t},a.prototype._resolveLocaleFile=function(t,e){var n=i.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~e.lastIndexOf("_")){var r=i.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(r)&&(n=r)}return n},a.prototype._fileExistsSync=function(t){try{return r.statSync(t).isFile()}catch(t){return!1}},a.prototype.__n=function(){var t=Array.prototype.slice.call(arguments),e=t.shift(),n=t.shift(),r=t.shift(),i=function(){};"function"==typeof t[t.length-1]&&(i=t.pop()),this.cache[this.locale]||this._readLocaleFile();var a=1===r?e:n;this.cache[this.locale][e]&&(a=this.cache[this.locale][e][1===r?"one":"other"]),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:n},this._enqueueWrite([this.directory,this.locale,i])):i();var s=[a];return~a.indexOf("%d")&&s.push(r),o.format.apply(o,s.concat(t))},a.prototype.setLocale=function(t){this.locale=t},a.prototype.getLocale=function(){return this.locale},a.prototype.updateLocale=function(t){for(var e in this.cache[this.locale]||this._readLocaleFile(),t)this.cache[this.locale][e]=t[e]},t.exports=function(t){var e=new a(t);for(var n in e)"function"==typeof e[n]&&(e[n]=e[n].bind(e));return e}},function(t,e,n){"use strict";const r=n(7),i=n(2),o=n(142);let a=[];t.exports=function t(e,s){let u={};if(e.hasOwnProperty("extends")){if("string"!=typeof e.extends)return u;const c=/\.json|\..*rc$/.test(e.extends);let l=null;if(c)l=function(t,e){return i.resolve(t,e)}(s,e.extends);else try{l=n(300).resolve(e.extends)}catch(t){}if(!l&&!c)return e;!function(t){if(a.indexOf(t)>-1)throw new o(`Circular extended configurations: '${t}'.`)}(l),a.push(l),u=c?JSON.parse(r.readFileSync(l,"utf8")):n(300)(e.extends),delete e.extends,u=t(u,i.dirname(l))}return a=[],Object.assign({},u,e)}},function(t,e,n){"use strict";t.exports=function(t){if(void 0===t&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var e=Error.prepareStackTrace;Error.prepareStackTrace=function(t,e){return e};var n=(new Error).stack;if(Error.prepareStackTrace=e,null!==n&&"object"==typeof n)return n[t]?n[t].getFileName():void 0}},function(t,e,n){"use strict";const r=n(2),i=n(333);t.exports=(t,e={})=>{const n=r.resolve(e.cwd||""),{root:o}=r.parse(n),a=[].concat(t);return new Promise(t=>{!function e(n){i(a,{cwd:n}).then(i=>{i?t(r.join(n,i)):n===o?t(null):e(r.dirname(n))})}(n)})},t.exports.sync=(t,e={})=>{let n=r.resolve(e.cwd||"");const{root:o}=r.parse(n),a=[].concat(t);for(;;){const t=i.sync(a,{cwd:n});if(t)return r.join(n,t);if(n===o)return null;n=r.dirname(n)}}},function(t,e,n){"use strict";const r=n(2),i=n(334),o=n(335);t.exports=(t,e)=>(e=Object.assign({cwd:process.cwd()},e),o(t,t=>i(r.resolve(e.cwd,t)),e)),t.exports.sync=(t,e)=>{e=Object.assign({cwd:process.cwd()},e);for(const n of t)if(i.sync(r.resolve(e.cwd,n)))return n}},function(t,e,n){"use strict";const r=n(7);t.exports=t=>new Promise(e=>{r.access(t,t=>{e(!t)})}),t.exports.sync=t=>{try{return r.accessSync(t),!0}catch(t){return!1}}},function(t,e,n){"use strict";const r=n(336);class i extends Error{constructor(t){super(),this.value=t}}const o=(t,e)=>Promise.resolve(t).then(e),a=t=>Promise.all(t).then(t=>!0===t[1]&&Promise.reject(new i(t[0])));t.exports=(t,e,n)=>{n=Object.assign({concurrency:1/0,preserveOrder:!0},n);const s=r(n.concurrency),u=[...t].map(t=>[t,s(o,t,e)]),c=r(n.preserveOrder?1:1/0);return Promise.all(u.map(t=>c(a,t))).then(()=>{}).catch(t=>t instanceof i?t.value:Promise.reject(t))}},function(t,e,n){"use strict";const r=n(337),i=t=>{if(t<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=[];let n=0;const i=()=>{n--,e.length>0&&e.shift()()},o=(t,e,...o)=>{n++;const a=r(t,...o);e(a),a.then(i,i)},a=(r,...i)=>new Promise(a=>((r,i,...a)=>{nn},pendingCount:{get:()=>e.length}}),a};t.exports=i,t.exports.default=i},function(t,e,n){"use strict";const r=(t,...e)=>new Promise(n=>{n(t(...e))});t.exports=r,t.exports.default=r},function(t,e,n){t.exports=function(t){var e=(t=t||n(339)).main;return e&&function(t){return/\\iisnode\\/.test(t.filename)}(e)?function(t){return t.children.length?t.children[0].filename:t.filename}(e):e?e.filename:process.cwd()}},function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=339},function(t,e,n){"use strict";const r=n(341),i=n(367),o=n(370),a={spawn:!0},s="en_US";function u(t=process.env){return t.LC_ALL||t.LC_MESSAGES||t.LANG||t.LANGUAGE}function c(t){return u(t.split("\n").reduce((t,e)=>{const[n,r]=e.split("=");return t[n]=r.replace(/^"|"$/g,""),t},{}))}function l(t){return t&&t.replace(/[.:].*/,"")}function p(t,e=""){return e.includes(t)?t:s}function h(){return p(r.sync("defaults",["read","-globalDomain","AppleLocale"]).stdout,r.sync("locale",["-a"]).stdout)}function f(){return"darwin"===process.platform?Promise.all([r.stdout("defaults",["read","-globalDomain","AppleLocale"]),r.stdout("locale",["-a"])]).then(t=>p(t[0],t[1])):r.stdout("locale").then(t=>l(c(t)))}t.exports=o((t=a)=>{const e=u();let n;return(n=e||!1===t.spawn?Promise.resolve(l(e)):"win32"===process.platform?r.stdout("wmic",["os","get","locale"]).then(t=>{const e=parseInt(t.replace("Locale",""),16);return i.from(e)}):f()).then(t=>t||s).catch(()=>s)}),t.exports.sync=o((t=a)=>{const e=u();let n;if(e||!1===t.spawn)n=l(e);else try{n="win32"===process.platform?function(){const{stdout:t}=r.sync("wmic",["os","get","locale"]),e=parseInt(t.replace("Locale",""),16);return i.from(e)}():"darwin"===process.platform?h():l(c(r.sync("locale").stdout))}catch(t){}return n||s})},function(t,e,n){"use strict";const r=n(2),i=n(301),o=n(342),a=n(356),s=n(357),u=n(358),c=n(359),l=n(362),p=n(363),h=n(365),f=n(366),d=1e7;function g(t,e,n){let i;return(n=Object.assign({extendEnv:!0,env:{}},n)).extendEnv&&(n.env=Object.assign({},process.env,n.env)),!0===n.__winShell?(delete n.__winShell,i={command:t,args:e,options:n,file:t,original:{cmd:t,args:e}}):i=o._parse(t,e,n),(n=Object.assign({maxBuffer:d,buffer:!0,stripEof:!0,preferLocal:!0,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},i.options)).stdio=f(n),n.preferLocal&&(n.env=s.env(Object.assign({},n,{cwd:n.localDir}))),n.detached&&(n.cleanup=!1),"win32"===process.platform&&"cmd.exe"===r.basename(i.command)&&i.args.unshift("/q"),{cmd:i.command,args:i.args,opts:n,parsed:i}}function m(t,e){return e&&t.stripEof&&(e=a(e)),e}function b(t,e,n){let r="/bin/sh",i=["-c",e];return n=Object.assign({},n),"win32"===process.platform&&(n.__winShell=!0,r=process.env.comspec||"cmd.exe",i=["/s","/c",`"${e}"`],n.windowsVerbatimArguments=!0),n.shell&&(r=n.shell,delete n.shell),t(r,i,n)}function _(t,e,{encoding:n,buffer:r,maxBuffer:i}){if(!t[e])return null;let o;return(o=r?n?c(t[e],{encoding:n,maxBuffer:i}):c.buffer(t[e],{maxBuffer:i}):new Promise((n,r)=>{t[e].once("end",n).once("error",r)})).catch(t=>{throw t.stream=e,t.message=`${e} ${t.message}`,t})}function y(t,e){const{stdout:n,stderr:r}=t;let i=t.error;const{code:o,signal:a}=t,{parsed:s,joinedCmd:u}=e,c=e.timedOut||!1;if(!i){let t="";Array.isArray(s.opts.stdio)?("inherit"!==s.opts.stdio[2]&&(t+=t.length>0?r:`\n${r}`),"inherit"!==s.opts.stdio[1]&&(t+=`\n${n}`)):"inherit"!==s.opts.stdio&&(t=`\n${r}${n}`),(i=new Error(`Command failed: ${u}${t}`)).code=o<0?h(o):o}return i.stdout=n,i.stderr=r,i.failed=!0,i.signal=a||null,i.cmd=u,i.timedOut=c,i}function v(t,e){let n=t;return Array.isArray(e)&&e.length>0&&(n+=" "+e.join(" ")),n}t.exports=(t,e,n)=>{const r=g(t,e,n),{encoding:a,buffer:s,maxBuffer:c}=r.opts,h=v(t,e);let f,d;try{f=i.spawn(r.cmd,r.args,r.opts)}catch(t){return Promise.reject(t)}r.opts.cleanup&&(d=p(()=>{f.kill()}));let b=null,w=!1;const x=()=>{b&&(clearTimeout(b),b=null),d&&d()};r.opts.timeout>0&&(b=setTimeout(()=>{b=null,w=!0,f.kill(r.opts.killSignal)},r.opts.timeout));const k=new Promise(t=>{f.on("exit",(e,n)=>{x(),t({code:e,signal:n})}),f.on("error",e=>{x(),t({error:e})}),f.stdin&&f.stdin.on("error",e=>{x(),t({error:e})})});function E(){f.stdout&&f.stdout.destroy(),f.stderr&&f.stderr.destroy()}const D=()=>l(Promise.all([k,_(f,"stdout",{encoding:a,buffer:s,maxBuffer:c}),_(f,"stderr",{encoding:a,buffer:s,maxBuffer:c})]).then(t=>{const e=t[0];if(e.stdout=t[1],e.stderr=t[2],e.error||0!==e.code||null!==e.signal){const t=y(e,{joinedCmd:h,parsed:r,timedOut:w});if(t.killed=t.killed||f.killed,!r.opts.reject)return t;throw t}return{stdout:m(r.opts,e.stdout),stderr:m(r.opts,e.stderr),code:0,failed:!1,killed:!1,signal:null,cmd:h,timedOut:!1}}),E);return o._enoent.hookChildProcess(f,r.parsed),function(t,e){null!=e&&(u(e)?e.pipe(t.stdin):t.stdin.end(e))}(f,r.opts.input),f.then=(t,e)=>D().then(t,e),f.catch=t=>D().catch(t),f},t.exports.stdout=(...e)=>t.exports(...e).then(t=>t.stdout),t.exports.stderr=(...e)=>t.exports(...e).then(t=>t.stderr),t.exports.shell=(e,n)=>b(t.exports,e,n),t.exports.sync=(t,e,n)=>{const r=g(t,e,n),o=v(t,e);if(u(r.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const a=i.spawnSync(r.cmd,r.args,r.opts);if(a.code=a.status,a.error||0!==a.status||null!==a.signal){const t=y(a,{joinedCmd:o,parsed:r});if(!r.opts.reject)return t;throw t}return{stdout:m(r.opts,a.stdout),stderr:m(r.opts,a.stderr),code:0,failed:!1,signal:null,cmd:o,timedOut:!1}},t.exports.shellSync=(e,n)=>b(t.exports.sync,e,n)},function(t,e,n){"use strict";const r=n(301),i=n(343),o=n(355);function a(t,e,n){const a=i(t,e,n),s=r.spawn(a.command,a.args,a.options);return o.hookChildProcess(s,a),s}t.exports=a,t.exports.spawn=a,t.exports.sync=function(t,e,n){const a=i(t,e,n),s=r.spawnSync(a.command,a.args,a.options);return s.error=s.error||o.verifyENOENTSync(s.status,a),s},t.exports._parse=i,t.exports._enoent=o},function(t,e,n){"use strict";const r=n(2),i=n(344),o=n(345),a=n(350),s=n(351),u=n(354),c="win32"===process.platform,l=/\.(?:com|exe)$/i,p=/node_modules[\\\/].bin[\\\/][^\\\/]+\.cmd$/i,h=i(()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0))||!1;function f(t){if(!c)return t;const e=function(t){t.file=o(t);const e=t.file&&s(t.file);return e?(t.args.unshift(t.file),t.command=e,o(t)):t.file}(t),n=!l.test(e);if(t.options.forceShell||n){const n=p.test(e);t.command=r.normalize(t.command),t.command=a.command(t.command),t.args=t.args.map(t=>a.argument(t,n));const i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function(t,e,n){e&&!Array.isArray(e)&&(n=e,e=null);const r={command:t,args:e=e?e.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:t,args:e}};return n.shell?function(t){if(h)return t;const e=[t.command].concat(t.args).join(" ");return c?(t.command="string"==typeof t.options.shell?t.options.shell:process.env.comspec||"cmd.exe",t.args=["/d","/s","/c",`"${e}"`],t.options.windowsVerbatimArguments=!0):("string"==typeof t.options.shell?t.command=t.options.shell:"android"===process.platform?t.command="/system/bin/sh":t.command="/bin/sh",t.args=["-c",e]),t}(r):f(r)}},function(t,e,n){"use strict";t.exports=function(t){try{return t()}catch(t){}}},function(t,e,n){"use strict";const r=n(2),i=n(346),o=n(302)();function a(t,e){const n=process.cwd(),a=null!=t.options.cwd;if(a)try{process.chdir(t.options.cwd)}catch(t){}let s;try{s=i.sync(t.command,{path:(t.options.env||process.env)[o],pathExt:e?r.delimiter:void 0})}catch(t){}finally{process.chdir(n)}return s&&(s=r.resolve(a?t.options.cwd:"",s)),s}t.exports=function(t){return a(t)||a(t,!0)}},function(t,e,n){t.exports=c,c.sync=function(t,e){for(var n=u(t,e=e||{}),r=n.env,o=n.ext,c=n.extExe,l=[],p=0,h=r.length;p&|;, *?])/g;t.exports.command=function(t){return t=t.replace(r,"^$1")},t.exports.argument=function(t,e){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(r,"^$1"),e&&(t=t.replace(r,"^$1")),t}},function(t,e,n){"use strict";const r=n(7),i=n(352);t.exports=function(t){let e,n;Buffer.alloc?e=Buffer.alloc(150):(e=new Buffer(150)).fill(0);try{n=r.openSync(t,"r"),r.readSync(n,e,0,150,0),r.closeSync(n)}catch(t){}return i(e.toString())}},function(t,e,n){"use strict";var r=n(353);t.exports=function(t){var e=t.match(r);if(!e)return null;var n=e[0].replace(/#! ?/,"").split(" "),i=n[0].split("/").pop(),o=n[1];return"env"===i?o:i+(o?" "+o:"")}},function(t,e,n){"use strict";t.exports=/^#!.*/},function(t,e){var n;e=t.exports=Y,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,u=s++;a[u]="0|[1-9]\\d*";var c=s++;a[c]="[0-9]+";var l=s++;a[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[u]+")\\.("+a[u]+")\\.("+a[u]+")";var h=s++;a[h]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var f=s++;a[f]="(?:"+a[u]+"|"+a[l]+")";var d=s++;a[d]="(?:"+a[c]+"|"+a[l]+")";var g=s++;a[g]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var m=s++;a[m]="(?:-?("+a[d]+"(?:\\."+a[d]+")*))";var b=s++;a[b]="[0-9A-Za-z-]+";var _=s++;a[_]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var y=s++,v="v?"+a[p]+a[g]+"?"+a[_]+"?";a[y]="^"+v+"$";var w="[v=\\s]*"+a[h]+a[m]+"?"+a[_]+"?",x=s++;a[x]="^"+w+"$";var k=s++;a[k]="((?:<|>)?=?)";var E=s++;a[E]=a[c]+"|x|X|\\*";var D=s++;a[D]=a[u]+"|x|X|\\*";var S=s++;a[S]="[v=\\s]*("+a[D]+")(?:\\.("+a[D]+")(?:\\.("+a[D]+")(?:"+a[g]+")?"+a[_]+"?)?)?";var C=s++;a[C]="[v=\\s]*("+a[E]+")(?:\\.("+a[E]+")(?:\\.("+a[E]+")(?:"+a[m]+")?"+a[_]+"?)?)?";var T=s++;a[T]="^"+a[k]+"\\s*"+a[S]+"$";var O=s++;a[O]="^"+a[k]+"\\s*"+a[C]+"$";var A=s++;a[A]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;a[I]="(?:~>?)";var M=s++;a[M]="(\\s*)"+a[I]+"\\s+",o[M]=new RegExp(a[M],"g");var P=s++;a[P]="^"+a[I]+a[S]+"$";var L=s++;a[L]="^"+a[I]+a[C]+"$";var B=s++;a[B]="(?:\\^)";var j=s++;a[j]="(\\s*)"+a[B]+"\\s+",o[j]=new RegExp(a[j],"g");var F=s++;a[F]="^"+a[B]+a[S]+"$";var R=s++;a[R]="^"+a[B]+a[C]+"$";var N=s++;a[N]="^"+a[k]+"\\s*("+w+")$|^$";var z=s++;a[z]="^"+a[k]+"\\s*("+v+")$|^$";var U=s++;a[U]="(\\s*)"+a[k]+"\\s*("+w+"|"+a[S]+")",o[U]=new RegExp(a[U],"g");var W=s++;a[W]="^\\s*("+a[S]+")\\s+-\\s+("+a[S]+")\\s*$";var G=s++;a[G]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var H=s++;a[H]="(<|>)?=?\\s*\\*";for(var $=0;$<35;$++)n($,a[$]),o[$]||(o[$]=new RegExp(a[$]));function q(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof Y)return t;if("string"!=typeof t)return null;if(t.length>r)return null;if(!(e.loose?o[x]:o[y]).test(t))return null;try{return new Y(t,e)}catch(t){return null}}function Y(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof Y){if(t.loose===e.loose)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: "+t);if(t.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof Y))return new Y(t,e);n("SemVer",t,e),this.options=e,this.loose=!!e.loose;var a=t.trim().match(e.loose?o[x]:o[y]);if(!a)throw new TypeError("Invalid Version: "+t);if(this.raw=t,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(function(t){if(/^[0-9]+$/.test(t)){var e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error("invalid increment argument: "+t)}return this.format(),this.raw=this.version,this},e.inc=function(t,e,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new Y(t,n).inc(e,r).version}catch(t){return null}},e.diff=function(t,e){if(K(t,e))return null;var n=q(t),r=q(e),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=Z;var V=/^[0-9]+$/;function Z(t,e){var n=V.test(t),r=V.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t0}function Q(t,e,n){return X(t,e,n)<0}function K(t,e,n){return 0===X(t,e,n)}function tt(t,e,n){return 0!==X(t,e,n)}function et(t,e,n){return X(t,e,n)>=0}function nt(t,e,n){return X(t,e,n)<=0}function rt(t,e,n,r){switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t===n;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof n&&(n=n.version),t!==n;case"":case"=":case"==":return K(t,n,r);case"!=":return tt(t,n,r);case">":return J(t,n,r);case">=":return et(t,n,r);case"<":return Q(t,n,r);case"<=":return nt(t,n,r);default:throw new TypeError("Invalid operator: "+e)}}function it(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof it){if(t.loose===!!e.loose)return t;t=t.value}if(!(this instanceof it))return new it(t,e);n("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===ot?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(t,e){return Z(e,t)},e.major=function(t,e){return new Y(t,e).major},e.minor=function(t,e){return new Y(t,e).minor},e.patch=function(t,e){return new Y(t,e).patch},e.compare=X,e.compareLoose=function(t,e){return X(t,e,!0)},e.rcompare=function(t,e,n){return X(e,t,n)},e.sort=function(t,n){return t.sort(function(t,r){return e.compare(t,r,n)})},e.rsort=function(t,n){return t.sort(function(t,r){return e.rcompare(t,r,n)})},e.gt=J,e.lt=Q,e.eq=K,e.neq=tt,e.gte=et,e.lte=nt,e.cmp=rt,e.Comparator=it;var ot={};function at(t,e){if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),t instanceof at)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new at(t.raw,e);if(t instanceof it)return new at(t.value,e);if(!(this instanceof at))return new at(t,e);if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+t);this.format()}function st(t){return!t||"x"===t.toLowerCase()||"*"===t}function ut(t,e,n,r,i,o,a,s,u,c,l,p,h){return((e=st(n)?"":st(r)?">="+n+".0.0":st(i)?">="+n+"."+r+".0":">="+e)+" "+(s=st(u)?"":st(c)?"<"+(+u+1)+".0.0":st(l)?"<"+u+"."+(+c+1)+".0":p?"<="+u+"."+c+"."+l+"-"+p:"<="+s)).trim()}function ct(t,e,r){for(var i=0;i0){var o=t[i].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}function lt(t,e,n){try{e=new at(e,n)}catch(t){return!1}return e.test(t)}function pt(t,e,n,r){var i,o,a,s,u;switch(t=new Y(t,r),e=new at(e,r),n){case">":i=J,o=nt,a=Q,s=">",u=">=";break;case"<":i=Q,o=et,a=J,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lt(t,e,r))return!1;for(var c=0;c=0.0.0")),p=p||t,h=h||t,i(t.semver,p.semver,r)?p=t:a(t.semver,h.semver,r)&&(h=t)}),p.operator===s||p.operator===u)return!1;if((!h.operator||h.operator===s)&&o(t,h.semver))return!1;if(h.operator===u&&a(t,h.semver))return!1}return!0}it.prototype.parse=function(t){var e=this.options.loose?o[N]:o[z],n=t.match(e);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new Y(n[2],this.options.loose):this.semver=ot},it.prototype.toString=function(){return this.value},it.prototype.test=function(t){return n("Comparator.test",t,this.options.loose),this.semver===ot||("string"==typeof t&&(t=new Y(t,this.options)),rt(t,this.operator,this.semver,this.options))},it.prototype.intersects=function(t,e){if(!(t instanceof it))throw new TypeError("a Comparator is required");var n;if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return n=new at(t.value,e),lt(this.value,n,e);if(""===t.operator)return n=new at(this.value,e),lt(t.semver,n,e);var r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),o=this.semver.version===t.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),s=rt(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),u=rt(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||i||o&&a||s||u},e.Range=at,at.prototype.format=function(){return this.range=this.set.map(function(t){return t.join(" ").trim()}).join("||").trim(),this.range},at.prototype.toString=function(){return this.range},at.prototype.parseRange=function(t){var e=this.options.loose;t=t.trim();var r=e?o[G]:o[W];t=t.replace(r,ut),n("hyphen replace",t),t=t.replace(o[U],"$1$2$3"),n("comparator trim",t,o[U]),t=(t=(t=t.replace(o[M],"$1~")).replace(o[j],"$1^")).split(/\s+/).join(" ");var i=e?o[N]:o[z],a=t.split(" ").map(function(t){return function(t,e){return n("comp",t,e),t=function(t,e){return t.trim().split(/\s+/).map(function(t){return function(t,e){n("caret",t,e);var r=e.loose?o[R]:o[F];return t.replace(r,function(e,r,i,o,a){var s;return n("caret",t,e,r,i,o,a),st(r)?s="":st(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":st(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s})}(t,e)}).join(" ")}(t,e),n("caret",t),t=function(t,e){return t.trim().split(/\s+/).map(function(t){return function(t,e){var r=e.loose?o[L]:o[P];return t.replace(r,function(e,r,i,o,a){var s;return n("tilde",t,e,r,i,o,a),st(r)?s="":st(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":st(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s})}(t,e)}).join(" ")}(t,e),n("tildes",t),t=function(t,e){return n("replaceXRanges",t,e),t.split(/\s+/).map(function(t){return function(t,e){t=t.trim();var r=e.loose?o[O]:o[T];return t.replace(r,function(e,r,i,o,a,s){n("xRange",t,e,r,i,o,a,s);var u=st(i),c=u||st(o),l=c||st(a),p=l;return"="===r&&p&&(r=""),u?e=">"===r||"<"===r?"<0.0.0":"*":r&&p?(c&&(o=0),a=0,">"===r?(r=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),e=r+i+"."+o+"."+a):c?e=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(e=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",e),e})}(t,e)}).join(" ")}(t,e),n("xrange",t),t=function(t,e){return n("replaceStars",t,e),t.trim().replace(o[H],"")}(t,e),n("stars",t),t}(t,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(t){return!!t.match(i)})),a=a.map(function(t){return new it(t,this.options)},this)},at.prototype.intersects=function(t,e){if(!(t instanceof at))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return t.set.some(function(t){return t.every(function(t){return n.intersects(t,e)})})})})},e.toComparators=function(t,e){return new at(t,e).set.map(function(t){return t.map(function(t){return t.value}).join(" ").trim().split(" ")})},at.prototype.test=function(t){if(!t)return!1;"string"==typeof t&&(t=new Y(t,this.options));for(var e=0;e":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":n&&!J(n,e)||(n=e);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}})}if(n&&t.test(n))return n;return null},e.validRange=function(t,e){try{return new at(t,e).range||"*"}catch(t){return null}},e.ltr=function(t,e,n){return pt(t,e,"<",n)},e.gtr=function(t,e,n){return pt(t,e,">",n)},e.outside=pt,e.prerelease=function(t,e){var n=q(t,e);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(t,e,n){return t=new at(t,n),e=new at(e,n),t.intersects(e)},e.coerce=function(t){if(t instanceof Y)return t;if("string"!=typeof t)return null;var e=t.match(o[A]);if(null==e)return null;return q(e[1]+"."+(e[2]||"0")+"."+(e[3]||"0"))}},function(t,e,n){"use strict";const r="win32"===process.platform;function i(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function o(t,e){return r&&1===t&&!e.file?i(e.original,"spawn"):null}t.exports={hookChildProcess:function(t,e){if(!r)return;const n=t.emit;t.emit=function(r,i){if("exit"===r){const r=o(i,e);if(r)return n.call(t,"error",r)}return n.apply(t,arguments)}},verifyENOENT:o,verifyENOENTSync:function(t,e){return r&&1===t&&!e.file?i(e.original,"spawnSync"):null},notFoundError:i}},function(t,e,n){"use strict";t.exports=function(t){var e="string"==typeof t?"\n":"\n".charCodeAt(),n="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t}},function(t,e,n){"use strict";const r=n(2),i=n(302);t.exports=t=>{let e;t=Object.assign({cwd:process.cwd(),path:process.env[i()]},t);let n=r.resolve(t.cwd);const o=[];for(;e!==n;)o.push(r.join(n,"node_modules/.bin")),e=n,n=r.resolve(n,"..");return o.push(r.dirname(process.execPath)),o.concat(t.path).join(r.delimiter)},t.exports.env=e=>{e=Object.assign({env:process.env},e);const n=Object.assign({},e.env),r=i({env:n});return e.path=n[r],n[r]=t.exports(e),n}},function(t,e,n){"use strict";var r=t.exports=function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe};r.writable=function(t){return r(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState},r.readable=function(t){return r(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState},r.duplex=function(t){return r.writable(t)&&r.readable(t)},r.transform=function(t){return r.duplex(t)&&"function"==typeof t._transform&&"object"==typeof t._transformState}},function(t,e,n){"use strict";const r=n(360),i=n(361);class o extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}function a(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e=Object.assign({maxBuffer:1/0},e);const{maxBuffer:n}=e;let a;return new Promise((s,u)=>{const c=t=>{t&&(t.bufferedData=a.getBufferedValue()),u(t)};(a=r(t,i(e),t=>{t?c(t):s()})).on("data",()=>{a.getBufferedLength()>n&&c(new o)})}).then(()=>a.getBufferedValue())}t.exports=a,t.exports.buffer=(t,e)=>a(t,Object.assign({},e,{encoding:"buffer"})),t.exports.array=(t,e)=>a(t,Object.assign({},e,{array:!0})),t.exports.MaxBufferError=o},function(t,e,n){var r=n(141),i=n(140),o=n(7),a=function(){},s=/^v?\.0/.test(process.version),u=function(t){return"function"==typeof t},c=function(t,e,n,c){c=r(c);var l=!1;t.on("close",function(){l=!0}),i(t,{readable:e,writable:n},function(t){if(t)return c(t);l=!0,c()});var p=!1;return function(e){if(!l&&!p)return p=!0,function(t){return!!s&&!!o&&(t instanceof(o.ReadStream||a)||t instanceof(o.WriteStream||a))&&u(t.close)}(t)?t.close(a):function(t){return t.setHeader&&u(t.abort)}(t)?t.abort():u(t.destroy)?t.destroy():void c(e||new Error("stream was destroyed"))}},l=function(t){t()},p=function(t,e){return t.pipe(e)};t.exports=function(){var t,e=Array.prototype.slice.call(arguments),n=u(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r=e.map(function(i,o){var a=o0,function(e){t||(t=e),e&&r.forEach(l),a||(r.forEach(l),n(t))})});return e.reduce(p)}},function(t,e,n){"use strict";const{PassThrough:r}=n(4);t.exports=t=>{t=Object.assign({},t);const{array:e}=t;let{encoding:n}=t;const i="buffer"===n;let o=!1;e?o=!(n||i):n=n||"utf8",i&&(n=null);let a=0;const s=[],u=new r({objectMode:o});return n&&u.setEncoding(n),u.on("data",t=>{s.push(t),o?a=s.length:a+=t.length}),u.getBufferedValue=()=>e?s:i?Buffer.concat(s,a):s.join(""),u.getBufferedLength=()=>a,u}},function(t,e,n){"use strict";t.exports=(t,e)=>(e=e||(()=>{}),t.then(t=>new Promise(t=>{t(e())}).then(()=>t),t=>new Promise(t=>{t(e())}).then(()=>{throw t})))},function(t,e,n){var r,i=n(28),o=n(364),a=n(9);function s(){l&&(l=!1,o.forEach(function(t){try{process.removeListener(t,c[t])}catch(t){}}),process.emit=d,process.reallyExit=h,r.count-=1)}function u(t,e,n){r.emitted[t]||(r.emitted[t]=!0,r.emit(t,e,n))}"function"!=typeof a&&(a=a.EventEmitter),process.__signal_exit_emitter__?r=process.__signal_exit_emitter__:((r=process.__signal_exit_emitter__=new a).count=0,r.emitted={}),r.infinite||(r.setMaxListeners(1/0),r.infinite=!0),t.exports=function(t,e){i.equal(typeof t,"function","a callback must be provided for exit handler"),!1===l&&p();var n="exit";e&&e.alwaysLast&&(n="afterexit");return r.on(n,t),function(){r.removeListener(n,t),0===r.listeners("exit").length&&0===r.listeners("afterexit").length&&s()}},t.exports.unload=s;var c={};o.forEach(function(t){c[t]=function(){process.listeners(t).length===r.count&&(s(),u("exit",null,t),u("afterexit",null,t),process.kill(process.pid,t))}}),t.exports.signals=function(){return o},t.exports.load=p;var l=!1;function p(){l||(l=!0,r.count+=1,o=o.filter(function(t){try{return process.on(t,c[t]),!0}catch(t){return!1}}),process.emit=g,process.reallyExit=f)}var h=process.reallyExit;function f(t){process.exitCode=t||0,u("exit",process.exitCode,null),u("afterexit",process.exitCode,null),h.call(process,process.exitCode)}var d=process.emit;function g(t,e){if("exit"===t){void 0!==e&&(process.exitCode=e);var n=d.apply(this,arguments);return u("exit",process.exitCode,null),u("afterexit",process.exitCode,null),n}return d.apply(this,arguments)}},function(t,e){t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},function(t,e,n){"use strict";const r=n(6);let i;if("function"==typeof r.getSystemErrorName)t.exports=r.getSystemErrorName;else{try{if("function"!=typeof(i=process.binding("uv")).errname)throw new TypeError("uv.errname is not a function")}catch(t){console.error("execa/lib/errname: unable to establish process.binding('uv')",t),i=null}t.exports=t=>o(i,t)}function o(t,e){if(t)return t.errname(e);if(!(e<0))throw new Error("err >= 0");return`Unknown system error ${e}`}t.exports.__test__=o},function(t,e,n){"use strict";const r=["stdin","stdout","stderr"];t.exports=t=>{if(!t)return null;if(t.stdio&&(t=>r.some(e=>Boolean(t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${r.map(t=>`\`${t}\``).join(", ")}`);if("string"==typeof t.stdio)return t.stdio;const e=t.stdio||[];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const n=[],i=Math.max(e.length,r.length);for(let o=0;o{if("number"!=typeof t)throw new TypeError("Expected a number");return o[t]},e.to=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");return i[t]},e.all=i},function(t,e,n){"use strict";t.exports=t=>{if("object"!=typeof t)throw new TypeError("Expected an object");const e={};for(const n of Object.keys(t)){e[t[n]]=n}return e}},function(t){t.exports={af_ZA:1078,am_ET:1118,ar_AE:14337,ar_BH:15361,ar_DZ:5121,ar_EG:3073,ar_IQ:2049,ar_JO:11265,ar_KW:13313,ar_LB:12289,ar_LY:4097,ar_MA:6145,ar_OM:8193,ar_QA:16385,ar_SA:1025,ar_SY:10241,ar_TN:7169,ar_YE:9217,arn_CL:1146,as_IN:1101,az_AZ:2092,ba_RU:1133,be_BY:1059,bg_BG:1026,bn_IN:1093,bo_BT:2129,bo_CN:1105,br_FR:1150,bs_BA:8218,ca_ES:1027,co_FR:1155,cs_CZ:1029,cy_GB:1106,da_DK:1030,de_AT:3079,de_CH:2055,de_DE:1031,de_LI:5127,de_LU:4103,div_MV:1125,dsb_DE:2094,el_GR:1032,en_AU:3081,en_BZ:10249,en_CA:4105,en_CB:9225,en_GB:2057,en_IE:6153,en_IN:18441,en_JA:8201,en_MY:17417,en_NZ:5129,en_PH:13321,en_TT:11273,en_US:1033,en_ZA:7177,en_ZW:12297,es_AR:11274,es_BO:16394,es_CL:13322,es_CO:9226,es_CR:5130,es_DO:7178,es_EC:12298,es_ES:3082,es_GT:4106,es_HN:18442,es_MX:2058,es_NI:19466,es_PA:6154,es_PE:10250,es_PR:20490,es_PY:15370,es_SV:17418,es_UR:14346,es_US:21514,es_VE:8202,et_EE:1061,eu_ES:1069,fa_IR:1065,fi_FI:1035,fil_PH:1124,fo_FO:1080,fr_BE:2060,fr_CA:3084,fr_CH:4108,fr_FR:1036,fr_LU:5132,fr_MC:6156,fy_NL:1122,ga_IE:2108,gbz_AF:1164,gl_ES:1110,gsw_FR:1156,gu_IN:1095,ha_NG:1128,he_IL:1037,hi_IN:1081,hr_BA:4122,hr_HR:1050,hu_HU:1038,hy_AM:1067,id_ID:1057,ii_CN:1144,is_IS:1039,it_CH:2064,it_IT:1040,iu_CA:2141,ja_JP:1041,ka_GE:1079,kh_KH:1107,kk_KZ:1087,kl_GL:1135,kn_IN:1099,ko_KR:1042,kok_IN:1111,ky_KG:1088,lb_LU:1134,lo_LA:1108,lt_LT:1063,lv_LV:1062,mi_NZ:1153,mk_MK:1071,ml_IN:1100,mn_CN:2128,mn_MN:1104,moh_CA:1148,mr_IN:1102,ms_BN:2110,ms_MY:1086,mt_MT:1082,my_MM:1109,nb_NO:1044,ne_NP:1121,nl_BE:2067,nl_NL:1043,nn_NO:2068,ns_ZA:1132,oc_FR:1154,or_IN:1096,pa_IN:1094,pl_PL:1045,ps_AF:1123,pt_BR:1046,pt_PT:2070,qut_GT:1158,quz_BO:1131,quz_EC:2155,quz_PE:3179,rm_CH:1047,ro_RO:1048,ru_RU:1049,rw_RW:1159,sa_IN:1103,sah_RU:1157,se_FI:3131,se_NO:1083,se_SE:2107,si_LK:1115,sk_SK:1051,sl_SI:1060,sma_NO:6203,sma_SE:7227,smj_NO:4155,smj_SE:5179,smn_FI:9275,sms_FI:8251,sq_AL:1052,sr_BA:7194,sr_SP:3098,sv_FI:2077,sv_SE:1053,sw_KE:1089,syr_SY:1114,ta_IN:1097,te_IN:1098,tg_TJ:1064,th_TH:1054,tk_TM:1090,tmz_DZ:2143,tn_ZA:1074,tr_TR:1055,tt_RU:1092,ug_CN:1152,uk_UA:1058,ur_IN:2080,ur_PK:1056,uz_UZ:2115,vi_VN:1066,wen_DE:1070,wo_SN:1160,xh_ZA:1076,yo_NG:1130,zh_CHS:4,zh_CHT:31748,zh_CN:2052,zh_HK:3076,zh_MO:5124,zh_SG:4100,zh_TW:1028,zu_ZA:1077}},function(t,e,n){"use strict";const r=n(371),i=n(372),o=n(373),a=new WeakMap,s=(...t)=>{if(0===t.length)return"__defaultKey";if(1===t.length){const[e]=t;if(null==e||"function"!=typeof e&&"object"!=typeof e)return e}return JSON.stringify(t)},u=(t,e)=>{"number"==typeof(e=Object.assign({cacheKey:s,cache:new Map,cachePromiseRejection:!1},e)).maxAge&&o(e.cache);const{cache:n}=e;e.maxAge=e.maxAge||0;const u=function(...r){const o=e.cacheKey(...r);if(n.has(o))return n.get(o).data;const a=t.call(this,...r);return((t,r)=>{n.set(t,{data:r,maxAge:Date.now()+e.maxAge})})(o,a),i(a)&&!1===e.cachePromiseRejection&&a.catch(()=>n.delete(o)),a};try{r(u,t)}catch(t){}return a.set(u,e.cache),u};t.exports=u,t.exports.default=u,t.exports.clear=t=>{const e=a.get(t);e&&"function"==typeof e.clear&&e.clear()}},function(t,e,n){"use strict";const r=(t,e)=>{for(const n of Reflect.ownKeys(e))Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t};t.exports=r,t.exports.default=r},function(t,e,n){"use strict";const r=t=>t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch;t.exports=r,t.exports.default=r},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(n(374));function a(t,e="maxAge"){let n,i,a;const s=()=>r(this,void 0,void 0,function*(){if(void 0!==n)return;const s=s=>r(this,void 0,void 0,function*(){a=o.default();const r=s[1][e]-Date.now();return r<=0?(t.delete(s[0]),void a.resolve()):(n=s[0],"function"==typeof(i=setTimeout(()=>{t.delete(s[0]),a&&a.resolve()},r)).unref&&i.unref(),a.promise)});try{for(const e of t)yield s(e)}catch(t){}n=void 0}),u=t.set.bind(t);return t.set=(e,r)=>{t.has(e)&&t.delete(e);const o=u(e,r);return n&&n===e&&(n=void 0,void 0!==i&&(clearTimeout(i),i=void 0),void 0!==a&&(a.reject(void 0),a=void 0)),s(),o},s(),t}e.default=a,t.exports=a,t.exports.default=a},function(t,e,n){"use strict";t.exports=()=>{const t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}}])}); \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..0d11a3b --- /dev/null +++ b/dist/index.js @@ -0,0 +1,35 @@ +!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(global,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=143)}([function(t,e,n){"use strict";function r(t){if(void 0===t)return!1;if("function"!=typeof t)throw new TypeError("Callback must be a function");return!0}function i(t,e){if("string"==typeof t&&(t=new Error(t)),"function"==typeof e)return e.call(this,t);throw t}function a(t,e,n,r,i,a){e=Math.round(e),n=Math.round(n),r=Math.round(r),i=Math.round(i);for(var o=n;or.promises})},function(t,e){t.exports=require("path")},function(t,e,n){try{var r=n(6);if("function"!=typeof r.inherits)throw"";t.exports=r.inherits}catch(e){t.exports=n(237)}},function(t,e){t.exports=require("stream")},function(t,e){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Buffer.isBuffer},function(t,e){t.exports=require("util")},function(t,e){t.exports=require("fs")},function(t,e){t.exports=require("buffer")},function(t,e){t.exports=require("events")},function(t,e,n){var r=n(8).Buffer,i=r.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};var a=e.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!i(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=l;break;default:return void(this.write=o)}this.charBuffer=new r(6),this.charReceived=0,this.charLength=0};function o(t){return t.toString(this.encoding)}function s(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function l(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}a.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived);var i;r=(e+=t.toString(this.encoding,0,r)).length-1;if((i=e.charCodeAt(r))>=55296&&i<=56319){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),t.copy(this.charBuffer,0,0,a),e.substring(0,r)}return e},a.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},a.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e}},function(t,e,n){"use strict";e.fromCallback=function(t){return Object.defineProperty(function(){if("function"!=typeof arguments[arguments.length-1])return new Promise((e,n)=>{arguments[arguments.length]=(t,r)=>{if(t)return n(t);e(r)},arguments.length++,t.apply(this,arguments)});t.apply(this,arguments)},"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty(function(){const e=arguments[arguments.length-1];if("function"!=typeof e)return t.apply(this,arguments);t.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:t.name})}},function(t,e,n){var r=n(7),i=n(144),a=n(146),o=n(147),s=[],l=n(6);var c,u,p=function(){};function h(t){i(t),t.gracefulify=h,t.FileReadStream=p,t.FileWriteStream=g,t.createReadStream=function(t,e){return new p(t,e)},t.createWriteStream=function(t,e){return new g(t,e)};var e=t.readFile;t.readFile=function(t,n,r){"function"==typeof n&&(r=n,n=null);return function t(n,r,i){return e(n,r,function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof i&&i.apply(this,arguments),d()):f([t,[n,r,i]])})}(t,n,r)};var n=t.writeFile;t.writeFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=null);return function t(e,r,i,a){return n(e,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof a&&a.apply(this,arguments),d()):f([t,[e,r,i,a]])})}(t,e,r,i)};var r=t.appendFile;r&&(t.appendFile=function(t,e,n,i){"function"==typeof n&&(i=n,n=null);return function t(e,n,i,a){return r(e,n,i,function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof a&&a.apply(this,arguments),d()):f([t,[e,n,i,a]])})}(t,e,n,i)});var o=t.readdir;function s(e){return o.apply(t,e)}if(t.readdir=function(t,e,n){var r=[t];"function"!=typeof e?r.push(e):n=e;return r.push(function(t,e){e&&e.sort&&e.sort(),!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof n&&n.apply(this,arguments),d()):f([s,[r]])}),s(r)},"v0.8"===process.version.substr(0,4)){var l=a(t);p=l.ReadStream,g=l.WriteStream}var c=t.ReadStream;c&&(p.prototype=Object.create(c.prototype),p.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())})});var u=t.WriteStream;function p(t,e){return this instanceof p?(c.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function g(t,e){return this instanceof g?(u.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}u&&(g.prototype=Object.create(u.prototype),g.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))})}),t.ReadStream=p,t.WriteStream=g;var m=t.open;function b(t,e,n,r){return"function"==typeof n&&(r=n,n=null),function t(e,n,r,i){return m(e,n,r,function(a,o){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?("function"==typeof i&&i.apply(this,arguments),d()):f([t,[e,n,r,i]])})}(t,e,n,r)}return t.open=b,t}function f(t){p("ENQUEUE",t[0].name,t[1]),s.push(t)}function d(){var t=s.shift();t&&(p("RETRY",t[0].name,t[1]),t[0].apply(null,t[1]))}l.debuglog?p=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=l.format.apply(l,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){p(s),n(28).equal(s.length,0)}),t.exports=h(o(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(t.exports=h(r),r.__patched=!0),t.exports.close=(c=r.close,function(t,e){return c.call(r,t,function(t){t||d(),"function"==typeof e&&e.apply(this,arguments)})}),t.exports.closeSync=(u=r.closeSync,function(t){var e=u.apply(r,arguments);return d(),e}),/\bgraceful-fs\b/.test(r.closeSync.toString())||(r.closeSync=t.exports.closeSync,r.close=t.exports.close)},function(t,e,n){(function(){var e,r,i,a,o,s,l,c,u,p,h,f,d={}.hasOwnProperty;f=n(18),h=f.isObject,p=f.isFunction,u=f.isEmpty,o=null,e=null,r=null,i=null,a=null,l=null,c=null,s=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],o||(o=n(31),e=n(32),r=n(33),i=n(34),a=n(35),l=n(40),c=n(41),s=n(42))}return t.prototype.element=function(t,e,n){var r,i,a,o,s,l,c,f,g,m;if(l=null,null==e&&(e={}),e=e.valueOf(),h(e)||(n=(g=[e,n])[0],e=g[1]),null!=t&&(t=t.valueOf()),Array.isArray(t))for(a=0,c=t.length;a!0).catch(()=>!1)}),pathExistsSync:i.existsSync}},function(t,e){t.exports=require("zlib")},function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(t[r]=n[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var a={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var a=0;an&&s>0?(o+=t.common.lineHeight,a=i[s]+" "):a=l}return o}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i})},function(t,e,n){"use strict";var r=n(43),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=p;var a=n(5);a.inherits=n(3);var o=n(98),s=n(101);a.inherits(p,o);for(var l=i(s.prototype),c=0;c1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=P(t,360),e=P(e,100),n=P(n,100),0===e)r=i=a=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*r,g:255*i,b:255*a}}(t.h,r,l),p=!0,h="hsl"),t.hasOwnProperty("a")&&(n=t.a));var f,d,g;return n=D(n),{ok:p,format:t.format||h,r:c(255,u(e.r,0)),g:c(255,u(e.g,0)),b:c(255,u(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function f(t,e,n){t=P(t,255),e=P(e,255),n=P(n,255);var r,i,a=u(t,e,n),o=c(t,e,n),s=(a+o)/2;if(a==o)r=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case t:r=(e-n)/l+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,a.push(h(r));return a}function C(t,e){e=e||6;for(var n=h(t).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/e;e--;)o.push(h({h:r,s:i,v:a})),a=(a+s)%1;return o}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=D(t),this._roundA=l(100*this._a)/100,this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b),e=l(360*t.h),n=l(100*t.s),r=l(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=l(360*t.h),n=l(100*t.s),r=l(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var a=[B(l(t).toString(16)),B(l(e).toString(16)),B(l(n).toString(16)),B(j(r))];if(i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*P(this._r,255))+"%",g:l(100*P(this._g,255))+"%",b:l(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%)":"rgba("+l(100*P(this._r,255))+"%, "+l(100*P(this._g,255))+"%, "+l(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+m(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=h(t);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},h.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:N(t[r]));t=n}return h(t,e)},h.equals=function(t,e){return!(!t||!e)&&h(t).toRgbString()==h(e).toRgbString()},h.random=function(){return h.fromRatio({r:p(),g:p(),b:p()})},h.mix=function(t,e,n){n=0===n?0:n||50;var r=h(t).toRgb(),i=h(e).toRgb(),a=n/100;return h({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},h.readability=function(t,e){var n=h(t),r=h(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(t,e,n){var r,i,a=h.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},h.mostReadable=function(t,e,n){var r,i,a,o,s=null,l=0;i=(n=n||{}).includeFallbackColors,a=n.level,o=n.size;for(var c=0;cl&&(l=r,s=h(e[c]));return h.isReadable(t,s,{level:a,size:o})||!i?s:(n.includeFallbackColors=!1,h.mostReadable(t,["#fff","#000"],n))};var A=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=h.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(A);function D(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=c(e,u(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function L(t){return c(1,u(0,t))}function R(t){return parseInt(t,16)}function B(t){return 1==t.length?"0"+t:""+t}function N(t){return t<=1&&(t=100*t+"%"),t}function j(t){return i.round(255*parseFloat(t)).toString(16)}function z(t){return R(t)/255}var F,U,W,G=(U="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",W="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!G.CSS_UNIT.exec(t)}t.exports?t.exports=h:void 0===(r=function(){return h}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){var r=n(170);function i(t,e){var n=new r(t,e);return function(t){return n.convert(t)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",t.exports=i},function(t,e){function n(t,e){this.size=this.size||t,this.smallerSize=this.smallerSize||e,function(t){for(var e=1;eu?"1":"0";return p};var i=[];t.exports=n},function(t,e,n){!function(){var e={};function r(){"undefined"==typeof process&&console.log.apply(console,arguments)}t.exports=e,function(t,e){var n,i,a;n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=Error(),t.prototype.name="JpegError",t.constructor=t}(),a=function(){function t(t,e){this.message=t,this.g=e}return t.prototype=Error(),t.prototype.name="DNLMarkerError",t.constructor=t}(),function(){function e(){this.M=null,this.B=-1}function r(t,e){for(var n,r,i=0,a=[],o=16;0>--C&1;if(255===(O=t[e++])){var n=t[e++];if(n){if(220===n&&S){e+=2;var o=t[e++]<<8|t[e++];if(0>>7}function g(t){for(;;){if("number"==typeof(t=t[d()]))return t;if("object"!==(void 0===t?"undefined":n(t)))throw new i("invalid huffman sequence")}}function m(t){for(var e=0;0=1<>=4,0===i){if(15>r){A=m(r)+(1<t.a[n]?-1:1;switch(M){case 0:if(n=15&(a=g(t.o)),a>>=4,0===n)15>a?(A=m(a)+(1<n;){var r=g(t.o),i=15&r;if(r>>=4,0===i){if(15>r)break;n+=16}else n+=r,t.a[e+c[n]]=b(i),n++}},L=0,R=1===D?o[0].c*o[0].l:T*r.O;L=N)throw new i("marker was not found");if(!(65488<=N&&65495>=N))break;e+=2}return(N=l(t,e))&&N.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+N.f),e=N.offset),e-I}function s(t,e){for(var n=e.c,r=e.l,a=new Int16Array(64),o=0;oh;h+=8){var f=p[l+h],d=p[l+h+1],g=p[l+h+2],m=p[l+h+3],b=p[l+h+4],_=p[l+h+5],y=p[l+h+6],v=p[l+h+7];if(f*=u[h],0==(d|g|m|b|_|y|v))f=5793*f+512>>10,c[h]=f,c[h+1]=f,c[h+2]=f,c[h+3]=f,c[h+4]=f,c[h+5]=f,c[h+6]=f,c[h+7]=f;else{d*=u[h+1],g*=u[h+2],m*=u[h+3],b*=u[h+4],_*=u[h+5];var w=5793*f+128>>8,x=5793*b+128>>8,k=g,E=y*=u[h+6];x=(w=w+x+1>>1)-x,f=3784*k+1567*E+128>>8,k=1567*k-3784*E+128>>8,_=(b=(b=2896*(d-(v*=u[h+7]))+128>>8)+(_<<=4)+1>>1)-_,m=(v=(v=2896*(d+v)+128>>8)+(m<<=4)+1>>1)-m,E=(w=w+(E=f)+1>>1)-E,k=(x=x+k+1>>1)-k,f=2276*b+3406*v+2048>>12,b=3406*b-2276*v+2048>>12,v=f,f=799*m+4017*_+2048>>12,m=4017*m-799*_+2048>>12,_=f,c[h]=w+v,c[h+7]=w-v,c[h+1]=x+_,c[h+6]=x-_,c[h+2]=k+m,c[h+5]=k-m,c[h+3]=E+b,c[h+4]=E-b}}for(u=0;8>u;++u)f=c[u],0==((d=c[u+8])|(g=c[u+16])|(m=c[u+24])|(b=c[u+32])|(_=c[u+40])|(y=c[u+48])|(v=c[u+56]))?(f=-2040>(f=5793*f+8192>>14)?0:2024<=f?255:f+2056>>4,p[l+u]=f,p[l+u+8]=f,p[l+u+16]=f,p[l+u+24]=f,p[l+u+32]=f,p[l+u+40]=f,p[l+u+48]=f,p[l+u+56]=f):(w=5793*f+2048>>12,x=5793*b+2048>>12,f=3784*(k=g)+1567*(E=y)+2048>>12,k=1567*k-3784*E+2048>>12,E=f,_=(b=(b=2896*(d-v)+2048>>12)+_+1>>1)-_,m=(v=(v=2896*(d+v)+2048>>12)+m+1>>1)-m,f=2276*b+3406*v+2048>>12,b=3406*b-2276*v+2048>>12,v=f,f=799*m+4017*_+2048>>12,m=4017*m-799*_+2048>>12,d=(x=(x=(w=4112+(w+x+1>>1))-x)+k+1>>1)+(_=f),y=x-_,_=(k=x-k)-m,f=16>(f=(w=w+E+1>>1)+v)?0:4080<=f?255:f>>4,d=16>d?0:4080<=d?255:d>>4,g=16>(g=k+m)?0:4080<=g?255:g>>4,m=16>(m=(E=w-E)+b)?0:4080<=m?255:m>>4,b=16>(b=E-b)?0:4080<=b?255:b>>4,_=16>_?0:4080<=_?255:_>>4,y=16>y?0:4080<=y?255:y>>4,v=16>(v=w-v)?0:4080<=v?255:v>>4,p[l+u]=f,p[l+u+8]=d,p[l+u+16]=g,p[l+u+24]=m,p[l+u+32]=b,p[l+u+40]=_,p[l+u+48]=y,p[l+u+56]=v)}return e.a}function l(t,e){var n=2=r)return null;var i=t[e]<<8|t[e+1];if(65472<=i&&65534>=i)return{f:null,F:i,offset:e};for(var a=t[n]<<8|t[n+1];!(65472<=a&&65534>=a);){if(++n>=r)return null;a=t[n]<<8|t[n+1]}return{f:i.toString(16),F:a,offset:n}}var c=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);e.prototype={parse:function(t){function e(){var e=t[f]<<8|t[f+1];return f+=2,e}function n(){var n=e(),r=l(t,n=f+n-2,f);return r&&r.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+r.f),n=r.offset),n=t.subarray(f,n),f+=n.length,n}function u(t){for(var e=Math.ceil(t.v/8/t.s),n=Math.ceil(t.g/8/t.u),r=0;r>4)for(y=0;64>y;y++)x[v=c[y]]=t[f++];else{if(1!=w>>4)throw new i("DQT - invalid table spec");for(y=0;64>y;y++)x[v=c[y]]=e()}p[15&w]=x}break;case 65472:case 65473:case 65474:if(k)throw new i("Only single frame JPEGs supported");e();var k={};for(k.X=65473===_,k.S=65474===_,k.precision=t[f++],_=e(),k.g=h||_,k.v=e(),k.b=[],k.C={},y=t[f++],_=x=w=0;_>4,S=15&t[f+1];wy;y++,f++)E+=x[y]=t[f];for(S=new Uint8Array(E),y=0;y>4?b:m)[15&w]=r(x,S)}break;case 65501:e();var T=e();break;case 65498:for(y=1==++g&&!h,e(),w=t[f++],v=[],_=0;_>4],I.o=m[15&x],v.push(I)}_=t[f++],w=t[f++],x=t[f++];try{var O=o(t,f,k,v,T,_,w,x>>4,15&x,y);f+=O}catch(e){if(e instanceof a)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(t,{N:e.g});throw e}break;case 65500:f+=4;break;case 65535:255!==t[f]&&f--;break;default:if(255===t[f-3]&&192<=t[f-2]&&254>=t[f-2])f-=3;else{if(!(y=l(t,f-2))||!y.f)throw new i("unknown marker "+_.toString(16));(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+y.f),f=y.offset}}_=e()}for(this.width=k.v,this.height=k.g,this.A=d,this.b=[],_=0;_>8)+a[i+1];return l},w:function(){return this.A?!!this.A.W:3===this.i?0!==this.B:1===this.B},I:function(t){for(var e,n,r,i=0,a=t.length;i>>3)]),null==f&&(f=s.t325);var d=new Uint8Array(s.height*(p>>>3)),g=0;if(null!=s.t322){for(var m=s.t322[0],b=s.t323[0],_=Math.floor((s.width+m-1)/m),y=Math.floor((s.height+b-1)/b),v=new Uint8Array(0|Math.ceil(m*b*u/8)),w=0;w>>8;else{if(12!=d)throw new Error("unsupported bit depth "+d);for(p=0;p>>4,a[o++]=255&(g[p]<<4|g[p+1]>>>8),a[o++]=255&g[p+1]}}else{var b=new t.JpegDecoder;b.parse(c);var _=b.getData(b.width,b.height);for(p=0;p<_.length;p++)a[o+p]=_[p]}6==e.t262[0]&&(e.t262[0]=2)},t.decode._decodeOldJPEGInit=function(t,e,n,i){var a,o,s,l,c,u=0,p=0,h=!1,f=t.t513,d=f?f[0]:0,g=t.t514,m=g?g[0]:0,b=t.t324||t.t273||f,_=t.t530,y=0,v=0,w=t.t277?t.t277[0]:1,x=t.t515;if(b&&(p=b[0],h=b.length>1),!h){if(255==e[n]&&216==e[n+1])return{jpegOffset:n};if(null!=f&&(255==e[n+d]&&216==e[n+d+1]?u=n+d:r("JPEGInterchangeFormat does not point to SOI"),null==g?r("JPEGInterchangeFormatLength field is missing"):(d>=p||d+m<=p)&&r("JPEGInterchangeFormatLength field value is invalid"),null!=u))return{jpegOffset:u}}if(null!=_&&(y=_[0],v=_[1]),null!=f&&null!=g)if(m>=2&&d+m<=p){for(a=255==e[n+d+m-2]&&216==e[n+d+m-1]?new Uint8Array(m-2):new Uint8Array(m),s=0;s offset to first strip or tile");if(null==a){var k=0,E=[];E[k++]=255,E[k++]=216;var S=t.t519;if(null==S)throw new Error("JPEGQTables tag is missing");for(s=0;s>>8,E[k++]=255&I,E[k++]=s|c<<4,l=0;l<16;l++)E[k++]=e[n+T[s]+l];for(l=0;l>>8&255,E[k++]=255&t.height,E[k++]=t.width>>>8&255,E[k++]=255&t.width,E[k++]=w,1==w)E[k++]=1,E[k++]=17,E[k++]=0;else for(s=0;s<3;s++)E[k++]=s+1,E[k++]=0!=s?17:(15&y)<<4|15&v,E[k++]=s;null!=x&&0!=x[0]&&(E[k++]=255,E[k++]=221,E[k++]=0,E[k++]=4,E[k++]=x[0]>>>8&255,E[k++]=255&x[0]),a=new Uint8Array(E)}var O=-1;for(s=0;s>>8&255,a[A++]=255&t.height,a[A++]=t.width>>>8&255,a[A++]=255&t.width,a[A++]=w,1==w)a[A++]=1,a[A++]=17,a[A++]=0;else for(s=0;s<3;s++)a[A++]=s+1,a[A++]=0!=s?17:(15&y)<<4|15&v,a[A++]=s}if(255==e[p]&&218==e[p+1]){var M=e[p+2]<<8|e[p+3];for((o=new Uint8Array(M+2))[0]=e[p],o[1]=e[p+1],o[2]=e[p+2],o[3]=e[p+3],s=0;s>>8&255,c[u.sofPosition+6]=255&e.height,c[u.sofPosition+7]=e.width>>>8&255,c[u.sofPosition+8]=255&e.width,255==n[r]&&n[r+1]==SOS||(c.set(u.sosMarker,bufoff),bufoff+=sosMarker.length),f=0;f=0&&l<128)for(var c=0;c=-127&&l<0){for(c=0;c<1-l;c++)o[i]=a[e],i++;e++}}},t.decode._decodeThunder=function(t,e,n,r,i){for(var a=[0,1,0,-1],o=[0,1,2,3,0,-3,-2,-1],s=e+n,l=2*i,c=0;e>>6,h=63&u;if(e++,3==p&&(c=15&h,r[l>>>1]|=c<<4*(1-l&1),l++),0==p)for(var f=0;f>>1]|=c<<4*(1-l&1),l++;if(2==p)for(f=0;f<2;f++){4!=(d=h>>>3*(1-f)&7)&&(c+=o[d],r[l>>>1]|=c<<4*(1-l&1),l++)}if(1==p)for(f=0;f<3;f++){var d;2!=(d=h>>>2*(2-f)&3)&&(c+=a[d],r[l>>>1]|=c<<4*(1-l&1),l++)}}},t.decode._dmap={1:0,"011":1,"000011":2,"0000011":3,"010":-1,"000010":-2,"0000010":-3},t.decode._lens=function(){var t=function(t,e,n,r){for(var i=0;i>>3>>3]>>>7-(7&c)&1),2==s&&(E=e[c>>>3]>>>(7&c)&1),c++,p+=E,"H"==w){if(null!=l._lens[y][p]){var S=l._lens[y][p];p="",u+=S,S<64&&(l._addNtimes(h,u,y),g+=u,y=1-y,u=0,0==--x&&(w=""))}}else"0001"==p&&(p="",l._addNtimes(h,_-g,y),g=_),"001"==p&&(p="",w="H",x=2),null!=l._dmap[p]&&(m=b+l._dmap[p],l._addNtimes(h,m-g,y),g=m,p="",y=1-y);h.length==o&&""==w&&(l._writeBits(h,i,8*a+v*k),y=0,v++,g=0,f=l._makeDiff(h),h=[])}},t.decode._findDiff=function(t,e,n){for(var r=0;r=e&&t[r+1]==n)return t[r]},t.decode._makeDiff=function(t){var e=[];1==t[0]&&e.push(0,1);for(var n=1;n>>3>>3]>>>7-(7&c)&1),2==s&&(S=e[c>>>3]>>>(7&c)&1),c++,p+=S,k){if(null!=l._lens[y][p]){var T=l._lens[y][p];p="",u+=T,T<64&&(l._addNtimes(h,u,y),y=1-y,u=0)}}else if("H"==w){if(null!=l._lens[y][p]){T=l._lens[y][p];p="",u+=T,T<64&&(l._addNtimes(h,u,y),g+=u,y=1-y,u=0,0==--x&&(w=""))}}else"0001"==p&&(p="",l._addNtimes(h,_-g,y),g=_),"001"==p&&(p="",w="H",x=2),null!=l._dmap[p]&&(m=b+l._dmap[p],l._addNtimes(h,m-g,y),g=m,p="",y=1-y);p.endsWith("000000000001")&&(v>=0&&l._writeBits(h,i,8*a+v*E),1==s&&(k=1==(e[c>>>3]>>>7-(7&c)&1)),2==s&&(k=1==(e[c>>>3]>>>(7&c)&1)),c++,null==l._decodeG3.allow2D&&(l._decodeG3.allow2D=k),l._decodeG3.allow2D||(k=!0,c--),p="",y=0,v++,g=0,f=l._makeDiff(h),h=[])}h.length==o&&l._writeBits(h,i,8*a+v*E)},t.decode._addNtimes=function(t,e,n){for(var r=0;r>>3]|=t[r]<<7-(n+r&7)},t.decode._decodeLZW=function(e,n,r,i){if(null==t.decode._lzwTab){for(var a=new Uint32Array(65535),o=new Uint16Array(65535),s=new Uint8Array(2e6),l=0;l<256;l++)s[l<<2]=l,a[l]=l<<2,o[l]=1;t.decode._lzwTab=[a,o,s]}for(var c=t.decode._copyData,u=t.decode._lzwTab[0],p=t.decode._lzwTab[1],h=(s=t.decode._lzwTab[2],258),f=1032,d=9,g=n<<3,m=0,b=0;m=(e[g>>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<>>3]<<16|e[g+8>>>3]<<8|e[g+16>>>3])>>24-(7&g)-d&(1<=h)u[h]=f,s[u[h]]=_[0],p[h]=1,f=f+1+3&-4,h++;else u[h]=f,c(s,u[b],s,f,v=p[b]),s[f+v]=s[_],v++,p[h]=v,h++,f=f+v+3&-4;h+1==1<=h)u[h]=f,p[h]=0,h++;else u[h]=f,c(s,u[b],s,f,v=p[b]),s[f+v]=s[f],v++,p[h]=v,h++,c(s,f,r,i,v),i+=v,f=f+v+3&-4;h+1==1<4&&(e.writeUint(n,r,o),d=o),2==u&&e.writeASCII(n,d,p),3==u)for(var g=0;g4&&(o+=f+=1&f),r+=4}return[r,o]},t.toRGBA8=function(t){var e=t.width,n=t.height,i=e*n,a=4*i,o=t.data,s=new Uint8Array(4*i),l=t.t262[0],c=t.t258?Math.min(32,t.t258[0]):1,u=t.isLE?1:0;if(0==l)for(var p=Math.ceil(c*e/8),h=0;h>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*(1-b),s[m+3]=255}if(4==c)for(g=0;g>1)]>>4-4*(1&g)&15;s[m]=s[m+1]=s[m+2]=17*(15-b),s[m+3]=255}if(8==c)for(g=0;g>3)]>>7-(7&g)&1;s[m]=s[m+1]=s[m+2]=255*b,s[m+3]=255}if(2==c)for(g=0;g>2)]>>6-2*(3&g)&3;s[m]=s[m+1]=s[m+2]=85*b,s[m+3]=255}if(8==c)for(g=0;g0)for(g=0;g>8,s[m+1]=y[256+v]>>8,s[m+2]=y[512+v]>>8,s[m+3]=255}}else if(5==l){var w,x=(w=t.t258?t.t258.length:4)>4?1:0;for(g=0;g>8&255,t[e+1]=255&n},writeUint:function(t,e,n){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255},writeASCII:function(t,e,n){for(var r=0;ra)return!0;if(c===a){if(u>o)return!0;if(u===o&&p>=s)return!0}return!1}function f(t,e){const n=i.resolve(t).split(i.sep).filter(t=>t),r=i.resolve(e).split(i.sep).filter(t=>t);return n.reduce((t,e,n)=>t&&r[n]===e,!0)}function d(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:function(t,e,n,i){!function(t,e,n){h()?r.stat(t,{bigint:!0},(t,i)=>{if(t)return n(t);r.stat(e,{bigint:!0},(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))}):r.stat(t,(t,i)=>{if(t)return n(t);r.stat(e,(t,e)=>t?"ENOENT"===t.code?n(null,{srcStat:i,destStat:null}):n(t):n(null,{srcStat:i,destStat:e}))})}(t,e,(r,a)=>{if(r)return i(r);const{srcStat:o,destStat:s}=a;return s&&s.ino&&s.dev&&s.ino===o.ino&&s.dev===o.dev?i(new Error("Source and destination must not be the same.")):o.isDirectory()&&f(t,e)?i(new Error(d(t,e,n))):i(null,{srcStat:o,destStat:s})})},checkPathsSync:function(t,e,n){const{srcStat:i,destStat:a}=function(t,e){let n,i;n=h()?r.statSync(t,{bigint:!0}):r.statSync(t);try{i=h()?r.statSync(e,{bigint:!0}):r.statSync(e)}catch(t){if("ENOENT"===t.code)return{srcStat:n,destStat:null};throw t}return{srcStat:n,destStat:i}}(t,e);if(a&&a.ino&&a.dev&&a.ino===i.ino&&a.dev===i.dev)throw new Error("Source and destination must not be the same.");if(i.isDirectory()&&f(t,e))throw new Error(d(t,e,n));return{srcStat:i,destStat:a}},checkParentPaths:function t(e,n,a,o,s){const l=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(a));if(c===l||c===i.parse(c).root)return s();h()?r.stat(c,{bigint:!0},(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,a,o))):t(e,n,c,o,s)):r.stat(c,(r,i)=>r?"ENOENT"===r.code?s():s(r):i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev?s(new Error(d(e,a,o))):t(e,n,c,o,s))},checkParentPathsSync:function t(e,n,a,o){const s=i.resolve(i.dirname(e)),l=i.resolve(i.dirname(a));if(l===s||l===i.parse(l).root)return;let c;try{c=h()?r.statSync(l,{bigint:!0}):r.statSync(l)}catch(t){if("ENOENT"===t.code)return;throw t}if(c.ino&&c.dev&&c.ino===n.ino&&c.dev===n.dev)throw new Error(d(e,a,o));return t(e,n,l,o)},isSrcSubdir:f}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(154);t.exports={remove:r(i),removeSync:i.sync}},function(t,e,n){(function(){var e,r,i,a,o,s={}.hasOwnProperty;o=n(18),a=o.isObject,i=o.isFunction,r=n(13),e=n(92),t.exports=function(t){function n(t,e,r){if(n.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name");this.name=this.stringify.eleName(e),this.attributes={},null!=r&&this.attribute(r),t.isDocument&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this)}return function(t,e){for(var n in e)s.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,r),n.prototype.clone=function(){var t,e,n,r;for(e in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},r=this.attributes)s.call(r,e)&&(t=r[e],n.attributes[e]=t.clone());return n.children=[],this.children.forEach(function(t){var e;return(e=t.clone()).parent=n,n.children.push(e)}),n},n.prototype.attribute=function(t,n){var r,o;if(null!=t&&(t=t.valueOf()),a(t))for(r in t)s.call(t,r)&&(o=t[r],this.attribute(r,o));else i(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.attributes[t]=new e(this,t,n));return this},n.prototype.removeAttribute=function(t){var e,n,r;if(null==t)throw new Error("Missing attribute name");if(t=t.valueOf(),Array.isArray(t))for(n=0,r=t.length;n>>8;return-1^n}function s(){return t=o.apply(null,arguments),(e=a(4)).writeInt32BE(t,0),e;var t,e}"undefined"!=typeof Int32Array&&(i=new Int32Array(i)),s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},t.exports=s},function(t,e){t.exports=require("os")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.clone=l,e.addLast=p,e.addFirst=h,e.removeLast=f,e.removeFirst=d,e.insert=g,e.removeAt=m,e.replaceAt=b,e.getIn=_,e.set=y,e.setIn=v,e.update=w,e.updateIn=x,e.merge=k,e.mergeDeep=E,e.mergeIn=S,e.omit=T,e.addDefaults=I; +/*! + * Timm + * + * Immutability helpers with fast reads and acceptable writes. + * + * @copyright Guillermo Grau Panea 2016 + * @license MIT + */ +var i="INVALID_ARGS";function a(t){throw new Error(t)}function o(t){var e=Object.keys(t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e}var s={}.hasOwnProperty;function l(t){if(Array.isArray(t))return t.slice();for(var e=o(t),n={},r=0;r3?p-3:0),f=3;f=t.length||e<0?t:t.slice(0,e).concat(t.slice(e+1))}function b(t,e,n){if(t[e]===n)return t;for(var r=t.length,i=Array(r),a=0;a6?o-6:0),l=6;l6?o-6:0),l=6;l7?l-7:0),p=7;p=0||(a[u]=t[u])}return a}function I(t,e,n,r,i,a){for(var o=arguments.length,s=Array(o>6?o-6:0),l=6;l0&&this.height>0?new Buffer(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new a(t),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new o(t),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(l,i),l.sync=s,l.prototype.pack=function(){return this.data&&this.data.length?(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this):(this.emit("error","No data provided"),this)},l.prototype.parse=function(t,e){var n,r;e&&(n=function(t){this.removeListener("error",r),this.data=t,e(null,this)}.bind(this),r=function(t){this.removeListener("parsed",n),e(t,null)}.bind(this),this.once("parsed",n),this.once("error",r));return this.end(t),this},l.prototype.write=function(t){return this._parser.write(t),!0},l.prototype.end=function(t){this._parser.end(t)},l.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)},l.prototype._gamma=function(t){this.gamma=t},l.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},l.bitblt=function(t,e,n,r,i,a,o,s){if(r|=0,i|=0,a|=0,o|=0,s|=0,(n|=0)>t.width||r>t.height||n+i>t.width||r+a>t.height)throw new Error("bitblt reading outside image");if(o>e.width||s>e.height||o+i>e.width||s+a>e.height)throw new Error("bitblt writing outside image");for(var l=0;l"+this.newline},n.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},n.prototype.declaration=function(t,e){var n;return n=this.space(e),n+='",n+=this.newline},n.prototype.docType=function(t,n){var l,c,u,h,f;if(n||(n=0),h=this.space(n),h+="0){for(h+=" [",h+=this.newline,c=0,u=(f=t.children).length;c",h+=this.newline},n.prototype.element=function(t,n){var i,a,o,s,l,c,d,m,b,_,y,v,w;for(d in n||(n=0),w=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m="",m+=(v=this.space(n))+"<"+t.name,b=t.attributes)g.call(b,d)&&(i=b[d],m+=this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?m+=">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+=""+this.newline;else{if(this.dontprettytextnodes)for(o=0,l=(_=t.children).length;o"+this.newline,s=0,c=(y=t.children).length;s"+this.newline}return m},n.prototype.processingInstruction=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},n.prototype.dtdAttList=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdElement=function(t,e){return this.space(e)+""+this.newline},n.prototype.dtdEntity=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.dtdNotation=function(t,e){var n;return n=this.space(e)+""+this.newline},n.prototype.openNode=function(t,e){var n,r,i,a;if(e||(e=0),t instanceof u){for(r in i=this.space(e)+"<"+t.name,a=t.attributes)g.call(a,r)&&(n=a[r],i+=this.attribute(n));return i+=(t.children?">":"/>")+this.newline}return i=this.space(e)+"")+this.newline},n.prototype.closeNode=function(t,e){switch(e||(e=0),!1){case!(t instanceof u):return this.space(e)+""+this.newline;case!(t instanceof c):return this.space(e)+"]>"+this.newline}},n}()}).call(this)},function(t,e,n){var r=n(4);(e=t.exports=n(104)).Stream=r,e.Readable=e,e.Writable=n(105),e.Duplex=n(55),e.Transform=n(106),e.PassThrough=n(246),process.browser||"disable"!==process.env.READABLE_STREAM||(t.exports=n(4))},function(t,e,n){t.exports=s;var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},i=n(5);i.inherits=n(3);var a=n(104),o=n(105);function s(t){if(!(this instanceof s))return new s(t);a.call(this,t),o.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,a),function(t,e){for(var n=0,r=t.length;n + * Build: `lodash modern -o ./dist/lodash.js` + * Copyright 2012-2013 The Dojo Foundation + * Based on Underscore.js 1.5.2 + * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Available under MIT license + */(function(){var i,a=[],o=[],s=0,l=+new Date+"",c=75,u=40,p=" \t\v\f \ufeff\n\r\u2028\u2029 ᠎              ",h=/\b__p \+= '';/g,f=/\b(__p \+=) '' \+/g,d=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,m=/\w*$/,b=/^\s*function[ \n\r\t]+\w/,_=/<%=([\s\S]+?)%>/g,y=RegExp("^["+p+"]*0+(?=.$)"),v=/($^)/,w=/\bthis\b/,x=/['\n\r\t\u2028\u2029\\]/g,k=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],E=0,S="[object Arguments]",T="[object Array]",I="[object Boolean]",O="[object Date]",C="[object Function]",A="[object Number]",M="[object Object]",D="[object RegExp]",P="[object String]",L={};L[C]=!1,L[S]=L[T]=L[I]=L[O]=L[A]=L[M]=L[D]=L[P]=!0;var R={leading:!1,maxWait:0,trailing:!1},B={configurable:!1,enumerable:!1,value:null,writable:!1},N={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},j={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},z=N[typeof window]&&window||this,F=N[typeof e]&&e&&!e.nodeType&&e,U=N[typeof t]&&t&&!t.nodeType&&t,W=(U&&U.exports,N[typeof global]&&global);function G(t,e,n){for(var r=(n||0)-1,i=t?t.length:0;++r-1?0:-1:t?0:-1}function q(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:l+t,i=e[n]||(e[n]={});"object"==n?(i[r]||(i[r]=[])).push(t):i[r]=!0}}function Y(t){return t.charCodeAt(0)}function V(t,e){for(var n=t.criteria,r=e.criteria,i=-1,a=n.length;++is||void 0===o)return 1;if(o=c&&r===G,o=[];if(a){var s=Z(e);s?(r=H,e=s):a=!1}for(;++n-1});return i.pop(),a.pop(),g&&(Q(i),Q(a)),o}function zt(t,e,n,r,i){($t(e)?we:oe)(e,function(e,a){var o,s,l=e,c=t[a];if(e&&((s=$t(e))||fe(e))){for(var u,p=r.length;p--;)if(o=r[p]==e){c=i[p];break}o||(n&&(u=void 0!==(l=n(c,e)))&&(c=l),u||(c=s?$t(c)?c:[]:fe(c)?c:{}),r.push(e),i.push(c),u||zt(c,e,n,r,i))}else n&&void 0===(l=n(c,e))&&(l=e),void 0!==l&&(c=l);t[a]=c})}function Ft(t,e){return t+ct(Tt()*(e-t+1))}function Ut(t,e,n){var r=-1,i=qt(),a=t?t.length:0,o=[],s=!e&&a>=c&&i===G,l=n||s?J():o;for(s&&(i=H,l=Z(l));++r/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:_,variable:"",imports:{_:Ot}},_t||(Pt=function(){function t(){}return function(n){if(pe(n)){t.prototype=n;var r=new t;t.prototype=null}return r||e.Object()}}());var Vt=bt?function(t,e){B.value=e,bt(t,"__bindData__",B),B.value=null}:He;function Zt(t){var e,n;return!(!t||at.call(t)!=M||ue(e=t.constructor)&&!(e instanceof e))&&(ae(t,function(t,e){n=e}),void 0===n||ht.call(t,n))}function Xt(t){return te[t]}function Jt(t){return t&&"object"==typeof t&&"number"==typeof t.length&&at.call(t)==S||!1}var $t=yt||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&at.call(t)==T||!1},Qt=xt?function(t){return pe(t)?xt(t):[]}:function(t){var e,n=t,r=[];if(!n)return r;if(!N[typeof t])return r;for(e in n)ht.call(n,e)&&r.push(e);return r},Kt={"&":"&","<":"<",">":">",'"':""","'":"'"},te=ce(Kt),ee=U("("+Qt(te).join("|")+")","g"),ne=U("["+Qt(Kt).join("")+"]","g"),re=function(t,e,n){var r,i=t,a=i;if(!i)return a;var o=arguments,s=0,l="number"==typeof n?2:o.length;if(l>3&&"function"==typeof o[l-2])var c=Lt(o[--l-1],o[l--],2);else l>2&&"function"==typeof o[l-1]&&(c=o[--l]);for(;++s-1:"number"==typeof a?o=(de(t)?t.indexOf(e,n):i(t,e,n))>-1:oe(t,function(t){if(++r>=n)return!(o=t===e)}),o}var be=Wt(function(t,e,n){ht.call(t,n)?t[n]++:t[n]=1});function _e(t,e,n){var r=!0;e=Ot.createCallback(e,n,3);var i=-1,a=t?t.length:0;if("number"==typeof a)for(;++ii&&(i=s)}else e=null==e&&de(t)?Y:Ot.createCallback(e,n,3),we(t,function(t,n,a){var o=e(t,n,a);o>r&&(r=o,i=t)});return i}var Ie=Se;function Oe(t,e,n,r){if(!t)return n;var i=arguments.length<3;e=Ot.createCallback(e,r,4);var a=-1,o=t.length;if("number"==typeof o)for(i&&(n=t[++a]);++a>>1;n(t[o])1?arguments:arguments[0],e=-1,r=t?Te(Ie(t,"length")):0,i=n(r<0?0:r);++e2?Gt(t,17,tt(arguments,2),null,e):Gt(t,1,null,null,e)}function Ue(t,e,n){var r,a,o,s,l,c,u,p=0,h=!1,f=!0;if(!ue(t))throw new q;if(e=kt(0,e)||0,!0===n){var d=!0;f=!1}else pe(n)&&(d=n.leading,h="maxWait"in n&&(kt(e,n.maxWait)||0),f="trailing"in n?n.trailing:f);var g=function(){var n=e-(Ye()-s);if(n<=0){a&<(a);var h=u;a=c=u=i,h&&(p=Ye(),o=t.apply(l,r),c||a||(r=l=null))}else c=dt(g,n)},m=function(){c&<(c),a=c=u=i,(f||h!==e)&&(p=Ye(),o=t.apply(l,r),c||a||(r=l=null))};return function(){if(r=arguments,s=Ye(),l=this,u=f&&(c||!d),!1===h)var n=d&&!c;else{a||d||(p=s);var i=h-(s-p),b=i<=0;b?(a&&(a=lt(a)),p=s,o=t.apply(l,r)):a||(a=dt(m,i))}return b&&c?c=lt(c):c||e===h||(c=dt(g,e)),n&&(b=!0,o=t.apply(l,r)),!b||c||a||(r=l=null),o}}function We(t){return t}function Ge(t,e,n){var r=!0,i=e&&le(e);e&&(n||i.length)||(null==n&&(n=e),a=Ct,e=t,t=Ot,i=le(e)),!1===n?r=!1:pe(n)&&"chain"in n&&(r=n.chain);var a=t,o=ue(a);we(i,function(n){var i=t[n]=e[n];o&&(a.prototype[n]=function(){var e=this.__chain__,n=this.__wrapped__,o=[n];ft.apply(o,arguments);var s=i.apply(t,o);if(r||e){if(n===s&&pe(s))return this;(s=new a(s)).__chain__=e}return s})})}function He(){}var qe,Ye=Yt(Ye=a.now)&&Ye||function(){return(new a).getTime()},Ve=8==St(p+"08")?St:function(t,e){return St(de(t)?t.replace(y,""):t,e||0)};function Ze(t){return function(e){return e[t]}}function Xe(){return this.__wrapped__}return Ot.after=function(t,e){if(!ue(e))throw new q;return function(){if(--t<1)return e.apply(this,arguments)}},Ot.assign=re,Ot.at=function(t){for(var e=arguments,r=-1,i=Nt(e,!0,!1,1),a=e[2]&&e[2][e[1]]===t?1:i.length,o=n(a);++r1?Nt(arguments,!0,!1,1):le(t),n=-1,r=e.length;++n2?Gt(e,19,tt(arguments,2),null,t):Gt(e,3,null,null,t)},Ot.chain=function(t){return(t=new Ct(t)).__chain__=!0,t},Ot.compact=function(t){for(var e=-1,n=t?t.length:0,r=[];++e=c&&Z(e?t[e]:o)))}var l=t[0],u=-1,p=l?l.length:0,h=[];t:for(;++u3&&"function"==typeof e[n-2])var r=Lt(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);for(var i=tt(arguments,1,n),a=-1,o=J(),s=J();++a-1?t:0;var i=-1,a=n(t);for(e=Lt(e,r,1);++i=2044?2141175677:e-1980<<25|t.getMonth()+1<<21|t.getDate()<<16|t.getHours()<<11|t.getMinutes()<<5|t.getSeconds()/2},n.dosToDate=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},n.fromDosTime=function(t){return n.dosToDate(t.readUInt32LE())},n.getShortBytes=function(t){var e=new Buffer(2);return e.writeUInt16LE(t,0),e},n.getShortBytesValue=function(t,e){return t.readUInt16LE(e)},n.getLongBytes=function(t){var e=new Buffer(4);return e.writeUInt32LE(t,0),e},n.getLongBytesValue=function(t,e){return t.readUInt32LE(e)},n.toDosTime=function(t){return n.getLongBytes(n.dateToDos(t))}},function(t,e,n){t.exports=s;var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},i=n(5);i.inherits=n(3);var a=n(114),o=n(115);function s(t){if(!(this instanceof s))return new s(t);a.call(this,t),o.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,a),function(t,e){for(var n=0,r=t.length;n=10.0.0"},main:"dist/index.js",bin:{ConvertMinecraftJavaTextureToBedrock:"dist/cli.js"},scripts:{build:"webpack",cli:"node dist/cli.js",debug:"webpack --mode=development && node dist/cli.js",test:"webpack --mode=development && mocha tests"}}},function(t,e,n){var r=n(181),i=n(182);t.exports={encode:r,decode:i}},function(t,e,n){var r=n(193),i=n(194);t.exports={encode:r,decode:i}},function(t,e){t.exports={nearestNeighbor:function(t,e){for(var n=t.width,r=t.height,i=e.width,a=e.height,o=t.data,s=e.data,l=0;l0?i[k-4]:2*i[k]-i[k+4],S=i[k],T=i[k+4],I=_0?d[N-4*p]:2*d[N]-d[N+4*p],z=d[N],F=d[N+4*p],U=D1)for(var G=0;G"function"==typeof i[t]);Object.keys(i).forEach(t=>{"promises"!==t&&(e[t]=i[t])}),a.forEach(t=>{e[t]=r(i[t])}),e.exists=function(t,e){return"function"==typeof e?i.exists(t,e):new Promise(e=>i.exists(t,e))},e.read=function(t,e,n,r,a,o){return"function"==typeof o?i.read(t,e,n,r,a,o):new Promise((o,s)=>{i.read(t,e,n,r,a,(t,e,n)=>{if(t)return s(t);o({bytesRead:e,buffer:n})})})},e.write=function(t,e,...n){return"function"==typeof n[n.length-1]?i.write(t,e,...n):new Promise((r,a)=>{i.write(t,e,...n,(t,e,n)=>{if(t)return a(t);r({bytesWritten:e,buffer:n})})})}},function(t,e,n){"use strict";t.exports={copySync:n(148)}},function(t,e,n){"use strict";const r=n(2);function i(t){return(t=r.normalize(r.resolve(t)).split(r.sep)).length>0?t[0]:null}const a=/[<>:"|?*]/;t.exports={getRootPath:i,invalidWin32Path:function(t){const e=i(t);return t=t.replace(e,""),a.test(t)}}},function(t,e,n){"use strict";const r=n(12),i=n(47),a=n(2);t.exports={hasMillisRes:function(t){let e=a.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=a.join(i.tmpdir(),e);const n=new Date(1435410243862);r.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",i=>{if(i)return t(i);r.open(e,"r+",(i,a)=>{if(i)return t(i);r.futimes(a,n,n,n=>{if(n)return t(n);r.close(a,n=>{if(n)return t(n);r.stat(e,(e,n)=>{if(e)return t(e);t(null,n.mtime>1435410243e3)})})})})})},hasMillisResSync:function(){let t=a.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=a.join(i.tmpdir(),t);const e=new Date(1435410243862);r.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");const n=r.openSync(t,"r+");return r.futimesSync(n,e,e),r.closeSync(n),r.statSync(t).mtime>1435410243e3},timeRemoveMillis:function(t){if("number"==typeof t)return 1e3*Math.floor(t/1e3);if(t instanceof Date)return new Date(1e3*Math.floor(t.getTime()/1e3));throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")},utimesMillis:function(t,e,n,i){r.open(t,"r+",(t,a)=>{if(t)return i(t);r.futimes(a,e,n,t=>{r.close(a,e=>{i&&i(t||e)})})})},utimesMillisSync:function(t,e,n){const i=r.openSync(t,"r+");return r.futimesSync(i,e,n),r.closeSync(i)}}},function(t,e,n){"use strict";const r=n(11).fromCallback;t.exports={copy:r(n(152))}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(171),a=n(172),o=n(75),s=n(173),l=n(16),c=n(6),u=function(t,e){if("string"!=typeof t&&!t.hasOwnProperty("url"))throw new Error("Missing url option from options for request method.");var n="object"===(void 0===t?"undefined":r(t))?o.parse(t.url):o.parse(t),c={hostname:n.hostname,port:n.port||("http:"===n.protocol.toLowerCase()?80:443),path:n.path,method:"GET",headers:{},auth:n.auth||null,parse:"none",stream:!1};if("object"===(void 0===t?"undefined":r(t))&&(c=Object.assign(c,t)),c.port=Number(c.port),c.hasOwnProperty("timeout")&&delete c.timeout,!0===c.compressed&&(c.headers["accept-encoding"]="gzip, deflate"),t.hasOwnProperty("form")){if("object"!==r(t.form))throw new Error("phin 'form' option must be of type Object if present.");var u=s.stringify(t.form);c.headers["Content-Type"]="application/x-www-form-urlencoded",c.headers["Content-Length"]=Buffer.byteLength(u),t.data=u}var p=void 0,h=function(t){var n=t;!0===c.compressed&&("gzip"===t.headers["content-encoding"]?n=t.pipe(l.createGunzip()):"deflate"===t.headers["content-encoding"]&&(n=t.pipe(l.createInflate()))),!0===c.stream?(t.stream=n,e&&e(null,t)):(t.body=new Buffer([]),n.on("data",function(e){t.body=Buffer.concat([t.body,e])}),n.on("end",function(){if(e){if("json"===c.parse)try{t.body=JSON.parse(t.body.toString())}catch(n){return void e("Invalid JSON received.",t)}e(null,t)}}))};switch(n.protocol.toLowerCase()){case"http:":p=i.request(c,h);break;case"https:":p=a.request(c,h);break;default:return void(e&&e(new Error("Invalid / unknown URL protocol. Expected HTTP or HTTPS."),null))}if("number"==typeof t.timeout&&p.setTimeout(t.timeout,function(){p.abort(),e&&e(new Error("Timeout has been reached."),null),e=null}),p.on("error",function(t){e&&e(t,null)}),t.hasOwnProperty("data")){var f=t.data;if(!(t.data instanceof Buffer)&&"object"===r(t.data))if("application/x-www-form-urlencoded"===(c.headers["content-type"]||c.headers["Content-Type"]))f=s.stringify(t.data);else try{f=JSON.stringify(t.data)}catch(t){e&&e(new Error("Couldn't stringify object. (Likely due to a circular reference.)"),null)}p.write(f)}p.end()};u.promisified=function(t,e){return new Promise(function(e,n){u(t,function(t,r){t?n(t):e(r)})})},c.promisify&&(u[c.promisify.custom]=u.promisified),t.exports=u},function(t,e){t.exports=require("url")},function(t,e){function n(t,e){switch(t){case 1:return e.nextUInt8();case 3:return e.nextUInt16();case 4:return e.nextUInt32();case 5:return[e.nextUInt32(),e.nextUInt32()];case 6:return e.nextInt8();case 8:return e.nextUInt16();case 9:return e.nextUInt32();case 10:return[e.nextInt32(),e.nextInt32()];case 11:return e.nextFloat();case 12:return e.nextDouble();default:throw new Error("Invalid format while decoding: "+t)}}function r(t,e){var r,i,a=e.nextUInt16(),o=e.nextUInt16(),s=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}}(o),l=e.nextUInt32(),c=s*l;if(c>4&&(e=t.openWithOffset(e.nextUInt32())),2===o){var u=(r=e.nextString(l)).indexOf("\0");-1!==u&&(r=r.substr(0,u))}else if(7===o)r=e.nextBuffer(l);else if(0!==o)for(r=[],i=0;i0&&(this._paused=!1,this.emit("drain"))}.bind(this))},a.prototype.write=function(t,e){return this.writable?(n=Buffer.isBuffer(t)?t:new Buffer(t,e||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",new Error("Stream not writable")),!1);var n},a.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},a.prototype.destroySoon=a.prototype.end,a.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()},a.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},a.prototype._processReadAllowingLess=function(t){this._reads.shift();var e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))},a.prototype._processRead=function(t){this._reads.shift();for(var e=0,n=0,r=new Buffer(t.length);e0&&this._buffers.splice(0,n),this._buffered-=t.length,t.func.call(this,r)},a.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){var t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else{if(!(this._buffered>=t.length))break;this._processRead(t)}}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}},function(t,e,n){"use strict";var r=n(79),i=n(80);function a(t,e,n){var r=t*e;return 8!==n&&(r=Math.ceil(r/(8/n))),r}var o=t.exports=function(t,e){var n=t.width,i=t.height,o=t.interlace,s=t.bpp,l=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],o)for(var c=r.getImagePasses(n,i),u=0;ui?e[a-r]:0;e[a]=o+s}},o.prototype._unFilterType2=function(t,e,n){for(var r=this._lastLine,i=0;ii?e[o-r]:0,u=Math.floor((c+l)/2);e[o]=s+u}},o.prototype._unFilterType4=function(t,e,n){for(var r=this._xComparison,a=r-1,o=this._lastLine,s=0;sa?e[s-r]:0,p=s>a&&o?o[s-r]:0,h=i(u,c,p);e[s]=l+h}},o.prototype._reverseFilterLine=function(t){var e,n=t[0],r=this._images[this._imageIndex],i=r.byteWidth;if(0===n)e=t.slice(1,i+1);else switch(e=new Buffer(i),n){case 1:this._unFilterType1(t,e,i);break;case 2:this._unFilterType2(t,e,i);break;case 3:this._unFilterType3(t,e,i);break;case 4:this._unFilterType4(t,e,i);break;default:throw new Error("Unrecognised filter type - "+n)}this.write(e),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=e,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},function(t,e,n){"use strict";var r=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];e.getImagePasses=function(t,e){for(var n=[],i=t%8,a=e%8,o=(t-i)/8,s=(e-a)/8,l=0;l0&&p>0&&n.push({width:u,height:p,index:l})}return n},e.getInterlaceIterator=function(t){return function(e,n,i){var a=e%r[i].x.length,o=(e-a)/r[i].x.length*8+r[i].x[a],s=n%r[i].y.length;return 4*o+((n-s)/r[i].y.length*8+r[i].y[s])*t*4}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),a=Math.abs(r-e),o=Math.abs(r-n);return i<=a&&i<=o?t:a<=o?e:n}},function(t,e,n){"use strict";var r=n(22),i=n(82),a=t.exports=function(t,e){this._options=t,t.checkCRC=!1!==t.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};a.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},a.prototype._parseSignature=function(t){for(var e=r.PNG_SIGNATURE,n=0;nthis._palette.length)return void this.error(new Error("More transparent colors than palette size"));for(var e=0;e0?this._handleIDAT(n):this._handleChunkEnd()},a.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))},a.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},function(t,e,n){"use strict";var r=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;r[t]=e}}();var i=t.exports=function(){this._crc=-1};i.prototype.write=function(t){for(var e=0;e>>8;return!0},i.prototype.crc32=function(){return-1^this._crc},i.crc32=function(t){for(var e=-1,n=0;n>>8;return-1^e}},function(t,e,n){"use strict";var r=n(79),i=[function(){},function(t,e,n,r){if(r===e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=255},function(t,e,n,r){if(r+1>=e.length)throw new Error("Ran out of data");var i=e[r];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=e[r+1]},function(t,e,n,r){if(r+2>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=255},function(t,e,n,r){if(r+3>=e.length)throw new Error("Ran out of data");t[n]=e[r],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3]}],a=[function(){},function(t,e,n,r){var i=e[0];t[n]=i,t[n+1]=i,t[n+2]=i,t[n+3]=r},function(t,e,n){var r=e[0];t[n]=r,t[n+1]=r,t[n+2]=r,t[n+3]=e[1]},function(t,e,n,r){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=r},function(t,e,n){t[n]=e[0],t[n+1]=e[1],t[n+2]=e[2],t[n+3]=e[3]}];function o(t,e,n,r,a,o){for(var s=t.width,l=t.height,c=t.index,u=0;u>4,n.push(p,u);break;case 2:l=3&h,c=h>>2&3,u=h>>4&3,p=h>>6&3,n.push(p,u,c,l);break;case 1:i=1&h,a=h>>1&1,o=h>>2&1,s=h>>3&1,l=h>>4&1,c=h>>5&1,u=h>>6&1,p=h>>7&1,n.push(p,u,c,l,s,o,a,i)}}return{get:function(t){for(;n.length0&&this._buffer.length;){var t=this._reads[0];if(!this._buffer.length||!(this._buffer.length>=t.length||t.allowLess))break;this._reads.shift();var e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.length))}return this._reads.length>0?new Error("There are some read requests waitng on finished stream"):this._buffer.length>0?new Error("unrecognised content at end of stream"):void 0}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+e[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=function(t,e,n,i){var a=r,o=i+n;t^=-1;for(var s=i;s>>8^a[255&(t^e[s])];return-1^t}},function(t,e,n){"use strict";var r=n(17),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",o=0;o>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n4)c[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},e.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+o[t[n]]>e?n:e}},function(t,e,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(t,e,n){"use strict";t.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}},function(t,e){(function(){t.exports=function(){function t(t,e,n){if(this.options=t.options,this.stringify=t.stringify,null==e)throw new Error("Missing attribute name of element "+t.name);if(null==n)throw new Error("Missing attribute value for attribute "+e+" of element "+t.name);this.name=this.stringify.attName(e),this.value=this.stringify.attValue(n)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.set(t).attribute(this)},t}()}).call(this)},function(t,e){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty;t.exports=function(){function t(t){var r,i,a;for(r in this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,i=t.stringify||{})n.call(i,r)&&(a=i[r],this[r]=a)}return t.prototype.eleName=function(t){return t=""+t||"",this.assertLegalChar(t)},t.prototype.eleText=function(t){return t=""+t||"",this.assertLegalChar(this.elEscape(t))},t.prototype.cdata=function(t){return t=(t=""+t||"").replace("]]>","]]]]>"),this.assertLegalChar(t)},t.prototype.comment=function(t){if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(!(t=""+t||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e;if(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/0?new Array(e).join(this.indent):""},t}()}).call(this)},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e,n){"undefined"!=typeof process&&"renderer"===process.type?t.exports=n(226):t.exports=n(228)},function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,a=i-(r||i);t.diff=a,t.prev=r,t.curr=i,r=i;for(var o=new Array(arguments.length),s=0;s0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),r?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?v(t,o,e,!1):S(t,o)):v(t,o,e,!1))):r||(o.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=w?t=w:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function k(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?r.nextTick(E,t):E(t))}function E(t){h("emit readable"),t.emit("readable"),C(t)}function S(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(T,t,e))}function T(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;ta.length?a.length:t;if(o===a.length?i+=a:i+=a.slice(0,t),0===(t-=o)){o===a.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=a.slice(o));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=l.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var a=r.data,o=t>a.length?a.length:t;if(a.copy(n,n.length-t,0,o),0===(t-=o)){o===a.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=a.slice(o));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function M(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,r.nextTick(D,e,t))}function D(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?M(this):k(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&M(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?A(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&M(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?c:_;function l(e,r){h("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),t.removeListener("close",m),t.removeListener("finish",b),t.removeListener("drain",u),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",_),n.removeListener("data",d),p=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function c(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",l);var u=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,C(t))}}(n);t.on("drain",u);var p=!1;var f=!1;function d(e){h("ondata"),f=!1,!1!==t.write(e)||f||((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==P(i.pipes,t))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function g(e){h("onerror",e),_(),t.removeListener("error",g),0===o(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",b),_()}function b(){h("onfinish"),t.removeListener("close",m),_()}function _(){h("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",m),t.once("finish",b),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a-1?setImmediate:r.nextTick;m.WritableState=g;var s=n(5);s.inherits=n(3);var l={deprecate:n(239)},c=n(99),u=n(44).Buffer,p=global.Uint8Array||function(){};var h,f=n(100);function d(){}function g(t,e){a=a||n(20),t=t||{};var s=e instanceof a;this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var l=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:s&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===t.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,a){--e.pendingcb,n?(r.nextTick(a,i),r.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(a(i),t._writableState.errorEmitted=!0,t.emit("error",i),x(t,e))}(t,n,i,e,a);else{var s=v(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),i?o(_,t,n,s,a):_(t,n,s,a)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(t){if(a=a||n(20),!(h.call(m,this)||this instanceof a))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function b(t,e,n,r,i,a,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function _(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),x(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,a=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)a[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;a.allBuffers=l,b(t,e,!0,e.length,a,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,p=n.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,u,p),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)})}function x(t,e){var n=v(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}s.inherits(m,c),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!h.call(this,t)||this===m&&(t&&t._writableState instanceof g)}})):h=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=t,u.isBuffer(i)||i instanceof p);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=a.defaultEncoding),"function"!=typeof n&&(n=d),a.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var a=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),r.nextTick(i,o),a=!1),a}(this,a,t,n))&&(a.pendingcb++,o=function(t,e,n,r,i,a){if(!n){var o=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,n));return e}(e,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=f.destroy,m.prototype._undestroy=f.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}},function(t,e,n){"use strict";var r=n(44).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=p,e=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=o;var r=n(20),i=n(5);function a(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!a){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&a){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||a||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,a?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,a=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!t||t>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},u.prototype._read=function(t){this.emit("error",new Error("not implemented"))},u.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var o=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:u;function s(t){t===n&&u()}function l(){t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function u(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===a.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},u.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i>o.SHORT_SHIFT&o.SHORT_MASK&o.MODE_MASK},l.prototype.getVersionNeededToExtract=function(){return this.minver},l.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t},l.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t},l.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t},l.prototype.setExternalAttributes=function(t){this.exattr=t>>>0},l.prototype.setExtra=function(t){this.extra=t},l.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof a))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t},l.prototype.setInternalAttributes=function(t){this.inattr=t},l.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t},l.prototype.setName=function(t){t=t.replace(/\\/g,"/").replace(/:/g,"").replace(/^\/+/,""),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t},l.prototype.setPlatform=function(t){this.platform=t},l.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t},l.prototype.setTime=function(t){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=s.dateToDos(t)},l.prototype.setUnixMode=function(t){t&=~o.S_IFDIR;var e=0;this.isDirectory()||(t|=o.S_IFREG),e&=~this.getExternalAttributes(),e|=t<0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!a){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&a){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||a||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,a?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,a=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!t||t>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},u.prototype._read=function(t){this.emit("error",new Error("not implemented"))},u.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var o=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:u;function s(t){t===n&&u()}function l(){t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function u(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===a.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},u.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!a){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&a){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||a||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,a?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,a=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!t||t>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},u.prototype._read=function(t){this.emit("error",new Error("not implemented"))},u.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var o=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:u;function s(t){t===n&&u()}function l(){t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function u(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===a.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},u.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!a){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&a){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||a||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,a?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,a=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!t||t>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},u.prototype._read=function(t){this.emit("error",new Error("not implemented"))},u.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var o=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:u;function s(t){t===n&&u()}function l(){t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function u(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===a.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},u.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i=r?r:n>=0?n:(n+=r)>=0?n:0)).toString(),8);var n,r,a},l=function(t,e,n){return t.slice(e,i(t,0,e,e+n)).toString()},c=function(t){var e=Buffer.byteLength(t),n=Math.floor(Math.log(e)/Math.log(10))+1;return e+n>Math.pow(10,n)&&n++,e+n+t};e.encodePax=function(t){var e="";return t.name&&(e+=c(" path="+t.name+"\n")),t.linkname&&(e+=c(" linkpath="+t.linkname+"\n")),new Buffer(e)},e.decodePax=function(t){for(var e={};t.length;){for(var n=0;n100;){var s=r.indexOf("/");if(-1===s)return null;i+=i?"/"+r.slice(0,s):r.slice(0,s),r=r.slice(s+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(i)>155?null:t.linkname&&Buffer.byteLength(t.linkname)>100?null:(e.write(r),e.write(o(4095&t.mode,6),100),e.write(o(t.uid,6),108),e.write(o(t.gid,6),116),e.write(o(t.size,11),124),e.write(o(t.mtime.getTime()/1e3|0,11),136),e[156]=n+function(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}(t.type),t.linkname&&e.write(t.linkname,157),e.write("ustar\x0000",257),t.uname&&e.write(t.uname,265),t.gname&&e.write(t.gname,297),e.write(o(t.devmajor||0,6),329),e.write(o(t.devminor||0,6),337),i&&e.write(i,345),e.write(o(a(e),6),148),e)},e.decode=function(t){var e=0===t[156]?0:t[156]-n,i=(r(e),l(t,0,100)),o=s(t,100),c=s(t,108),u=s(t,116),p=s(t,124),h=s(t,136),f=0===t[157]?null:l(t,157,100),d=l(t,265,32),g=l(t,297,32),m=s(t,329),b=s(t,337);t[345]&&(i=l(t,345,155)+"/"+i);var _=a(t);if(256===_)return null;if(_!==s(t,148))throw new Error("invalid header");return{name:i,mode:o,uid:c,gid:u,size:p,mtime:new Date(1e3*h),type:r(e),linkname:f,uname:d,gname:g,devmajor:m,devminor:b}}},function(t,e,n){t.exports=p;var r=n(284),i=n(8).Buffer;p.ReadableState=u;var a=n(9).EventEmitter;a.listenerCount||(a.listenerCount=function(t,e){return t.listeners(e).length});var o,s=n(4),l=n(5);l.inherits=n(3);var c=n(6);function u(t,e){var r=n(21),i=(t=t||{}).highWaterMark,a=t.objectMode?16:16384;this.highWaterMark=i||0===i?i:a,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,e instanceof r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o||(o=n(10).StringDecoder),this.decoder=new o(t.encoding),this.encoding=t.encoding)}function p(t){n(21);if(!(this instanceof p))return new p(t);this._readableState=new u(t,this),this.readable=!0,s.call(this)}function h(t,e,n,r,i){var a=function(t,e){var n=null;l.isBuffer(e)||l.isString(e)||l.isNullOrUndefined(e)||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(e,n);if(a)t.emit("error",a);else if(l.isNullOrUndefined(n))e.reading=!1,e.ended||function(t,e){if(e.decoder&&!e.ended){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,g(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!i){var o=new Error("stream.push() after EOF");t.emit("error",o)}else if(e.endEmitted&&i){o=new Error("stream.unshift() after end event");t.emit("error",o)}else!e.decoder||i||r||(n=e.decoder.write(n)),i||(e.reading=!1),e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&g(t)),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=f)t=f;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function g(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?process.nextTick(function(){m(t)}):m(t))}function m(t){c("emit readable"),t.emit("readable"),b(t)}function b(t){var e=t._readableState;if(c("flow",e.flowing),e.flowing)do{var n=t.read()}while(null!==n&&e.flowing)}function _(t,e){var n,r=e.buffer,a=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!t||t>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");e.endEmitted||(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}p.prototype.read=function(t){c("read",t);var e=this._readableState,n=t;if((!l.isNumber(t)||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?y(this):g(this),null;if(0===(t=d(t,e))&&e.ended)return 0===e.length&&y(this),null;var r,i=e.needReadable;return c("need readable",i),(0===e.length||e.length-t0?_(t,e):null,l.isNull(r)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),n!==t&&e.ended&&0===e.length&&y(this),l.isNull(r)||this.emit("data",r),r},p.prototype._read=function(t){this.emit("error",new Error("not implemented"))},p.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,e);var o=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:p;function s(t){c("onunpipe"),t===n&&p()}function l(){c("onend"),t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",s);var u=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a.listenerCount(t,"data")&&(e.flowing=!0,b(t))}}(n);function p(){c("cleanup"),t.removeListener("close",d),t.removeListener("finish",g),t.removeListener("drain",u),t.removeListener("error",f),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",p),n.removeListener("data",h),!i.awaitDrain||t._writableState&&!t._writableState.needDrain||u()}function h(e){c("ondata"),!1===t.write(e)&&(c("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,n.pause())}function f(e){c("onerror",e),m(),t.removeListener("error",f),0===a.listenerCount(t,"error")&&t.emit("error",e)}function d(){t.removeListener("finish",g),m()}function g(){c("onfinish"),t.removeListener("close",d),m()}function m(){c("unpipe"),n.unpipe(t)}return t.on("drain",u),n.on("data",h),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(f):t._events.error=[f,t._events.error]:t.on("error",f),t.once("close",d),t.once("finish",g),t.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),t},p.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i1){for(var n=[],r=0;r0&&_++,b>2)return!1;s&&(Ew&&(w=E,u=x,p=k))}return!s||0!==y&&0!==_&&(!r(t,l,c,a,o)&&!r(s,l,c,a,o)||!r(t,u,p,a,o)&&!r(s,u,p,a,o))}function i(t,e,n,r,i){var c=t[n+3]/255,u=e[r+3]/255,p=l(t[n+0],c),h=l(t[n+1],c),f=l(t[n+2],c),d=l(e[r+0],u),g=l(e[r+1],u),m=l(e[r+2],u),b=a(p,h,f)-a(d,g,m);if(i)return b;var _=o(p,h,f)-o(d,g,m),y=s(p,h,f)-s(d,g,m);return.5053*b*b+.299*_*_+.1957*y*y}function a(t,e,n){return.29889531*t+.58662247*e+.11448223*n}function o(t,e,n){return.59597799*t-.2741761*e-.32180189*n}function s(t,e,n){return.21147017*t-.52261711*e+.31114694*n}function l(t,e){return 255+(t-255)*e}function c(t,e,n,r,i){t[e+0]=n,t[e+1]=r,t[e+2]=i,t[e+3]=255}t.exports=function(t,e,n,o,s,u){u||(u={});for(var p=void 0===u.threshold?.1:u.threshold,h=35215*p*p,f=0,d=0;dh)u.includeAA||!r(t,g,d,o,s,e)&&!r(e,g,d,o,s,t)?(n&&c(n,m,255,0,0),f++):n&&c(n,m,255,255,0);else if(n){var _=l((w=void 0,x=void 0,k=void 0,E=void 0,w=(y=t)[(v=m)+3]/255,x=l(y[v+0],w),k=l(y[v+1],w),E=l(y[v+2],w),a(x,k,E)),.1);c(n,m,_,_,_)}}var y,v,w,x,k,E;return f}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(){return(i=Object.assign||function(t){for(var e=1;e[...t].map(t=>t.charCodeAt(0)),i=r("META-INF/mozilla.rsa"),a=r("[Content_Types].xml"),o=r("_rels/.rels");t.exports=t=>{const e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;const n=(t,n)=>{n=Object.assign({offset:0},n);for(let r=0;rn(r(t),e);if(n([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(n([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(n([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(n([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((n([73,73,42,0])||n([77,77,0,42]))&&n([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(n([73,73,42,0])||n([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n([66,77]))return{ext:"bmp",mime:"image/bmp"};if(n([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(n([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n([80,75,3,4])){if(n([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(n(i,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(s("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(s("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(s("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const t=(t,e=0)=>t.findIndex((t,n,r)=>n>=e&&80===r[n]&&75===r[n+1]&&3===r[n+2]&&4===r[n+3]);let r=0,l=!1,c=null;do{const i=r+30;if(l||(l=n(a,{offset:i})||n(o,{offset:i})),c||(s("word/",{offset:i})?c={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:s("ppt/",{offset:i})?c={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:s("xl/",{offset:i})&&(c={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),l&&c)return c;r=t(e,i)}while(r>=0);if(c)return c}if(n([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(n([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(n([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(n([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(n([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(n([51,103,112,53])||n([0,0,0])&&n([102,116,121,112],{offset:4})&&(n([109,112,52,49],{offset:8})||n([109,112,52,50],{offset:8})||n([105,115,111,109],{offset:8})||n([105,115,111,50],{offset:8})||n([109,109,112,52],{offset:8})||n([77,52,86],{offset:8})||n([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(n([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(n([26,69,223,163])){const t=e.subarray(4,4100),n=t.findIndex((t,e,n)=>66===n[e]&&130===n[e+1]);if(-1!==n){const e=n+3,r=n=>[...n].every((n,r)=>t[e+r]===n.charCodeAt(0));if(r("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(r("webm"))return{ext:"webm",mime:"video/webm"}}}if(n([0,0,0,20,102,116,121,112,113,116,32,32])||n([102,114,101,101],{offset:4})||n([102,116,121,112,113,116,32,32],{offset:4})||n([109,100,97,116],{offset:4})||n([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(n([82,73,70,70])){if(n([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(n([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(n([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(n([0,0,1,186])||n([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(n([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let t=0;t<2&&t>=l,u-=l,m!==a){if(m===o)break;for(var b=ma;)y=d[y]>>8,++_;var v=y;if(h+_+(b!==m?1:0)>r)return void console.log("Warning, gif stream longer than expected.");n[h++]=v;var w=h+=_;for(b!==m&&(n[h++]=v),y=b;_--;)y=d[y],n[--w]=255&y,y>>=8;null!==g&&s<4096&&(d[s++]=g<<8|v,s>=c+1&&l<12&&(++l,c=c<<1|1)),g=m}else s=o+1,c=(1<<(l=i+1))-1,g=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,a=void 0===(r=void 0===r?{}:r).loop?null:r.loop,o=void 0===r.palette?null:r.palette;if(e<=0||n<=0||e>65535||n>65535)throw new Error("Width/Height invalid.");function s(t){var e=t.length;if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.");return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var l=0,c=0;if(null!==o){for(var u=s(o);u>>=1;)++l;if(u=1<=u)throw new Error("Background index out of range.");if(0===c)throw new Error("Background index explicitly passed as 0.")}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==o?128:0)|l,t[i++]=c,t[i++]=0,null!==o)for(var p=0,h=o.length;p>16&255,t[i++]=f>>8&255,t[i++]=255&f}if(null!==a){if(a<0||a>65535)throw new Error("Loop count invalid.");t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=0}var d=!1;this.addFrame=function(e,n,r,a,l,c){if(!0===d&&(--i,d=!1),c=void 0===c?{}:c,e<0||n<0||e>65535||n>65535)throw new Error("x/y invalid.");if(r<=0||a<=0||r>65535||a>65535)throw new Error("Width/Height invalid.");if(l.length>=1;)++f;h=1<3)throw new Error("Disposal out of range.");var b=!1,_=0;if(void 0!==c.transparent&&null!==c.transparent&&(b=!0,(_=c.transparent)<0||_>=h))throw new Error("Transparent color index.");if((0!==m||b||0!==g)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=m<<2|(!0===b?1:0),t[i++]=255&g,t[i++]=g>>8&255,t[i++]=_,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&a,t[i++]=a>>8&255,t[i++]=!0===u?128|f-1:0,!0===u)for(var y=0,v=p.length;y>16&255,t[i++]=w>>8&255,t[i++]=255&w}return i=function(t,e,n,r){t[e++]=n;var i=e++,a=1<=n;)t[e++]=255&p,p>>=8,u-=8,e===i+256&&(t[i]=255,i=e++)}function f(t){p|=t<=8;)t[e++]=255&p,p>>=8,u-=8,e===i+256&&(t[i]=255,i=e++);4096===l?(f(a),l=s+1,c=n+1,g={}):(l>=1<>7,s=1<<1+(7&a);t[e++],t[e++];var l=null,c=null;o&&(l=e,c=s,e+=3*s);var u=!0,p=[],h=0,f=null,d=0,g=null;for(this.width=n,this.height=i;u&&e=0))throw Error("Invalid block size");if(0===O)break;e+=O}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];h=t[e++]|t[e++]<<8,f=t[e++],0==(1&m)&&(f=null),d=m>>2&7,e++;break;case 254:for(;;){if(!((O=t[e++])>=0))throw Error("Invalid block size");if(0===O)break;e+=O}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var b=t[e++]|t[e++]<<8,_=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,k=1<<1+(7&w),E=l,S=c,T=!1;w>>7&&(T=!0,E=e,S=k,e+=3*k);var I=e;for(e++;;){var O;if(!((O=t[e++])>=0))throw Error("Invalid block size");if(0===O)break;e+=O}p.push({x:b,y:_,width:y,height:v,has_local_palette:T,palette_offset:E,palette_size:S,data_offset:I,data_length:e-I,transparent_index:f,interlaced:!!x,delay:h,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return g},this.frameInfo=function(t){if(t<0||t>=p.length)throw new Error("Frame index out of range.");return p[t]},this.decodeAndBlitFrameBGRA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);r(t,a.data_offset,s,o);var l=a.palette_offset,c=a.transparent_index;null===c&&(c=256);var u=a.width,p=n-u,h=u,f=4*(a.y*n+a.x),d=4*((a.y+a.height)*n+a.x),g=f,m=4*p;!0===a.interlaced&&(m+=4*n*7);for(var b=8,_=0,y=s.length;_=d&&(m=4*p+4*n*(b-1),g=f+(u+p)*(b<<1),b>>=1)),v===c)g+=4;else{var w=t[l+3*v],x=t[l+3*v+1],k=t[l+3*v+2];i[g++]=k,i[g++]=x,i[g++]=w,i[g++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,i){var a=this.frameInfo(e),o=a.width*a.height,s=new Uint8Array(o);r(t,a.data_offset,s,o);var l=a.palette_offset,c=a.transparent_index;null===c&&(c=256);var u=a.width,p=n-u,h=u,f=4*(a.y*n+a.x),d=4*((a.y+a.height)*n+a.x),g=f,m=4*p;!0===a.interlaced&&(m+=4*n*7);for(var b=8,_=0,y=s.length;_=d&&(m=4*p+4*n*(b-1),g=f+(u+p)*(b<<1),b>>=1)),v===c)g+=4;else{var w=t[l+3*v],x=t[l+3*v+1],k=t[l+3*v+2];i[g++]=w,i[g++]=x,i[g++]=k,i[g++]=255}--h}}}}catch(t){}},function(t,e){function n(t,e,n,r,i,a,o){this.widthOriginal=Math.abs(Math.floor(t)||0),this.heightOriginal=Math.abs(Math.floor(e)||0),this.targetWidth=Math.abs(Math.floor(n)||0),this.targetHeight=Math.abs(Math.floor(r)||0),this.colorChannels=i?4:3,this.interpolationPass=Boolean(a),this.resizeCallback="function"==typeof o?o:function(){},this.targetWidthMultipliedByChannels=this.targetWidth*this.colorChannels,this.originalWidthMultipliedByChannels=this.widthOriginal*this.colorChannels,this.originalHeightMultipliedByChannels=this.heightOriginal*this.colorChannels,this.widthPassResultSize=this.targetWidthMultipliedByChannels*this.heightOriginal,this.finalResultSize=this.targetWidthMultipliedByChannels*this.targetHeight,this.initialize()}n.prototype.initialize=function(){if(!(this.widthOriginal>0&&this.heightOriginal>0&&this.targetWidth>0&&this.targetHeight>0))throw new Error("Invalid settings specified for the resizer.");this.configurePasses()},n.prototype.configurePasses=function(){this.widthOriginal===this.targetWidth?this.resizeWidth=this.bypassResizer:(this.ratioWeightWidthPass=this.widthOriginal/this.targetWidth,this.ratioWeightWidthPass<1&&this.interpolationPass?(this.initializeFirstPassBuffers(!0),this.resizeWidth=4===this.colorChannels?this.resizeWidthInterpolatedRGBA:this.resizeWidthInterpolatedRGB):(this.initializeFirstPassBuffers(!1),this.resizeWidth=4===this.colorChannels?this.resizeWidthRGBA:this.resizeWidthRGB)),this.heightOriginal===this.targetHeight?this.resizeHeight=this.bypassResizer:(this.ratioWeightHeightPass=this.heightOriginal/this.targetHeight,this.ratioWeightHeightPass<1&&this.interpolationPass?(this.initializeSecondPassBuffers(!0),this.resizeHeight=this.resizeHeightInterpolated):(this.initializeSecondPassBuffers(!1),this.resizeHeight=4===this.colorChannels?this.resizeHeightRGBA:this.resizeHeightRGB))},n.prototype._resizeWidthInterpolatedRGBChannels=function(t,e){var n,r,i=e?4:3,a=this.ratioWeightWidthPass,o=this.widthBuffer,s=0,l=0,c=0,u=0,p=0;for(n=0;s<1/3;n+=i,s+=a)for(l=n,c=0;l=p)){f+=u;break}f=h+=n,u-=p}while(u>0&&h=l)){u+=s;break}u=c=f,s-=l}while(s>0&&c3&&(this.outputWidthWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.heightOriginal)))},n.prototype.initializeSecondPassBuffers=function(t){this.heightBuffer=this.generateUint8Buffer(this.finalResultSize),t||(this.outputHeightWorkBench=this.generateFloatBuffer(this.targetWidthMultipliedByChannels),this.colorChannels>3&&(this.outputHeightWorkBenchOpaquePixelsCount=this.generateFloat64Buffer(this.targetWidth)))},n.prototype.generateFloatBuffer=function(t){try{return new Float32Array(t)}catch(t){return[]}},n.prototype.generateFloat64Buffer=function(t){try{return new Float64Array(t)}catch(t){return[]}},n.prototype.generateUint8Buffer=function(t){try{return new Uint8Array(t)}catch(t){return[]}},t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(2),i=n.n(r),a=n(136),o=n.n(a),s=n(0),l=n(19);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&i.height>0){var a=e.pages[i.page];t.blit(a,n+i.xoffset,r+i.yoffset,i.x,i.y,i.width,i.height)}return t}var h=process.env.DIRNAME||"".concat(t,"/../");e.a=function(){return{constants:{measureText:l.a,measureTextHeight:l.b,FONT_SANS_8_BLACK:i.a.join(h,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),FONT_SANS_10_BLACK:i.a.join(h,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),FONT_SANS_12_BLACK:i.a.join(h,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),FONT_SANS_14_BLACK:i.a.join(h,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),FONT_SANS_16_BLACK:i.a.join(h,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),FONT_SANS_32_BLACK:i.a.join(h,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),FONT_SANS_64_BLACK:i.a.join(h,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),FONT_SANS_128_BLACK:i.a.join(h,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),FONT_SANS_8_WHITE:i.a.join(h,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),FONT_SANS_16_WHITE:i.a.join(h,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),FONT_SANS_32_WHITE:i.a.join(h,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),FONT_SANS_64_WHITE:i.a.join(h,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),FONT_SANS_128_WHITE:i.a.join(h,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"),loadFont:function(t,e){var n=this;return"string"!=typeof t?s.c.call(this,"file must be a string",e):new Promise(function(r,a){e=e||function(t,e){t?a(t):r(e)},o()(t,function(r,a){var o={},l={};if(r)return s.c.call(n,r,e);for(var c=0;co&&(o=s),a.push(e)):(i.push(a),a=[e])}),i.push(a),{lines:i,longestLine:o}}(t,r,i),b=m.lines,_=m.longestLine;return b.forEach(function(r){var a=r.join(" "),o=function(t,e,n,r,i){return i===t.HORIZONTAL_ALIGN_LEFT?0:i===t.HORIZONTAL_ALIGN_CENTER?(r-Object(l.a)(e,n))/2:r-Object(l.a)(e,n)}(d.constructor,t,a,i,h);(function(t,e,n,r,i){for(var a=0;a>2,o=(31&t[e])<<3,s=128&t[e+1]):console.error("cant transform to Pixel"),this.pixels[n]=i,this.pixels[n+1]=a,this.pixels[n+2]=o,this.pixels[n+3]=s}readPixels(){r("readPixels");var t=this.header,e=(t.bytesPerPixel,t.width*t.height),n=new Uint8Array(this.buffer);this.pixels=new Uint8Array(4*e);for(var i=18,a=0;a>16&65535,h=40960==(61440&p),f=16384==(61440&p);f||"/"!==t.fileName.slice(-1)||(f=!0);var d=t.versionMadeBy>>8;f||(f=0===d&&16===t.externalFileAttributes),0===p&&(f?(e.defaultDirMode&&(p=parseInt(e.defaultDirMode,10)),p||(p=493)):(e.defaultFileMode&&(p=parseInt(e.defaultFileMode,10)),p||(p=420))),l("extracting entry",{filename:t.fileName,isDir:f,isSymlink:h});var g=~process.umask(),m=p&g,b=u;f||(b=i.dirname(u)),l("mkdirp",{dir:b}),o(b,function(e){return e?(l("mkdirp error",b,{error:e}),c=!0,n(e)):f?n():(l("opening read stream",u),void a.openReadStream(t,function(t,e){if(t)return l("openReadStream error",t),c=!0,n(t);e.on("error",function(t){console.log("read err",t)}),h?e.pipe(s(function(t){var e=t.toString();l("creating symlink",e,u),r.symlink(e,u,function(t){t&&(c=!0),n(t)})})):function(){var t=r.createWriteStream(u,{mode:m});e.pipe(t),t.on("finish",function(){n()}),t.on("error",function(t){return l("write error",{error:t}),c=!0,n(t)})}()}))})}(t,function(e){if(e)return c=!0,a.close(),n(e);l("finished processing",t.fileName),a.readEntry()})})})}})})})})}},function(t,e,n){var r=n(7),i=n(243);t.exports=function(t,e,n){var a=r.createWriteStream(e),o=i("zip");a.on("close",function(){n()}),o.pipe(a),o.bulk([{cwd:t,src:["**/*"],expand:!0}]),o.finalize(function(t,e){t&&n(t)})}},function(t,e,n){var r=n(141),i=function(){},a=function(t,e,n){if("function"==typeof e)return a(t,null,e);e||(e={}),n=r(n||i);var o=t._writableState,s=t._readableState,l=e.readable||!1!==e.readable&&t.readable,c=e.writable||!1!==e.writable&&t.writable,u=function(){t.writable||p()},p=function(){c=!1,l||n.call(t)},h=function(){l=!1,c||n.call(t)},f=function(e){n.call(t,e?new Error("exited with error code: "+e):null)},d=function(e){n.call(t,e)},g=function(){return(!l||s&&s.ended)&&(!c||o&&o.ended)?void 0:n.call(t,new Error("premature close"))},m=function(){t.req.on("finish",p)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(t)?c&&!o&&(t.on("end",u),t.on("close",u)):(t.on("complete",p),t.on("abort",g),t.req?m():t.on("request",m)),function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length}(t)&&t.on("exit",f),t.on("end",h),t.on("finish",p),!1!==e.error&&t.on("error",d),t.on("close",g),function(){t.removeListener("complete",p),t.removeListener("abort",g),t.removeListener("request",m),t.req&&t.req.removeListener("finish",p),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",p),t.removeListener("exit",f),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",g)}};t.exports=a},function(t,e,n){var r=n(287);function i(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function a(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}t.exports=r(i),t.exports.strict=r(a),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return a(this)},configurable:!0})})},,function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"AUTO",function(){return j}),n.d(r,"HORIZONTAL_ALIGN_LEFT",function(){return z}),n.d(r,"HORIZONTAL_ALIGN_CENTER",function(){return F}),n.d(r,"HORIZONTAL_ALIGN_RIGHT",function(){return U}),n.d(r,"VERTICAL_ALIGN_TOP",function(){return W}),n.d(r,"VERTICAL_ALIGN_MIDDLE",function(){return G}),n.d(r,"VERTICAL_ALIGN_BOTTOM",function(){return H}),n.d(r,"BLEND_SOURCE_OVER",function(){return q}),n.d(r,"BLEND_DESTINATION_OVER",function(){return Y}),n.d(r,"BLEND_MULTIPLY",function(){return V}),n.d(r,"BLEND_SCREEN",function(){return Z}),n.d(r,"BLEND_OVERLAY",function(){return X}),n.d(r,"BLEND_DARKEN",function(){return J}),n.d(r,"BLEND_LIGHTEN",function(){return $}),n.d(r,"BLEND_HARDLIGHT",function(){return Q}),n.d(r,"BLEND_DIFFERENCE",function(){return K}),n.d(r,"BLEND_EXCLUSION",function(){return tt}),n.d(r,"EDGE_EXTEND",function(){return et}),n.d(r,"EDGE_WRAP",function(){return nt}),n.d(r,"EDGE_CROP",function(){return rt});var i={};n.r(i),n.d(i,"srcOver",function(){return it}),n.d(i,"dstOver",function(){return at}),n.d(i,"multiply",function(){return ot}),n.d(i,"screen",function(){return st}),n.d(i,"overlay",function(){return lt}),n.d(i,"darken",function(){return ct}),n.d(i,"lighten",function(){return ut}),n.d(i,"hardLight",function(){return pt}),n.d(i,"difference",function(){return ht}),n.d(i,"exclusion",function(){return ft});var a=class extends Error{};var o=class extends a{};class s{constructor(t,e){if(this.constructor===s)throw new o("Can't instantiate abstract class!");this.path=t,this.temp=e}async input(){}async name(){}}var l=s;var c=class extends a{};class u{constructor(t,e,n=[]){if(this.constructor===u)throw new c("Can't instantiate abstract class!");this.path=t,this.input=e,this.data=n}async convert(){}async*getData(){}}var p=u,h=n(1),f=n.n(h),d=n(2),g=n.n(d);var m=class extends a{};class b{static fromPath(t,e){return g.a.join(e,t)}static log(t){b.verbose&&console.log(t)}static setVerbose(t=!0){b.verbose=t}static toPath(t,e,n){return t.startsWith("./")?g.a.join(g.a.dirname(e),t.substr(2)):g.a.join(n,t)}constructor(){throw new m("Can't instantiate this class!")}}b.verbose=!0;var _=b;var y=class extends p{async convert(){for await(const t of this.getData()){const e=_.fromPath(t,this.path);f.a.existsSync(e)&&(_.log(`Delete ${t}`),await f.a.remove(e))}return[]}async*getData(){const t=["assets","textures/blocks/conduit.png","textures/entity/conduit/break_particle.png","textures/blocks/dried_kelp_bottom.png","textures/blocks/water_overlay.png","textures/entity/cat/cat_collar.png","textures/entity/wolf/wolf_collar.png","bedrock_textures"];for(const e of t)yield e}};var v=class extends y{async*getData(){for(const t of this.data)yield t}},w=n(7),x=n.n(w),k=n(9),E=n.n(k),S=n(0),T=n(25),I=n.n(T),O=n(62),C=n.n(O),A=n(129),M=n.n(A),D=n(24),P=n.n(D),L=n(26),R=n.n(L),B=n(130),N=n.n(B),j=-1,z=1,F=2,U=4,W=8,G=16,H=32,q="srcOver",Y="dstOver",V="multiply",Z="screen",X="overlay",J="darken",$="lighten",Q="hardLight",K="difference",tt="exclusion",et=1,nt=2,rt=3;function it(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(t.r*t.a+e.r*e.a*(1-t.a))/r,g:(t.g*t.a+e.g*e.a*(1-t.a))/r,b:(t.b*t.a+e.b*e.a*(1-t.a))/r,a:r}}function at(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a;return{r:(e.r*e.a+t.r*t.a*(1-e.a))/r,g:(e.g*e.a+t.g*t.a*(1-e.a))/r,b:(e.b*e.a+t.b*t.a*(1-e.a))/r,a:r}}function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(i*s+i*(1-e.a)+s*(1-t.a))/r,g:(a*l+a*(1-e.a)+l*(1-t.a))/r,b:(o*c+o*(1-e.a)+c*(1-t.a))/r,a:r}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-i*s+i*(1-e.a)+s*(1-t.a))/r,g:(a*e.a+l*t.a-a*l+a*(1-e.a)+l*(1-t.a))/r,b:(o*e.a+c*t.a-o*c+o*(1-e.a)+c*(1-t.a))/r,a:r}}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(2*s<=e.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*l<=e.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,b:(2*c<=e.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,a:r}}function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(Math.min(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.min(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,b:(Math.min(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,a:r}}function ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(Math.max(i*e.a,s*t.a)+i*(1-e.a)+s*(1-t.a))/r,g:(Math.max(a*e.a,l*t.a)+a*(1-e.a)+l*(1-t.a))/r,b:(Math.max(o*e.a,c*t.a)+o*(1-e.a)+c*(1-t.a))/r,a:r}}function pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(2*i<=t.a?2*i*s+i*(1-e.a)+s*(1-t.a):i*(1+e.a)+s*(1+t.a)-2*s*i-e.a*t.a)/r,g:(2*a<=t.a?2*a*l+a*(1-e.a)+l*(1-t.a):a*(1+e.a)+l*(1+t.a)-2*l*a-e.a*t.a)/r,b:(2*o<=t.a?2*o*c+o*(1-e.a)+c*(1-t.a):o*(1+e.a)+c*(1+t.a)-2*c*o-e.a*t.a)/r,a:r}}function ht(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(i+s-2*Math.min(i*e.a,s*t.a))/r,g:(a+l-2*Math.min(a*e.a,l*t.a))/r,b:(o+c-2*Math.min(o*e.a,c*t.a))/r,a:r}}function ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.a*=n;var r=e.a+t.a-e.a*t.a,i=t.r*t.a,a=t.g*t.a,o=t.b*t.a,s=e.r*e.a,l=e.g*e.a,c=e.b*e.a;return{r:(i*e.a+s*t.a-2*i*s+i*(1-e.a)+s*(1-t.a))/r,g:(a*e.a+l*t.a-2*a*l+a*(1-e.a)+l*(1-t.a))/r,b:(o*e.a+c*t.a-2*o*c+o*(1-e.a)+c*(1-t.a))/r,a:r}}var dt=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i"));this._originalMime=r.toLowerCase();try{var i=this.getMIME();if(!this.constructor.decoders[i])return S.c.call(this,"Unsupported MIME type: "+i,n);this.bitmap=this.constructor.decoders[i](t)}catch(t){return n.call(this,t,this)}try{this._exif=wt.a.create(t).parse(),function(t){var e=t._exif;if(e&&e.tags&&e.tags.Orientation)switch(t._exif.tags.Orientation){case 1:break;case 2:t.mirror(!0,!1);break;case 3:t.rotate(180,!1);break;case 4:t.mirror(!1,!0);break;case 5:t.rotate(-90,!1).mirror(!0,!1);break;case 6:t.rotate(-90,!1);break;case 7:t.rotate(90,!1).mirror(!0,!1);break;case 8:t.rotate(-270,!1)}}(this)}catch(t){}return n.call(this,null,this),this}function kt(t,e){if(t===j&&(t=this.getMIME()),"string"!=typeof t)return S.c.call(this,"mime must be a string",e);if("function"!=typeof e)return S.c.call(this,"cb must be a function",e);var n,r;if(t=t.toLowerCase(),this._rgba&&this.constructor.hasAlpha[t]?this.bitmap.data=Buffer.from(this.bitmap.data):this.bitmap.data=(n=this.constructor,r=this,new n(r.bitmap.width,r.bitmap.height,r._background).composite(r,0,0).bitmap).data,this.constructor.encoders[t]){var i=this.constructor.encoders[t](this);e.call(this,null,i)}else e.call(this,"Unsupported MIME type: "+t);return this}function Et(t){return dt(kt,this,t)}function St(t,e,n){return(St=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&At(i,n.prototype),i}).apply(null,arguments)}function Tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function It(t,e){for(var n=0;n (HTTP: "+r.statusCode+")";return new Error(a)})}var Ft,Ut={data:null,width:null,height:null},Wt=function(t){function e(){for(var t,n=arguments.length,r=new Array(n),i=0;i-1&&(r[0]=function(t){for(var e=Buffer.alloc(t.byteLength),n=new Uint8Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign(n,{methodName:t,eventName:e}),this.emit("any",n),t&&this.emit(t,n),this.emit(e,n)}},{key:"emitError",value:function(t,e){this.emitMulti(t,"error",e)}},{key:"getHeight",value:function(){return this.bitmap.height}},{key:"getWidth",value:function(){return this.bitmap.width}},{key:"inspect",value:function(){return""}},{key:"toString",value:function(){return"[object Jimp]"}},{key:"getMIME",value:function(){return this._originalMime||e.MIME_PNG}},{key:"getExtension",value:function(){var t=this.getMIME();return(gt[t.toLowerCase()]||[])[0]}},{key:"write",value:function(t,e){var n=this;if(!x.a||!x.a.createWriteStream)throw new Error("Cant access the filesystem. You can use the getBase64 method.");if("string"!=typeof t)return S.c.call(this,"path must be a string",e);if(void 0===e&&(e=jt),"function"!=typeof e)return S.c.call(this,"cb must be a function",e);var r=bt(t)||this.getMIME(),i=g.a.parse(t);return i.dir&&C.a.sync(i.dir),this.getBuffer(r,function(r,i){if(r)return S.c.call(n,r,e);var a=x.a.createWriteStream(t);a.on("open",function(){a.write(i),a.end()}).on("error",function(t){return S.c.call(n,t,e)}),a.on("finish",function(){e.call(n,null,n)})}),this}},{key:"getBase64",value:function(t,n){return t===e.AUTO&&(t=this.getMIME()),"string"!=typeof t?S.c.call(this,"mime must be a string",n):"function"!=typeof n?S.c.call(this,"cb must be a function",n):(this.getBuffer(t,function(e,r){if(e)return S.c.call(this,e,n);var i="data:"+t+";base64,"+r.toString("base64");n.call(this,null,i)}),this)}},{key:"hash",value:function(t,e){if("function"==typeof(t=t||64)&&(e=t,t=64),"number"!=typeof t)return S.c.call(this,"base must be a number",e);if(t<2||t>64)return S.c.call(this,"base must be a number between 2 and 64",e);var n=this.pHash();for(n=I()(I.a.BIN,Lt.slice(0,t))(n);n.length=this.bitmap.width&&(a=this.bitmap.width-1),n<0&&(o=0),n>=this.bitmap.height&&(o=this.bitmap.height-1)),r===e.EDGE_WRAP&&(t<0&&(a=this.bitmap.width+t),t>=this.bitmap.width&&(a=t%this.bitmap.width),n<0&&(a=this.bitmap.height+n),n>=this.bitmap.height&&(o=n%this.bitmap.height));var s=this.bitmap.width*o+a<<2;return(a<0||a>=this.bitmap.width)&&(s=-1),(o<0||o>=this.bitmap.height)&&(s=-1),Object(S.a)(i)&&i.call(this,null,s),s}},{key:"getPixelColor",value:function(t,e,n){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",n);t=Math.round(t),e=Math.round(e);var r=this.getPixelIndex(t,e),i=this.bitmap.data.readUInt32BE(r);return Object(S.a)(n)&&n.call(this,null,i),i}},{key:"setPixelColor",value:function(t,e,n,r){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof n)return S.c.call(this,"hex, x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.getPixelIndex(e,n);return this.bitmap.data.writeUInt32BE(t,i),Object(S.a)(r)&&r.call(this,null,this),this}},{key:"hasAlpha",value:function(){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:Wt;Object.entries(t).forEach(function(t){var n=Tt(t,2),r=n[0],i=n[1];e[r]=i})}function Ht(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wt;Object.entries(t).forEach(function(t){var n=Tt(t,2),r=n[0],i=n[1];e.prototype[r]=i})}function qt(t,e,n){var r="before-"+e,i=e.replace(/e$/,"")+"ed";Wt.prototype[t]=function(){for(var e,a=arguments.length,o=new Array(a),s=0;s3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0;if("function"==typeof r&&(a=r,r={}),!(t instanceof this.constructor))return S.c.call(this,"The source must be a Jimp image",a);if("number"!=typeof e||"number"!=typeof n)return S.c.call(this,"x and y must be numbers",a);var o=r,s=o.mode,l=o.opacitySource,c=o.opacityDest;s||(s=q),("number"!=typeof l||l<0||l>1)&&(l=1),("number"!=typeof c||c<0||c>1)&&(c=1);var u=i[s];e=Math.round(e),n=Math.round(n);var p=this;return 1!==c&&p.opacity(c),t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,i){var a=p.getPixelIndex(e+t,n+r,rt),o=u({r:this.bitmap.data[i+0]/255,g:this.bitmap.data[i+1]/255,b:this.bitmap.data[i+2]/255,a:this.bitmap.data[i+3]/255},{r:p.bitmap.data[a+0]/255,g:p.bitmap.data[a+1]/255,b:p.bitmap.data[a+2]/255,a:p.bitmap.data[a+3]/255},l);p.bitmap.data[a+0]=this.constructor.limit255(255*o.r),p.bitmap.data[a+1]=this.constructor.limit255(255*o.g),p.bitmap.data[a+2]=this.constructor.limit255(255*o.b),p.bitmap.data[a+3]=this.constructor.limit255(255*o.a)}),Object(S.a)(a)&&a.call(this,null,this),this}}),Wt.__extraConstructors=[],Wt.appendConstructorOption=function(t,e,n){Wt.__extraConstructors.push({name:t,test:e,run:n})},Wt.read=function(){for(var t=arguments.length,e=new Array(t),n=0;n255)return S.c.call(this,"r must be between 0 and 255",i);if((e<0||e>255)&&S.c.call(this,"g must be between 0 and 255",i),n<0||n>255)return S.c.call(this,"b must be between 0 and 255",i);if(r<0||r>255)return S.c.call(this,"a must be between 0 and 255",i);t=Math.round(t),n=Math.round(n),e=Math.round(e),r=Math.round(r);var a=t*Math.pow(256,3)+e*Math.pow(256,2)+n*Math.pow(256,1)+r*Math.pow(256,0);return Object(S.a)(i)&&i.call(this,null,a),a},Wt.intToRGBA=function(t,e){if("number"!=typeof t)return S.c.call(this,"i must be a number",e);var n={};return n.r=Math.floor(t/Math.pow(256,3)),n.g=Math.floor((t-n.r*Math.pow(256,3))/Math.pow(256,2)),n.b=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2))/Math.pow(256,1)),n.a=Math.floor((t-n.r*Math.pow(256,3)-n.g*Math.pow(256,2)-n.b*Math.pow(256,1))/Math.pow(256,0)),Object(S.a)(e)&&e.call(this,null,n),n},Wt.cssColorToHex=function(t){return"number"==typeof(t=t||0)?Number(t):parseInt(P()(t).toHex8(),16)},Wt.limit255=function(t){return t=Math.max(t,0),t=Math.min(t,255)},Wt.diff=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;if(!(t instanceof Wt&&e instanceof Wt))return S.c.call(this,"img1 and img2 must be an Jimp images");var r=t.bitmap,i=e.bitmap;if(r.width===i.width&&r.height===i.height||(r.width*r.height>i.width*i.height?t=t.cloneQuiet().resize(i.width,i.height):e=e.cloneQuiet().resize(r.width,r.height)),"number"!=typeof n||n<0||n>1)return S.c.call(this,"threshold must be a number between 0 and 1");var a=new Wt(r.width,r.height,4294967295);return{percent:M()(r.data,i.data,a.bitmap.data,a.bitmap.width,a.bitmap.height,{threshold:n})/(a.bitmap.width*a.bitmap.height),image:a}},Wt.distance=function(t,e){var n=new R.a,r=n.getHash(t),i=n.getHash(e);return n.distance(r,i)},Wt.compareHashes=function(t,e){return(new R.a).distance(t,e)},Wt.colorDiff=function(t,e){var n=function(t){return Math.pow(t,2)},r=Math.max;return 0===t.a||t.a||(t.a=255),0===e.a||e.a||(e.a=255),(r(n(t.r-e.r),n(t.r-e.r-t.a+e.a))+r(n(t.g-e.g),n(t.g-e.g-t.a+e.a))+r(n(t.b-e.b),n(t.b-e.b-t.a+e.a)))/195075},qt("clone","clone",function(t){var e=new Wt(this);return Object(S.a)(t)&&t.call(e,null,e),e}),Yt("background",function(t,e){return"number"!=typeof t?S.c.call(this,"hex must be a hexadecimal rgba value",e):(this._background=t,Object(S.a)(e)&&e.call(this,null,this),this)}),Yt("scan",function(t,e,n,r,i,a){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",a);if("number"!=typeof n||"number"!=typeof r)return S.c.call(this,"w and h must be numbers",a);if("function"!=typeof i)return S.c.call(this,"f must be a function",a);var o=Object(S.b)(this,t,e,n,r,i);return Object(S.a)(a)&&a.call(this,null,o),o}),"BROWSER"===process.env.ENVIRONMENT)&&("undefined"!=typeof window&&"object"===("undefined"==typeof window?"undefined":Pt(window))&&(Ft=window),"undefined"!=typeof self&&"object"===("undefined"==typeof self?"undefined":Pt(self))&&(Ft=self),Ft.Jimp=Wt,Ft.Buffer=Buffer);var Vt=Wt;function Zt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e2&&void 0!==arguments[2]?arguments[2]:50;return{r:(e.r-t.r)*(n/100)+t.r,g:(e.g-t.g)*(n/100)+t.g,b:(e.b-t.b)*(n/100)+t.b}}function Te(t,e){var n=this;return t&&Array.isArray(t)?(t=t.map(function(t){return"xor"!==t.apply&&"mix"!==t.apply||(t.params[0]=P()(t.params[0]).toRgb()),t}),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(r,i,a){var o={r:n.bitmap.data[a],g:n.bitmap.data[a+1],b:n.bitmap.data[a+2]},s=function(t,e){return n.constructor.limit255(o[t]+e)};t.forEach(function(t){if("mix"===t.apply)o=Se(o,t.params[0],t.params[1]);else if("tint"===t.apply)o=Se(o,{r:255,g:255,b:255},t.params[0]);else if("shade"===t.apply)o=Se(o,{r:0,g:0,b:0},t.params[0]);else if("xor"===t.apply)o={r:o.r^t.params[0].r,g:o.g^t.params[0].g,b:o.b^t.params[0].b};else if("red"===t.apply)o.r=s("r",t.params[0]);else if("green"===t.apply)o.g=s("g",t.params[0]);else if("blue"===t.apply)o.b=s("b",t.params[0]);else{var r;if("hue"===t.apply&&(t.apply="spin"),!(o=P()(o))[t.apply])return S.c.call(n,"action "+t.apply+" not supported",e);o=(r=o)[t.apply].apply(r,we(t.params)).toRgb()}}),n.bitmap.data[a]=o.r,n.bitmap.data[a+1]=o.g,n.bitmap.data[a+2]=o.b}),Object(S.a)(e)&&e.call(this,null,this),this):S.c.call(this,"actions must be an array",e)}var Ie=n(135),Oe=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],Ce=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function Ae(t){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Me=function(t,e,n){return 255*(t-e)/(n-e)},De=function(t){return[t.findIndex(function(t){return t>0}),255-t.slice().reverse().findIndex(function(t){return t>0})]};function Pe(t,e,n){if("boolean"!=typeof t||"boolean"!=typeof e)return S.c.call(this,"horizontal and vertical must be Booleans",n);if(t&&e)return this.rotate(180,!0,n);var r=Buffer.alloc(this.bitmap.data.length);return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,a){var o=t?this.bitmap.width-1-n:n,s=e?this.bitmap.height-1-i:i,l=this.bitmap.width*s+o<<2,c=this.bitmap.data.readUInt32BE(a);r.writeUInt32BE(c,l)}),this.bitmap.data=Buffer.from(r),Object(S.a)(n)&&n.call(this,null,this),this}function Le(t){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=0&&p>=0&&l-s>0&&c-p>0){var h=u.getPixelIndex(s,p),f={r:this.bitmap.data[o],g:this.bitmap.data[o+1],b:this.bitmap.data[o+2],a:this.bitmap.data[o+3]},d={r:u.bitmap.data[h],g:u.bitmap.data[h+1],b:u.bitmap.data[h+2],a:u.bitmap.data[h+3]};u.bitmap.data[h]=(f.a*(f.r-d.r)-d.r+255>>8)+d.r,u.bitmap.data[h+1]=(f.a*(f.g-d.g)-d.g+255>>8)+d.g,u.bitmap.data[h+2]=(f.a*(f.b-d.b)-d.b+255>>8)+d.b,u.bitmap.data[h+3]=this.constructor.limit255(d.a+f.a)}}),Object(S.a)(s)&&s.call(this,null,this),this}}},function(){return{rotate:function(t,e,n){return null==e&&(e=!0),"function"==typeof e&&void 0===n&&(n=e,e=!0),"number"!=typeof t?S.c.call(this,"deg must be a number",n):"boolean"!=typeof e&&"string"!=typeof e?S.c.call(this,"mode must be a boolean or a string",n):(function(t,e){var n=(t%=360)*Math.PI/180,r=Math.cos(n),i=Math.sin(n),a=this.bitmap.width,o=this.bitmap.height;if(!0===e||"string"==typeof e){(a=Math.ceil(Math.abs(this.bitmap.width*r)+Math.abs(this.bitmap.height*i))+1)%2!=0&&a++,(o=Math.ceil(Math.abs(this.bitmap.width*i)+Math.abs(this.bitmap.height*r))+1)%2!=0&&o++;var s=this.cloneQuiet();this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)});var l=Math.max(a,o,this.bitmap.width,this.bitmap.height);this.resize(l,l,e),this.blit(s,this.bitmap.width/2-s.bitmap.width/2,this.bitmap.height/2-s.bitmap.height/2)}var c=this.bitmap.width,u=this.bitmap.height,p=Buffer.alloc(this.bitmap.data.length);function h(t,e){return function(n,r){return{x:n+t,y:r+e}}}for(var f=h(-c/2,-u/2),d=h(c/2+.5,u/2+.5),g=1;g<=u;g++)for(var m=1;m<=c;m++){var b=f(m,g),_=d(r*b.x-i*b.y,r*b.y+i*b.x),y=c*(g-1)+m-1<<2;if(_.x>=0&&_.x=0&&_.y1?S.c.call(this,"val must be a number between -1 and +1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t<0?(this.bitmap.data[r]=this.bitmap.data[r]*(1+t),this.bitmap.data[r+1]=this.bitmap.data[r+1]*(1+t),this.bitmap.data[r+2]=this.bitmap.data[r+2]*(1+t)):(this.bitmap.data[r]=this.bitmap.data[r]+(255-this.bitmap.data[r])*t,this.bitmap.data[r+1]=this.bitmap.data[r+1]+(255-this.bitmap.data[r+1])*t,this.bitmap.data[r+2]=this.bitmap.data[r+2]+(255-this.bitmap.data[r+2])*t)}),Object(S.a)(e)&&e.call(this,null,this),this)},contrast:function(t,e){if("number"!=typeof t)return S.c.call(this,"val must be numbers",e);if(t<-1||t>1)return S.c.call(this,"val must be a number between -1 and +1",e);var n=(t+1)/(1-t);function r(t){return(t=Math.floor(n*(t-127)+127))<0?0:t>255?255:t}return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=r(this.bitmap.data[n]),this.bitmap.data[n+1]=r(this.bitmap.data[n+1]),this.bitmap.data[n+2]=r(this.bitmap.data[n+2])}),Object(S.a)(e)&&e.call(this,null,this),this},posterize:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be numbers",e):(t<2&&(t=2),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){this.bitmap.data[r]=Math.floor(this.bitmap.data[r]/255*(t-1))/(t-1)*255,this.bitmap.data[r+1]=Math.floor(this.bitmap.data[r+1]/255*(t-1))/(t-1)*255,this.bitmap.data[r+2]=Math.floor(this.bitmap.data[r+2]/255*(t-1))/(t-1)*255}),Object(S.a)(e)&&e.call(this,null,this),this)},greyscale:Ee,grayscale:Ee,opacity:function(t,e){return"number"!=typeof t?S.c.call(this,"f must be a number",e):t<0||t>1?S.c.call(this,"f must be a number from 0 to 1",e):(this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){var i=this.bitmap.data[r+3]*t;this.bitmap.data[r+3]=i}),Object(S.a)(e)&&e.call(this,null,this),this)},sepia:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){var r=this.bitmap.data[n],i=this.bitmap.data[n+1],a=this.bitmap.data[n+2];a=.272*(r=.393*r+.769*i+.189*a)+.534*(i=.349*r+.686*i+.168*a)+.131*a,this.bitmap.data[n]=r<255?r:255,this.bitmap.data[n+1]=i<255?i:255,this.bitmap.data[n+2]=a<255?a:255}),Object(S.a)(t)&&t.call(this,null,this),this},fade:function(t,e){return"number"!=typeof t?S.c.call(this,"f must be a number",e):t<0||t>1?S.c.call(this,"f must be a number from 0 to 1",e):(this.opacity(1-t),Object(S.a)(e)&&e.call(this,null,this),this)},convolution:function(t,e,n){"function"==typeof e&&void 0===n&&(n=e,e=null),e||(e=this.constructor.EDGE_EXTEND);var r,i,a,o,s,l,c,u,p,h,f=Buffer.from(this.bitmap.data),d=t.length,g=t[0].length,m=Math.floor(d/2),b=Math.floor(g/2),_=-m,y=-b;return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,d,g){o=0,a=0,i=0;for(var v=_;v<=m;v++)for(var w=y;w<=b;w++)u=n+w,p=d+v,r=t[v+m][w+b],-1===(h=this.getPixelIndex(u,p,e))?(c=0,l=0,s=0):(s=this.bitmap.data[h+0],l=this.bitmap.data[h+1],c=this.bitmap.data[h+2]),i+=r*s,a+=r*l,o+=r*c;i<0&&(i=0),a<0&&(a=0),o<0&&(o=0),i>255&&(i=255),a>255&&(a=255),o>255&&(o=255),f[g+0]=i,f[g+1]=a,f[g+2]=o}),this.bitmap.data=f,Object(S.a)(n)&&n.call(this,null,this),this},opaque:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n+3]=255}),Object(S.a)(t)&&t.call(this,null,this),this},pixelate:function(t,e,n,r,i,a){if("function"==typeof e)a=e,i=null,r=null,n=null,e=null;else{if("number"!=typeof t)return S.c.call(this,"size must be a number",a);if(ke(e)&&"number"!=typeof e)return S.c.call(this,"x must be a number",a);if(ke(n)&&"number"!=typeof n)return S.c.call(this,"y must be a number",a);if(ke(r)&&"number"!=typeof r)return S.c.call(this,"w must be a number",a);if(ke(i)&&"number"!=typeof i)return S.c.call(this,"h must be a number",a)}var o=[[1/16,.125,1/16],[.125,.25,.125],[1/16,.125,1/16]];e=e||0,n=n||0,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){e=t*Math.floor(e/t),n=t*Math.floor(n/t);var i=xe(s,o,e,n);this.bitmap.data[r]=i[0],this.bitmap.data[r+1]=i[1],this.bitmap.data[r+2]=i[2]}),Object(S.a)(a)&&a.call(this,null,this),this},convolute:function(t,e,n,r,i,a){if(!Array.isArray(t))return S.c.call(this,"the kernel must be an array",a);if("function"==typeof e)a=e,e=null,n=null,r=null,i=null;else{if(ke(e)&&"number"!=typeof e)return S.c.call(this,"x must be a number",a);if(ke(n)&&"number"!=typeof n)return S.c.call(this,"y must be a number",a);if(ke(r)&&"number"!=typeof r)return S.c.call(this,"w must be a number",a);if(ke(i)&&"number"!=typeof i)return S.c.call(this,"h must be a number",a)}var o=(t.length-1)/2;e=ke(e)?e:o,n=ke(n)?n:o,r=ke(r)?r:this.bitmap.width-e,i=ke(i)?i:this.bitmap.height-n;var s=this.cloneQuiet();return this.scanQuiet(e,n,r,i,function(e,n,r){var i=xe(s,t,e,n);this.bitmap.data[r]=this.constructor.limit255(i[0]),this.bitmap.data[r+1]=this.constructor.limit255(i[1]),this.bitmap.data[r+2]=this.constructor.limit255(i[2])}),Object(S.a)(a)&&a.call(this,null,this),this},color:Te,colour:Te}},Ie.a,function(){return{blur:function(t,e){if("number"!=typeof t)return S.c.call(this,"r must be a number",e);if(t<1)return S.c.call(this,"r must be greater than 0",e);for(var n,r,i,a,o,s,l,c,u,p,h,f,d,g,m=this.bitmap.width-1,b=this.bitmap.height-1,_=t+1,y=Oe[t],v=Ce[t],w=[],x=[],k=[],E=[],T=[],I=[],O=2;O-- >0;){for(f=0,d=0,s=0;sm?m:l)<<2),n+=this.bitmap.data[c++],r+=this.bitmap.data[c++],i+=this.bitmap.data[c++],a+=this.bitmap.data[c];for(o=0;o0?c<<2:0),u=d+T[o],p=d+I[o],n+=this.bitmap.data[u++]-this.bitmap.data[p++],r+=this.bitmap.data[u++]-this.bitmap.data[p++],i+=this.bitmap.data[u++]-this.bitmap.data[p++],a+=this.bitmap.data[u]-this.bitmap.data[p],f++;d+=this.bitmap.width<<2}for(o=0;ob?0:this.bitmap.width],r+=x[h],i+=k[h],a+=E[h];for(f=o<<2,s=0;s>>v,this.bitmap.data[f+3]=g,g>255&&(this.bitmap.data[f+3]=255),g>0?(g=255/g,this.bitmap.data[f]=(n*y>>>v)*g,this.bitmap.data[f+1]=(r*y>>>v)*g,this.bitmap.data[f+2]=(i*y>>>v)*g):(this.bitmap.data[f+2]=0,this.bitmap.data[f+1]=0,this.bitmap.data[f]=0),0===o&&(T[s]=((c=s+_)0?c*this.bitmap.width:0),u=o+T[s],p=o+I[s],n+=w[u]-w[p],r+=x[u]-x[p],i+=k[u]-k[p],a+=E[u]-E[p],f+=this.bitmap.width<<2}}return Object(S.a)(e)&&e.call(this,null,this),this}}},function(t){return t("crop",function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"x and y must be numbers",i);if("number"!=typeof n||"number"!=typeof r)return S.c.call(this,"w and h must be numbers",i);if(t=Math.round(t),e=Math.round(e),n=Math.round(n),r=Math.round(r),0===t&&n===this.bitmap.width){var a=n*e+t<<2,o=a+r*n<<3;this.bitmap.data=this.bitmap.data.slice(a,o)}else{var s=Buffer.allocUnsafe(n*r*4),l=0;this.scanQuiet(t,e,n,r,function(t,e,n){var r=this.bitmap.data.readUInt32BE(n,!0);s.writeUInt32BE(r,l,!0),l+=4}),this.bitmap.data=s}return this.bitmap.width=n,this.bitmap.height=r,Object(S.a)(i)&&i.call(this,null,this),this}),{class:{autocrop:function(){for(var t,e=this.bitmap.width,n=this.bitmap.height,r=0,i=2e-4,a=!0,o=!1,s=0,l=arguments.length;si)break t}h++}u=this.getPixelColor(e,0);t:for(var v=0;vi)break t}f++}u=this.getPixelColor(0,n);t:for(var E=n-1;E>=h+1;E--){for(var T=e-f-1;T>=0;T--){var I=this.getPixelColor(T,E),O=this.constructor.intToRGBA(I);if(this.constructor.colorDiff(p,O)>i)break t}d++}u=this.getPixelColor(e,n);t:for(var C=e-1;C>=0+f+1;C--){for(var A=n-1;A>=0+h;A--){var M=this.getPixelColor(C,A),D=this.constructor.intToRGBA(M);if(this.constructor.colorDiff(p,D)>i)break t}g++}if(g-=r,f-=r,h-=r,d-=r,o){var P=Math.min(f,g),L=Math.min(h,d);g=P,f=P,h=L,d=L}var R=e-(g+f),B=n-(d+h);return g=g>=0?g:0,f=f>=0?f:0,h=h>=0?h:0,d=d>=0?d:0,(a?0!==f&&0!==h&&0!==g&&0!==d:0!==f||0!==h||0!==g||0!==d)&&this.crop(f,h,R,B),Object(S.a)(t)&&t.call(this,null,this),this}}}},function(){return{normalize:function(t){var e=function(){var t={r:new Array(256).fill(0),g:new Array(256).fill(0),b:new Array(256).fill(0)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(e,n,r){t.r[this.bitmap.data[r+0]]++,t.g[this.bitmap.data[r+1]]++,t.b[this.bitmap.data[r+2]]++}),t}.call(this),n={r:De(e.r),g:De(e.g),b:De(e.b)};return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,r){var i=this.bitmap.data[r+0],a=this.bitmap.data[r+1],o=this.bitmap.data[r+2];this.bitmap.data[r+0]=Me(i,n.r[0],n.r[1]),this.bitmap.data[r+1]=Me(a,n.g[0],n.g[1]),this.bitmap.data[r+2]=Me(o,n.b[0],n.b[1])}),Object(S.a)(t)&&t.call(this,null,this),this}}},function(){return{invert:function(t){return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data[n]=255-this.bitmap.data[n],this.bitmap.data[n+1]=255-this.bitmap.data[n+1],this.bitmap.data[n+2]=255-this.bitmap.data[n+2]}),Object(S.a)(t)&&t.call(this,null,this),this}}},function(){return{gaussian:function(t,e){if("number"!=typeof t)return S.c.call(this,"r must be a number",e);if(t<1)return S.c.call(this,"r must be greater than 0",e);for(var n=Math.ceil(2.57*t),r=2*n+1,i=t*t*2,a=i*Math.PI,o=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!(t instanceof this.constructor))return S.c.call(this,"The source must be a Jimp image",r);if("number"!=typeof e||"number"!=typeof n)return S.c.call(this,"x and y must be numbers",r);e=Math.round(e),n=Math.round(n);var i=this.bitmap.width,a=this.bitmap.height,o=this;return t.scanQuiet(0,0,t.bitmap.width,t.bitmap.height,function(t,r,s){var l=e+t,c=n+r;if(l>=0&&c>=0&&lthis.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width;return this.scale(i,n),Object(S.a)(r)&&r.call(this,null,this),this}}},function(){return{displace:function(t,e,n){if("object"!==Le(t)||t.constructor!==this.constructor)return S.c.call(this,"The source must be a Jimp image",n);if("number"!=typeof e)return S.c.call(this,"factor must be a number",n);var r=this.cloneQuiet();return this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(n,i,a){var o=t.bitmap.data[a]/256*e;o=Math.round(o);var s=this.getPixelIndex(n+o,i);this.bitmap.data[s]=r.bitmap.data[a],this.bitmap.data[s+1]=r.bitmap.data[a+1],this.bitmap.data[s+2]=r.bitmap.data[a+2]}),Object(S.a)(n)&&n.call(this,null,this),this}}},function(){return{contain:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"w and h must be numbers",i);"string"==typeof n&&("function"==typeof r&&void 0===i&&(i=r),r=n,n=null),"function"==typeof n&&(void 0===i&&(i=n),r=null,n=null),"function"==typeof r&&void 0===i&&(i=r,r=null);var a=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=n>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return S.c.call(this,"only use one flag per alignment direction",i);var s=a>>1,l=o>>1,c=t/e>this.bitmap.width/this.bitmap.height?e/this.bitmap.height:t/this.bitmap.width,u=this.cloneQuiet().scale(c,r);return this.resize(t,e,r),this.scanQuiet(0,0,this.bitmap.width,this.bitmap.height,function(t,e,n){this.bitmap.data.writeUInt32BE(this._background,n)}),this.blit(u,(this.bitmap.width-u.bitmap.width)/2*s,(this.bitmap.height-u.bitmap.height)/2*l),Object(S.a)(i)&&i.call(this,null,this),this}}},function(){return{cover:function(t,e,n,r,i){if("number"!=typeof t||"number"!=typeof e)return S.c.call(this,"w and h must be numbers",i);n&&"function"==typeof n&&void 0===i?(i=n,n=null,r=null):"function"==typeof r&&void 0===i&&(i=r,r=null);var a=7&(n=n||this.constructor.HORIZONTAL_ALIGN_CENTER|this.constructor.VERTICAL_ALIGN_MIDDLE),o=n>>3;if((0===a||a&a-1)&&(0===o||o&o-1))return S.c.call(this,"only use one flag per alignment direction",i);var s=a>>1,l=o>>1,c=t/e>this.bitmap.width/this.bitmap.height?t/this.bitmap.width:e/this.bitmap.height;return this.scale(c,r),this.crop((this.bitmap.width-t)/2*s,(this.bitmap.height-e)/2*l,t,e),Object(S.a)(i)&&i.call(this,null,this),this}}}],Ne=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vt,n={hasAlpha:{},encoders:{},decoders:{},class:{},constants:{}};function r(t){Object.entries(t).forEach(function(t){var e=$t(t,2),r=e[0],i=e[1];n[r]=Xt({},n[r],i)})}return t.types&&(t.types.forEach(function(t){var e=t();Array.isArray(e.mime)?mt.apply(void 0,Zt(e.mime)):Object.entries(e.mime).forEach(function(t){return mt.apply(void 0,Zt(t))}),delete e.mime,r(e)}),e.decoders=Xt({},e.decoders,n.decoders),e.encoders=Xt({},e.encoders,n.encoders),e.hasAlpha=Xt({},e.hasAlpha,n.hasAlpha)),t.plugins&&t.plugins.forEach(function(t){var e=t(Yt)||{};e.class||e.constants?r(e):r({class:e})}),Ht(n.class,e),Gt(n.constants,e),Vt}({types:[function(){return Object(Qt.mergeDeep)({mime:ee({},"image/jpeg",["jpeg","jpg","jpe"]),constants:{MIME_JPEG:"image/jpeg"},decoders:ee({},"image/jpeg",te.a.decode),encoders:ee({},"image/jpeg",function(t){return te.a.encode(t.bitmap,t._quality).data}),class:{_quality:100,quality:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be a number",e):t<0||t>100?S.c.call(this,"n must be a number 0 - 100",e):(this._quality=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)}}},{mime:re({},"image/png",["png"]),constants:{MIME_PNG:"image/png",PNG_FILTER_AUTO:-1,PNG_FILTER_NONE:0,PNG_FILTER_SUB:1,PNG_FILTER_UP:2,PNG_FILTER_AVERAGE:3,PNG_FILTER_PATH:4},hasAlpha:re({},"image/png",!0),decoders:re({},"image/png",ne.PNG.sync.read),encoders:re({},"image/png",function(t){var e=new ne.PNG({width:t.bitmap.width,height:t.bitmap.height});return e.data=t.bitmap.data,ne.PNG.sync.write(e,{width:t.bitmap.width,height:t.bitmap.height,deflateLevel:t._deflateLevel,deflateStrategy:t._deflateStrategy,filterType:t._filterType,colorType:"number"==typeof t._colorType?t._colorType:t._rgba?6:2,inputHasAlpha:t._rgba})}),class:{_deflateLevel:9,_deflateStrategy:3,_filterType:-1,_colorType:null,deflateLevel:function(t,e){return"number"!=typeof t?S.c.call(this,"l must be a number",e):t<0||t>9?S.c.call(this,"l must be a number 0 - 9",e):(this._deflateLevel=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},deflateStrategy:function(t,e){return"number"!=typeof t?S.c.call(this,"s must be a number",e):t<0||t>3?S.c.call(this,"s must be a number 0 - 3",e):(this._deflateStrategy=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},filterType:function(t,e){return"number"!=typeof t?S.c.call(this,"n must be a number",e):t<-1||t>4?S.c.call(this,"n must be -1 (auto) or a number 0 - 4",e):(this._filterType=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)},colorType:function(t,e){return"number"!=typeof t?S.c.call(this,"s must be a number",e):0!==t&&2!==t&&4!==t&&6!==t?S.c.call(this,"s must be a number 0, 2, 4, 6.",e):(this._colorType=Math.round(t),Object(S.a)(e)&&e.call(this,null,this),this)}}},{mime:oe({},"image/bmp",["bmp"]),constants:{MIME_BMP:"image/bmp",MIME_X_MS_BMP:"image/x-ms-bmp"},decoders:(t={},oe(t,"image/bmp",se),oe(t,"image/x-ms-bmp",se),t),encoders:(e={},oe(e,"image/bmp",le),oe(e,"image/x-ms-bmp",le),e)},{mime:pe({},"image/tiff",["tiff","tif"]),constants:{MIME_TIFF:"image/tiff"},decoders:pe({},"image/tiff",function(t){var e=ue.a.decode(t),n=e[0];ue.a.decodeImages(t,e);var r=ue.a.toRGBA8(n);return{data:Buffer.from(r),width:n.t256[0],height:n.t257[0]}}),encoders:pe({},"image/tiff",function(t){var e=ue.a.encodeImage(t.bitmap.data,t.bitmap.width,t.bitmap.height);return Buffer.from(e)})},{mime:de({},"image/gif",["gif"]),constants:{MIME_GIF:"image/gif"},decoders:de({},"image/gif",function(t){var e=new fe.a.GifReader(t),n=Buffer.alloc(e.width*e.height*4);return e.decodeAndBlitFrameRGBA(0,n),{data:n,width:e.width,height:e.height}})});var t,e}],plugins:[function(t){var e=Be.map(function(e){var n=e(t)||{};return n.class||n.constants||(n={class:n}),n});return Qt.mergeDeep.apply(void 0,Re(e))}]});var je=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=_.fromPath(e,this.path),a=_.toPath(r,i,this.path);let o=null;for(let i=0;i<=n;i++){const a=e+(i.toString().padStart(2,"0")+".png"),s=_.fromPath(a,this.path);if(f.a.existsSync(s)){const e=await Ne.read(s);null===o&&(_.log(`Create atlas ${r}`),o=await Ne.create(e.getWidth(),e.getHeight()*(n+1))),o.composite(e,0,e.getHeight()*i),t.push(a)}}null!==o&&await o.writeAsync(a)}return[[v,t]]}async*getData(){const t=[["textures/items/clock_",63,"./watch_atlas.png"],["textures/items/compass_",31,"./compass_atlas.png"]];for(const e of t)yield e}};var ze=class extends p{async convert(){for await(const t of this.getData()){const e=_.fromPath(t,this.path);if(f.a.existsSync(e)){_.log(`Convert bed ${t}`);const n=await Ne.read(e),r=n.getWidth()/64,i=await Ne.create(n.getWidth(),n.getHeight());i.composite(n.clone().crop(0,0,44*r,22*r),0,0),i.composite(n.clone().crop(0,28*r,44*r,16*r),0,22*r),i.composite(n.clone().crop(22*r,22*r,16*r,6*r),22*r,0),i.composite(n.clone().crop(50*r,0,12*r,12*r),0,38*r),i.composite(n.clone().crop(50*r,12*r,12*r,12*r),12*r,38*r),await i.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/bed/black.png","textures/entity/bed/blue.png","textures/entity/bed/brown.png","textures/entity/bed/cyan.png","textures/entity/bed/gray.png","textures/entity/bed/green.png","textures/entity/bed/light_blue.png","textures/entity/bed/lime.png","textures/entity/bed/magenta.png","textures/entity/bed/orange.png","textures/entity/bed/pink.png","textures/entity/bed/purple.png","textures/entity/bed/red.png","textures/entity/bed/silver.png","textures/entity/bed/white.png","textures/entity/bed/yellow.png"];for(const e of t)yield e}};var Fe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,"",this.path);if(f.a.existsSync(n)){_.log(`Create chest front ${e}`);const t=await Ne.read(n),i=t.getWidth()/64,a=await Ne.create(14*i,14*i);a.composite(t.clone().crop(14*i,14*i,14*i,5*i),0,0),a.composite(t.clone().crop(14*i,34*i,14*i,9*i),0,5*i),a.composite(t.clone().crop(i,i,2*i,4*i),6*i,3*i),await a.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_front.png"],["textures/entity/chest/trapped.png","textures/blocks/trapped_chest_front.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_front.png"]];for(const e of t)yield e}};var Ue=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,"",this.path);if(f.a.existsSync(n)){_.log(`Create chest side ${e}`);const t=await Ne.read(n),i=t.getWidth()/64,a=await Ne.create(14*i,14*i);a.composite(t.clone().crop(28*i,14*i,14*i,5*i),0,0),a.composite(t.clone().crop(28*i,34*i,14*i,9*i),0,5*i),await a.writeAsync(r)}}return[]}async*getData(){const t=[["textures/entity/chest/normal.png","textures/blocks/chest_side.png"],["textures/entity/chest/ender.png","textures/blocks/ender_chest_side.png"]];for(const e of t)yield e}};var We=class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=_.toPath(n,"",this.path);let i=null;for(const[r,a,o]of e){const e=_.fromPath(r,this.path);if(f.a.existsSync(e)){const t=await Ne.read(e);null===i&&(_.log(`Colorize and overlay ${n}`),i=await Ne.create(t.getWidth(),t.getHeight())),Array.isArray(a)&&a.length>=3&&t.scan(0,0,t.getWidth(),t.getHeight(),(e,n,r)=>{t.bitmap.data[r]=t.bitmap.data[r]/255*a[0],t.bitmap.data[r+1]=t.bitmap.data[r+1]/255*a[1],t.bitmap.data[r+2]=t.bitmap.data[r+2]/255*a[2]}),i.composite(t,0,0)}o&&t.push(r)}null!==i&&await i.writeAsync(r)}return[[v,t]]}async*getData(){const t=[[[["textures/models/armor/leather_1.png",[167,105,67]]],"textures/models/armor/cloth_1.png"],[[["textures/models/armor/leather_2.png",[167,105,67]]],"textures/models/armor/cloth_2.png"],[[["textures/blocks/double_plant_fern_top.png",[79,156,37]]],"textures/blocks/double_plant_fern_carried.png"],[[["textures/blocks/double_plant_grass_top.png",[79,156,37]]],"textures/blocks/double_plant_grass_carried.png"],[[["textures/blocks/fern.png",[79,156,37]]],"textures/blocks/fern_carried.png"],[[["textures/blocks/grass_top.png",[120,182,66]]],"textures/blocks/grass_carried.png"],[[["textures/blocks/leaves_acacia.png",[68,177,8]]],"textures/blocks/leaves_acacia_carried.png"],[[["textures/blocks/leaves_big_oak.png",[68,177,8]]],"textures/blocks/leaves_big_oak_carried.png"],[[["textures/blocks/leaves_birch.png",[108,151,71]]],"textures/blocks/leaves_birch_carried.png"],[[["textures/blocks/leaves_jungle.png",[70,176,37]]],"textures/blocks/leaves_jungle_carried.png"],[[["textures/blocks/leaves_oak.png",[68,177,8]]],"textures/blocks/leaves_oak_carried.png"],[[["textures/blocks/leaves_spruce.png",[98,146,98]]],"textures/blocks/leaves_spruce_carried.png"],[[["textures/blocks/tallgrass.png",[79,156,37]]],"textures/blocks/tallgrass_carried.png"],[[["textures/blocks/waterlily.png",[30,128,48]]],"textures/blocks/carried_waterlily.png"],[[["textures/blocks/water_flow_grey.png",[86,132,254]]],"textures/blocks/water_flow.png"],[[["textures/blocks/water_still_grey.png",[161,161,161]]],"textures/blocks/cauldron_water.png"],[[["textures/blocks/water_still_grey.png",[86,132,254]]],"textures/blocks/water_still.png"],[[["textures/blocks/vine.png",[30,128,48]]],"textures/blocks/vine_carried.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_damageBoost.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_heal.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_jump.png"],[[["textures/items/potion_overlay.png",[242,255,202]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_luck.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_regeneration.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_lingering_empty.png"]],"textures/items/potion_bottle_lingering_wither.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[82,76,68]]],"textures/items/map_mansion.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[67,124,111]]],"textures/items/map_monument.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[103,90,173]]],"textures/items/map_nautilus.png"],[[["textures/items/map_filled.png"],["textures/items/map_filled_markings.png",[131,131,131],!0]],"textures/items/map_filled.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_digSpeed.png"],[[["textures/items/potion_overlay.png",[88,148,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_drinkable.png"],[[["textures/items/potion_overlay.png",[255,244,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_fireResistance.png"],[[["textures/items/potion_overlay.png",[106,16,14]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_harm.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,112,114]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_empty.png"]],"textures/items/potion_bottle_wither.png"],[[["textures/blocks/redstone_dust_cross.png"],["textures/blocks/redstone_dust_overlay.png"]],"textures/blocks/redstone_dust_cross.png"],[[["textures/blocks/redstone_dust_line.png"],["textures/blocks/redstone_dust_overlay.png",null,!0]],"textures/blocks/redstone_dust_line.png"],[[["textures/entity/pig/pig.png"],["textures/entity/saddle.png"]],"textures/entity/pig/pig_saddle.png"],[[["textures/items/potion_overlay.png",[88,184,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash.png"],[[["textures/items/potion_overlay.png",[58,130,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_absorption.png"],[[["textures/items/potion_overlay.png",[50,50,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_blindness.png"],[[["textures/items/potion_overlay.png",[134,46,118]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_confusion.png"],[[["textures/items/potion_overlay.png",[232,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_damageBoost.png"],[[["textures/items/potion_overlay.png",[118,104,36]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSlowdown.png"],[[["textures/items/potion_overlay.png",[255,255,106]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_digSpeed.png"],[[["textures/items/potion_overlay.png",[255,255,184]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_fireResistance.png"],[[["textures/items/potion_overlay.png",[212,32,28]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_harm.png"],[[["textures/items/potion_overlay.png",[255,116,112]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_heal.png"],[[["textures/items/potion_overlay.png",[255,198,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_healthBoost.png"],[[["textures/items/potion_overlay.png",[140,186,132]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_hunger.png"],[[["textures/items/potion_overlay.png",[202,208,232]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_invisibility.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_jump.png"],[[["textures/items/potion_overlay.png",[54,255,120]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_levitation.png"],[[["textures/items/potion_overlay.png",[142,172,204]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSlowdown.png"],[[["textures/items/potion_overlay.png",[196,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_moveSpeed.png"],[[["textures/items/potion_overlay.png",[50,50,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_nightVision.png"],[[["textures/items/potion_overlay.png",[124,232,78]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_poison.png"],[[["textures/items/potion_overlay.png",[255,146,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_regeneration.png"],[[["textures/items/potion_overlay.png",[242,110,92]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_resistance.png"],[[["textures/items/potion_overlay.png",[255,58,56]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_saturation.png"],[[["textures/items/potion_overlay.png",[255,255,255]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_slowFall.png"],[[["textures/items/potion_overlay.png",[186,144,156]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_turtleMaster.png"],[[["textures/items/potion_overlay.png",[72,130,242]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_waterBreathing.png"],[[["textures/items/potion_overlay.png",[114,122,114]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_weakness.png"],[[["textures/items/potion_overlay.png",[84,66,62]],["textures/items/potion_bottle_splash_empty.png"]],"textures/items/potion_bottle_splash_wither.png"],[[["textures/items/spawn_egg.png",[65,53,41]],["textures/items/spawn_egg_overlay.png",[13,13,13]]],"textures/items/egg_bat.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[226,220,112]]],"textures/items/egg_blaze.png"],[[["textures/items/spawn_egg.png",[239,200,142]],["textures/items/spawn_egg_overlay.png",[135,101,74]]],"textures/items/egg_cat.png"],[[["textures/items/spawn_egg.png",[10,57,67]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_cave_spider.png"],[[["textures/items/spawn_egg.png",[138,138,138]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_chicken.png"],[[["textures/items/spawn_egg.png",[205,90,18]],["textures/items/spawn_egg_overlay.png",[226,221,212]]],"textures/items/egg_clownfish.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_cod.png"],[[["textures/items/spawn_egg.png",[58,46,33]],["textures/items/spawn_egg_overlay.png",[143,143,143]]],"textures/items/egg_cow.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[0,0,0]]],"textures/items/egg_creeper.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[221,221,221]]],"textures/items/egg_dolphin.png"],[[["textures/items/spawn_egg.png",[71,59,49]],["textures/items/spawn_egg_overlay.png",[119,104,90]]],"textures/items/egg_donkey.png"],[[["textures/items/spawn_egg.png",[123,207,185]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_drowned.png"],[[["textures/items/spawn_egg.png",[177,175,160]],["textures/items/spawn_egg_overlay.png",[103,105,130]]],"textures/items/egg_elderguardian.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[19,19,19]]],"textures/items/egg_enderman.png"],[[["textures/items/spawn_egg.png",[19,19,19]],["textures/items/spawn_egg_overlay.png",[97,97,97]]],"textures/items/egg_endermite.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[27,25,23]]],"textures/items/egg_evoker.png"],[[["textures/items/spawn_egg.png",[166,143,91]],["textures/items/spawn_egg_overlay.png",[203,174,123]]],"textures/items/egg_fish.png"],[[["textures/items/spawn_egg.png",[214,214,214]],["textures/items/spawn_egg_overlay.png",[167,167,167]]],"textures/items/egg_ghast.png"],[[["textures/items/spawn_egg.png",[77,112,98]],["textures/items/spawn_egg_overlay.png",[214,111,43]]],"textures/items/egg_guardian.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[211,203,0]]],"textures/items/egg_horse.png"],[[["textures/items/spawn_egg.png",[102,99,83]],["textures/items/spawn_egg_overlay.png",[197,191,127]]],"textures/items/egg_husk.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[223,223,0]]],"textures/items/egg_lava_slime.png"],[[["textures/items/spawn_egg.png",[165,136,107]],["textures/items/spawn_egg_overlay.png",[136,84,57]]],"textures/items/egg_llama.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_mask.png"],[[["textures/items/spawn_egg.png",[23,2,0]],["textures/items/spawn_egg_overlay.png",[72,45,26]]],"textures/items/egg_mule.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[162,162,162]]],"textures/items/egg_mushroomcow.png"],[[["textures/items/spawn_egg.png"],["textures/items/spawn_egg_overlay.png"]],"textures/items/egg_null.png"],[[["textures/items/spawn_egg.png",[205,191,107]],["textures/items/spawn_egg_overlay.png",[76,60,46]]],"textures/items/egg_ocelot.png"],[[["textures/items/spawn_egg.png",[217,217,215]],["textures/items/spawn_egg_overlay.png",[19,19,25]]],"textures/items/egg_panda.png"],[[["textures/items/spawn_egg.png",[11,143,9]],["textures/items/spawn_egg_overlay.png",[226,0,0]]],"textures/items/egg_parrot.png"],[[["textures/items/spawn_egg.png",[58,70,119]],["textures/items/spawn_egg_overlay.png",[121,226,0]]],"textures/items/egg_phantom.png"],[[["textures/items/spawn_egg.png",[206,142,139]],["textures/items/spawn_egg_overlay.png",[194,88,84]]],"textures/items/egg_pig.png"],[[["textures/items/spawn_egg.png",[201,126,126]],["textures/items/spawn_egg_overlay.png",[67,100,36]]],"textures/items/egg_pigzombie.png"],[[["textures/items/spawn_egg.png",[208,208,208]],["textures/items/spawn_egg_overlay.png",[132,132,128]]],"textures/items/egg_polarbear.png"],[[["textures/items/spawn_egg.png",[211,153,1]],["textures/items/spawn_egg_overlay.png",[49,173,214]]],"textures/items/egg_pufferfish.png"],[[["textures/items/spawn_egg.png",[131,82,55]],["textures/items/spawn_egg_overlay.png",[102,64,43]]],"textures/items/egg_rabbit.png"],[[["textures/items/spawn_egg.png",[137,13,14]],["textures/items/spawn_egg_overlay.png",[12,117,103]]],"textures/items/egg_salmon.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[226,160,160]]],"textures/items/egg_sheep.png"],[[["textures/items/spawn_egg.png",[127,88,127]],["textures/items/spawn_egg_overlay.png",[68,50,73]]],"textures/items/egg_shulker.png"],[[["textures/items/spawn_egg.png",[94,94,94]],["textures/items/spawn_egg_overlay.png",[43,43,43]]],"textures/items/egg_silverfish.png"],[[["textures/items/spawn_egg.png",[166,166,166]],["textures/items/spawn_egg_overlay.png",[65,65,65]]],"textures/items/egg_skeleton.png"],[[["textures/items/spawn_egg.png",[89,89,89]],["textures/items/spawn_egg_overlay.png",[203,203,191]]],"textures/items/egg_skeletonhorse.png"],[[["textures/items/spawn_egg.png",[70,137,53]],["textures/items/spawn_egg_overlay.png",[112,169,97]]],"textures/items/egg_slime.png"],[[["textures/items/spawn_egg.png",[45,39,33]],["textures/items/spawn_egg_overlay.png",[149,12,12]]],"textures/items/egg_spider.png"],[[["textures/items/spawn_egg.png",[29,51,66]],["textures/items/spawn_egg_overlay.png",[99,121,136]]],"textures/items/egg_squid.png"],[[["textures/items/spawn_egg.png",[82,100,101]],["textures/items/spawn_egg_overlay.png",[193,206,205]]],"textures/items/egg_stray.png"],[[["textures/items/spawn_egg.png",[198,198,198]],["textures/items/spawn_egg_overlay.png",[0,155,155]]],"textures/items/egg_turtle.png"],[[["textures/items/spawn_egg.png",[105,124,141]],["textures/items/spawn_egg_overlay.png",[206,210,214]]],"textures/items/egg_vex.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[167,123,101]]],"textures/items/egg_villager.png"],[[["textures/items/spawn_egg.png",[128,133,133]],["textures/items/spawn_egg_overlay.png",[35,83,86]]],"textures/items/egg_vindicator.png"],[[["textures/items/spawn_egg.png",[55,84,130]],["textures/items/spawn_egg_overlay.png",[204,142,41]]],"textures/items/egg_wanderingtrader.png"],[[["textures/items/spawn_egg.png",[45,0,0]],["textures/items/spawn_egg_overlay.png",[72,142,55]]],"textures/items/egg_witch.png"],[[["textures/items/spawn_egg.png",[17,17,17]],["textures/items/spawn_egg_overlay.png",[63,68,68]]],"textures/items/egg_wither.png"],[[["textures/items/spawn_egg.png",[185,181,181]],["textures/items/spawn_egg_overlay.png",[183,155,133]]],"textures/items/egg_wolf.png"],[[["textures/items/spawn_egg.png",[0,150,150]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombie.png"],[[["textures/items/spawn_egg.png",[36,77,47]],["textures/items/spawn_egg_overlay.png",[117,184,113]]],"textures/items/egg_zombiehorse.png"],[[["textures/items/spawn_egg.png",[74,52,44]],["textures/items/spawn_egg_overlay.png",[107,138,90]]],"textures/items/egg_zombievillager.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png"]],"textures/items/tipped_arrow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[214,144,54]]],"textures/items/tipped_arrow_fireres.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[65,10,9]]],"textures/items/tipped_arrow_harm.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[232,34,33]]],"textures/items/tipped_arrow_healing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[123,127,141]]],"textures/items/tipped_arrow_invisibility.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[33,247,74]]],"textures/items/tipped_arrow_leaping.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[49,148,0]]],"textures/items/tipped_arrow_luck.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[30,30,156]]],"textures/items/tipped_arrow_nightvision.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[74,138,46]]],"textures/items/tipped_arrow_poison.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[192,86,161]]],"textures/items/tipped_arrow_regen.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[87,105,125]]],"textures/items/tipped_arrow_slow.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[247,232,202]]],"textures/items/tipped_arrow_slowfalling.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[142,35,34]]],"textures/items/tipped_arrow_strength.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[116,164,186]]],"textures/items/tipped_arrow_swift.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[113,88,96]]],"textures/items/tipped_arrow_turtlemaster.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[45,79,148]]],"textures/items/tipped_arrow_waterbreathing.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[70,75,70]]],"textures/items/tipped_arrow_weakness.png"],[[["textures/items/tipped_arrow_base.png"],["textures/items/tipped_arrow_head.png",[50,39,36]]],"textures/items/tipped_arrow_wither.png"]];for(const e of t)yield e}};var Ge=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);f.a.existsSync(n)&&(_.log(`Copy ${t} to ${e}`),await f.a.copy(n,r))}return[]}async*getData(){const t=[["textures/entity/cat/redtabby.png","./red.png"],["textures/entity/cat/siamesecat.png","./siamese.png"],["textures/entity/cat/tuxedo.png","./blackcat.png"],["textures/blocks/command_block_back_mipmap.png","./command_block.png"],["textures/blocks/fire_0.png","textures/flame_atlas.png"],["textures/blocks/kelp_a.tga","./kelp_b.tga"],["textures/blocks/kelp_a.tga","./kelp_c.tga"],["textures/blocks/kelp_a.tga","./kelp_d.tga"],["textures/blocks/kelp_top.tga","./kelp_top_bulb.tga"],["textures/blocks/lever.png","textures/items/lever.png"],["textures/entity/llama/llama_creamy.png","./llama.png"],["textures/items/skull_banner_pattern.png","./banner_pattern.png"],["textures/ui/sign.png","textures/gui/sign.png"],["textures/entity/creeper/creeper.png","textures/entity/skulls/creeper.png"],["textures/entity/skeleton/skeleton.png","textures/entity/skulls/skeleton.png"],["textures/entity/skeleton/wither_skeleton.png","textures/entity/skulls/wither_skeleton.png"],["textures/entity/zombie/zombie.png","textures/entity/skulls/zombie.png"],["textures/blocks/brick.png","textures/ui/icon_recipe_construction.png"],["textures/blocks/grass_side_carried.png","textures/ui/icon_recipe_nature.png"],["textures/items/bed_red.png","textures/ui/icon_recipe_item.png"],["textures/items/diamond_sword.png","textures/ui/icon_recipe_equipment.png"],["bedrock_textures","./textures"]];for(const e of t)yield e}};var He=class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=_.fromPath(e,this.path),a=_.toPath(n,i,this.path),o=_.toPath(r,i,this.path);if(f.a.existsSync(i)&&f.a.existsSync(a)){_.log("Convert drowned");const t=await Ne.read(i),e=await Ne.read(a),n=t.getWidth()/64;t.composite(e.clone().crop(0,0,32*n,16*n),32*n,0),t.composite(e.clone().crop(0,16*n,64*n,16*n),0,32*n),t.composite(e.clone().crop(16*n,48*n,16*n,16*n),0,48*n),t.composite(e.clone().crop(32*n,48*n,16*n,16*n),48*n,48*n),await t.writeAsync(o)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/zombie/drowned.png","textures/entity/zombie/drowned_outer_layer.png","./drowned.png"]}};var qe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);if(f.a.existsSync(n)){_.log("Convert fishhook");const t=await Ne.read(n),e=t.getWidth()/8,i=await Ne.create(24*e,3*e);i.composite(t.clone().crop(3*e,e,3*e,e),0,0),i.composite(t.clone().crop(3*e,e,e,e),0,e),i.composite(t.clone().crop(2*e,6*e,e,e),e,e),i.composite(t.clone().crop(3*e,e,e,e),2*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),0,2*e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,0),i.composite(t.clone().crop(3*e,e,e,e),3*e,e),i.composite(t.clone().crop(2*e,6*e,e,e),4*e,e),i.composite(t.clone().crop(3*e,e,e,e),5*e,e),i.composite(t.clone().crop(3*e,e,3*e,e),3*e,2*e),i.composite(t.clone().crop(3*e,e,3*e,3*e),6*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),9*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),12*e,0),i.composite(t.clone().crop(3*e,e,3*e,3*e),15*e,0),i.composite(t.clone().crop(2*e,5*e,3*e,3*e),18*e,0),i.composite(t.clone().crop(2*e,6*e,e,e),22*e,2*e),await i.writeAsync(r)}}return[]}async*getData(){yield["textures/entity/fishhook.png","./fishhook.png"]}},Ye=n(67),Ve=n.n(Ye);var Ze=class extends p{async convert(){const t=[];for await(const[e,n,r,i]of this.getData()){_.log(`Create metadata ${n}`);const a=_.fromPath(e,this.path),o=_.toPath(n,a,this.path),s=_.toPath(r,a,this.path);let l="";f.a.existsSync(s)?(l=await f.a.readFile(s,"utf8"),t.push(r)):l=Ve()();const c=_.toPath(i,a,this.path);let u="";f.a.existsSync(c)?(u=await f.a.readFile(c,"utf8"),t.push(i)):u=Ve()();const p=JSON.parse(await f.a.readFile(a,"utf8")),h={format_version:1,header:{description:p.pack.description,name:await this.input.name(),platform_locked:!1,uuid:l,version:[0,0,1]},modules:[{description:p.pack.description,type:"resources",uuid:u,version:[0,0,1]}]};await f.a.writeFile(o,JSON.stringify(h,null,2),"utf8"),t.push(e)}return[[v,t]]}async*getData(){yield["pack.mcmeta","./manifest.json","bedrock_uuid_header","bedrock_uuid_module"]}};var Xe=class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);if(f.a.existsSync(n)){_.log(`Create opaque ${e}`);const t=await Ne.read(n),i=await Ne.create(t.getWidth(),t.getHeight(),"#000000");i.composite(t,0,0),await i.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/leaves_acacia.png","./leaves_acacia_opaque.png"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak_opaque.png"],["textures/blocks/leaves_birch.png","./leaves_birch_opaque.png"],["textures/blocks/leaves_jungle.png","./leaves_jungle_opaque.png"],["textures/blocks/leaves_oak.png","./leaves_oak_opaque.png"],["textures/blocks/leaves_spruce.png","./leaves_spruce_opaque.png"]];for(const e of t)yield e}};var Je=class extends p{async convert(){const t=[];for await(const[e,n,r,i,a]of this.getData()){const o=_.fromPath(e,this.path),s=_.toPath(n,o,this.path),l=_.toPath(r,o,this.path);if(f.a.existsSync(o)&&f.a.existsSync(s)){_.log(`Create translated overlay ${r}`);const t=await Ne.read(o),e=await Ne.read(s);t.scan(0,0,t.getWidth(),t.getHeight(),(n,r,a)=>{(i?255===e.bitmap.data[a+3]:0===t.bitmap.data[a+3])&&(t.bitmap.data[a]=e.bitmap.data[a],t.bitmap.data[a+1]=e.bitmap.data[a+1],t.bitmap.data[a+2]=e.bitmap.data[a+2],t.bitmap.data[a+3]=Math.min(1,e.bitmap.data[a+3]))}),await t.writeAsync(l)}a||t.push(_.toPath(n,e,""))}return[[v,t]]}async*getData(){const t=[["textures/entity/cat/graytabby_tame.png","./allblackcat.png","./allblackcat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./britishshorthair.png","./britishshorthair_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./calico.png","./calico_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./jellie.png","./jellie_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ocelot.png","./ocelot_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./persian.png","./persian_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./ragdoll.png","./ragdoll_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./redtabby.png","./redtabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./siamesecat.png","./siamesecat_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tabby.png","./tabby_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./tuxedo.png","./tuxedo_tame.png",!1,!0],["textures/entity/cat/graytabby_tame.png","./white.png","./white_tame.png",!1,!0],["textures/entity/enderman/enderman.png","./enderman_eyes.png","./enderman.png",!0],["textures/items/fireworks_charge.png","./firework_star.png","./fireworks_charge.png",!1],["textures/blocks/grass_side.png","./grass_side_carried.png","./grass_side.png",!1,!0],["textures/items/leather_boots.png","./leather_boots_overlay.png","./leather_boots.png",!0],["textures/items/leather_chestplate.png","./leather_chestplate_overlay.png","./leather_chestplate.png",!0],["textures/items/leather_helmet.png","./leather_helmet_overlay.png","./leather_helmet.png",!0],["textures/items/leather_leggings.png","./leather_leggings_overlay.png","./leather_leggings.png",!0],["textures/models/armor/leather_1.png","./leather_1_overlay.png","./leather_1.png",!0],["textures/models/armor/leather_2.png","./leather_2_overlay.png","./leather_2.png",!0],["textures/entity/phantom.png","./phantom_eyes.png","./phantom.png",!0],["textures/entity/spider/cave_spider.png","textures/entity/spider_eyes.png","./cave_spider.png",!0,!0],["textures/entity/spider/spider.png","textures/entity/spider_eyes.png","./spider.png",!0],["textures/entity/wolf/wolf_collar.png","./wolf_tame.png","./wolf_tame.png",!1,!0]];for(const e of t)yield e}};var $e=class extends p{async convert(){for await(const[t,e,n,r]of this.getData()){const i=_.fromPath(t,this.path),a=_.fromPath(e,this.path),o=_.fromPath(n,this.path),s=_.toPath(r,"",this.path);if(f.a.existsSync(i)&&f.a.existsSync(a)&&f.a.existsSync(o)){_.log(`Create piston arm ${r}`);const t=await Ne.read(i),e=await Ne.read(a),n=await Ne.read(o),l=t.getWidth()/16,c=await Ne.create(128*l,32*l);c.composite(t,16*l,0),c.composite(e,32*l,0),n.crop(0,0,n.getWidth(),4*l),c.composite(n,0,16*l),c.composite(n,16*l,16*l),c.composite(n,32*l,16*l),c.composite(n,48*l,16*l);const u=n.clone().rotate(-90).crop(1,0,n.getHeight(),8*l);c.composite(u,64*l,4*l),c.composite(u,68*l,4*l),c.composite(u,72*l,4*l),c.composite(u,76*l,4*l);const p=u.clone().crop(0,u.getHeight()-l,u.getWidth(),l),h=n.clone().crop(7*l,0,l,n.getHeight()),f=u.clone().crop(0,2*l,u.getWidth(),4*l);c.composite(p,70*l,18*l),c.composite(p,74*l,18*l),c.composite(p,78*l,18*l),c.composite(h,70*l,19*l),c.composite(h,75*l,19*l),c.composite(h,76*l,19*l),c.composite(h,81*l,19*l),c.composite(p,70*l,23*l),c.composite(p,74*l,23*l),c.composite(p,78*l,23*l),c.composite(p,64*l,24*l),c.composite(p,68*l,24*l),c.composite(p,72*l,24*l),c.composite(p,76*l,24*l),c.composite(p,80*l,24*l),c.composite(p,84*l,24*l),c.composite(h,64*l,25*l),c.composite(h,64*l,29*l),c.composite(h,69*l,25*l),c.composite(h,69*l,29*l),c.composite(h,70*l,25*l),c.composite(h,70*l,29*l),c.composite(h,75*l,25*l),c.composite(h,75*l,29*l),c.composite(h,76*l,25*l),c.composite(h,76*l,29*l),c.composite(h,81*l,25*l),c.composite(h,81*l,29*l),c.composite(h,82*l,25*l),c.composite(h,82*l,29*l),c.composite(h,87*l,25*l),c.composite(h,87*l,29*l),c.composite(f,65*l,25*l),c.composite(f,65*l,29*l),c.composite(f,71*l,25*l),c.composite(f,71*l,29*l),c.composite(f,77*l,25*l),c.composite(f,77*l,29*l),c.composite(f,83*l,25*l),c.composite(f,83*l,29*l),await c.writeAsync(s)}}return[]}async*getData(){const t=[["textures/blocks/piston_top_normal.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArm.png"],["textures/blocks/piston_top_sticky.png","textures/blocks/piston_top_normal.png","textures/blocks/piston_side.png","textures/entity/pistonarm/pistonArmSticky.png"]];for(const e of t)yield e}};var Qe=class extends p{async convert(){for await(const[t,e,n,r,i,a,o,s]of this.getData()){const l=_.fromPath(t,this.path),c=_.toPath(o,l,this.path);if(f.a.existsSync(l)){_.log(`Create placeholder ${o}`);let t=await Ne.read(l);const u=t.getWidth()/a;if(t.crop(e*u,n*u,r*u,i*u),!s){const e=Math.max(r,i);t=(await Ne.create(e*u,e*u)).composite(t,(e*u-r*u)/2,(e*u-i*u)/2)}await t.writeAsync(c)}}return[]}async*getData(){const t=[["textures/entity/bed/red.png",2,6,14,14,64,"textures/blocks/bed_head_top.png"],["textures/entity/bed/red.png",0,6,6,14,64,"textures/blocks/bed_head_side.png"],["textures/entity/bed/red.png",6,0,14,6,64,"textures/blocks/bed_head_end.png"],["textures/entity/bed/red.png",2,20,14,14,64,"textures/blocks/bed_feet_top.png"],["textures/entity/bed/red.png",22,0,14,6,64,"textures/blocks/bed_feet_end.png"],["textures/entity/bed/red.png",0,20,6,14,64,"textures/blocks/bed_feet_side.png"],["textures/entity/bed/black.png",6,6,16,32,64,"textures/items/bed_black.png"],["textures/entity/bed/blue.png",6,6,16,32,64,"textures/items/bed_blue.png"],["textures/entity/bed/brown.png",6,6,16,32,64,"textures/items/bed_brown.png"],["textures/entity/bed/cyan.png",6,6,16,32,64,"textures/items/bed_cyan.png"],["textures/entity/bed/gray.png",6,6,16,32,64,"textures/items/bed_gray.png"],["textures/entity/bed/green.png",6,6,16,32,64,"textures/items/bed_green.png"],["textures/entity/bed/light_blue.png",6,6,16,32,64,"textures/items/bed_light_blue.png"],["textures/entity/bed/lime.png",6,6,16,32,64,"textures/items/bed_lime.png"],["textures/entity/bed/magenta.png",6,6,16,32,64,"textures/items/bed_magenta.png"],["textures/entity/bed/orange.png",6,6,16,32,64,"textures/items/bed_orange.png"],["textures/entity/bed/pink.png",6,6,16,32,64,"textures/items/bed_pink.png"],["textures/entity/bed/purple.png",6,6,16,32,64,"textures/items/bed_purple.png"],["textures/entity/bed/red.png",6,6,16,32,64,"textures/items/bed_red.png"],["textures/entity/bed/silver.png",6,6,16,32,64,"textures/items/bed_silver.png"],["textures/entity/bed/white.png",6,6,16,32,64,"textures/items/bed_white.png"],["textures/entity/bed/yellow.png",6,6,16,32,64,"textures/items/bed_yellow.png"],["textures/entity/chest/normal.png",14,0,14,14,64,"textures/blocks/chest_top.png"],["textures/entity/chest/ender.png",14,0,14,14,64,"textures/blocks/ender_chest_top.png"],["textures/blocks/chain_command_block_back.png",0,0,16,16,16,"./chain_command_block_back_mipmap.png"],["textures/blocks/chain_command_block_conditional.png",0,0,16,16,16,"./chain_command_block_conditional_mipmap.png"],["textures/blocks/chain_command_block_front.png",0,0,16,16,16,"./chain_command_block_front_mipmap.png"],["textures/blocks/chain_command_block_side.png",0,0,16,16,16,"./chain_command_block_side_mipmap.png"],["textures/blocks/command_block_back.png",0,0,16,16,16,"./command_block_back_mipmap.png"],["textures/blocks/command_block_conditional.png",0,0,16,16,16,"./command_block_conditional_mipmap.png"],["textures/blocks/command_block_front.png",0,0,16,16,16,"./command_block_front_mipmap.png"],["textures/blocks/command_block_side.png",0,0,16,16,16,"./command_block_side_mipmap.png"],["textures/blocks/repeating_command_block_back.png",0,0,16,16,16,"./repeating_command_block_back_mipmap.png"],["textures/blocks/repeating_command_block_conditional.png",0,0,16,16,16,"./repeating_command_block_conditional_mipmap.png"],["textures/blocks/repeating_command_block_front.png",0,0,16,16,16,"./repeating_command_block_front_mipmap.png"],["textures/blocks/repeating_command_block_side.png",0,0,16,16,16,"./repeating_command_block_side_mipmap.png"],["textures/items/compass_atlas.png",0,0,16,16,16,"./compass_item.png"],["textures/items/watch_atlas.png",0,0,16,16,16,"./clock_item.png"],["textures/entity/sign_acacia.png",2,2,24,12,64,"textures/ui/sign_acacia.png",!0],["textures/entity/sign_birch.png",2,2,24,12,64,"textures/ui/sign_birch.png",!0],["textures/entity/sign_darkoak.png",2,2,24,12,64,"textures/ui/sign_darkoak.png",!0],["textures/entity/sign_jungle.png",2,2,24,12,64,"textures/ui/sign_jungle.png",!0],["textures/entity/sign.png",2,2,24,12,64,"textures/ui/sign.png",!0],["textures/entity/sign_spruce.png",2,2,24,12,64,"textures/ui/sign_spruce.png",!0],["textures/blocks/cauldron_water.png",0,0,16,16,16,"./cauldron_water_placeholder.png"],["textures/blocks/fire_0.png",0,0,16,16,16,"./fire_0_placeholder.png"],["textures/blocks/fire_1.png",0,0,16,16,16,"./fire_1_placeholder.png"],["textures/blocks/lava_still.png",0,0,16,16,16,"./lava_placeholder.png"],["textures/blocks/portal.png",0,0,16,16,16,"./portal_placeholder.png"],["textures/blocks/water_still.png",0,0,16,16,16,"./water_placeholder.png"],["textures/entity/pig/pigzombie.png",0,0,64,32,64,"./pigzombie.png",!0],["textures/entity/zombie/husk.png",0,0,64,32,64,"./husk.png",!0],["textures/entity/zombie/zombie.png",0,0,64,32,64,"./zombie.png",!0]];for(const e of t)yield e}},Ke=n(137),tn=n.n(Ke);async function en(...t){for(const e of t)nn.push(e)}const nn=[[Ze,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);f.a.existsSync(n)&&(_.log(`Rename ${t} to ${e}`),f.a.existsSync(g.a.dirname(r))||await f.a.mkdir(g.a.dirname(r)),await f.a.rename(n,r))}return[]}async*getData(){const t=[["pack.png","./pack_icon.png"],["assets/minecraft/textures","textures"],["textures/block","./blocks"],["textures/item","./items"],["textures/blocks/andesite.png","./stone_andesite.png"],["textures/blocks/polished_andesite.png","./stone_andesite_smooth.png"],["textures/blocks/anvil.png","./anvil_base.png"],["textures/blocks/anvil_top.png","./anvil_top_damaged_0.png"],["textures/blocks/chipped_anvil_top.png","./anvil_top_damaged_1.png"],["textures/blocks/damaged_anvil_top.png","./anvil_top_damaged_2.png"],["textures/items/golden_apple.png","./apple_golden.png"],["textures/entity/armorstand/wood.png","textures/entity/armor_stand.png"],["textures/entity/elytra.png","textures/models/armor/elytra.png"],["textures/items/golden_axe.png","./gold_axe.png"],["textures/items/golden_boots.png","./gold_boots.png"],["textures/items/golden_chestplate.png","./gold_chestplate.png"],["textures/items/golden_helmet.png","./gold_helmet.png"],["textures/items/golden_hoe.png","./gold_hoe.png"],["textures/items/golden_horse_armor.png","./gold_horse_armor.png"],["textures/items/golden_leggings.png","./gold_leggings.png"],["textures/items/golden_pickaxe.png","./gold_pickaxe.png"],["textures/items/golden_shovel.png","./gold_shovel.png"],["textures/items/golden_sword.png","./gold_sword.png"],["textures/items/wooden_axe.png","./wood_axe.png"],["textures/items/wooden_hoe.png","./wood_hoe.png"],["textures/items/wooden_pickaxe.png","./wood_pickaxe.png"],["textures/items/wooden_shovel.png","./wood_shovel.png"],["textures/items/wooden_sword.png","./wood_sword.png"],["textures/models/armor/chainmail_layer_1.png","./chain_1.png"],["textures/models/armor/chainmail_layer_2.png","./chain_2.png"],["textures/models/armor/diamond_layer_1.png","./diamond_1.png"],["textures/models/armor/diamond_layer_2.png","./diamond_2.png"],["textures/models/armor/gold_layer_1.png","./gold_1.png"],["textures/models/armor/gold_layer_2.png","./gold_2.png"],["textures/models/armor/iron_layer_1.png","./iron_1.png"],["textures/models/armor/iron_layer_2.png","./iron_2.png"],["textures/models/armor/leather_layer_1.png","./leather_1.png"],["textures/models/armor/leather_layer_1_overlay.png","./leather_1_overlay.png"],["textures/models/armor/leather_layer_2.png","./leather_2.png"],["textures/models/armor/leather_layer_2_overlay.png","./leather_2_overlay.png"],["textures/models/armor/turtle_layer_1.png","./turtle_1.png"],["textures/entity/arrow.png","./arrows.png"],["textures/blocks/bamboo_large_leaves.png","./bamboo_leaf.png"],["textures/blocks/bamboo_small_leaves.png","./bamboo_small_leaf.png"],["textures/blocks/bamboo_stage0.png","./bamboo_sapling.png"],["textures/blocks/bamboo_stalk.png","./bamboo_stem.png"],["textures/items/barrier.png","textures/blocks/barrier.png"],["textures/entity/bear/polarbear.png","textures/entity/polarbear.png"],["textures/entity/bed/light_gray.png","./silver.png"],["textures/blocks/beetroots_stage0.png","./beetroots_stage_0.png"],["textures/blocks/beetroots_stage1.png","./beetroots_stage_1.png"],["textures/blocks/beetroots_stage2.png","./beetroots_stage_2.png"],["textures/blocks/beetroots_stage3.png","./beetroots_stage_3.png"],["textures/entity/bell/bell_body.png","./bell.png"],["textures/items/bell.png","./villagebell.png"],["textures/entity/boat/acacia.png","./boat_acacia.png"],["textures/entity/boat/birch.png","./boat_birch.png"],["textures/entity/boat/dark_oak.png","./boat_darkoak.png"],["textures/entity/boat/jungle.png","./boat_jungle.png"],["textures/entity/boat/oak.png","./boat_oak.png"],["textures/entity/boat/spruce.png","./boat_spruce.png"],["textures/items/acacia_boat.png","./boat_acacia.png"],["textures/items/birch_boat.png","./boat_birch.png"],["textures/items/dark_oak_boat.png","./boat_darkoak.png"],["textures/items/jungle_boat.png","./boat_jungle.png"],["textures/items/oak_boat.png","./boat_oak.png"],["textures/items/spruce_boat.png","./boat_spruce.png"],["textures/items/bone_meal.png","./dye_powder_white.png"],["textures/items/book.png","./book_normal.png"],["textures/items/enchanted_book.png","./book_enchanted.png"],["textures/items/knowledge_book.png","./book_knowledge.png"],["textures/items/writable_book.png","./book_writable.png"],["textures/items/written_book.png","./book_written.png"],["textures/items/bow.png","./bow_standby.png"],["textures/blocks/bricks.png","./brick.png"],["textures/items/bucket.png","./bucket_empty.png"],["textures/items/cod_bucket.png","./bucket_cod.png"],["textures/items/lava_bucket.png","./bucket_lava.png"],["textures/items/milk_bucket.png","./bucket_milk.png"],["textures/items/pufferfish_bucket.png","./bucket_pufferfish.png"],["textures/items/salmon_bucket.png","./bucket_salmon.png"],["textures/items/tropical_fish_bucket.png","./bucket_tropical.png"],["textures/items/water_bucket.png","./bucket_water.png"],["textures/blocks/campfire_fire.png","./campfire.png"],["textures/blocks/carrots_stage0.png","./carrots_stage_0.png"],["textures/blocks/carrots_stage1.png","./carrots_stage_1.png"],["textures/blocks/carrots_stage2.png","./carrots_stage_2.png"],["textures/blocks/carrots_stage3.png","./carrots_stage_3.png"],["textures/items/golden_carrot.png","./carrot_golden.png"],["textures/entity/cat/all_black.png","./allblackcat.png"],["textures/entity/cat/black.png","./tuxedo.png"],["textures/entity/cat/british_shorthair.png","./britishshorthair.png"],["textures/entity/cat/cat_collar.png","./graytabby_tame.png"],["textures/entity/cat/red.png","./redtabby.png"],["textures/entity/cat/siamese.png","./siamesecat.png"],["textures/entity/chest/normal_double.png","./double_normal.png"],["textures/items/popped_chorus_fruit.png","./chorus_fruit_popped.png"],["textures/blocks/mossy_cobblestone.png","./cobblestone_mossy.png"],["textures/blocks/cobweb.png","./web.png"],["textures/blocks/cocoa_stage0.png","./cocoa_stage_0.png"],["textures/blocks/cocoa_stage1.png","./cocoa_stage_1.png"],["textures/blocks/cocoa_stage2.png","./cocoa_stage_2.png"],["textures/items/cocoa_beans.png","./dye_powder_brown.png"],["textures/blocks/comparator.png","./comparator_off.png"],["textures/blocks/composter_compost.png","./compost.png"],["textures/blocks/composter_ready.png","./compost_ready.png"],["textures/blocks/black_concrete.png","./concrete_black.png"],["textures/blocks/blue_concrete.png","./concrete_blue.png"],["textures/blocks/brown_concrete.png","./concrete_brown.png"],["textures/blocks/cyan_concrete.png","./concrete_cyan.png"],["textures/blocks/gray_concrete.png","./concrete_gray.png"],["textures/blocks/green_concrete.png","./concrete_green.png"],["textures/blocks/light_blue_concrete.png","./concrete_light_blue.png"],["textures/blocks/light_gray_concrete.png","./concrete_silver.png"],["textures/blocks/lime_concrete.png","./concrete_lime.png"],["textures/blocks/magenta_concrete.png","./concrete_magenta.png"],["textures/blocks/orange_concrete.png","./concrete_orange.png"],["textures/blocks/pink_concrete.png","./concrete_pink.png"],["textures/blocks/purple_concrete.png","./concrete_purple.png"],["textures/blocks/red_concrete.png","./concrete_red.png"],["textures/blocks/white_concrete.png","./concrete_white.png"],["textures/blocks/yellow_concrete.png","./concrete_yellow.png"],["textures/blocks/black_concrete_powder.png","./concrete_powder_black.png"],["textures/blocks/blue_concrete_powder.png","./concrete_powder_blue.png"],["textures/blocks/brown_concrete_powder.png","./concrete_powder_brown.png"],["textures/blocks/cyan_concrete_powder.png","./concrete_powder_cyan.png"],["textures/blocks/gray_concrete_powder.png","./concrete_powder_gray.png"],["textures/blocks/green_concrete_powder.png","./concrete_powder_green.png"],["textures/blocks/light_blue_concrete_powder.png","./concrete_powder_light_blue.png"],["textures/blocks/light_gray_concrete_powder.png","./concrete_powder_silver.png"],["textures/blocks/lime_concrete_powder.png","./concrete_powder_lime.png"],["textures/blocks/magenta_concrete_powder.png","./concrete_powder_magenta.png"],["textures/blocks/orange_concrete_powder.png","./concrete_powder_orange.png"],["textures/blocks/pink_concrete_powder.png","./concrete_powder_pink.png"],["textures/blocks/purple_concrete_powder.png","./concrete_powder_purple.png"],["textures/blocks/red_concrete_powder.png","./concrete_powder_red.png"],["textures/blocks/white_concrete_powder.png","./concrete_powder_white.png"],["textures/blocks/yellow_concrete_powder.png","./concrete_powder_yellow.png"],["textures/entity/conduit/base.png","textures/blocks/conduit_base.png"],["textures/entity/conduit/cage.png","textures/blocks/conduit_cage.png"],["textures/entity/conduit/closed_eye.png","textures/blocks/conduit_closed.png"],["textures/entity/conduit/open_eye.png","textures/blocks/conduit_open.png"],["textures/entity/conduit/wind.png","textures/blocks/conduit_wind_horizontal.png"],["textures/entity/conduit/wind_vertical.png","textures/blocks/conduit_wind_vertical.png"],["textures/items/heart_of_the_sea.png","./heartofthesea_closed.png"],["textures/blocks/brain_coral.png","./coral_plant_pink.png"],["textures/blocks/bubble_coral.png","./coral_plant_purple.png"],["textures/blocks/fire_coral.png","./coral_plant_red.png"],["textures/blocks/horn_coral.png","./coral_plant_yellow.png"],["textures/blocks/tube_coral.png","./coral_plant_blue.png"],["textures/blocks/brain_coral_block.png","./coral_pink.png"],["textures/blocks/bubble_coral_block.png","./coral_purple.png"],["textures/blocks/fire_coral_block.png","./coral_red.png"],["textures/blocks/horn_coral_block.png","./coral_yellow.png"],["textures/blocks/tube_coral_block.png","./coral_blue.png"],["textures/blocks/brain_coral_fan.png","./coral_fan_pink.png"],["textures/blocks/bubble_coral_fan.png","./coral_fan_purple.png"],["textures/blocks/fire_coral_fan.png","./coral_fan_red.png"],["textures/blocks/horn_coral_fan.png","./coral_fan_yellow.png"],["textures/blocks/tube_coral_fan.png","./coral_fan_blue.png"],["textures/blocks/dead_brain_coral_block.png","./coral_pink_dead.png"],["textures/blocks/dead_bubble_coral_block.png","./coral_purple_dead.png"],["textures/blocks/dead_fire_coral_block.png","./coral_red_dead.png"],["textures/blocks/dead_horn_coral_block.png","./coral_yellow_dead.png"],["textures/blocks/dead_tube_coral_block.png","./coral_blue_dead.png"],["textures/blocks/dead_brain_coral_fan.png","./coral_fan_pink_dead.png"],["textures/blocks/dead_bubble_coral_fan.png","./coral_fan_purple_dead.png"],["textures/blocks/dead_fire_coral_fan.png","./coral_fan_red_dead.png"],["textures/blocks/dead_horn_coral_fan.png","./coral_fan_yellow_dead.png"],["textures/blocks/dead_tube_coral_fan.png","./coral_fan_blue_dead.png"],["textures/entity/cow/red_mooshroom.png","./mooshroom.png"],["textures/blocks/dead_bush.png","./deadbush.png"],["textures/blocks/destroy_stage_0.png","textures/environment/destroy_stage_0.png"],["textures/blocks/destroy_stage_1.png","textures/environment/destroy_stage_1.png"],["textures/blocks/destroy_stage_2.png","textures/environment/destroy_stage_2.png"],["textures/blocks/destroy_stage_3.png","textures/environment/destroy_stage_3.png"],["textures/blocks/destroy_stage_4.png","textures/environment/destroy_stage_4.png"],["textures/blocks/destroy_stage_5.png","textures/environment/destroy_stage_5.png"],["textures/blocks/destroy_stage_6.png","textures/environment/destroy_stage_6.png"],["textures/blocks/destroy_stage_7.png","textures/environment/destroy_stage_7.png"],["textures/blocks/destroy_stage_8.png","textures/environment/destroy_stage_8.png"],["textures/blocks/destroy_stage_9.png","textures/environment/destroy_stage_9.png"],["textures/blocks/diorite.png","./stone_diorite.png"],["textures/blocks/polished_diorite.png","./stone_diorite_smooth.png"],["textures/blocks/dispenser_front.png","./dispenser_front_horizontal.png"],["textures/blocks/acacia_door_bottom.png","./door_acacia_lower.png"],["textures/blocks/birch_door_bottom.png","./door_birch_lower.png"],["textures/blocks/dark_oak_door_bottom.png","./door_dark_oak_lower.png"],["textures/blocks/iron_door_bottom.png","./door_iron_lower.png"],["textures/blocks/jungle_door_bottom.png","./door_jungle_lower.png"],["textures/blocks/oak_door_bottom.png","./door_wood_lower.png"],["textures/blocks/spruce_door_bottom.png","./door_spruce_lower.png"],["textures/blocks/acacia_door_top.png","./door_acacia_upper.png"],["textures/blocks/birch_door_top.png","./door_birch_upper.png"],["textures/blocks/dark_oak_door_top.png","./door_dark_oak_upper.png"],["textures/blocks/iron_door_top.png","./door_iron_upper.png"],["textures/blocks/jungle_door_top.png","./door_jungle_upper.png"],["textures/blocks/oak_door_top.png","./door_wood_upper.png"],["textures/blocks/spruce_door_top.png","./door_spruce_upper.png"],["textures/items/acacia_door.png","./door_acacia.png"],["textures/items/birch_door.png","./door_birch.png"],["textures/items/dark_oak_door.png","./door_dark_oak.png"],["textures/items/iron_door.png","./door_iron.png"],["textures/items/jungle_door.png","./door_jungle.png"],["textures/items/oak_door.png","./door_wood.png"],["textures/items/spruce_door.png","./door_spruce.png"],["textures/entity/enderdragon","./dragon"],["textures/entity/dragon/dragon_fireball.png","textures/items/dragon_fireball.png"],["textures/items/dragon_breath.png","./dragons_breath.png"],["textures/items/fire_charge.png","./fireball.png"],["textures/blocks/dropper_front.png","./dropper_front_horizontal.png"],["textures/items/black_dye.png","./dye_powder_black_new.png"],["textures/items/blue_dye.png","./dye_powder_blue_new.png"],["textures/items/brown_dye.png","./dye_powder_brown_new.png"],["textures/items/cyan_dye.png","./dye_powder_cyan.png"],["textures/items/gray_dye.png","./dye_powder_gray.png"],["textures/items/green_dye.png","./dye_powder_green.png"],["textures/items/light_blue_dye.png","./dye_powder_light_blue.png"],["textures/items/light_gray_dye.png","./dye_powder_silver.png"],["textures/items/lime_dye.png","./dye_powder_lime.png"],["textures/items/magenta_dye.png","./dye_powder_magenta.png"],["textures/items/orange_dye.png","./dye_powder_orange.png"],["textures/items/pink_dye.png","./dye_powder_pink.png"],["textures/items/purple_dye.png","./dye_powder_purple.png"],["textures/items/red_dye.png","./dye_powder_red.png"],["textures/items/white_dye.png","./dye_powder_white_new.png"],["textures/items/yellow_dye.png","./dye_powder_yellow.png"],["textures/entity/end_crystal","./endercrystal"],["textures/entity/endercrystal/end_crystal.png","./endercrystal.png"],["textures/entity/endercrystal/end_crystal_beam.png","./endercrystal_beam.png"],["textures/blocks/end_portal_frame_eye.png","./endframe_eye.png"],["textures/blocks/end_portal_frame_side.png","./endframe_side.png"],["textures/blocks/end_portal_frame_top.png","./endframe_top.png"],["textures/blocks/end_stone_bricks.png","./end_bricks.png"],["textures/blocks/farmland.png","./farmland_dry.png"],["textures/blocks/farmland_moist.png","./farmland_wet.png"],["textures/blocks/large_fern_bottom.png","./double_plant_fern_bottom.png"],["textures/blocks/large_fern_top.png","./double_plant_fern_top.png"],["textures/items/firework_rocket.png","./fireworks.png"],["textures/items/firework_star_overlay.png","./fireworks_charge.png"],["textures/entity/fishing_hook.png","./fishhook.png"],["textures/items/cod.png","./fish_raw.png"],["textures/items/cooked_cod.png","./fish_cooked.png"],["textures/items/cooked_salmon.png","./fish_salmon_cooked.png"],["textures/items/fishing_rod.png","./fishing_rod_uncast.png"],["textures/items/pufferfish.png","./fish_pufferfish_raw.png"],["textures/items/salmon.png","./fish_salmon_raw.png"],["textures/items/tropical_fish.png","./fish_clownfish_raw.png"],["textures/items/beef.png","./beef_raw.png"],["textures/items/chicken.png","./chicken_raw.png"],["textures/items/cooked_beef.png","./beef_cooked.png"],["textures/items/cooked_chicken.png","./chicken_cooked.png"],["textures/items/cooked_mutton.png","./mutton_cooked.png"],["textures/items/cooked_porkchop.png","./porkchop_cooked.png"],["textures/items/mutton.png","./mutton_raw.png"],["textures/items/porkchop.png","./porkchop_raw.png"],["textures/blocks/fletching_table_front.png","./fletcher_table_side2.png"],["textures/blocks/fletching_table_side.png","./fletcher_table_side1.png"],["textures/blocks/fletching_table_top.png","./fletcher_table_top.png"],["textures/blocks/allium.png","./flower_allium.png"],["textures/blocks/azure_bluet.png","./flower_houstonia.png"],["textures/blocks/blue_orchid.png","./flower_blue_orchid.png"],["textures/blocks/cornflower.png","./flower_cornflower.png"],["textures/blocks/dandelion.png","./flower_dandelion.png"],["textures/blocks/lilac_bottom.png","./double_plant_syringa_bottom.png"],["textures/blocks/lilac_top.png","./double_plant_syringa_top.png"],["textures/blocks/lily_of_the_valley.png","./flower_lily_of_the_valley.png"],["textures/blocks/orange_tulip.png","./flower_tulip_orange.png"],["textures/blocks/poppy.png","./flower_rose.png"],["textures/blocks/oxeye_daisy.png","./flower_oxeye_daisy.png"],["textures/blocks/peony_bottom.png","./double_plant_paeonia_bottom.png"],["textures/blocks/peony_top.png","./double_plant_paeonia_top.png"],["textures/blocks/pink_tulip.png","./flower_tulip_pink.png"],["textures/blocks/red_tulip.png","./flower_tulip_red.png"],["textures/blocks/rose_bush_bottom.png","./double_plant_rose_bottom.png"],["textures/blocks/rose_bush_top.png","./double_plant_rose_top.png"],["textures/blocks/sunflower_back.png","./double_plant_sunflower_back.png"],["textures/blocks/sunflower_bottom.png","./double_plant_sunflower_bottom.png"],["textures/blocks/sunflower_front.png","./double_plant_sunflower_front.png"],["textures/blocks/sunflower_top.png","./double_plant_sunflower_top.png"],["textures/blocks/white_tulip.png","./flower_tulip_white.png"],["textures/blocks/wither_rose.png","./flower_wither_rose.png"],["textures/blocks/blast_furnace_front.png","./blast_furnace_front_off.png"],["textures/blocks/furnace_front.png","./furnace_front_off.png"],["textures/blocks/smoker_front.png","./smoker_front_off.png"],["textures/blocks/black_stained_glass.png","./glass_black.png"],["textures/blocks/blue_stained_glass.png","./glass_blue.png"],["textures/blocks/brown_stained_glass.png","./glass_brown.png"],["textures/blocks/cyan_stained_glass.png","./glass_cyan.png"],["textures/blocks/gray_stained_glass.png","./glass_gray.png"],["textures/blocks/green_stained_glass.png","./glass_green.png"],["textures/blocks/light_blue_stained_glass.png","./glass_light_blue.png"],["textures/blocks/light_gray_stained_glass.png","./glass_silver.png"],["textures/blocks/lime_stained_glass.png","./glass_lime.png"],["textures/blocks/magenta_stained_glass.png","./glass_magenta.png"],["textures/blocks/orange_stained_glass.png","./glass_orange.png"],["textures/blocks/pink_stained_glass.png","./glass_pink.png"],["textures/blocks/purple_stained_glass.png","./glass_purple.png"],["textures/blocks/red_stained_glass.png","./glass_red.png"],["textures/blocks/white_stained_glass.png","./glass_white.png"],["textures/blocks/yellow_stained_glass.png","./glass_yellow.png"],["textures/blocks/black_stained_glass_pane_top.png","./glass_pane_top_black.png"],["textures/blocks/blue_stained_glass_pane_top.png","./glass_pane_top_blue.png"],["textures/blocks/brown_stained_glass_pane_top.png","./glass_pane_top_brown.png"],["textures/blocks/cyan_stained_glass_pane_top.png","./glass_pane_top_cyan.png"],["textures/blocks/gray_stained_glass_pane_top.png","./glass_pane_top_gray.png"],["textures/blocks/green_stained_glass_pane_top.png","./glass_pane_top_green.png"],["textures/blocks/light_blue_stained_glass_pane_top.png","./glass_pane_top_light_blue.png"],["textures/blocks/light_gray_stained_glass_pane_top.png","./glass_pane_top_silver.png"],["textures/blocks/lime_stained_glass_pane_top.png","./glass_pane_top_lime.png"],["textures/blocks/magenta_stained_glass_pane_top.png","./glass_pane_top_magenta.png"],["textures/blocks/orange_stained_glass_pane_top.png","./glass_pane_top_orange.png"],["textures/blocks/pink_stained_glass_pane_top.png","./glass_pane_top_pink.png"],["textures/blocks/purple_stained_glass_pane_top.png","./glass_pane_top_purple.png"],["textures/blocks/red_stained_glass_pane_top.png","./glass_pane_top_red.png"],["textures/blocks/white_stained_glass_pane_top.png","./glass_pane_top_white.png"],["textures/blocks/yellow_stained_glass_pane_top.png","./glass_pane_top_yellow.png"],["textures/blocks/black_glazed_terracotta.png","./glazed_terracotta_black.png"],["textures/blocks/blue_glazed_terracotta.png","./glazed_terracotta_blue.png"],["textures/blocks/brown_glazed_terracotta.png","./glazed_terracotta_brown.png"],["textures/blocks/cyan_glazed_terracotta.png","./glazed_terracotta_cyan.png"],["textures/blocks/gray_glazed_terracotta.png","./glazed_terracotta_gray.png"],["textures/blocks/green_glazed_terracotta.png","./glazed_terracotta_green.png"],["textures/blocks/light_blue_glazed_terracotta.png","./glazed_terracotta_light_blue.png"],["textures/blocks/light_gray_glazed_terracotta.png","./glazed_terracotta_silver.png"],["textures/blocks/lime_glazed_terracotta.png","./glazed_terracotta_lime.png"],["textures/blocks/magenta_glazed_terracotta.png","./glazed_terracotta_magenta.png"],["textures/blocks/orange_glazed_terracotta.png","./glazed_terracotta_orange.png"],["textures/blocks/pink_glazed_terracotta.png","./glazed_terracotta_pink.png"],["textures/blocks/purple_glazed_terracotta.png","./glazed_terracotta_purple.png"],["textures/blocks/red_glazed_terracotta.png","./glazed_terracotta_red.png"],["textures/blocks/white_glazed_terracotta.png","./glazed_terracotta_white.png"],["textures/blocks/yellow_glazed_terracotta.png","./glazed_terracotta_yellow.png"],["textures/blocks/granite.png","./stone_granite.png"],["textures/blocks/polished_granite.png","./stone_granite_smooth.png"],["textures/blocks/grass.png","./tallgrass.png"],["textures/blocks/grass_block_side.png","./grass_side_carried.png"],["textures/blocks/grass_block_side_overlay.png","./grass_side.png"],["textures/blocks/grass_block_snow.png","./grass_side_snowed.png"],["textures/blocks/grass_block_top.png","./grass_top.png"],["textures/blocks/tall_grass_bottom.png","./double_plant_grass_bottom.png"],["textures/blocks/tall_grass_top.png","./double_plant_grass_top.png"],["textures/entity/horse","./horse2"],["textures/blocks/packed_ice.png","./ice_packed.png"],["textures/entity/illager/evoker_fangs.png","./fangs.png"],["textures/entity/illager/pillager.png","textures/entity/pillager.png"],["textures/entity/illager/vex.png","textures/entity/vex/vex.png"],["textures/entity/illager/vex_charging.png","textures/entity/vex/vex_charging.png"],["textures/entity/illager/vindicator.png","textures/entity/vindicator.png"],["textures/items/ink_sac.png","./dye_powder_black.png"],["textures/blocks/item_frame.png","./itemframe_background.png"],["textures/blocks/jigsaw_bottom.png","./jigsaw_back.png"],["textures/blocks/jigsaw_top.png","./jigsaw_front.png"],["textures/blocks/dried_kelp_side.png","./dried_kelp_side_a.png"],["textures/blocks/kelp.png","./kelp_top.png"],["textures/blocks/kelp_plant.png","./kelp_a.png"],["textures/items/lapis_lazuli.png","./dye_powder_blue.png"],["textures/blocks/acacia_leaves.png","./leaves_acacia.png"],["textures/blocks/birch_leaves.png","./leaves_birch.png"],["textures/blocks/dark_oak_leaves.png","./leaves_big_oak.png"],["textures/blocks/jungle_leaves.png","./leaves_jungle.png"],["textures/blocks/oak_leaves.png","./leaves_oak.png"],["textures/blocks/spruce_leaves.png","./leaves_spruce.png"],["textures/blocks/lily_pad.png","./waterlily.png"],["textures/entity/llama/brown.png","./llama_brown.png"],["textures/entity/llama/creamy.png","./llama_creamy.png"],["textures/entity/llama/gray.png","./llama_gray.png"],["textures/entity/llama/white.png","./llama_white.png"],["textures/entity/llama/decor/black.png","./decor_black.png"],["textures/entity/llama/decor/blue.png","./decor_blue.png"],["textures/entity/llama/decor/brown.png","./decor_brown.png"],["textures/entity/llama/decor/cyan.png","./decor_cyan.png"],["textures/entity/llama/decor/gray.png","./decor_gray.png"],["textures/entity/llama/decor/green.png","./decor_green.png"],["textures/entity/llama/decor/light_blue.png","./decor_light_blue.png"],["textures/entity/llama/decor/light_gray.png","./decor_silver.png"],["textures/entity/llama/decor/lime.png","./decor_lime.png"],["textures/entity/llama/decor/magenta.png","./decor_magenta.png"],["textures/entity/llama/decor/orange.png","./decor_orange.png"],["textures/entity/llama/decor/pink.png","./decor_pink.png"],["textures/entity/llama/decor/purple.png","./decor_purple.png"],["textures/entity/llama/decor/red.png","./decor_red.png"],["textures/entity/llama/decor/trader_llama.png","./trader_llama_decor.png"],["textures/entity/llama/decor/white.png","./decor_white.png"],["textures/entity/llama/decor/yellow.png","./decor_yellow.png"],["textures/blocks/acacia_log.png","./log_acacia.png"],["textures/blocks/birch_log.png","./log_birch.png"],["textures/blocks/dark_oak_log.png","./log_big_oak.png"],["textures/blocks/jungle_log.png","./log_jungle.png"],["textures/blocks/oak_log.png","./log_oak.png"],["textures/blocks/spruce_log.png","./log_spruce.png"],["textures/blocks/acacia_log_top.png","./log_acacia_top.png"],["textures/blocks/birch_log_top.png","./log_birch_top.png"],["textures/blocks/dark_oak_log_top.png","./log_big_oak_top.png"],["textures/blocks/jungle_log_top.png","./log_jungle_top.png"],["textures/blocks/oak_log_top.png","./log_oak_top.png"],["textures/blocks/spruce_log_top.png","./log_spruce_top.png"],["textures/items/filled_map.png","./map_filled.png"],["textures/items/filled_map_markings.png","./map_filled_markings.png"],["textures/items/map.png","./map_empty.png"],["textures/blocks/attached_melon_stem.png","./melon_stem_connected.png"],["textures/blocks/melon_stem.png","./melon_stem_disconnected.png"],["textures/items/glistering_melon_slice.png","./melon_speckled.png"],["textures/items/melon_slice.png","./melon.png"],["textures/items/chest_minecart.png","./minecart_chest.png"],["textures/items/command_block_minecart.png","./minecart_command_block.png"],["textures/items/furnace_minecart.png","./minecart_furnace.png"],["textures/items/hopper_minecart.png","./minecart_hopper.png"],["textures/items/minecart.png","./minecart_normal.png"],["textures/items/tnt_minecart.png","./minecart_tnt.png"],["textures/blocks/brown_mushroom.png","./mushroom_brown.png"],["textures/blocks/red_mushroom.png","./mushroom_red.png"],["textures/blocks/brown_mushroom_block.png","./mushroom_block_skin_brown.png"],["textures/blocks/red_mushroom_block.png","./mushroom_block_skin_red.png"],["textures/blocks/mushroom_stem.png","./mushroom_block_skin_stem.png"],["textures/items/music_disc_11.png","./record_11.png"],["textures/items/music_disc_13.png","./record_13.png"],["textures/items/music_disc_blocks.png","./record_blocks.png"],["textures/items/music_disc_cat.png","./record_cat.png"],["textures/items/music_disc_chirp.png","./record_chirp.png"],["textures/items/music_disc_far.png","./record_far.png"],["textures/items/music_disc_mall.png","./record_mall.png"],["textures/items/music_disc_mellohi.png","./record_mellohi.png"],["textures/items/music_disc_stal.png","./record_stal.png"],["textures/items/music_disc_strad.png","./record_strad.png"],["textures/items/music_disc_wait.png","./record_wait.png"],["textures/items/music_disc_ward.png","./record_ward.png"],["textures/blocks/nether_bricks.png","./nether_brick.png"],["textures/blocks/red_nether_bricks.png","./red_nether_brick.png"],["textures/items/nether_brick.png","./netherbrick.png"],["textures/blocks/nether_portal.png","./portal.png"],["textures/blocks/nether_wart_stage0.png","./nether_wart_stage_0.png"],["textures/blocks/nether_wart_stage1.png","./nether_wart_stage_1.png"],["textures/blocks/nether_wart_stage2.png","./nether_wart_stage_2.png"],["textures/blocks/note_block.png","./noteblock.png"],["textures/items/nautilus_shell.png","./nautilus.png"],["textures/blocks/observer_back_on.png","./observer_back_lit.png"],["textures/entity/panda/aggressive_panda.png","./panda_aggressive.png"],["textures/entity/panda/brown_panda.png","./panda_brown.png"],["textures/entity/panda/lazy_panda.png","./panda_lazy.png"],["textures/entity/panda/playful_panda.png","./panda_playful.png"],["textures/entity/panda/weak_panda.png","./panda_sneezy.png"],["textures/entity/panda/worried_panda.png","./panda_worried.png"],["textures/blocks/piston_top.png","./piston_top_normal.png"],["textures/blocks/acacia_planks.png","./planks_acacia.png"],["textures/blocks/birch_planks.png","./planks_birch.png"],["textures/blocks/dark_oak_planks.png","./planks_big_oak.png"],["textures/blocks/jungle_planks.png","./planks_jungle.png"],["textures/blocks/oak_planks.png","./planks_oak.png"],["textures/blocks/spruce_planks.png","./planks_spruce.png"],["textures/blocks/podzol_side.png","./dirt_podzol_side.png"],["textures/blocks/podzol_top.png","./dirt_podzol_top.png"],["textures/blocks/potatoes_stage0.png","./potatoes_stage_0.png"],["textures/blocks/potatoes_stage1.png","./potatoes_stage_1.png"],["textures/blocks/potatoes_stage2.png","./potatoes_stage_2.png"],["textures/blocks/potatoes_stage3.png","./potatoes_stage_3.png"],["textures/items/baked_potato.png","./potato_baked.png"],["textures/items/poisonous_potato.png","./potato_poisonous.png"],["textures/items/lingering_potion.png","./potion_bottle_lingering_empty.png"],["textures/items/potion.png","./potion_bottle_empty.png"],["textures/items/splash_potion.png","./potion_bottle_splash_empty.png"],["textures/blocks/dark_prismarine.png","./prismarine_dark.png"],["textures/blocks/prismarine.png","./prismarine_rough.png"],["textures/blocks/attached_pumpkin_stem.png","./pumpkin_stem_connected.png"],["textures/blocks/carved_pumpkin.png","./pumpkin_face_off.png"],["textures/blocks/jack_o_lantern.png","./pumpkin_face_on.png"],["textures/blocks/pumpkin_stem.png","./pumpkin_stem_disconnected.png"],["textures/blocks/chiseled_quartz_block.png","./quartz_block_chiseled.png"],["textures/blocks/chiseled_quartz_block_top.png","./quartz_block_chiseled_top.png"],["textures/blocks/nether_quartz_ore.png","./quartz_ore.png"],["textures/blocks/quartz_pillar.png","./quartz_block_lines.png"],["textures/blocks/quartz_pillar_top.png","./quartz_block_lines_top.png"],["textures/entity/rabbit/black.png","./blackrabbit.png"],["textures/items/cooked_rabbit.png","./rabbit_cooked.png"],["textures/items/rabbit.png","./rabbit_raw.png"],["textures/blocks/activator_rail.png","./rail_activator.png"],["textures/blocks/activator_rail_on.png","./rail_activator_powered.png"],["textures/blocks/detector_rail.png","./rail_detector.png"],["textures/blocks/detector_rail_on.png","./rail_detector_powered.png"],["textures/blocks/powered_rail.png","./rail_golden.png"],["textures/blocks/powered_rail_on.png","./rail_golden_powered.png"],["textures/blocks/rail.png","./rail_normal.png"],["textures/blocks/rail_corner.png","./rail_normal_turned.png"],["textures/blocks/chiseled_red_sandstone.png","./red_sandstone_carved.png"],["textures/blocks/cut_red_sandstone.png","./red_sandstone_smooth.png"],["textures/blocks/red_sandstone.png","./red_sandstone_normal.png"],["textures/items/redstone.png","./redstone_dust.png"],["textures/blocks/redstone_lamp.png","./redstone_lamp_off.png"],["textures/blocks/repeater.png","./repeater_off.png"],["textures/entity/pig/pig_saddle.png","textures/entity/saddle.png"],["textures/blocks/chiseled_sandstone.png","./sandstone_carved.png"],["textures/blocks/cut_sandstone.png","./sandstone_smooth.png"],["textures/blocks/sandstone.png","./sandstone_normal.png"],["textures/blocks/acacia_sapling.png","./sapling_acacia.png"],["textures/blocks/birch_sapling.png","./sapling_birch.png"],["textures/blocks/dark_oak_sapling.png","./sapling_roofed_oak.png"],["textures/blocks/jungle_sapling.png","./sapling_jungle.png"],["textures/blocks/oak_sapling.png","./sapling_oak.png"],["textures/blocks/spruce_sapling.png","./sapling_spruce.png"],["textures/blocks/tall_seagrass_top.png","./seagrass_doubletall_top_a.png"],["textures/blocks/tall_seagrass_bottom.png","./seagrass_doubletall_bottom_a.png"],["textures/items/seagrass.png","textures/blocks/seagrass_carried.png"],["textures/items/beetroot_seeds.png","./seeds_beetroot.png"],["textures/items/melon_seeds.png","./seeds_melon.png"],["textures/items/pumpkin_seeds.png","./seeds_pumpkin.png"],["textures/items/wheat_seeds.png","./seeds_wheat.png"],["textures/entity/shield_base_nopattern.png","./shield.png"],["textures/blocks/black_shulker_box.png","./shulker_top_black.png"],["textures/blocks/blue_shulker_box.png","./shulker_top_blue.png"],["textures/blocks/brown_shulker_box.png","./shulker_top_brown.png"],["textures/blocks/cyan_shulker_box.png","./shulker_top_cyan.png"],["textures/blocks/gray_shulker_box.png","./shulker_top_gray.png"],["textures/blocks/green_shulker_box.png","./shulker_top_green.png"],["textures/blocks/light_blue_shulker_box.png","./shulker_top_light_blue.png"],["textures/blocks/light_gray_shulker_box.png","./shulker_top_silver.png"],["textures/blocks/lime_shulker_box.png","./shulker_top_lime.png"],["textures/blocks/magenta_shulker_box.png","./shulker_top_magenta.png"],["textures/blocks/orange_shulker_box.png","./shulker_top_orange.png"],["textures/blocks/pink_shulker_box.png","./shulker_top_pink.png"],["textures/blocks/purple_shulker_box.png","./shulker_top_purple.png"],["textures/blocks/red_shulker_box.png","./shulker_top_red.png"],["textures/blocks/shulker_box.png","./shulker_top_undyed.png"],["textures/blocks/white_shulker_box.png","./shulker_top_white.png"],["textures/blocks/yellow_shulker_box.png","./shulker_top_yellow.png"],["textures/entity/shulker/shulker.png","./shulker_undyed.png"],["textures/entity/shulker/shulker_black.png","./shulker_black.png"],["textures/entity/shulker/shulker_blue.png","./shulker_blue.png"],["textures/entity/shulker/shulker_brown.png","./shulker_brown.png"],["textures/entity/shulker/shulker_cyan.png","./shulker_cyan.png"],["textures/entity/shulker/shulker_gray.png","./shulker_gray.png"],["textures/entity/shulker/shulker_green.png","./shulker_green.png"],["textures/entity/shulker/shulker_light_blue.png","./shulker_light_blue.png"],["textures/entity/shulker/shulker_light_gray.png","./shulker_silver.png"],["textures/entity/shulker/shulker_lime.png","./shulker_lime.png"],["textures/entity/shulker/shulker_magenta.png","./shulker_magenta.png"],["textures/entity/shulker/shulker_orange.png","./shulker_orange.png"],["textures/entity/shulker/shulker_pink.png","./shulker_pink.png"],["textures/entity/shulker/shulker_purple.png","./shulker_purple.png"],["textures/entity/shulker/shulker_red.png","./shulker_red.png"],["textures/entity/shulker/shulker_white.png","./shulker_white.png"],["textures/entity/shulker/shulker_yellow.png","./shulker_yellow.png"],["textures/entity/signs/acacia.png","textures/entity/sign_acacia.png"],["textures/entity/signs/birch.png","textures/entity/sign_birch.png"],["textures/entity/signs/dark_oak.png","textures/entity/sign_darkoak.png"],["textures/entity/signs/jungle.png","textures/entity/sign_jungle.png"],["textures/entity/signs/oak.png","textures/entity/sign.png"],["textures/entity/signs/spruce.png","textures/entity/sign_spruce.png"],["textures/items/acacia_sign.png","./sign_acacia.png"],["textures/items/birch_sign.png","./sign_birch.png"],["textures/items/dark_oak_sign.png","./sign_darkoak.png"],["textures/items/jungle_sign.png","./sign_jungle.png"],["textures/items/oak_sign.png","./sign.png"],["textures/items/spruce_sign.png","./sign_spruce.png"],["textures/blocks/slime_block.png","./slime.png"],["textures/items/slime_ball.png","./slimeball.png"],["textures/blocks/smooth_stone.png","./stone_slab_top.png"],["textures/blocks/smooth_stone_slab_side.png","./stone_slab_side.png"],["textures/blocks/spawner.png","./mob_spawner.png"],["textures/items/fermented_spider_eye.png","./spider_eye_fermented.png"],["textures/blocks/wet_sponge.png","./sponge_wet.png"],["textures/blocks/chiseled_stone_bricks.png","./stonebrick_carved.png"],["textures/blocks/cracked_stone_bricks.png","./stonebrick_cracked.png"],["textures/blocks/mossy_stone_bricks.png","./stonebrick_mossy.png"],["textures/blocks/stone_bricks.png","./stonebrick.png"],["textures/blocks/stonecutter_bottom.png","./stonecutter2_bottom.png"],["textures/blocks/stonecutter_saw.png","./stonecutter2_saw.png"],["textures/blocks/stonecutter_side.png","./stonecutter2_side.png"],["textures/blocks/stonecutter_top.png","./stonecutter2_top.png"],["textures/items/structure_void.png","textures/blocks/structure_void.png"],["textures/blocks/sugar_cane.png","./reeds.png"],["textures/items/sugar_cane.png","./reeds.png"],["textures/blocks/black_terracotta.png","./hardened_clay_stained_black.png"],["textures/blocks/blue_terracotta.png","./hardened_clay_stained_blue.png"],["textures/blocks/brown_terracotta.png","./hardened_clay_stained_brown.png"],["textures/blocks/cyan_terracotta.png","./hardened_clay_stained_cyan.png"],["textures/blocks/gray_terracotta.png","./hardened_clay_stained_gray.png"],["textures/blocks/green_terracotta.png","./hardened_clay_stained_green.png"],["textures/blocks/light_blue_terracotta.png","./hardened_clay_stained_light_blue.png"],["textures/blocks/light_gray_terracotta.png","./hardened_clay_stained_silver.png"],["textures/blocks/lime_terracotta.png","./hardened_clay_stained_lime.png"],["textures/blocks/magenta_terracotta.png","./hardened_clay_stained_magenta.png"],["textures/blocks/orange_terracotta.png","./hardened_clay_stained_orange.png"],["textures/blocks/pink_terracotta.png","./hardened_clay_stained_pink.png"],["textures/blocks/purple_terracotta.png","./hardened_clay_stained_purple.png"],["textures/blocks/red_terracotta.png","./hardened_clay_stained_red.png"],["textures/blocks/terracotta.png","./hardened_clay.png"],["textures/blocks/white_terracotta.png","./hardened_clay_stained_white.png"],["textures/blocks/yellow_terracotta.png","./hardened_clay_stained_yellow.png"],["textures/blocks/redstone_torch.png","./redstone_torch_on.png"],["textures/blocks/torch.png","./torch_on.png"],["textures/items/totem_of_undying.png","./totem.png"],["textures/blocks/oak_trapdoor.png","./trapdoor.png"],["textures/blocks/tripwire.png","./trip_wire.png"],["textures/blocks/tripwire_hook.png","./trip_wire_source.png"],["textures/blocks/turtle_egg.png","./turtle_egg_not_cracked.png"],["textures/entity/turtle/big_sea_turtle.png","textures/entity/sea_turtle.png"],["textures/items/scute.png","./turtle_shell_piece.png"],["textures/entity/villager","./villager2"],["textures/entity/villager2/profession","./professions"],["textures/entity/villager2/profession_level","./levels"],["textures/entity/villager2/type","./biomes"],["textures/entity/villager2/biomes/desert.png","./biome_desert.png"],["textures/entity/villager2/biomes/jungle.png","./biome_jungle.png"],["textures/entity/villager2/biomes/plains.png","./biome_plains.png"],["textures/entity/villager2/biomes/savanna.png","./biome_savanna.png"],["textures/entity/villager2/biomes/snow.png","./biome_snow.png"],["textures/entity/villager2/biomes/swamp.png","./biome_swamp.png"],["textures/entity/villager2/biomes/taiga.png","./biome_taiga.png"],["textures/entity/villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/villager2/levels/gold.png","./level_gold.png"],["textures/entity/villager2/levels/iron.png","./level_iron.png"],["textures/entity/villager2/levels/stone.png","./level_stone.png"],["textures/entity/villager2/professions/mason.png","./stonemason.png"],["textures/blocks/water_flow.png","./water_flow_grey.png"],["textures/blocks/water_still.png","./water_still_grey.png"],["textures/blocks/wheat_stage0.png","./wheat_stage_0.png"],["textures/blocks/wheat_stage1.png","./wheat_stage_1.png"],["textures/blocks/wheat_stage2.png","./wheat_stage_2.png"],["textures/blocks/wheat_stage3.png","./wheat_stage_3.png"],["textures/blocks/wheat_stage4.png","./wheat_stage_4.png"],["textures/blocks/wheat_stage5.png","./wheat_stage_5.png"],["textures/blocks/wheat_stage6.png","./wheat_stage_6.png"],["textures/blocks/wheat_stage7.png","./wheat_stage_7.png"],["textures/entity/wither","./wither_boss"],["textures/blocks/black_wool.png","./wool_colored_black.png"],["textures/blocks/blue_wool.png","./wool_colored_blue.png"],["textures/blocks/brown_wool.png","./wool_colored_brown.png"],["textures/blocks/cyan_wool.png","./wool_colored_cyan.png"],["textures/blocks/gray_wool.png","./wool_colored_gray.png"],["textures/blocks/green_wool.png","./wool_colored_green.png"],["textures/blocks/light_blue_wool.png","./wool_colored_light_blue.png"],["textures/blocks/light_gray_wool.png","./wool_colored_silver.png"],["textures/blocks/lime_wool.png","./wool_colored_lime.png"],["textures/blocks/magenta_wool.png","./wool_colored_magenta.png"],["textures/blocks/orange_wool.png","./wool_colored_orange.png"],["textures/blocks/pink_wool.png","./wool_colored_pink.png"],["textures/blocks/purple_wool.png","./wool_colored_purple.png"],["textures/blocks/red_wool.png","./wool_colored_red.png"],["textures/blocks/white_wool.png","./wool_colored_white.png"],["textures/blocks/yellow_wool.png","./wool_colored_yellow.png"],["textures/entity/zombie_pigman.png","./pig/pigzombie.png"],["textures/entity/zombie_villager","./zombie_villager2"],["textures/entity/zombie_villager2/profession","./professions"],["textures/entity/zombie_villager2/profession_level","./levels"],["textures/entity/zombie_villager2/type","./biomes"],["textures/entity/zombie_villager2/zombie_villager.png","./zombie-villager.png"],["textures/entity/zombie_villager2/biomes/desert.png","./biome-desert-zombie.png"],["textures/entity/zombie_villager2/biomes/jungle.png","./biome-jungle-zombie.png"],["textures/entity/zombie_villager2/biomes/plains.png","./biome-plains-zombie.png"],["textures/entity/zombie_villager2/biomes/savanna.png","./biome-savanna-zombie.png"],["textures/entity/zombie_villager2/biomes/snow.png","./biome-snow-zombie.png"],["textures/entity/zombie_villager2/biomes/swamp.png","./biome-swamp-zombie.png"],["textures/entity/zombie_villager2/biomes/taiga.png","./biome-taiga-zombie.png"],["textures/entity/zombie_villager2/levels/diamond.png","./level_diamond.png"],["textures/entity/zombie_villager2/levels/emerald.png","./level_emerald.png"],["textures/entity/zombie_villager2/levels/gold.png","./level_gold.png"],["textures/entity/zombie_villager2/levels/iron.png","./level_iron.png"],["textures/entity/zombie_villager2/levels/stone.png","./level_stone.png"],["textures/entity/zombie_villager2/professions/mason.png","./stonemason.png"]];for(const e of t)yield e}},[]],[je,[]],[ze,[]],[Fe,[]],[Ue,[]],[He,[]],[qe,[]],[$e,[]],[class extends p{async convert(){const t=[];for await(const[e,n,r,i,a]of this.getData()){const o=_.fromPath(e,this.path),s=_.fromPath(n,this.path),l=_.fromPath(r,this.path),c=_.toPath(i,s,this.path),u=_.toPath(a,s,this.path);if(f.a.existsSync(o)&&f.a.existsSync(s)&&f.a.existsSync(l)){_.log("Convert redstone dust");const t=await Ne.read(s);t.rotate(90).crop(0,0,t.getWidth()-2,t.getHeight()-2),await t.writeAsync(u),t.composite(await Ne.read(l),0,0),t.composite(await Ne.read(o),0,0),await t.writeAsync(c)}t.push(e),t.push(n),t.push(r)}return[[v,t]]}async*getData(){yield["textures/blocks/redstone_dust_dot.png","textures/blocks/redstone_dust_line0.png","textures/blocks/redstone_dust_line1.png","./redstone_dust_cross.png","./redstone_dust_line.png"]}},[]],[class extends p{async convert(){const t=[];for await(const[e,n]of this.getData()){const r=_.fromPath(e,this.path),i=_.fromPath(n,this.path);if(f.a.existsSync(r)&&f.a.existsSync(i)){_.log("Convert sheep");const t=await Ne.read(r),e=await Ne.read(i),n=await Ne.create(t.getWidth(),t.getHeight()+e.getHeight());n.composite(t,0,0),n.composite(e,0,t.getHeight()),n.scan(0,0,n.getWidth(),t.getHeight(),(t,e,r)=>{255===n.bitmap.data[r+3]&&(n.bitmap.data[r+3]=1)}),await n.writeAsync(r)}t.push(n)}return[[v,t]]}async*getData(){yield["textures/entity/sheep/sheep.png","textures/entity/sheep/sheep_fur.png"]}},[]],[class extends p{async convert(){for await(const t of this.getData()){const e=_.fromPath(t,this.path);if(f.a.existsSync(e)){_.log(`Convert villager ${t}`);const n=await Ne.read(e);n.scan(0,0,n.getWidth(),n.getHeight(),(t,e,r)=>{0===n.bitmap.data[r+3]&&(n.bitmap.data[r]=255,n.bitmap.data[r+1]=255,n.bitmap.data[r+2]=255,n.bitmap.data[r+3]=0)}),await n.writeAsync(e)}}return[]}async*getData(){const t=["textures/entity/villager2/professions/armorer.png","textures/entity/villager2/professions/butcher.png","textures/entity/villager2/professions/cartographer.png","textures/entity/villager2/professions/cleric.png","textures/entity/villager2/professions/farmer.png","textures/entity/villager2/professions/fisherman.png","textures/entity/villager2/professions/fletcher.png","textures/entity/villager2/professions/leatherworker.png","textures/entity/villager2/professions/librarian.png","textures/entity/villager2/professions/nitwit.png","textures/entity/villager2/professions/shepherd.png","textures/entity/villager2/professions/stonemason.png","textures/entity/villager2/professions/toolsmith.png","textures/entity/villager2/professions/unskilled.png","textures/entity/villager2/professions/weaponsmith.png","textures/entity/zombie_villager2/professions/armorer.png","textures/entity/zombie_villager2/professions/butcher.png","textures/entity/zombie_villager2/professions/cartographer.png","textures/entity/zombie_villager2/professions/cleric.png","textures/entity/zombie_villager2/professions/farmer.png","textures/entity/zombie_villager2/professions/fisherman.png","textures/entity/zombie_villager2/professions/fletcher.png","textures/entity/zombie_villager2/professions/leatherworker.png","textures/entity/zombie_villager2/professions/librarian.png","textures/entity/zombie_villager2/professions/nitwit.png","textures/entity/zombie_villager2/professions/shepherd.png","textures/entity/zombie_villager2/professions/stonemason.png","textures/entity/zombie_villager2/professions/toolsmith.png","textures/entity/zombie_villager2/professions/weaponsmith.png"];for(const e of t)yield e}},[]],[Xe,[]],[Je,[]],[We,[]],[Qe,[]],[class extends p{async convert(){for await(const[t,e]of this.getData()){const n=_.fromPath(t,this.path),r=_.toPath(e,n,this.path);if(f.a.existsSync(n)){_.log(`Create side rotate ${e}`);const t=await Ne.read(n);t.flip(!0,!1),await t.writeAsync(r)}}return[]}async*getData(){const t=[["textures/blocks/dried_kelp_side_a.png","./dried_kelp_side_b.png"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_b.png"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_b.png"]];for(const e of t)yield e}},[]],[class extends p{async convert(){const t=[];for await(const[e,n,r]of this.getData()){const i=_.fromPath(e,this.path),a=_.toPath(n,i,this.path);if(f.a.existsSync(i)){_.log(`Create tga ${n}`);const o=await Ne.read(i),s=tn.a.createTgaBuffer(o.getWidth(),o.getHeight(),o.bitmap.data);await f.a.writeFile(a,s),r||t.push(e)}}return[[v,t]]}async*getData(){const t=[["textures/blocks/cactus_bottom.png","./cactus_bottom.tga"],["textures/blocks/cactus_side.png","./cactus_side.tga"],["textures/blocks/cactus_top.png","./cactus_top.tga"],["textures/blocks/double_plant_fern_bottom.png","./double_plant_fern_bottom.tga"],["textures/blocks/double_plant_fern_top.png","./double_plant_fern_top.tga"],["textures/blocks/double_plant_grass_bottom.png","./double_plant_grass_bottom.tga"],["textures/blocks/double_plant_grass_top.png","./double_plant_grass_top.tga"],["textures/blocks/double_plant_syringa_bottom.png","./double_plant_syringa_bottom.tga"],["textures/blocks/double_plant_syringa_top.png","./double_plant_syringa_top.tga"],["textures/blocks/fern.png","./fern.tga"],["textures/blocks/fern_carried.png","./fern_carried.tga"],["textures/blocks/grass_side.png","./grass_side.tga"],["textures/blocks/grass_side_snowed.png","./grass_side_snowed.tga",!0],["textures/blocks/grindstone_pivot.png","./grindstone_pivot.tga"],["textures/blocks/grindstone_round.png","./grindstone_round.tga"],["textures/blocks/grindstone_side.png","./grindstone_side.tga"],["textures/blocks/kelp_a.png","./kelp_a.tga"],["textures/blocks/kelp_b.png","./kelp_b.tga"],["textures/blocks/kelp_c.png","./kelp_c.tga"],["textures/blocks/kelp_d.png","./kelp_d.tga"],["textures/blocks/kelp_top.png","./kelp_top.tga"],["textures/blocks/kelp_top_bulb.png","./kelp_top_bulb.tga"],["textures/blocks/leaves_acacia.png","./leaves_acacia.tga"],["textures/blocks/leaves_acacia_carried.png","./leaves_acacia_carried.tga"],["textures/blocks/leaves_big_oak.png","./leaves_big_oak.tga"],["textures/blocks/leaves_big_oak_carried.png","./leaves_big_oak_carried.tga"],["textures/blocks/leaves_birch.png","./leaves_birch.tga"],["textures/blocks/leaves_birch_carried.png","./leaves_birch_carried.tga"],["textures/blocks/leaves_jungle.png","./leaves_jungle.tga"],["textures/blocks/leaves_jungle_carried.png","./leaves_jungle_carried.tga"],["textures/blocks/leaves_oak.png","./leaves_oak.tga"],["textures/blocks/leaves_oak_carried.png","./leaves_oak_carried.tga"],["textures/blocks/leaves_spruce.png","./leaves_spruce.tga"],["textures/blocks/leaves_spruce_carried.png","./leaves_spruce_carried.tga"],["textures/blocks/reeds.png","./reeds.tga"],["textures/blocks/scaffolding_bottom.png","./scaffolding_bottom.tga"],["textures/blocks/scaffolding_side.png","./scaffolding_side.tga"],["textures/blocks/scaffolding_top.png","./scaffolding_top.tga"],["textures/blocks/seagrass_doubletall_bottom_a.png","./seagrass_doubletall_bottom_a.tga"],["textures/blocks/seagrass_doubletall_bottom_b.png","./seagrass_doubletall_bottom_b.tga"],["textures/blocks/seagrass_doubletall_top_a.png","./seagrass_doubletall_top_a.tga"],["textures/blocks/seagrass_doubletall_top_b.png","./seagrass_doubletall_top_b.tga"],["textures/blocks/stonecutter2_saw.png","./stonecutter2_saw.tga"],["textures/blocks/tallgrass.png","./tallgrass.tga",!0],["textures/blocks/tallgrass_carried.png","./tallgrass_carried.tga"],["textures/entity/blaze.png","./blaze.tga"],["textures/entity/phantom.png","./phantom.tga"],["textures/entity/banner/banner.png","./banner.tga"],["textures/entity/banner/banner_pattern_illager.png","./banner_pattern_illager.tga"],["textures/entity/cat/allblackcat_tame.png","./allblackcat_tame.tga"],["textures/entity/cat/britishshorthair_tame.png","./britishshorthair_tame.tga"],["textures/entity/cat/calico_tame.png","./calico_tame.tga"],["textures/entity/cat/graytabby_tame.png","./graytabby_tame.tga"],["textures/entity/cat/jellie_tame.png","./jellie_tame.tga"],["textures/entity/cat/ocelot_tame.png","./ocelot_tame.tga"],["textures/entity/cat/persian_tame.png","./persian_tame.tga"],["textures/entity/cat/ragdoll_tame.png","./ragdoll_tame.tga"],["textures/entity/cat/redtabby_tame.png","./redtabby_tame.tga"],["textures/entity/cat/siamesecat_tame.png","./siamesecat_tame.tga"],["textures/entity/cat/tabby_tame.png","./tabby_tame.tga"],["textures/entity/cat/tuxedo_tame.png","./tuxedo_tame.tga"],["textures/entity/cat/white_tame.png","./white_tame.tga"],["textures/entity/dragon/dragon.png","./dragon.tga"],["textures/entity/enderman/enderman.png","./enderman.tga"],["textures/entity/ghast/ghast_shooting.png","./ghast_shooting.tga"],["textures/entity/horse2/armor/horse_armor_leather.png","./horse_armor_leather.tga"],["textures/entity/sheep/sheep.png","./sheep.tga"],["textures/entity/slime/magmacube.png","./magmacube.tga"],["textures/entity/spider/cave_spider.png","./cave_spider.tga"],["textures/entity/spider/spider.png","./spider.tga"],["textures/entity/villager2/professions/armorer.png","./armorer.tga"],["textures/entity/villager2/professions/butcher.png","./butcher.tga"],["textures/entity/villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/villager2/professions/cleric.png","./cleric.tga"],["textures/entity/villager2/professions/farmer.png","./farmer.tga"],["textures/entity/villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/villager2/professions/librarian.png","./librarian.tga"],["textures/entity/villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/villager2/professions/unskilled.png","./unskilled.tga"],["textures/entity/villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/entity/wolf/wolf_tame.png","./wolf_tame.tga"],["textures/entity/zombie/drowned.png","./drowned.tga"],["textures/entity/zombie_villager2/professions/armorer.png","./armorer.tga"],["textures/entity/zombie_villager2/professions/butcher.png","./butcher.tga"],["textures/entity/zombie_villager2/professions/cartographer.png","./cartographer.tga"],["textures/entity/zombie_villager2/professions/cleric.png","./cleric.tga"],["textures/entity/zombie_villager2/professions/farmer.png","./farmer.tga"],["textures/entity/zombie_villager2/professions/fisherman.png","./fisherman.tga"],["textures/entity/zombie_villager2/professions/fletcher.png","./fletcher.tga"],["textures/entity/zombie_villager2/professions/leatherworker.png","./leatherworker.tga"],["textures/entity/zombie_villager2/professions/librarian.png","./librarian.tga"],["textures/entity/zombie_villager2/professions/nitwit.png","./nitwit.tga"],["textures/entity/zombie_villager2/professions/shepherd.png","./shepherd.tga"],["textures/entity/zombie_villager2/professions/stonemason.png","./stonemason.tga"],["textures/entity/zombie_villager2/professions/toolsmith.png","./toolsmith.tga"],["textures/entity/zombie_villager2/professions/weaponsmith.png","./weaponsmith.tga"],["textures/items/fireworks_charge.png","./fireworks_charge.tga"],["textures/items/leather_boots.png","./leather_boots.tga"],["textures/items/leather_helmet.png","./leather_helmet.tga"],["textures/items/leather_horse_armor.png","./leather_horse_armor.tga"],["textures/items/leather_leggings.png","./leather_leggings.tga"],["textures/models/armor/leather_1.png","./leather_1.tga"],["textures/models/armor/leather_2.png","./leather_2.tga"]];for(const e of t)yield e}},[]],[Ge,[]],[y,[]]];var rn=class extends l{async input(){_.log(`Copy folder ${this.path} to ${this.temp}`),await f.a.copy(this.path,this.temp)}async name(){return g.a.basename(this.path)}},an=n(138),on=n.n(an),sn=n(6),ln=n.n(sn);const cn=ln.a.promisify(on.a);var un=class extends l{async input(){_.log(`Extract ${this.path} to ${this.temp}`),await cn(this.path,{dir:g.a.resolve(this.temp)})}async name(){return g.a.parse(this.path).name}};var pn=function(t,e){if(!f.a.existsSync(t))throw new o(`The input ${t} does not exists!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"zip":return new un(t,e);default:return new rn(t,e)}};var hn=class extends a{};class fn{constructor(t,e){if(this.constructor===fn)throw new hn("Can't instantiate abstract class!");this.path=t,this.temp=e}async getPath(){return this.path}async output(){}}var dn=fn;var gn=class extends dn{async output(){_.log(`Move ${this.temp} to ${this.path}`),await f.a.rename(this.temp,this.path)}},mn=n(139),bn=n.n(mn);const _n=ln.a.promisify(bn.a);var yn=class extends dn{async output(){_.log(`Pack ${this.temp} to ${this.path}`),await _n(this.temp,this.path),_.log(`Clean ${this.temp}`),await f.a.remove(this.temp)}};var vn=function(t,e){if(f.a.existsSync(t))throw new hn(`The output ${t} exists already!`);switch(g.a.extname(t).toLowerCase().substr(1)){case"mcpack":case"zip":return new yn(t,e);default:return new gn(t,e)}},wn=n(47),xn=n.n(wn),kn=n(63);var En=class extends a{};var Sn=async function(t=xn.a.tmpdir()){if(_.log("Init temp folder"),!f.a.existsSync(t))throw new En(`The temp ${t} does not exists!`);return t=_.fromPath(kn.productName,t),await f.a.remove(t),await f.a.mkdirs(t),t};e.default=async function(t,e,n={}){_.setVerbose(n.verbose);const r=await Sn(n.temp),i=pn(t,r),a=vn(e,r);await i.input();for await(const t of async function*(t,e){for(const[n,r]of nn)yield new n(t,e,r)}(r,i))await en(...await t.convert());return await a.output(),await a.getPath()}},function(t,e,n){var r=n(145),i=process.cwd,a=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||(a=i.call(process)),a};try{process.cwd()}catch(t){}var s=process.chdir;process.chdir=function(t){a=null,s.call(process,t)},t.exports=function(t){r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,i){t.open(e,r.O_WRONLY|r.O_SYMLINK,n,function(e,r){e?i&&i(e):t.fchmod(r,n,function(e){t.close(r,function(t){i&&i(e||t)})})})},t.lchmodSync=function(e,n){var i,a=t.openSync(e,r.O_WRONLY|r.O_SYMLINK,n),o=!0;try{i=t.fchmodSync(a,n),o=!1}finally{if(o)try{t.closeSync(a)}catch(t){}else t.closeSync(a)}return i}}(t);t.lutimes||function(t){r.hasOwnProperty("O_SYMLINK")?(t.lutimes=function(e,n,i,a){t.open(e,r.O_SYMLINK,function(e,r){e?a&&a(e):t.futimes(r,n,i,function(e){t.close(r,function(t){a&&a(e||t)})})})},t.lutimesSync=function(e,n,i){var a,o=t.openSync(e,r.O_SYMLINK),s=!0;try{a=t.futimesSync(o,n,i),s=!1}finally{if(s)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return a}):(t.lutimes=function(t,e,n,r){r&&process.nextTick(r)},t.lutimesSync=function(){})}(t);t.chown=a(t.chown),t.fchown=a(t.fchown),t.lchown=a(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=l(t.stat),t.fstat=l(t.fstat),t.lstat=l(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.lchmod||(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.lchown||(t.lchown=function(t,e,n,r){r&&process.nextTick(r)},t.lchownSync=function(){});"win32"===o&&(t.rename=(e=t.rename,function(n,r,i){var a=Date.now(),o=0;e(n,r,function s(l){if(l&&("EACCES"===l.code||"EPERM"===l.code)&&Date.now()-a<6e4)return setTimeout(function(){t.stat(r,function(t,a){t&&"ENOENT"===t.code?e(n,r,s):i(l)})},o),void(o<100&&(o+=10));i&&i(l)})}));var e;function n(e){return e?function(n,r,i){return e.call(t,n,r,function(t){u(t)&&(t=null),i&&i.apply(this,arguments)})}:e}function i(e){return e?function(n,r){try{return e.call(t,n,r)}catch(t){if(!u(t))throw t}}:e}function a(e){return e?function(n,r,i,a){return e.call(t,n,r,i,function(t){u(t)&&(t=null),a&&a.apply(this,arguments)})}:e}function s(e){return e?function(n,r,i){try{return e.call(t,n,r,i)}catch(t){if(!u(t))throw t}}:e}function l(e){return e?function(n,r){return e.call(t,n,function(t,e){if(!e)return r.apply(this,arguments);e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296),r&&r.apply(this,arguments)})}:e}function c(e){return e?function(n){var r=e.call(t,n);return r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296),r}:e}function u(t){if(!t)return!0;if("ENOSYS"===t.code)return!0;var e=!process.getuid||0!==process.getuid();return!(!e||"EINVAL"!==t.code&&"EPERM"!==t.code)}t.read=(h=t.read,function(e,n,r,i,a,o){var s;if(o&&"function"==typeof o){var l=0;s=function(c,u,p){if(c&&"EAGAIN"===c.code&&l<10)return l++,h.call(t,e,n,r,i,a,s);o.apply(this,arguments)}}return h.call(t,e,n,r,i,a,s)}),t.readSync=(p=t.readSync,function(e,n,r,i,a){for(var o=0;;)try{return p.call(t,e,n,r,i,a)}catch(t){if("EAGAIN"===t.code&&o<10){o++;continue}throw t}});var p;var h}},function(t,e){t.exports=require("constants")},function(t,e,n){var r=n(4).Stream;t.exports=function(t){return{ReadStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);var a=this;this.path=n;this.fd=null;this.readable=!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;i=i||{};var o=Object.keys(i);for(var s=0,l=o.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick(function(){a._read()});t.open(this.path,this.flags,this.mode,function(t,e){if(t)return a.emit("error",t),void(a.readable=!1);a.fd=e,a.emit("open",e),a._read()})},WriteStream:function e(n,i){if(!(this instanceof e))return new e(n,i);r.call(this);this.path=n;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var a=Object.keys(i);for(var o=0,s=a.length;o= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},function(t,e,n){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}},function(t,e,n){"use strict";const r=n(7),i=n(2),a=n(14).mkdirsSync,o=n(72).utimesMillisSync,s=n(29);function l(t,e,n,a){if(!a.filter||a.filter(e,n))return function(t,e,n,a){const o=(a.dereference?r.statSync:r.lstatSync)(e);if(o.isDirectory())return function(t,e,n,i,a){if(!e)return function(t,e,n,i){return r.mkdirSync(n),u(e,n,i),r.chmodSync(n,t.mode)}(t,n,i,a);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`);return u(n,i,a)}(o,t,e,n,a);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(t,e,n,i,a){return e?function(t,e,n,i){if(i.overwrite)return r.unlinkSync(n),c(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}(t,n,i,a):c(t,n,i,a)}(o,t,e,n,a);if(o.isSymbolicLink())return function(t,e,n,a){let o=r.readlinkSync(e);a.dereference&&(o=i.resolve(process.cwd(),o));if(t){let t;try{t=r.readlinkSync(n)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return r.symlinkSync(o,n);throw t}if(a.dereference&&(t=i.resolve(process.cwd(),t)),s.isSrcSubdir(o,t))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${t}'.`);if(r.statSync(n).isDirectory()&&s.isSrcSubdir(t,o))throw new Error(`Cannot overwrite '${t}' with '${o}'.`);return function(t,e){return r.unlinkSync(e),r.symlinkSync(t,e)}(o,n)}return r.symlinkSync(o,n)}(t,e,n,a)}(t,e,n,a)}function c(t,e,i,a){return"function"==typeof r.copyFileSync?(r.copyFileSync(e,i),r.chmodSync(i,t.mode),a.preserveTimestamps?o(i,t.atime,t.mtime):void 0):function(t,e,i,a){const o=n(151)(65536),s=r.openSync(e,"r"),l=r.openSync(i,"w",t.mode);let c=0;for(;c(function(t,e,n,r){const a=i.join(e,t),o=i.join(n,t),{destStat:c}=s.checkPathsSync(a,o,"copy");return l(c,a,o,r)})(r,t,e,n))}t.exports=function(t,e,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:o,destStat:c}=s.checkPathsSync(t,e,"copy");return s.checkParentPathsSync(t,o,e,"copy"),function(t,e,n,o){if(o.filter&&!o.filter(e,n))return;const s=i.dirname(n);return r.existsSync(s)||a(s),l(t,e,n,o)}(c,t,e,n)}},function(t,e,n){"use strict";const r=n(12),i=n(2),a=n(71).invalidWin32Path,o=parseInt("0777",8);t.exports=function t(e,n,s,l){if("function"==typeof n?(s=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&a(e)){const t=new Error(e+" contains invalid WIN32 path characters.");return t.code="EINVAL",s(t)}let c=n.mode;const u=n.fs||r;void 0===c&&(c=o&~process.umask()),l||(l=null),s=s||function(){},e=i.resolve(e),u.mkdir(e,c,r=>{if(!r)return s(null,l=l||e);switch(r.code){case"ENOENT":if(i.dirname(e)===e)return s(r);t(i.dirname(e),n,(r,i)=>{r?s(r,i):t(e,n,s,i)});break;default:u.stat(e,(t,e)=>{t||!e.isDirectory()?s(r,l):s(null,l)})}})}},function(t,e,n){"use strict";const r=n(12),i=n(2),a=n(71).invalidWin32Path,o=parseInt("0777",8);t.exports=function t(e,n,s){n&&"object"==typeof n||(n={mode:n});let l=n.mode;const c=n.fs||r;if("win32"===process.platform&&a(e)){const t=new Error(e+" contains invalid WIN32 path characters.");throw t.code="EINVAL",t}void 0===l&&(l=o&~process.umask()),s||(s=null),e=i.resolve(e);try{c.mkdirSync(e,l),s=s||e}catch(r){if("ENOENT"===r.code){if(i.dirname(e)===e)throw r;s=t(i.dirname(e),n,s),t(e,n,s)}else{let t;try{t=c.statSync(e)}catch(t){throw r}if(!t.isDirectory())throw r}}return s}},function(t,e,n){"use strict";t.exports=function(t){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(t)}catch(e){return new Buffer(t)}return new Buffer(t)}},function(t,e,n){"use strict";const r=n(7),i=n(2),a=n(14).mkdirs,o=n(15).pathExists,s=n(72).utimesMillis,l=n(29);function c(t,e,n,r,s){const l=i.dirname(n);o(l,(i,o)=>i?s(i):o?p(t,e,n,r,s):void a(l,i=>i?s(i):p(t,e,n,r,s)))}function u(t,e,n,r,i,a){Promise.resolve(i.filter(n,r)).then(o=>o?t(e,n,r,i,a):a(),t=>a(t))}function p(t,e,n,r,i){return r.filter?u(h,t,e,n,r,i):h(t,e,n,r,i)}function h(t,e,n,i,a){(i.dereference?r.stat:r.lstat)(e,(o,s)=>o?a(o):s.isDirectory()?function(t,e,n,i,a,o){if(!e)return function(t,e,n,i,a){r.mkdir(n,o=>{if(o)return a(o);g(e,n,i,e=>e?a(e):r.chmod(n,t.mode,a))})}(t,n,i,a,o);if(e&&!e.isDirectory())return o(new Error(`Cannot overwrite non-directory '${i}' with directory '${n}'.`));return g(n,i,a,o)}(s,t,e,n,i,a):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(t,e,n,i,a,o){return e?function(t,e,n,i,a){if(!i.overwrite)return i.errorOnExist?a(new Error(`'${n}' already exists`)):a();r.unlink(n,r=>r?a(r):f(t,e,n,i,a))}(t,n,i,a,o):f(t,n,i,a,o)}(s,t,e,n,i,a):s.isSymbolicLink()?b(t,e,n,i,a):void 0)}function f(t,e,n,i,a){return"function"==typeof r.copyFile?r.copyFile(e,n,e=>e?a(e):d(t,n,i,a)):function(t,e,n,i,a){const o=r.createReadStream(e);o.on("error",t=>a(t)).once("open",()=>{const e=r.createWriteStream(n,{mode:t.mode});e.on("error",t=>a(t)).on("open",()=>o.pipe(e)).once("close",()=>d(t,n,i,a))})}(t,e,n,i,a)}function d(t,e,n,i){r.chmod(e,t.mode,r=>r?i(r):n.preserveTimestamps?s(e,t.atime,t.mtime,i):i())}function g(t,e,n,i){r.readdir(t,(r,a)=>r?i(r):m(a,t,e,n,i))}function m(t,e,n,r,a){const o=t.pop();return o?function(t,e,n,r,a,o){const s=i.join(n,e),c=i.join(r,e);l.checkPaths(s,c,"copy",(e,i)=>{if(e)return o(e);const{destStat:l}=i;p(l,s,c,a,e=>e?o(e):m(t,n,r,a,o))})}(t,o,e,n,r,a):a()}function b(t,e,n,a,o){r.readlink(e,(e,s)=>e?o(e):(a.dereference&&(s=i.resolve(process.cwd(),s)),t?void r.readlink(n,(e,c)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?r.symlink(s,n,o):o(e):(a.dereference&&(c=i.resolve(process.cwd(),c)),l.isSrcSubdir(s,c)?o(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&l.isSrcSubdir(c,s)?o(new Error(`Cannot overwrite '${c}' with '${s}'.`)):function(t,e,n){r.unlink(e,i=>i?n(i):r.symlink(t,e,n))}(s,n,o))):r.symlink(s,n,o)))}t.exports=function(t,e,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n&&!n.clobber),n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),l.checkPaths(t,e,"copy",(i,a)=>{if(i)return r(i);const{srcStat:o,destStat:s}=a;l.checkParentPaths(t,o,e,"copy",i=>i?r(i):n.filter?u(c,s,t,e,n,r):c(s,t,e,n,r))})}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(7),a=n(2),o=n(14),s=n(30),l=r(function(t,e){e=e||function(){},i.readdir(t,(n,r)=>{if(n)return o.mkdirs(t,e);r=r.map(e=>a.join(t,e)),function t(){const n=r.pop();if(!n)return e();s.remove(n,n=>{if(n)return e(n);t()})}()})});function c(t){let e;try{e=i.readdirSync(t)}catch(e){return o.mkdirsSync(t)}e.forEach(e=>{e=a.join(t,e),s.removeSync(e)})}t.exports={emptyDirSync:c,emptydirSync:c,emptyDir:l,emptydir:l}},function(t,e,n){"use strict";const r=n(12),i=n(2),a=n(28),o="win32"===process.platform;function s(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(e=>{t[e]=t[e]||r[e],t[e+="Sync"]=t[e]||r[e]}),t.maxBusyTries=t.maxBusyTries||3}function l(t,e,n){let r=0;"function"==typeof e&&(n=e,e={}),a(t,"rimraf: missing path"),a.strictEqual(typeof t,"string","rimraf: path should be a string"),a.strictEqual(typeof n,"function","rimraf: callback function required"),a(e,"rimraf: invalid options argument provided"),a.strictEqual(typeof e,"object","rimraf: options should be object"),s(e),c(t,e,function i(a){if(a){if(("EBUSY"===a.code||"ENOTEMPTY"===a.code||"EPERM"===a.code)&&rc(t,e,i),100*r)}"ENOENT"===a.code&&(a=null)}n(a)})}function c(t,e,n){a(t),a(e),a("function"==typeof n),e.lstat(t,(r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&o?u(t,e,r,n):i&&i.isDirectory()?h(t,e,r,n):void e.unlink(t,r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return o?u(t,e,r,n):h(t,e,r,n);if("EISDIR"===r.code)return h(t,e,r,n)}return n(r)}))}function u(t,e,n,r){a(t),a(e),a("function"==typeof r),n&&a(n instanceof Error),e.chmod(t,438,i=>{i?r("ENOENT"===i.code?null:n):e.stat(t,(i,a)=>{i?r("ENOENT"===i.code?null:n):a.isDirectory()?h(t,e,n,r):e.unlink(t,r)})})}function p(t,e,n){let r;a(t),a(e),n&&a(n instanceof Error);try{e.chmodSync(t,438)}catch(t){if("ENOENT"===t.code)return;throw n}try{r=e.statSync(t)}catch(t){if("ENOENT"===t.code)return;throw n}r.isDirectory()?d(t,e,n):e.unlinkSync(t)}function h(t,e,n,r){a(t),a(e),n&&a(n instanceof Error),a("function"==typeof r),e.rmdir(t,o=>{!o||"ENOTEMPTY"!==o.code&&"EEXIST"!==o.code&&"EPERM"!==o.code?o&&"ENOTDIR"===o.code?r(n):r(o):function(t,e,n){a(t),a(e),a("function"==typeof n),e.readdir(t,(r,a)=>{if(r)return n(r);let o,s=a.length;if(0===s)return e.rmdir(t,n);a.forEach(r=>{l(i.join(t,r),e,r=>{if(!o)return r?n(o=r):void(0==--s&&e.rmdir(t,n))})})})}(t,e,r)})}function f(t,e){let n;s(e=e||{}),a(t,"rimraf: missing path"),a.strictEqual(typeof t,"string","rimraf: path should be a string"),a(e,"rimraf: missing options"),a.strictEqual(typeof e,"object","rimraf: options should be object");try{n=e.lstatSync(t)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&o&&p(t,e,n)}try{n&&n.isDirectory()?d(t,e,null):e.unlinkSync(t)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return o?p(t,e,n):d(t,e,n);if("EISDIR"!==n.code)throw n;d(t,e,n)}}function d(t,e,n){a(t),a(e),n&&a(n instanceof Error);try{e.rmdirSync(t)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(t,e){if(a(t),a(e),e.readdirSync(t).forEach(n=>f(i.join(t,n),e)),!o){const n=e.rmdirSync(t,e);return n}{const n=Date.now();do{try{const n=e.rmdirSync(t,e);return n}catch(t){}}while(Date.now()-n<500)}}(t,e);else if("ENOENT"!==r.code)throw r}}t.exports=l,l.sync=f},function(t,e,n){"use strict";const r=n(156),i=n(157),a=n(158);t.exports={createFile:r.createFile,createFileSync:r.createFileSync,ensureFile:r.createFile,ensureFileSync:r.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:a.createSymlink,createSymlinkSync:a.createSymlinkSync,ensureSymlink:a.createSymlink,ensureSymlinkSync:a.createSymlinkSync}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(2),a=n(12),o=n(14),s=n(15).pathExists;t.exports={createFile:r(function(t,e){function n(){a.writeFile(t,"",t=>{if(t)return e(t);e()})}a.stat(t,(r,a)=>{if(!r&&a.isFile())return e();const l=i.dirname(t);s(l,(t,r)=>t?e(t):r?n():void o.mkdirs(l,t=>{if(t)return e(t);n()}))})}),createFileSync:function(t){let e;try{e=a.statSync(t)}catch(t){}if(e&&e.isFile())return;const n=i.dirname(t);a.existsSync(n)||o.mkdirsSync(n),a.writeFileSync(t,"")}}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(2),a=n(12),o=n(14),s=n(15).pathExists;t.exports={createLink:r(function(t,e,n){function r(t,e){a.link(t,e,t=>{if(t)return n(t);n(null)})}s(e,(l,c)=>l?n(l):c?n(null):void a.lstat(t,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),n(a);const l=i.dirname(e);s(l,(i,a)=>i?n(i):a?r(t,e):void o.mkdirs(l,i=>{if(i)return n(i);r(t,e)}))}))}),createLinkSync:function(t,e){if(a.existsSync(e))return;try{a.lstatSync(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const n=i.dirname(e);return a.existsSync(n)?a.linkSync(t,e):(o.mkdirsSync(n),a.linkSync(t,e))}}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(2),a=n(12),o=n(14),s=o.mkdirs,l=o.mkdirsSync,c=n(159),u=c.symlinkPaths,p=c.symlinkPathsSync,h=n(160),f=h.symlinkType,d=h.symlinkTypeSync,g=n(15).pathExists;t.exports={createSymlink:r(function(t,e,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,g(e,(o,l)=>o?r(o):l?r(null):void u(t,e,(o,l)=>{if(o)return r(o);t=l.toDst,f(l.toCwd,n,(n,o)=>{if(n)return r(n);const l=i.dirname(e);g(l,(n,i)=>n?r(n):i?a.symlink(t,e,o,r):void s(l,n=>{if(n)return r(n);a.symlink(t,e,o,r)}))})}))}),createSymlinkSync:function(t,e,n){if(a.existsSync(e))return;const r=p(t,e);t=r.toDst,n=d(r.toCwd,n);const o=i.dirname(e);return a.existsSync(o)?a.symlinkSync(t,e,n):(l(o),a.symlinkSync(t,e,n))}}},function(t,e,n){"use strict";const r=n(2),i=n(12),a=n(15).pathExists;t.exports={symlinkPaths:function(t,e,n){if(r.isAbsolute(t))return i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:t}));{const o=r.dirname(e),s=r.join(o,t);return a(s,(e,a)=>e?n(e):a?n(null,{toCwd:s,toDst:t}):i.lstat(t,e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),n(e)):n(null,{toCwd:t,toDst:r.relative(o,t)})))}},symlinkPathsSync:function(t,e){let n;if(r.isAbsolute(t)){if(!(n=i.existsSync(t)))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const a=r.dirname(e),o=r.join(a,t);if(n=i.existsSync(o))return{toCwd:o,toDst:t};if(!(n=i.existsSync(t)))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:r.relative(a,t)}}}}},function(t,e,n){"use strict";const r=n(12);t.exports={symlinkType:function(t,e,n){if(n="function"==typeof e?e:n,e="function"!=typeof e&&e)return n(null,e);r.lstat(t,(t,r)=>{if(t)return n(null,"file");e=r&&r.isDirectory()?"dir":"file",n(null,e)})},symlinkTypeSync:function(t,e){let n;if(e)return e;try{n=r.lstatSync(t)}catch(t){return"file"}return n&&n.isDirectory()?"dir":"file"}}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(50);i.outputJson=r(n(163)),i.outputJsonSync=n(164),i.outputJSON=i.outputJson,i.outputJSONSync=i.outputJsonSync,i.writeJSON=i.writeJson,i.writeJSONSync=i.writeJsonSync,i.readJSON=i.readJson,i.readJSONSync=i.readJsonSync,t.exports=i},function(t,e,n){var r;try{r=n(12)}catch(t){r=n(7)}function i(t,e){var n,r="\n";return"object"==typeof e&&null!==e&&(e.spaces&&(n=e.spaces),e.EOL&&(r=e.EOL)),JSON.stringify(t,e?e.replacer:null,n).replace(/\n/g,r)+r}function a(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,"")}var o={readFile:function(t,e,n){null==n&&(n=e,e={}),"string"==typeof e&&(e={encoding:e});var i=(e=e||{}).fs||r,o=!0;"throws"in e&&(o=e.throws),i.readFile(t,e,function(r,i){if(r)return n(r);var s;i=a(i);try{s=JSON.parse(i,e?e.reviver:null)}catch(e){return o?(e.message=t+": "+e.message,n(e)):n(null,null)}n(null,s)})},readFileSync:function(t,e){"string"==typeof(e=e||{})&&(e={encoding:e});var n=e.fs||r,i=!0;"throws"in e&&(i=e.throws);try{var o=n.readFileSync(t,e);return o=a(o),JSON.parse(o,e.reviver)}catch(e){if(i)throw e.message=t+": "+e.message,e;return null}},writeFile:function(t,e,n,a){null==a&&(a=n,n={});var o=(n=n||{}).fs||r,s="";try{s=i(e,n)}catch(t){return void(a&&a(t,null))}o.writeFile(t,s,n,a)},writeFileSync:function(t,e,n){var a=(n=n||{}).fs||r,o=i(e,n);return a.writeFileSync(t,o,n)}};t.exports=o},function(t,e,n){"use strict";const r=n(2),i=n(14),a=n(15).pathExists,o=n(50);t.exports=function(t,e,n,s){"function"==typeof n&&(s=n,n={});const l=r.dirname(t);a(l,(r,a)=>r?s(r):a?o.writeJson(t,e,n,s):void i.mkdirs(l,r=>{if(r)return s(r);o.writeJson(t,e,n,s)}))}},function(t,e,n){"use strict";const r=n(12),i=n(2),a=n(14),o=n(50);t.exports=function(t,e,n){const s=i.dirname(t);r.existsSync(s)||a.mkdirsSync(s),o.writeJsonSync(t,e,n)}},function(t,e,n){"use strict";t.exports={moveSync:n(166)}},function(t,e,n){"use strict";const r=n(7),i=n(2),a=n(70).copySync,o=n(30).removeSync,s=n(14).mkdirpSync,l=n(29);function c(t,e,n){try{r.renameSync(t,e)}catch(r){if("EXDEV"!==r.code)throw r;return function(t,e,n){return a(t,e,{overwrite:n,errorOnExist:!0}),o(t)}(t,e,n)}}t.exports=function(t,e,n){const a=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u}=l.checkPathsSync(t,e,"move");return l.checkParentPathsSync(t,u,e,"move"),s(i.dirname(e)),function(t,e,n){if(n)return o(e),c(t,e,n);if(r.existsSync(e))throw new Error("dest already exists.");return c(t,e,n)}(t,e,a)}},function(t,e,n){"use strict";const r=n(11).fromCallback;t.exports={move:r(n(168))}},function(t,e,n){"use strict";const r=n(7),i=n(2),a=n(73).copy,o=n(30).remove,s=n(14).mkdirp,l=n(15).pathExists,c=n(29);function u(t,e,n,i){r.rename(t,e,r=>r?"EXDEV"!==r.code?i(r):function(t,e,n,r){a(t,e,{overwrite:n,errorOnExist:!0},e=>e?r(e):o(t,r))}(t,e,n,i):i())}t.exports=function(t,e,n,r){"function"==typeof n&&(r=n,n={});const a=n.overwrite||n.clobber||!1;c.checkPaths(t,e,"move",(n,p)=>{if(n)return r(n);const{srcStat:h}=p;c.checkParentPaths(t,h,e,"move",n=>{if(n)return r(n);s(i.dirname(e),n=>n?r(n):function(t,e,n,r){if(n)return o(e,i=>i?r(i):u(t,e,n,r));l(e,(i,a)=>i?r(i):a?r(new Error("dest already exists.")):u(t,e,n,r))}(t,e,a,r))})})}},function(t,e,n){"use strict";const r=n(11).fromCallback,i=n(12),a=n(2),o=n(14),s=n(15).pathExists;t.exports={outputFile:r(function(t,e,n,r){"function"==typeof n&&(r=n,n="utf8");const l=a.dirname(t);s(l,(a,s)=>a?r(a):s?i.writeFile(t,e,n,r):void o.mkdirs(l,a=>{if(a)return r(a);i.writeFile(t,e,n,r)}))}),outputFileSync:function(t,...e){const n=a.dirname(t);if(i.existsSync(n))return i.writeFileSync(t,...e);o.mkdirsSync(n),i.writeFileSync(t,...e)}}},function(t,e,n){"use strict";function r(t,e){if(!(t&&e&&t.length&&e.length))throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=e}r.prototype.convert=function(t){var e,n,r,i={},a=this.srcAlphabet.length,o=this.dstAlphabet.length,s=t.length,l="string"==typeof t?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(e=0;e=o?(i[r++]=parseInt(n/o,10),n%=o):r>0&&(i[r++]=0);s=r,l=this.dstAlphabet.slice(n,n+1).concat(l)}while(0!==r);return l},r.prototype.isValid=function(t){for(var e=0;e0&&218!==r;){if(255!==t.nextUInt8())throw new Error("Invalid JPEG section offset");n=(r=t.nextUInt8())>=208&&r<=217||218===r?0:t.nextUInt16()-2,e(r,t.branch(0,n)),t.skip(n)}},getSizeFromSOFSection:function(t){return t.skip(1),{height:t.nextUInt16(),width:t.nextUInt16()}},getSectionName:function(t){var e,n;switch(t){case 216:e="SOI";break;case 196:e="DHT";break;case 219:e="DQT";break;case 221:e="DRI";break;case 218:e="SOS";break;case 254:e="COM";break;case 217:e="EOI";break;default:t>=224&&t<=239?(e="APP",n=t-224):t>=192&&t<=207&&196!==t&&200!==t&&204!==t?(e="SOF",n=t-192):t>=208&&t<=215&&(e="RST",n=t-208)}var r={name:e};return"number"==typeof n&&(r.index=n),r}}},function(t,e,n){var r=n(76),i=n(177),a=[{section:r.GPSIFD,type:2,name:"GPSLatitude",refType:1,refName:"GPSLatitudeRef",posVal:"N"},{section:r.GPSIFD,type:4,name:"GPSLongitude",refType:3,refName:"GPSLongitudeRef",posVal:"E"}],o=[{section:r.SubIFD,type:306,name:"ModifyDate"},{section:r.SubIFD,type:36867,name:"DateTimeOriginal"},{section:r.SubIFD,type:36868,name:"CreateDate"},{section:r.SubIFD,type:306,name:"ModifyDate"}];t.exports={castDegreeValues:function(t,e){a.forEach(function(n){var r=t(n);if(r){var i=t({section:n.section,type:n.refType,name:n.refName})===n.posVal?1:-1,a=(r[0]+r[1]/60+r[2]/3600)*i;e(n,a)}})},castDateValues:function(t,e){o.forEach(function(n){var r=t(n);if(r){var a=i.parseExifDate(r);void 0!==a&&e(n,a)}})},simplifyValue:function(t,e){return Array.isArray(t)&&1===(t=t.map(function(t){return 10===e||5===e?t[0]/t[1]:t})).length&&(t=t[0]),t}}},function(t,e){function n(t){return parseInt(t,10)}var r=3600,i=60;function a(t,e){t=t.map(n),e=e.map(n);var r=t[0],i=t[1]-1,a=t[2],o=e[0],s=e[1],l=e[2];return Date.UTC(r,i,a,o,s,l,0)/1e3}function o(t){var e=t.substr(0,10).split("-"),o=t.substr(11,8).split(":"),s=t.substr(19,6).split(":").map(n),l=s[0]*r+s[1]*i,c=a(e,o);if("number"==typeof(c-=l)&&!isNaN(c))return c}function s(t){var e=t.split(" "),n=a(e[0].split(":"),e[1].split(":"));if("number"==typeof n&&!isNaN(n))return n}t.exports={parseDateWithSpecFormat:s,parseDateWithTimezoneFormat:o,parseExifDate:function(t){var e=19===t.length&&":"===t.charAt(4);return 25===t.length&&"T"===t.charAt(10)?o(t):e?s(t):void 0}}},function(t,e){t.exports={exif:{1:"InteropIndex",2:"InteropVersion",11:"ProcessingSoftware",254:"SubfileType",255:"OldSubfileType",256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:"Thresholding",264:"CellWidth",265:"CellLength",266:"FillOrder",269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",285:"PageName",286:"XPosition",287:"YPosition",288:"FreeOffsets",289:"FreeByteCounts",290:"GrayResponseUnit",291:"GrayResponseCurve",292:"T4Options",293:"T6Options",296:"ResolutionUnit",297:"PageNumber",300:"ColorResponseUnit",301:"TransferFunction",305:"Software",306:"ModifyDate",315:"Artist",316:"HostComputer",317:"Predictor",318:"WhitePoint",319:"PrimaryChromaticities",320:"ColorMap",321:"HalftoneHints",322:"TileWidth",323:"TileLength",324:"TileOffsets",325:"TileByteCounts",326:"BadFaxLines",327:"CleanFaxData",328:"ConsecutiveBadFaxLines",330:"SubIFD",332:"InkSet",333:"InkNames",334:"NumberofInks",336:"DotRange",337:"TargetPrinter",338:"ExtraSamples",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",342:"TransferRange",343:"ClipPath",344:"XClipPathUnits",345:"YClipPathUnits",346:"Indexed",347:"JPEGTables",351:"OPIProxy",400:"GlobalParametersIFD",401:"ProfileType",402:"FaxProfile",403:"CodingMethods",404:"VersionYear",405:"ModeNumber",433:"Decode",434:"DefaultImageColor",435:"T82Options",437:"JPEGTables",512:"JPEGProc",513:"ThumbnailOffset",514:"ThumbnailLength",515:"JPEGRestartInterval",517:"JPEGLosslessPredictors",518:"JPEGPointTransforms",519:"JPEGQTables",520:"JPEGDCTables",521:"JPEGACTables",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite",559:"StripRowCounts",700:"ApplicationNotes",999:"USPTOMiscellaneous",4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight",18246:"Rating",18247:"XP_DIP_XML",18248:"StitchInfo",18249:"RatingPercent",32781:"ImageID",32931:"WangTag1",32932:"WangAnnotation",32933:"WangTag3",32934:"WangTag4",32995:"Matteing",32996:"DataType",32997:"ImageDepth",32998:"TileDepth",33405:"Model2",33421:"CFARepeatPatternDim",33422:"CFAPattern2",33423:"BatteryLevel",33424:"KodakIFD",33432:"Copyright",33434:"ExposureTime",33437:"FNumber",33445:"MDFileTag",33446:"MDScalePixel",33447:"MDColorTable",33448:"MDLabName",33449:"MDSampleInfo",33450:"MDPrepDate",33451:"MDPrepTime",33452:"MDFileUnits",33550:"PixelScale",33589:"AdventScale",33590:"AdventRevision",33628:"UIC1Tag",33629:"UIC2Tag",33630:"UIC3Tag",33631:"UIC4Tag",33723:"IPTC-NAA",33918:"IntergraphPacketData",33919:"IntergraphFlagRegisters",33920:"IntergraphMatrix",33921:"INGRReserved",33922:"ModelTiePoint",34016:"Site",34017:"ColorSequence",34018:"IT8Header",34019:"RasterPadding",34020:"BitsPerRunLength",34021:"BitsPerExtendedRunLength",34022:"ColorTable",34023:"ImageColorIndicator",34024:"BackgroundColorIndicator",34025:"ImageColorValue",34026:"BackgroundColorValue",34027:"PixelIntensityRange",34028:"TransparencyIndicator",34029:"ColorCharacterization",34030:"HCUsage",34031:"TrapIndicator",34032:"CMYKEquivalent",34118:"SEMInfo",34152:"AFCP_IPTC",34232:"PixelMagicJBIGOptions",34264:"ModelTransform",34306:"WB_GRGBLevels",34310:"LeafData",34377:"PhotoshopSettings",34665:"ExifOffset",34675:"ICC_Profile",34687:"TIFF_FXExtensions",34688:"MultiProfiles",34689:"SharedData",34690:"T88Options",34732:"ImageLayer",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34850:"ExposureProgram",34852:"SpectralSensitivity",34853:"GPSInfo",34855:"ISO",34856:"Opto-ElectricConvFactor",34857:"Interlace",34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",34908:"FaxRecvParams",34909:"FaxSubAddress",34910:"FaxRecvTime",34954:"LeafSubIFD",36864:"ExifVersion",36867:"DateTimeOriginal",36868:"CreateDate",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureCompensation",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",37387:"FlashEnergy",37388:"SpatialFrequencyResponse",37389:"Noise",37390:"FocalPlaneXResolution",37391:"FocalPlaneYResolution",37392:"FocalPlaneResolutionUnit",37393:"ImageNumber",37394:"SecurityClassification",37395:"ImageHistory",37396:"SubjectArea",37397:"ExposureIndex",37398:"TIFF-EPStandardID",37399:"SensingMethod",37434:"CIP3DataFile",37435:"CIP3Sheet",37436:"CIP3Side",37439:"StoNits",37500:"MakerNote",37510:"UserComment",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37679:"MSDocumentText",37680:"MSPropertySetStorage",37681:"MSDocumentTextPosition",37724:"ImageSourceData",40091:"XPTitle",40092:"XPComment",40093:"XPAuthor",40094:"XPKeywords",40095:"XPSubject",40960:"FlashpixVersion",40961:"ColorSpace",40962:"ExifImageWidth",40963:"ExifImageHeight",40964:"RelatedSoundFile",40965:"InteropOffset",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41485:"Noise",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41489:"ImageNumber",41490:"SecurityClassification",41491:"ImageHistory",41492:"SubjectLocation",41493:"ExposureIndex",41494:"TIFF-EPStandardID",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFormat",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"OwnerName",42033:"SerialNumber",42034:"LensInfo",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42112:"GDALMetadata",42113:"GDALNoData",42240:"Gamma",44992:"ExpandSoftware",44993:"ExpandLens",44994:"ExpandFilm",44995:"ExpandFilterLens",44996:"ExpandScanner",44997:"ExpandFlashLamp",48129:"PixelFormat",48130:"Transformation",48131:"Uncompressed",48132:"ImageType",48256:"ImageWidth",48257:"ImageHeight",48258:"WidthResolution",48259:"HeightResolution",48320:"ImageOffset",48321:"ImageByteCount",48322:"AlphaOffset",48323:"AlphaByteCount",48324:"ImageDataDiscard",48325:"AlphaDataDiscard",50215:"OceScanjobDesc",50216:"OceApplicationSelector",50217:"OceIDNumber",50218:"OceImageLogic",50255:"Annotations",50341:"PrintIM",50560:"USPTOOriginalContentType",50706:"DNGVersion",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50710:"CFAPlaneColor",50711:"CFALayout",50712:"LinearizationTable",50713:"BlackLevelRepeatDim",50714:"BlackLevel",50715:"BlackLevelDeltaH",50716:"BlackLevelDeltaV",50717:"WhiteLevel",50718:"DefaultScale",50719:"DefaultCropOrigin",50720:"DefaultCropSize",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50733:"BayerGreenSplit",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50737:"ChromaBlurRadius",50738:"AntiAliasStrength",50739:"ShadowScale",50740:"DNGPrivateData",50741:"MakerNoteSafety",50752:"RawImageSegmentation",50778:"CalibrationIlluminant1",50779:"CalibrationIlluminant2",50780:"BestQualityScale",50781:"RawDataUniqueID",50784:"AliasLayerMetadata",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50829:"ActiveArea",50830:"MaskedAreas",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50935:"NoiseReductionApplied",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:"ProfileEmbedPolicy",50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:"PreviewColorSpace",50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50974:"SubTileBlockSize",50975:"RowInterleaveFactor",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51008:"OpcodeList1",51009:"OpcodeList2",51022:"OpcodeList3",51041:"NoiseProfile",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:"ProfileHueSatMapEncoding",51108:"ProfileLookTableEncoding",51109:"BaselineExposureOffset",51110:"DefaultBlackRender",51111:"NewRawImageDigest",51112:"RawToPreviewGain",51125:"DefaultUserCrop",59932:"Padding",59933:"OffsetSchema",65000:"OwnerName",65001:"SerialNumber",65002:"Lens",65024:"KDC_IFD",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"}}},function(t,e){function n(t,e,n,r,i,a){this.global=i,e=e||0,n=n||t.byteLength-e,this.arrayBuffer=t.slice(e,e+n),this.view=new i.DataView(this.arrayBuffer,0,this.arrayBuffer.byteLength),this.setBigEndian(r),this.offset=0,this.parentOffset=(a||0)+e}n.prototype={setBigEndian:function(t){this.littleEndian=!t},nextUInt8:function(){var t=this.view.getUint8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.view.getInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.view.getUint16(this.offset,this.littleEndian);return this.offset+=2,t},nextUInt32:function(){var t=this.view.getUint32(this.offset,this.littleEndian);return this.offset+=4,t},nextInt16:function(){var t=this.view.getInt16(this.offset,this.littleEndian);return this.offset+=2,t},nextInt32:function(){var t=this.view.getInt32(this.offset,this.littleEndian);return this.offset+=4,t},nextFloat:function(){var t=this.view.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t},nextDouble:function(){var t=this.view.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t},nextBuffer:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.arrayBuffer.byteLength-this.offset},nextString:function(t){var e=this.arrayBuffer.slice(this.offset,this.offset+t);return e=String.fromCharCode.apply(null,new this.global.Uint8Array(e)),this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.arrayBuffer,e,t.arrayBuffer.byteLength-e,!t.littleEndian,t.global,t.parentOffset)},offset:this.offset,getParentOffset:function(){return t.parentOffset}}},offsetFrom:function(t){return this.parentOffset+this.offset-(t.offset+t.getParentOffset())},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.arrayBuffer.byteLength-(this.offset+t),new n(this.arrayBuffer,this.offset+t,e,!this.littleEndian,this.global,this.parentOffset)}},t.exports=n},function(t,e){function n(t,e,n,r){this.buffer=t,this.offset=e||0,n="number"==typeof n?n:t.length,this.endPosition=this.offset+n,this.setBigEndian(r)}n.prototype={setBigEndian:function(t){this.bigEndian=!!t},nextUInt8:function(){var t=this.buffer.readUInt8(this.offset);return this.offset+=1,t},nextInt8:function(){var t=this.buffer.readInt8(this.offset);return this.offset+=1,t},nextUInt16:function(){var t=this.bigEndian?this.buffer.readUInt16BE(this.offset):this.buffer.readUInt16LE(this.offset);return this.offset+=2,t},nextUInt32:function(){var t=this.bigEndian?this.buffer.readUInt32BE(this.offset):this.buffer.readUInt32LE(this.offset);return this.offset+=4,t},nextInt16:function(){var t=this.bigEndian?this.buffer.readInt16BE(this.offset):this.buffer.readInt16LE(this.offset);return this.offset+=2,t},nextInt32:function(){var t=this.bigEndian?this.buffer.readInt32BE(this.offset):this.buffer.readInt32LE(this.offset);return this.offset+=4,t},nextFloat:function(){var t=this.bigEndian?this.buffer.readFloatBE(this.offset):this.buffer.readFloatLE(this.offset);return this.offset+=4,t},nextDouble:function(){var t=this.bigEndian?this.buffer.readDoubleBE(this.offset):this.buffer.readDoubleLE(this.offset);return this.offset+=8,t},nextBuffer:function(t){var e=this.buffer.slice(this.offset,this.offset+t);return this.offset+=t,e},remainingLength:function(){return this.endPosition-this.offset},nextString:function(t){var e=this.buffer.toString("utf8",this.offset,this.offset+t);return this.offset+=t,e},mark:function(){var t=this;return{openWithOffset:function(e){return e=(e||0)+this.offset,new n(t.buffer,e,t.endPosition-e,t.bigEndian)},offset:this.offset}},offsetFrom:function(t){return this.offset-t.offset},skip:function(t){this.offset+=t},branch:function(t,e){return e="number"==typeof e?e:this.endPosition-(this.offset+t),new n(this.buffer,this.offset+t,e,this.bigEndian)}},t.exports=n},function(t,e){function n(t){Math.round;var e,n,r,i,a,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),p=new Array(65535),h=new Array(65535),f=new Array(64),d=new Array(64),g=[],m=0,b=7,_=new Array(64),y=new Array(64),v=new Array(64),w=new Array(256),x=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],M=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function D(t,e){for(var n=0,r=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=a,r++,n++;n*=2}return i}function P(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<>8&255),L(255&t)}function B(t,e,n,r,i){for(var a,o=i[0],s=i[240],l=function(t,e){var n,r,i,a,o,s,l,c,u,p,h=0;for(u=0;u<8;++u){n=t[h],r=t[h+1],i=t[h+2],a=t[h+3],o=t[h+4],s=t[h+5],l=t[h+6];var d=n+(c=t[h+7]),g=n-c,m=r+l,b=r-l,_=i+s,y=i-s,v=a+o,w=a-o,x=d+v,k=d-v,E=m+_,S=m-_;t[h]=x+E,t[h+4]=x-E;var T=.707106781*(S+k);t[h+2]=k+T,t[h+6]=k-T;var I=.382683433*((x=w+y)-(S=b+g)),O=.5411961*x+I,C=1.306562965*S+I,A=.707106781*(E=y+b),M=g+A,D=g-A;t[h+5]=D+O,t[h+3]=D-O,t[h+1]=M+C,t[h+7]=M-C,h+=8}for(h=0,u=0;u<8;++u){n=t[h],r=t[h+8],i=t[h+16],a=t[h+24],o=t[h+32],s=t[h+40],l=t[h+48];var P=n+(c=t[h+56]),L=n-c,R=r+l,B=r-l,N=i+s,j=i-s,z=a+o,F=a-o,U=P+z,W=P-z,G=R+N,H=R-N;t[h]=U+G,t[h+32]=U-G;var q=.707106781*(H+W);t[h+16]=W+q,t[h+48]=W-q;var Y=.382683433*((U=F+j)-(H=B+L)),V=.5411961*U+Y,Z=1.306562965*H+Y,X=.707106781*(G=j+B),J=L+X,$=L-X;t[h+40]=$+V,t[h+24]=$-V,t[h+8]=J+Z,t[h+56]=J-Z,h++}for(u=0;u<64;++u)p=t[u]*e[u],f[u]=p>0?p+.5|0:p-.5|0;return f}(t,e),c=0;c<64;++c)d[k[c]]=l[c];var u=d[0]-n;n=d[0],0==u?P(r[0]):(P(r[h[a=32767+u]]),P(p[a]));for(var g=63;g>0&&0==d[g];g--);if(0==g)return P(o),n;for(var m,b=1;b<=g;){for(var _=b;0==d[b]&&b<=g;++b);var y=b-_;if(y>=16){m=y>>4;for(var v=1;v<=m;++v)P(s);y&=15}a=32767+d[b],P(i[(y<<4)+h[a]]),P(p[a]),b++}return 63!=g&&P(o),n}function N(t){if(t<=0&&(t=1),t>100&&(t=100),a!=t){(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=o((e[n]*t+50)/100);r<1?r=1:r>255&&(r=255),s[k[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var p=o((i[a]*t+50)/100);p<1?p=1:p>255&&(p=255),l[k[a]]=p}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,d=0;d<8;d++)for(var g=0;g<8;g++)c[f]=1/(s[k[f]]*h[d]*h[g]*8),u[f]=1/(l[k[f]]*h[d]*h[g]*8),f++})(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t}}this.encode=function(t,a){(new Date).getTime();a&&N(a),g=new Array,m=0,b=7,R(65496),R(65504),R(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),R(1),R(1),L(0),L(0),function(){R(65499),R(132),L(0);for(var t=0;t<64;t++)L(s[t]);L(1);for(var e=0;e<64;e++)L(l[e])}(),function(t,e){R(65472),R(17),L(8),R(e),R(t),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(t.width,t.height),function(){R(65476),R(418),L(0);for(var t=0;t<16;t++)L(E[t+1]);for(var e=0;e<=11;e++)L(S[e]);L(16);for(var n=0;n<16;n++)L(T[n+1]);for(var r=0;r<=161;r++)L(I[r]);L(1);for(var i=0;i<16;i++)L(O[i+1]);for(var a=0;a<=11;a++)L(C[a]);L(17);for(var o=0;o<16;o++)L(A[o+1]);for(var s=0;s<=161;s++)L(M[s])}(),R(65498),R(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var o=0,p=0,h=0;m=0,b=7,this.encode.displayName="_encode_";for(var f,d,w,k,D,j,z,F,U,W=t.data,G=t.width,H=t.height,q=4*G,Y=0;Y>3)*q+(z=4*(7&U)),Y+F>=H&&(j-=q*(Y+1+F-H)),f+z>=q&&(j-=f+z-q+4),d=W[j++],w=W[j++],k=W[j++],_[U]=(x[d]+x[w+256>>0]+x[k+512>>0]>>16)-128,y[U]=(x[d+768>>0]+x[w+1024>>0]+x[k+1280>>0]>>16)-128,v[U]=(x[d+1280>>0]+x[w+1536>>0]+x[k+1792>>0]>>16)-128;o=B(_,c,o,e,r),p=B(y,u,p,n,i),h=B(v,u,h,n,i),f+=32}Y+=8}if(b>=0){var V=[];V[1]=b+1,V[0]=(1<>0]=38470*t,x[t+512>>0]=7471*t+32768,x[t+768>>0]=-11059*t,x[t+1024>>0]=-21709*t,x[t+1280>>0]=32768*t+8421375,x[t+1536>>0]=-27439*t,x[t+1792>>0]=-5329*t}(),N(t),(new Date).getTime()}()}t.exports=function(t,e){void 0===e&&(e=50);return{data:new n(e).encode(t,e),width:t.width,height:t.height}}},function(t,e){var n=function(){"use strict";var t=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,a=1567,o=3784,s=5793,l=2896;function c(){}function u(t,e){for(var n,r,i=0,a=[],o=16;o>0&&!t[o-1];)o--;a.push({children:[],index:0});var s,l=a[0];for(n=0;n0;)l=a.pop();for(l.index++,a.push(l);a.length<=n;)a.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;i++}n+10)return f>>--d&1;if(255==(f=e[n++])){var t=e[n++];if(t)throw new Error("unexpected marker: "+(f<<8|t).toString(16))}return d=7,f>>>7}function m(t){for(var e,n=t;null!==(e=g());){if("number"==typeof(n=n[e]))return n;if("object"!=typeof n)throw new Error("invalid huffman sequence")}return null}function b(t){for(var e=0;t>0;){var n=g();if(null===n)return;e=e<<1|n,t--}return e}function _(t){var e=b(t);return e>=1<0)y--;else for(var r=o,i=s;r<=i;){var a=m(e.huffmanTableAC),l=15&a,u=a>>4;if(0!==l)n[t[r+=u]]=_(l)*(1<>4,0===h)a<15?(y=b(a)+(1<>4;if(0!==s)n[t[a+=l]]=_(s),a++;else{if(l<15)break;a+=16}}};var M,D,P,L,R=0;for(D=1==A?i[0].blocksPerLine*i[0].blocksPerColumn:u*r.mcusPerColumn,a||(a=D);R=65488&&M<=65495))break;n+=2}return n-h}function h(t,c){var u,p,h=[],f=c.blocksPerLine,d=c.blocksPerColumn,g=f<<3,m=new Int32Array(64),b=new Uint8Array(64);function _(t,u,p){var h,f,d,g,m,b,_,y,v,w,x=c.quantizationTable,k=p;for(w=0;w<64;w++)k[w]=t[w]*x[w];for(w=0;w<8;++w){var E=8*w;0!=k[1+E]||0!=k[2+E]||0!=k[3+E]||0!=k[4+E]||0!=k[5+E]||0!=k[6+E]||0!=k[7+E]?(h=s*k[0+E]+128>>8,f=s*k[4+E]+128>>8,d=k[2+E],g=k[6+E],m=l*(k[1+E]-k[7+E])+128>>8,y=l*(k[1+E]+k[7+E])+128>>8,b=k[3+E]<<4,_=k[5+E]<<4,v=h-f+1>>1,h=h+f+1>>1,f=v,v=d*o+g*a+128>>8,d=d*a-g*o+128>>8,g=v,v=m-_+1>>1,m=m+_+1>>1,_=v,v=y+b+1>>1,b=y-b+1>>1,y=v,v=h-g+1>>1,h=h+g+1>>1,g=v,v=f-d+1>>1,f=f+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=b*n+_*e+2048>>12,b=b*e-_*n+2048>>12,_=v,k[0+E]=h+y,k[7+E]=h-y,k[1+E]=f+_,k[6+E]=f-_,k[2+E]=d+b,k[5+E]=d-b,k[3+E]=g+m,k[4+E]=g-m):(v=s*k[0+E]+512>>10,k[0+E]=v,k[1+E]=v,k[2+E]=v,k[3+E]=v,k[4+E]=v,k[5+E]=v,k[6+E]=v,k[7+E]=v)}for(w=0;w<8;++w){var S=w;0!=k[8+S]||0!=k[16+S]||0!=k[24+S]||0!=k[32+S]||0!=k[40+S]||0!=k[48+S]||0!=k[56+S]?(h=s*k[0+S]+2048>>12,f=s*k[32+S]+2048>>12,d=k[16+S],g=k[48+S],m=l*(k[8+S]-k[56+S])+2048>>12,y=l*(k[8+S]+k[56+S])+2048>>12,b=k[24+S],_=k[40+S],v=h-f+1>>1,h=h+f+1>>1,f=v,v=d*o+g*a+2048>>12,d=d*a-g*o+2048>>12,g=v,v=m-_+1>>1,m=m+_+1>>1,_=v,v=y+b+1>>1,b=y-b+1>>1,y=v,v=h-g+1>>1,h=h+g+1>>1,g=v,v=f-d+1>>1,f=f+d+1>>1,d=v,v=m*i+y*r+2048>>12,m=m*r-y*i+2048>>12,y=v,v=b*n+_*e+2048>>12,b=b*e-_*n+2048>>12,_=v,k[0+S]=h+y,k[56+S]=h-y,k[8+S]=f+_,k[48+S]=f-_,k[16+S]=d+b,k[40+S]=d-b,k[24+S]=g+m,k[32+S]=g-m):(v=s*p[w+0]+8192>>14,k[0+S]=v,k[8+S]=v,k[16+S]=v,k[24+S]=v,k[32+S]=v,k[40+S]=v,k[48+S]=v,k[56+S]=v)}for(w=0;w<64;++w){var T=128+(k[w]+8>>4);u[w]=T<0?0:T>255?255:T}}for(var y=0;y255?255:t}return c.prototype={load:function(t){var e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.onload=function(){var t=new Uint8Array(e.response||e.mozResponseArrayBuffer);this.parse(t),this.onload&&this.onload()}.bind(this),e.send(null)},parse:function(e){var n=0;e.length;function r(){var t=e[n]<<8|e[n+1];return n+=2,t}function i(){var t=r(),i=e.subarray(n,n+t-2);return n+=i.length,i}function a(t){var e,n,r=0,i=0;for(n in t.components)t.components.hasOwnProperty(n)&&(r<(e=t.components[n]).h&&(r=e.h),i>4==0)for(U=0;U<64;U++){w[t[U]]=e[n++]}else{if(v>>4!=1)throw new Error("DQT: invalid table spec");for(U=0;U<64;U++){w[t[U]]=r()}}f[15&v]=w}break;case 65472:case 65473:case 65474:r(),(o={}).extended=65473===b,o.progressive=65474===b,o.precision=e[n++],o.scanLines=r(),o.samplesPerLine=r(),o.components={},o.componentsOrder=[];var x,k=e[n++];for(z=0;z>4,S=15&e[n+1],T=e[n+2];o.componentsOrder.push(x),o.components[x]={h:E,v:S,quantizationIdx:T},n+=3}a(o),d.push(o);break;case 65476:var I=r();for(z=2;z>4==0?m:g)[15&O]=u(C,M)}break;case 65501:r(),s=r();break;case 65498:r();var D=e[n++],P=[];for(z=0;z>4],W.huffmanTableAC=g[15&L],P.push(W)}var R=e[n++],B=e[n++],N=e[n++],j=p(e,n,o,P,s,R,B,N>>4,15&N);n+=j;break;case 65535:255!==e[n]&&n--;break;default:if(255==e[n-3]&&e[n-2]>=192&&e[n-2]<=254){n-=3;break}throw new Error("unknown JPEG marker "+b.toString(16))}b=r()}if(1!=d.length)throw new Error("only single frame JPEGs supported");for(var z=0;z>3))*this._bitmapInfo.height,n=Math.max(e,i.Z_MIN_CHUNK);this._inflate=i.createInflate({chunkSize:n});var r=e,a=this.emit.bind(this,"error");this._inflate.on("error",function(t){r&&a(t)}),this._filter.on("complete",this._complete.bind(this));var o=this._filter.write.bind(this._filter);this._inflate.on("data",function(t){r&&(t.length>r&&(t=t.slice(0,r)),r-=t.length,o(t))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)},u.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new o(this._bitmapInfo)},u.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t},u.prototype._handlePalette=function(t){this._bitmapInfo.palette=t},u.prototype._simpleTransparency=function(){this._metaData.alpha=!0},u.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},u.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"),this.destroySoon())},u.prototype._complete=function(t){if(!this.errord){try{var e=l.dataToBitMap(t,this._bitmapInfo),n=c(e,this._bitmapInfo);e=null}catch(t){return void this._handleError(t)}this.emit("parsed",n)}}},function(t,e,n){"use strict";var r=n(6),i=n(77),a=n(78),o=t.exports=function(t){i.call(this);var e=[],n=this;this._filter=new a(t,{read:this.read.bind(this),write:function(t){e.push(t)},complete:function(){n.emit("complete",Buffer.concat(e))}}),this._filter.start()};r.inherits(o,i)},function(t,e,n){"use strict";var r=n(6),i=n(4),a=n(22),o=n(85),s=t.exports=function(t){i.call(this);var e=t||{};this._packer=new o(e),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,i),s.prototype.pack=function(t,e,n,r){this.emit("data",new Buffer(a.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,n)),r&&this.emit("data",this._packer.packGAMA(r));var i=this._packer.filterData(t,e,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(t){this.emit("data",this._packer.packIDAT(t))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}},function(t,e,n){"use strict";var r=n(22);t.exports=function(t,e,n,i){var a,o=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(i.colorType);if(i.colorType===i.inputColorType){var s=(a=new ArrayBuffer(2),new DataView(a).setInt16(0,256,!0),256!==new Int16Array(a)[0]);if(8===i.bitDepth||16===i.bitDepth&&s)return t}var l=16!==i.bitDepth?t:new Uint16Array(t.buffer),c=255,u=r.COLORTYPE_TO_BPP_MAP[i.inputColorType];4!==u||i.inputHasAlpha||(u=3);var p=r.COLORTYPE_TO_BPP_MAP[i.colorType];16===i.bitDepth&&(c=65535,p*=2);var h=new Buffer(e*n*p),f=0,d=0,g=i.bgColor||{};function m(){var t,e,n,a=c;switch(i.inputColorType){case r.COLORTYPE_COLOR_ALPHA:a=l[f+3],t=l[f],e=l[f+1],n=l[f+2];break;case r.COLORTYPE_COLOR:t=l[f],e=l[f+1],n=l[f+2];break;case r.COLORTYPE_ALPHA:a=l[f+1],e=t=l[f],n=t;break;case r.COLORTYPE_GRAYSCALE:e=t=l[f],n=t;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(o||(a/=c,t=Math.min(Math.max(Math.round((1-a)*g.red+a*t),0),c),e=Math.min(Math.max(Math.round((1-a)*g.green+a*e),0),c),n=Math.min(Math.max(Math.round((1-a)*g.blue+a*n),0),c))),{red:t,green:e,blue:n,alpha:a}}void 0===g.red&&(g.red=c),void 0===g.green&&(g.green=c),void 0===g.blue&&(g.blue=c);for(var b=0;b=a?t[e+o-a]:0,l=t[e+o]-s;r[i+o]=l}},2:function(t,e,n,r,i){for(var a=0;a0?t[e+a-n]:0,s=t[e+a]-o;r[i+a]=s}},3:function(t,e,n,r,i,a){for(var o=0;o=a?t[e+o-a]:0,l=e>0?t[e+o-n]:0,c=t[e+o]-(s+l>>1);r[i+o]=c}},4:function(t,e,n,i,a,o){for(var s=0;s=o?t[e+s-o]:0,c=e>0?t[e+s-n]:0,u=e>0&&s>=o?t[e+s-(n+o)]:0,p=t[e+s]-r(l,c,u);i[a+s]=p}}},a={0:function(t,e,n){for(var r=0,i=e+n,a=e;a=r?t[e+a-r]:0,s=t[e+a]-o;i+=Math.abs(s)}return i},2:function(t,e,n){for(var r=0,i=e+n,a=e;a0?t[a-n]:0,s=t[a]-o;r+=Math.abs(s)}return r},3:function(t,e,n,r){for(var i=0,a=0;a=r?t[e+a-r]:0,s=e>0?t[e+a-n]:0,l=t[e+a]-(o+s>>1);i+=Math.abs(l)}return i},4:function(t,e,n,i){for(var a=0,o=0;o=i?t[e+o-i]:0,l=e>0?t[e+o-n]:0,c=e>0&&o>=i?t[e+o-(n+i)]:0,u=t[e+o]-r(s,l,c);a+=Math.abs(u)}return a}};t.exports=function(t,e,n,r,o){var s;if("filterType"in r&&-1!==r.filterType){if("number"!=typeof r.filterType)throw new Error("unrecognised filter types");s=[r.filterType]}else s=[0,1,2,3,4];16===r.bitDepth&&(o*=2);for(var l=e*o,c=0,u=0,p=new Buffer((l+1)*n),h=s[0],f=0;f1)for(var d=1/0,g=0;g>3))*p.height;g=a(m,{chunkSize:b,maxLength:b})}if(m=null,!g||!g.length)throw new Error("bad png - invalid inflate data response");var _=s.process(g,p);m=null;var y=c.dataToBitMap(_,p);_=null;var v=u(y,p);return p.data=v,p.gamma=h||0,p}},function(t,e,n){"use strict";var r=n(28).ok,i=n(16),a=n(6),o=n(8).kMaxLength;function s(t){if(!(this instanceof s))return new s(t);t&&t.chunkSize=0,"have should not go down"),n>0){var i=s._buffer.slice(s._offset,s._offset+n);if(s._offset+=n,i.length>p&&(i=i.slice(0,p)),f.push(i),d+=i.length,0===(p-=i.length))return!1}return(0===e||s._offset>=s._chunkSize)&&(u=s._chunkSize,s._offset=0,s._buffer=Buffer.allocUnsafe(s._chunkSize)),0===e&&(h+=c-t,c=t,!0)}}this.on("error",function(t){a=t}),r(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(e,t,h,c,this._buffer,this._offset,u);m=m||this._writeState}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw a;if(d>=o)throw l(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+o.toString(16)+" bytes");var b=Buffer.concat(f,d);return l(this),b},a.inherits(s,i.Inflate),t.exports=e=c,e.Inflate=s,e.createInflate=function(t){return new s(t)},e.inflateSync=c},function(t,e,n){"use strict";var r=n(86),i=n(78);e.process=function(t,e){var n=[],a=new r(t);return new i(e,{read:a.read.bind(a),write:function(t){n.push(t)},complete:function(){}}).start(),a.process(),Buffer.concat(n)}},function(t,e,n){"use strict";var r=!0,i=n(16);i.deflateSync||(r=!1);var a=n(22),o=n(85);t.exports=function(t,e){if(!r)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");var n=new o(e||{}),s=[];s.push(new Buffer(a.PNG_SIGNATURE)),s.push(n.packIHDR(t.width,t.height)),t.gamma&&s.push(n.packGAMA(t.gamma));var l=n.filterData(t.data,t.width,t.height),c=i.deflateSync(l,n.getDeflateOptions());if(l=null,!c||!c.length)throw new Error("bad png - invalid compressed data response");return s.push(n.packIDAT(c)),s.push(n.packIEND()),Buffer.concat(s)}},function(t,e){function n(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}n.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,n=3*this.width+this.extraBytes,r=0;r0){var o=this.pos+r*n+3*this.width;t.fill(0,o,o+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new n(t).encode(),width:t.width,height:t.height}}},function(t,e){function n(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}n.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<=0?this.height-1:-this.height;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-s&1];this.data[o+4*s]=0,this.data[o+4*s+1]=l.blue,this.data[o+4*s+2]=l.green,this.data[o+4*s+3]=l.red}0!=e&&(this.pos+=4-e)}},n.prototype.bit4=function(){if(2==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0,n=!1;t>4),1&l&&l+1>1&1)&&this.pos++}}else for(l=0;l>4),n=!n}function c(e){var n=this.palette[e];this.data[t]=0,this.data[t+1]=n.blue,this.data[t+2]=n.green,this.data[t+3]=n.red,t+=4}}else{var u=Math.ceil(this.width/2),p=u%4;for(o=this.height-1;o>=0;o--){var h=this.bottom_up?o:this.height-1-o;for(a=0;a>4,d=15&i,g=this.palette[f];if(this.data[t]=0,this.data[t+1]=g.blue,this.data[t+2]=g.green,this.data[t+3]=g.red,2*a+1>=this.width)break;g=this.palette[d],this.data[t+4]=0,this.data[t+4+1]=g.blue,this.data[t+4+2]=g.green,this.data[t+4+3]=g.red}0!=p&&(this.pos+=4-p)}}},n.prototype.bit8=function(){if(1==this.compress){this.data.fill(255);for(var t=0,e=this.bottom_up?this.height-1:0;t=0;a--){var u=this.bottom_up?a:this.height-1-a;for(i=0;i=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&e)/e*255|0,l=(a>>10&e)/e*255|0,c=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=l}this.pos+=t}},n.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],n=0;n<16;n++)this.maskRed>>n&1&&e[0]++,this.maskGreen>>n&1&&e[1]++,this.maskBlue>>n&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a>e[1],c=(o&this.maskRed)>>e[2],u=i*this.width*4+4*a;this.data[u]=0,this.data[u+1]=s,this.data[u+2]=l,this.data[u+3]=c}this.pos+=t}},n.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(e=this.bottom_up?t:this.height-1-t,n=0;n0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==c)throw new Error(o[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,d))!==c)throw new Error(o[n]);this._dict_set=!0}}function d(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(t,e){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=a.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&n!==c)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==o||(this.onEnd(c),s.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=f,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},function(t,e,n){"use strict";var r,i=n(17),a=n(198),o=n(87),s=n(88),l=n(51),c=0,u=1,p=3,h=4,f=5,d=0,g=1,m=-2,b=-3,_=-5,y=-1,v=1,w=2,x=3,k=4,E=0,S=2,T=8,I=9,O=15,C=8,A=286,M=30,D=19,P=2*A+1,L=15,R=3,B=258,N=B+R+1,j=32,z=42,F=69,U=73,W=91,G=103,H=113,q=666,Y=1,V=2,Z=3,X=4,J=3;function $(t,e){return t.msg=l[e],e}function Q(t){return(t<<1)-(t>4?9:0)}function K(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){a._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-N?t.strstart-(t.w_size-N):0,c=t.window,u=t.w_mask,p=t.prev,h=t.strstart+B,f=c[a+o-1],d=c[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+o]===d&&c[n+o-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&ao){if(t.match_start=e,o=r,r>=s)break;f=c[a+o-1],d=c[a+o]}}}while((e=p[e&u])>l&&0!=--i);return o<=t.lookahead?o:t.lookahead}function at(t){var e,n,r,a,l,c,u,p,h,f,d=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-N)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);a+=d}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,p=t.strstart+t.lookahead,h=a,f=void 0,(f=c.avail_in)>h&&(f=h),n=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,p),1===c.state.wrap?c.adler=o(c.adler,u,f,p):2===c.state.wrap&&(c.adler=s(c.adler,u,f,p)),c.next_in+=f,c.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=R)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<=R&&(t.ins_h=(t.ins_h<=R)if(r=a._tr_tally(t,t.strstart-t.match_start,t.match_length-R),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=R){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=R&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=R-1)),t.prev_length>=R&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-R,r=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-R),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),a<1||a>I||n!==T||r<8||r>15||e<0||e>9||o<0||o>k)return $(t,m);8===r&&(r=9);var l=new ct;return t.state=l,l.strm=t,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&e===c)return Y;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return Y;if(t.strstart-t.block_start>=t.w_size-N&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===h?(et(t,!0),0===t.strm.avail_out?Z:X):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),Y)}),new lt(4,4,8,4,ot),new lt(4,5,16,8,ot),new lt(4,6,32,32,ot),new lt(4,4,16,16,st),new lt(8,16,32,32,st),new lt(8,16,128,128,st),new lt(8,32,128,256,st),new lt(32,128,258,1024,st),new lt(32,258,258,4096,st)],e.deflateInit=function(t,e){return ht(t,e,T,O,C,E)},e.deflateInit2=ht,e.deflateReset=pt,e.deflateResetKeep=ut,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?m:(t.state.gzhead=e,d):m},e.deflate=function(t,e){var n,i,o,l;if(!t||!t.state||e>f||e<0)return t?$(t,m):m;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===q&&e!==h)return $(t,0===t.avail_out?_:m);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===z)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=F):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,J),i.status=H);else{var b=T+(i.w_bits-8<<4)<<8;b|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=j),b+=31-b%31,i.status=H,rt(i,b),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===F)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),tt(t),o=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),tt(t),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=W)}else i.status=W;if(i.status===W)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),tt(t),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=G)}else i.status=G;if(i.status===G&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=H)):i.status=H),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,d}else if(0===t.avail_in&&Q(e)<=Q(n)&&e!==h)return $(t,_);if(i.status===q&&0!==t.avail_in)return $(t,_);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==q){var y=i.strategy===w?function(t,e){for(var n;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(e===c)return Y;break}if(t.match_length=0,n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===h?(et(t,!0),0===t.strm.avail_out?Z:X):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Y:V}(i,e):i.strategy===x?function(t,e){for(var n,r,i,o,s=t.window;;){if(t.lookahead<=B){if(at(t),t.lookahead<=B&&e===c)return Y;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=R&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=t.strstart+B;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=R?(n=a._tr_tally(t,1,t.match_length-R),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return Y}return t.insert=0,e===h?(et(t,!0),0===t.strm.avail_out?Z:X):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Y:V}(i,e):r[i.level].func(i,e);if(y!==Z&&y!==X||(i.status=q),y===Y||y===Z)return 0===t.avail_out&&(i.last_flush=-1),d;if(y===V&&(e===u?a._tr_align(i):e!==f&&(a._tr_stored_block(i,0,0,!1),e===p&&(K(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,d}return e!==h?d:i.wrap<=0?g:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:g)},e.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==z&&e!==F&&e!==U&&e!==W&&e!==G&&e!==H&&e!==q?$(t,m):(t.state=null,e===H?$(t,b):d):m},e.deflateSetDictionary=function(t,e){var n,r,a,s,l,c,u,p,h=e.length;if(!t||!t.state)return m;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==z||n.lookahead)return m;for(1===s&&(t.adler=o(t.adler,e,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(K(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,e,h-n.w_size,n.w_size,0),e=p,h=n.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=h,t.next_in=0,t.input=e,at(n);n.lookahead>=R;){r=n.strstart,a=n.lookahead-(R-1);do{n.ins_h=(n.ins_h<=0;)t[e]=0}var c=0,u=1,p=2,h=29,f=256,d=f+1+h,g=30,m=19,b=2*d+1,_=15,y=16,v=7,w=256,x=16,k=17,E=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],T=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=new Array(2*(d+2));l(C);var A=new Array(2*g);l(A);var M=new Array(512);l(M);var D=new Array(256);l(D);var P=new Array(h);l(P);var L,R,B,N=new Array(g);function j(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function z(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function F(t){return t<256?M[t]:M[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function W(t,e,n){t.bi_valid>y-n?(t.bi_buf|=e<>y-t.bi_valid,t.bi_valid+=n-y):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function q(t,e,n){var r,i,a=new Array(_+1),o=0;for(r=1;r<=_;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=H(a[s]++,s))}}function Y(t){var e;for(e=0;e8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Z(t,e,n,r){var i=2*e,a=2*n;return t[i]>1;n>=1;n--)X(t,a,n);i=l;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],X(t,a,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,a[2*i]=a[2*n]+a[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,a[2*n+1]=a[2*r+1]=i,t.heap[1]=i++,X(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,a,o,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,p=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,d=e.stat_desc.max_length,g=0;for(a=0;a<=_;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;nd&&(a=d,g++),l[2*r+1]=a,r>c||(t.bl_count[a]++,o=0,r>=f&&(o=h[r-f]),s=l[2*r],t.opt_len+=s*(a+o),p&&(t.static_len+=s*(u[2*r+1]+o)));if(0!==g){do{for(a=d-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[d]--,g-=2}while(g>0);for(a=d;0!==a;a--)for(r=t.bl_count[a];0!==r;)(i=t.heap[--n])>c||(l[2*i+1]!==a&&(t.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(t,e),q(a,c,t.bl_count)}function Q(t,e,n){var r,i,a=-1,o=e[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=e[2*(r+1)+1],++s>=7;r0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return a;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e=3&&0===t.bl_tree[2*O[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),l=t.opt_len+3+7>>>3,(c=t.static_len+3+7>>>3)<=l&&(l=c)):l=c=n+5,n+4<=l&&-1!==e?et(t,e,n,r):t.strategy===i||c===l?(W(t,(u<<1)+(r?1:0),3),J(t,C,A)):(W(t,(p<<1)+(r?1:0),3),function(t,e,n,r){var i;for(W(t,e-257,5),W(t,n-1,5),W(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(D[n]+f+1)]++,t.dyn_dtree[2*F(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){W(t,u<<1,3),G(t,w,C),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},function(t,e,n){"use strict";var r=n(200),i=n(17),a=n(89),o=n(91),s=n(51),l=n(90),c=n(203),u=Object.prototype.toString;function p(t){if(!(this instanceof p))return new p(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=a.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary))!==o.Z_OK))throw new Error(s[n])}function h(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}p.prototype.push=function(t,e){var n,s,l,c,p,h=this.strm,f=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?h.input=a.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(f),h.next_out=0,h.avail_out=f),(n=r.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(h.output,h.next_out),c=h.next_out-l,p=a.buf2string(h.output,l),h.next_out=c,h.avail_out=f-c,c&&i.arraySet(h.output,h.output,l,c,0),this.onData(p)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),h.avail_out=0,!0)},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=p,e.inflate=h,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},e.ungzip=h},function(t,e,n){"use strict";var r=n(17),i=n(87),a=n(88),o=n(201),s=n(202),l=0,c=1,u=2,p=4,h=5,f=6,d=0,g=1,m=2,b=-2,_=-3,y=-4,v=-5,w=8,x=1,k=2,E=3,S=4,T=5,I=6,O=7,C=8,A=9,M=10,D=11,P=12,L=13,R=14,B=15,N=16,j=17,z=18,F=19,U=20,W=21,G=22,H=23,q=24,Y=25,V=26,Z=27,X=28,J=29,$=30,Q=31,K=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function at(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=x,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):b}function ot(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,at(t)):b}function st(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?b:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,ot(t))):b}function lt(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,(n=st(t,e))!==d&&(t.state=null),n):b}var ct,ut,pt=!0;function ht(t){if(pt){var e;for(ct=new r.Buf32(512),ut=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,ct,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,ut,0,t.work,{bits:5}),pt=!1}t.lencode=ct,t.lenbits=9,t.distcode=ut,t.distbits=5}function ft(t,e,n,i){var a,o=t.state;return null===o.window&&(o.wsize=1<=o.wsize?(r.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((a=o.wsize-o.wnext)>i&&(a=i),r.arraySet(o.window,e,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,e,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=a(n.check,It,2,0),st=0,lt=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=$;break}if((15&st)!==w){t.msg="unknown compression method",n.mode=$;break}if(lt-=4,xt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=xt;else if(xt>n.wbits){t.msg="invalid window size",n.mode=$;break}n.dmax=1<>8&1),512&n.flags&&(It[0]=255&st,It[1]=st>>>8&255,n.check=a(n.check,It,2,0)),st=0,lt=0,n.mode=E;case E:for(;lt<32;){if(0===at)break t;at--,st+=tt[nt++]<>>8&255,It[2]=st>>>16&255,It[3]=st>>>24&255,n.check=a(n.check,It,4,0)),st=0,lt=0,n.mode=S;case S:for(;lt<16;){if(0===at)break t;at--,st+=tt[nt++]<>8),512&n.flags&&(It[0]=255&st,It[1]=st>>>8&255,n.check=a(n.check,It,2,0)),st=0,lt=0,n.mode=T;case T:if(1024&n.flags){for(;lt<16;){if(0===at)break t;at--,st+=tt[nt++]<>>8&255,n.check=a(n.check,It,2,0)),st=0,lt=0}else n.head&&(n.head.extra=null);n.mode=I;case I:if(1024&n.flags&&((pt=n.length)>at&&(pt=at),pt&&(n.head&&(xt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,pt,xt)),512&n.flags&&(n.check=a(n.check,tt,pt,nt)),at-=pt,nt+=pt,n.length-=pt),n.length))break t;n.length=0,n.mode=O;case O:if(2048&n.flags){if(0===at)break t;pt=0;do{xt=tt[nt+pt++],n.head&&xt&&n.length<65536&&(n.head.name+=String.fromCharCode(xt))}while(xt&&pt>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=P;break;case M:for(;lt<32;){if(0===at)break t;at--,st+=tt[nt++]<>>=7<,lt-=7<,n.mode=Z;break}for(;lt<3;){if(0===at)break t;at--,st+=tt[nt++]<>>=1)){case 0:n.mode=R;break;case 1:if(ht(n),n.mode=U,e===f){st>>>=2,lt-=2;break t}break;case 2:n.mode=j;break;case 3:t.msg="invalid block type",n.mode=$}st>>>=2,lt-=2;break;case R:for(st>>>=7<,lt-=7<lt<32;){if(0===at)break t;at--,st+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=$;break}if(n.length=65535&st,st=0,lt=0,n.mode=B,e===f)break t;case B:n.mode=N;case N:if(pt=n.length){if(pt>at&&(pt=at),pt>ot&&(pt=ot),0===pt)break t;r.arraySet(et,tt,nt,pt,it),at-=pt,nt+=pt,ot-=pt,it+=pt,n.length-=pt;break}n.mode=P;break;case j:for(;lt<14;){if(0===at)break t;at--,st+=tt[nt++]<>>=5,lt-=5,n.ndist=1+(31&st),st>>>=5,lt-=5,n.ncode=4+(15&st),st>>>=4,lt-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=$;break}n.have=0,n.mode=z;case z:for(;n.have>>=3,lt-=3}for(;n.have<19;)n.lens[Ot[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Et={bits:n.lenbits},kt=s(l,n.lens,0,19,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid code lengths set",n.mode=$;break}n.have=0,n.mode=F;case F:for(;n.have>>16&255,_t=65535&Tt,!((mt=Tt>>>24)<=lt);){if(0===at)break t;at--,st+=tt[nt++]<>>=mt,lt-=mt,n.lens[n.have++]=_t;else{if(16===_t){for(St=mt+2;lt>>=mt,lt-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=$;break}xt=n.lens[n.have-1],pt=3+(3&st),st>>>=2,lt-=2}else if(17===_t){for(St=mt+3;lt>>=mt)),st>>>=3,lt-=3}else{for(St=mt+7;lt>>=mt)),st>>>=7,lt-=7}if(n.have+pt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=$;break}for(;pt--;)n.lens[n.have++]=xt}}if(n.mode===$)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=$;break}if(n.lenbits=9,Et={bits:n.lenbits},kt=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,Et),n.lenbits=Et.bits,kt){t.msg="invalid literal/lengths set",n.mode=$;break}if(n.distbits=6,n.distcode=n.distdyn,Et={bits:n.distbits},kt=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Et),n.distbits=Et.bits,kt){t.msg="invalid distances set",n.mode=$;break}if(n.mode=U,e===f)break t;case U:n.mode=W;case W:if(at>=6&&ot>=258){t.next_out=it,t.avail_out=ot,t.next_in=nt,t.avail_in=at,n.hold=st,n.bits=lt,o(t,ut),it=t.next_out,et=t.output,ot=t.avail_out,nt=t.next_in,tt=t.input,at=t.avail_in,st=n.hold,lt=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;bt=(Tt=n.lencode[st&(1<>>16&255,_t=65535&Tt,!((mt=Tt>>>24)<=lt);){if(0===at)break t;at--,st+=tt[nt++]<>yt)])>>>16&255,_t=65535&Tt,!(yt+(mt=Tt>>>24)<=lt);){if(0===at)break t;at--,st+=tt[nt++]<>>=yt,lt-=yt,n.back+=yt}if(st>>>=mt,lt-=mt,n.back+=mt,n.length=_t,0===bt){n.mode=V;break}if(32&bt){n.back=-1,n.mode=P;break}if(64&bt){t.msg="invalid literal/length code",n.mode=$;break}n.extra=15&bt,n.mode=G;case G:if(n.extra){for(St=n.extra;lt>>=n.extra,lt-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;bt=(Tt=n.distcode[st&(1<>>16&255,_t=65535&Tt,!((mt=Tt>>>24)<=lt);){if(0===at)break t;at--,st+=tt[nt++]<>yt)])>>>16&255,_t=65535&Tt,!(yt+(mt=Tt>>>24)<=lt);){if(0===at)break t;at--,st+=tt[nt++]<>>=yt,lt-=yt,n.back+=yt}if(st>>>=mt,lt-=mt,n.back+=mt,64&bt){t.msg="invalid distance code",n.mode=$;break}n.offset=_t,n.extra=15&bt,n.mode=q;case q:if(n.extra){for(St=n.extra;lt>>=n.extra,lt-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=$;break}n.mode=Y;case Y:if(0===ot)break t;if(pt=ut-ot,n.offset>pt){if((pt=n.offset-pt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=$;break}pt>n.wnext?(pt-=n.wnext,dt=n.wsize-pt):dt=n.wnext-pt,pt>n.length&&(pt=n.length),gt=n.window}else gt=et,dt=it-n.offset,pt=n.length;pt>ot&&(pt=ot),ot-=pt,n.length-=pt;do{et[it++]=gt[dt++]}while(--pt);0===n.length&&(n.mode=W);break;case V:if(0===ot)break t;et[it++]=n.length,ot--,n.mode=W;break;case Z:if(n.wrap){for(;lt<32;){if(0===at)break t;at--,st|=tt[nt++]<>>=v=y>>>24,d-=v,0===(v=y>>>16&255))T[a++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=g[(65535&y)+(f&(1<>>=v,d-=v),d<15&&(f+=S[r++]<>>=v=y>>>24,d-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(f&(1<l){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=v,d-=v,x>(v=a-o)){if((v=x-v)>u&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,E=h,0===p){if(k+=c-v,v2;)T[a++]=E[k++],T[a++]=E[k++],T[a++]=E[k++],w-=3;w&&(T[a++]=E[k++],w>1&&(T[a++]=E[k++]))}else{k=a-x;do{T[a++]=T[k++],T[a++]=T[k++],T[a++]=T[k++],w-=3}while(w>2);w&&(T[a++]=T[k++],w>1&&(T[a++]=T[k++]))}break}}break}}while(r>3,f&=(1<<(d-=w<<3))-1,t.next_in=r,t.next_out=a,t.avail_in=r=1&&0===R[T];T--);if(I>T&&(I=T),0===T)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(S=1;S0&&(0===t||1!==T))return-1;for(B[1]=0,k=1;k<15;k++)B[k+1]=B[k]+R[k];for(E=0;E852||2===t&&M>592)return 1;for(;;){y=k-C,p[E]<_?(v=0,w=p[E]):p[E]>_?(v=N[j+p[E]],w=P[L+p[E]]):(v=96,w=0),f=1<>C)+(d-=f)]=y<<24|v<<16|w|0}while(0!==d);for(f=1<>=1;if(0!==f?(D&=f-1,D+=f):D=0,E++,0==--R[k]){if(k===T)break;k=e[n+p[E]]}if(k>I&&(D&m)!==g){for(0===C&&(C=I),b+=S,A=1<<(O=k-C);O+C852||2===t&&M>592)return 1;c[g=D&m]=I<<24|O<<16|b-u|0}}return 0!==D&&(c[b+D]=k-C<<24|64<<16|0),h.bits=I,0}},function(t,e,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(t,e){function n(t,e){if(!(t=t.replace(/\t+/g," ").trim()))return null;var n=t.indexOf(" ");if(-1===n)throw new Error("no named row at line "+e);var i=t.substring(0,n);t=(t=(t=(t=t.substring(n+1)).replace(/letter=[\'\"]\S+[\'\"]/gi,"")).split("=")).map(function(t){return t.trim().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)});for(var a=[],o=0;o root";n=n.font,e.common=i(n.common[0].$),e.info=i(n.info[0].$);for(var r=0;r=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},o=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.Builder=function(){function e(t){var e,n,i;for(e in this.options={},n=r[.2])s.call(n,e)&&(i=n[e],this.options[e]=i);for(e in t)s.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var n,i,l,c,u,p;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===r[.2].rootName?e=e[u=Object.keys(e)[0]]:u=this.options.rootName,p=this,l=function(t,e){var r,c,u,h,f,d;if("object"!=typeof e)p.options.cdata&&a(e)?t.raw(o(e)):t.txt(e);else if(Array.isArray(e)){for(h in e)if(s.call(e,h))for(f in c=e[h])u=c[f],t=l(t.ele(f),u).up()}else for(f in e)if(s.call(e,f))if(c=e[f],f===n){if("object"==typeof c)for(r in c)d=c[r],t=t.att(r,d)}else if(f===i)t=p.options.cdata&&a(c)?t.raw(o(c)):t.txt(c);else if(Array.isArray(c))for(h in c)s.call(c,h)&&(t="string"==typeof(u=c[h])?p.options.cdata&&a(u)?t.ele(f).raw(o(u)).up():t.ele(f,u).up():l(t.ele(f),u).up());else"object"==typeof c?t=l(t.ele(f),c).up():"string"==typeof c&&p.options.cdata&&a(c)?t=t.ele(f).raw(o(c)).up():(null==c&&(c=""),t=t.ele(f,c.toString()).up());return t},c=t.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(c,e).end(this.options.renderOpts)},e}()}).call(this)},function(t,e,n){(function(){var e,r,i,a,o,s,l;l=n(18),o=l.assign,s=l.isFunction,e=n(209),r=n(210),a=n(53),i=n(211),t.exports.create=function(t,n,r,i){var a,s;if(null==t)throw new Error("Root element needs a name");return i=o({},n,r,i),s=(a=new e(i)).element(t),i.headless||(a.declaration(i),null==i.pubID&&null==i.sysID||a.doctype(i)),s},t.exports.begin=function(t,n,i){var a;return s(t)&&(n=(a=[t,n])[0],i=a[1],t={}),n?new r(t,n,i):new e(t)},t.exports.stringWriter=function(t){return new a(t)},t.exports.streamWriter=function(t,e){return new i(t,e)}}).call(this)},function(t,e,n){(function(){var e,r,i,a,o={}.hasOwnProperty;a=n(18).isPlainObject,e=n(13),i=n(93),r=n(53),t.exports=function(t){function n(t){n.__super__.constructor.call(this,null),t||(t={}),t.writer||(t.writer=new r),this.options=t,this.stringify=new i(t),this.isDocument=!0}return function(t,e){for(var n in e)o.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,e),n.prototype.end=function(t){var e;return t?a(t)&&(e=t,t=this.options.writer.set(e)):t=this.options.writer,t.document(this)},n.prototype.toString=function(t){return this.options.writer.set(t).document(this)},n}()}).call(this)},function(t,e,n){(function(){var e,r,i,a,o,s,l,c,u,p,h,f,d,g,m,b,_,y,v,w={}.hasOwnProperty;v=n(18),_=v.isObject,b=v.isFunction,y=v.isPlainObject,p=n(31),r=n(32),i=n(33),f=n(40),m=n(41),h=n(42),c=n(34),u=n(35),a=n(36),s=n(37),o=n(38),l=n(39),e=n(92),g=n(93),d=n(53),t.exports=function(){function t(t,e,n){var r;t||(t={}),t.writer?y(t.writer)&&(r=t.writer,t.writer=new d(r)):t.writer=new d(t),this.options=t,this.writer=t.writer,this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.node=function(t,e,n){var r;if(null==t)throw new Error("Missing node name");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node");return this.openCurrent(),t=t.valueOf(),null==e&&(e={}),e=e.valueOf(),_(e)||(n=(r=[e,n])[0],e=r[1]),this.currentNode=new p(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},t.prototype.element=function(t,e,n){return this.currentNode&&this.currentNode instanceof u?this.dtdElement.apply(this,arguments):this.node(t,e,n)},t.prototype.attribute=function(t,n){var r,i;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(null!=t&&(t=t.valueOf()),_(t))for(r in t)w.call(t,r)&&(i=t[r],this.attribute(r,i));else b(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[t]=new e(this,t,n));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new m(this,t),this.onData(this.writer.text(e,this.currentLevel+1)),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new r(this,t),this.onData(this.writer.cdata(e,this.currentLevel+1)),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new i(this,t),this.onData(this.writer.comment(e,this.currentLevel+1)),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new f(this,t),this.onData(this.writer.raw(e,this.currentLevel+1)),this},t.prototype.instruction=function(t,e){var n,r,i,a,o;if(this.openCurrent(),null!=t&&(t=t.valueOf()),null!=e&&(e=e.valueOf()),Array.isArray(t))for(n=0,a=t.length;n=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){if(!t.isOpen)return!this.root&&0===this.currentLevel&&t instanceof p&&(this.root=t),this.onData(this.writer.openNode(t,this.currentLevel)),t.isOpen=!0},t.prototype.closeNode=function(t){if(!t.isClosed)return this.onData(this.writer.closeNode(t,this.currentLevel)),t.isClosed=!0},t.prototype.onData=function(t){return this.documentStarted=!0,this.onDataCallback(t)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,n){return this.node(t,e,n)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,n){return this.declaration(t,e,n)},t.prototype.dtd=function(t,e,n){return this.doctype(t,e,n)},t.prototype.e=function(t,e,n){return this.element(t,e,n)},t.prototype.n=function(t,e,n){return this.node(t,e,n)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},function(t,e,n){(function(){var e,r,i,a,o,s,l,c,u,p,h,f,d,g={}.hasOwnProperty;l=n(34),c=n(35),e=n(32),r=n(33),u=n(31),h=n(40),f=n(41),p=n(42),i=n(36),a=n(38),o=n(37),s=n(39),d=n(94),t.exports=function(t){function n(t,e){n.__super__.constructor.call(this,e),this.stream=t}return function(t,e){for(var n in e)g.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(n,d),n.prototype.document=function(t){var e,n,i,a,o,s,u,h;for(n=0,a=(s=t.children).length;n"+this.endline(t))},n.prototype.comment=function(t,e){return this.stream.write(this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.endline(t))},n.prototype.declaration=function(t,e){return this.stream.write(this.space(e)),this.stream.write('"),this.stream.write(this.endline(t))},n.prototype.docType=function(t,n){var l,c,u,h;if(n||(n=0),this.stream.write(this.space(n)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(t)),c=0,u=(h=t.children).length;c"),this.stream.write(this.endline(t))},n.prototype.element=function(t,n){var i,a,o,s,l,c,d,m;for(l in n||(n=0),m=this.space(n),this.stream.write(m+"<"+t.name),c=t.attributes)g.call(c,l)&&(i=c[l],this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)this.stream.write(">"),this.stream.write(t.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),o=0,s=(d=t.children).length;o")}return this.stream.write(this.endline(t))},n.prototype.processingInstruction=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.raw=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.text=function(t,e){return this.stream.write(this.space(e)+t.value+this.endline(t))},n.prototype.dtdAttList=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdElement=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdEntity=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.dtdNotation=function(t,e){return this.stream.write(this.space(e)+""+this.endline(t))},n.prototype.endline=function(t){return t.isLastRootNode?"":this.newline},n}()}).call(this)},function(t,e,n){(function(){"use strict";var t,r,i,a,o,s,l,c,u=function(t,e){return function(){return t.apply(e,arguments)}},p={}.hasOwnProperty;l=n(213),i=n(9),t=n(215),s=n(95),c=n(216).setImmediate,r=n(52).defaults,a=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},o=function(t,e,n){var r,i;for(r=0,i=t.length;r0&&(l[t.options.childkey]=u),u=l;return r.length>0?t.assignOrPush(d,c,u):(t.options.explicitRoot&&(f=u,(u={})[c]=f),t.resultObject=u,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,a;if(a=r[r.length-1])return a[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(a[t.options.childkey]=a[t.options.childkey]||[],(i={"#name":"__text__"})[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),a[t.options.childkey].push(i)),a}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){var e;if(e=n(t))return e.cdata=!0}},h.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,c(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},h}(),e.parseString=function(t,n,r){var i,a;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(a=n)):("function"==typeof n&&(i=n),a={}),new e.Parser(a).parseString(t,i)}}).call(this)},function(t,e,n){!function(t){t.parser=function(t,e){return new i(t,e)},t.SAXParser=i,t.SAXStream=o,t.createStream=function(t,e){return new o(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,n){if(!(this instanceof i))return new i(e,n);!function(t){for(var e=0,n=r.length;e"===i?(I(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=E.TEXT):b(i)?(this.state=E.SGML_DECL_QUOTED,this.sgmlDecl+=i):this.sgmlDecl+=i;continue;case E.SGML_DECL_QUOTED:i===this.q&&(this.state=E.SGML_DECL,this.q=""),this.sgmlDecl+=i;continue;case E.DOCTYPE:">"===i?(this.state=E.TEXT,I(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=i,"["===i?this.state=E.DOCTYPE_DTD:b(i)&&(this.state=E.DOCTYPE_QUOTED,this.q=i));continue;case E.DOCTYPE_QUOTED:this.doctype+=i,i===this.q&&(this.q="",this.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:this.doctype+=i,"]"===i?this.state=E.DOCTYPE:b(i)&&(this.state=E.DOCTYPE_DTD_QUOTED,this.q=i);continue;case E.DOCTYPE_DTD_QUOTED:this.doctype+=i,i===this.q&&(this.state=E.DOCTYPE_DTD,this.q="");continue;case E.COMMENT:"-"===i?this.state=E.COMMENT_ENDING:this.comment+=i;continue;case E.COMMENT_ENDING:"-"===i?(this.state=E.COMMENT_ENDED,this.comment=C(this.opt,this.comment),this.comment&&I(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+i,this.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==i?(D(this,"Malformed comment"),this.comment+="--"+i,this.state=E.COMMENT):this.state=E.TEXT;continue;case E.CDATA:"]"===i?this.state=E.CDATA_ENDING:this.cdata+=i;continue;case E.CDATA_ENDING:"]"===i?this.state=E.CDATA_ENDING_2:(this.cdata+="]"+i,this.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===i?(this.cdata&&I(this,"oncdata",this.cdata),I(this,"onclosecdata"),this.cdata="",this.state=E.TEXT):"]"===i?this.cdata+="]":(this.cdata+="]]"+i,this.state=E.CDATA);continue;case E.PROC_INST:"?"===i?this.state=E.PROC_INST_ENDING:m(i)?this.state=E.PROC_INST_BODY:this.procInstName+=i;continue;case E.PROC_INST_BODY:if(!this.procInstBody&&m(i))continue;"?"===i?this.state=E.PROC_INST_ENDING:this.procInstBody+=i;continue;case E.PROC_INST_ENDING:">"===i?(I(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=E.TEXT):(this.procInstBody+="?"+i,this.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:y(f,i)?this.tagName+=i:(P(this),">"===i?B(this):"/"===i?this.state=E.OPEN_TAG_SLASH:(m(i)||D(this,"Invalid character in tag name"),this.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===i?(B(this,!0),N(this)):(D(this,"Forward-slash in opening tag not followed by >"),this.state=E.ATTRIB);continue;case E.ATTRIB:if(m(i))continue;">"===i?B(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(h,i)?(this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):D(this,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===i?this.state=E.ATTRIB_VALUE:">"===i?(D(this,"Attribute without value"),this.attribValue=this.attribName,R(this),B(this)):m(i)?this.state=E.ATTRIB_NAME_SAW_WHITE:y(f,i)?this.attribName+=i:D(this,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===i)this.state=E.ATTRIB_VALUE;else{if(m(i))continue;D(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",I(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===i?B(this):y(h,i)?(this.attribName=i,this.state=E.ATTRIB_NAME):(D(this,"Invalid attribute name"),this.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(m(i))continue;b(i)?(this.q=i,this.state=E.ATTRIB_VALUE_QUOTED):(D(this,"Unquoted attribute value"),this.state=E.ATTRIB_VALUE_UNQUOTED,this.attribValue=i);continue;case E.ATTRIB_VALUE_QUOTED:if(i!==this.q){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=i;continue}R(this),this.q="",this.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:m(i)?this.state=E.ATTRIB:">"===i?B(this):"/"===i?this.state=E.OPEN_TAG_SLASH:y(h,i)?(D(this,"No whitespace between attributes"),this.attribName=i,this.attribValue="",this.state=E.ATTRIB_NAME):D(this,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!_(i)){"&"===i?this.state=E.ATTRIB_VALUE_ENTITY_U:this.attribValue+=i;continue}R(this),">"===i?B(this):this.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(this.tagName)">"===i?N(this):y(f,i)?this.tagName+=i:this.script?(this.script+=""===i?N(this):D(this,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var c,u;switch(this.state){case E.TEXT_ENTITY:c=E.TEXT,u="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:c=E.ATTRIB_VALUE_QUOTED,u="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:c=E.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===i?(this[u]+=j(this),this.entity="",this.state=c):y(this.entity.length?g:d,i)?this.entity+=i:(D(this,"Invalid character in entity name"),this[u]+="&"+this.entity+i,this.entity="",this.state=c);continue;default:throw new Error(this,"Unknown state: "+this.state)}this.position>=this.bufferCheckPosition&&function(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),i=0,a=0,o=r.length;an)switch(r[a]){case"textNode":O(e);break;case"cdata":I(e,"oncdata",e.cdata),e.cdata="";break;case"script":I(e,"onscript",e.script),e.script="";break;default:A(e,"Max buffer length exceeded: "+r[a])}i=Math.max(i,s)}var l=t.MAX_BUFFER_LENGTH-i;e.bufferCheckPosition=l+e.position}(this);return this} +/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;O(t=this),""!==t.cdata&&(I(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(I(t,"onscript",t.script),t.script="")}};try{e=n(4).Stream}catch(t){e=function(){}}var a=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function o(t,n){if(!(this instanceof o))return new o(t,n);e.apply(this),this._parser=new i(t,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,a.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}o.prototype=Object.create(e.prototype,{constructor:{value:o}}),o.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=n(214).StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},o.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},o.prototype.on=function(t,n){var r=this;return r._parser["on"+t]||-1===a.indexOf(t)||(r._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),e.prototype.on.call(r,t,n)};var s="[CDATA[",l="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",p={xml:c,xmlns:u},h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function b(t){return'"'===t||"'"===t}function _(t){return">"===t||m(t)}function y(t,e){return t.test(e)}function v(t,e){return!y(t,e)}var w,x,k,E=0;for(var S in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var n=t.ENTITIES[e],r="number"==typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r}),t.STATE)t.STATE[t.STATE[S]]=S;function T(t,e,n){t[e]&&t[e](n)}function I(t,e,n){t.textNode&&O(t),T(t,e,n)}function O(t){t.textNode=C(t.opt,t.textNode),t.textNode&&T(t,"ontext",t.textNode),t.textNode=""}function C(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function A(t,e){return O(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,T(t,"onerror",e),t}function M(t){return t.sawRoot&&!t.closedRoot&&D(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&A(t,"Unexpected end"),O(t),t.c="",t.closed=!0,T(t,"onend"),i.call(t,t.strict,t.opt),t}function D(t,e){if("object"!=typeof t||!(t instanceof i))throw new Error("bad call to strictFail");t.strict&&A(t,e)}function P(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,I(t,"onopentagstart",n)}function L(t,e){var n=t.indexOf(":")<0?["",t]:t.split(":"),r=n[0],i=n[1];return e&&"xmlns"===t&&(r="xmlns",i=""),{prefix:r,local:i}}function R(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=L(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==c)D(t,"xml: prefix must be bound to "+c+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==u)D(t,"xmlns: prefix must be bound to "+u+"\nActual: "+t.attribValue);else{var i=t.tag,a=t.tags[t.tags.length-1]||t;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,I(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function B(t,e){if(t.opt.xmlns){var n=t.tag,r=L(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(D(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){I(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var a=0,o=t.attribList.length;a",t.tagName="",void(t.state=E.SCRIPT);I(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;D(t,"Unexpected close tag")}if(e<0)return D(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=E.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var a=t.tag=t.tags.pop();t.tagName=t.tag.name,I(t,"onclosetag",t.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var l=t.tags[t.tags.length-1]||t;t.opt.xmlns&&a.ns!==l.ns&&Object.keys(a.ns).forEach(function(e){var n=a.ns[e];I(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function j(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:("#"===(n=r).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),i=(e=parseInt(n,16)).toString(16)):(n=n.slice(1),i=(e=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(D(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function z(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):m(e)||(D(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function F(t,e){var n="";return e1114111||x(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?n.push(o):(t=55296+((o-=65536)>>10),e=o%1024+56320,n.push(t,e)),(r+1===i||n.length>16384)&&(a+=w.apply(null,n),n.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:k,configurable:!0,writable:!0}):String.fromCodePoint=k)}(e)},function(t,e){t.exports=require("string_decoder")},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){t.exports=require("timers")},function(t,e){t.exports=function(t){for(var e in"chasrset"in t&&(t.charset=t.chasrset,delete t.chasrset),t)"face"!==e&&"charset"!==e&&(t[e]="padding"===e||"spacing"===e?t[e].split(",").map(function(t){return parseInt(t,10)}):parseInt(t[e],10));return t}},function(t,e){var n=[66,77,70];function r(t,e,n){if(n>e.length-1)return 0;var r=e.readUInt8(n++),a=e.readInt32LE(n);switch(n+=4,r){case 1:t.info=function(t,e){var n={};n.size=t.readInt16LE(e);var r=t.readUInt8(e+2);n.smooth=r>>7&1,n.unicode=r>>6&1,n.italic=r>>5&1,n.bold=r>>4&1,r>>3&1&&(n.fixedHeight=1);return n.charset=t.readUInt8(e+3)||"",n.stretchH=t.readUInt16LE(e+4),n.aa=t.readUInt8(e+6),n.padding=[t.readInt8(e+7),t.readInt8(e+8),t.readInt8(e+9),t.readInt8(e+10)],n.spacing=[t.readInt8(e+11),t.readInt8(e+12)],n.outline=t.readUInt8(e+13),n.face=function(t,e){return i(t,e).toString("utf8")}(t,e+14),n}(e,n);break;case 2:t.common=function(t,e){var n={};n.lineHeight=t.readUInt16LE(e),n.base=t.readUInt16LE(e+2),n.scaleW=t.readUInt16LE(e+4),n.scaleH=t.readUInt16LE(e+6),n.pages=t.readUInt16LE(e+8);t.readUInt8(e+10);return n.packed=0,n.alphaChnl=t.readUInt8(e+11),n.redChnl=t.readUInt8(e+12),n.greenChnl=t.readUInt8(e+13),n.blueChnl=t.readUInt8(e+14),n}(e,n);break;case 3:t.pages=function(t,e,n){for(var r=[],a=i(t,e),o=a.length+1,s=n/o,l=0;l3)throw new Error("Only supports BMFont Binary v3 (BMFont App v1.10)");for(var i={kernings:[],chars:[]},a=0;a<5;a++)e+=r(i,t,e);return i}},function(t,e,n){n(2);var r=n(7);function i(){this.types=Object.create(null),this.extensions=Object.create(null)}i.prototype.define=function(t){for(var e in t){for(var n=t[e],r=0;r4&&r(t.slice(0,4),i)}},function(t,e,n){var r=n(8).Buffer;t.exports=function(t,e){if(r.isBuffer(t)&&r.isBuffer(e)){if("function"==typeof t.equals)return t.equals(e);if(t.length!==e.length)return!1;for(var n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},function(t,e){var n=1e3,r=60*n,i=60*r,a=24*i,o=365.25*a;function s(t,e,n){if(!(t0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===c&&!1===isNaN(t))return e.long?s(l=t,a,"day")||s(l,i,"hour")||s(l,r,"minute")||s(l,n,"second")||l+" ms":function(t){if(t>=a)return Math.round(t/a)+"d";if(t>=i)return Math.round(t/i)+"h";if(t>=r)return Math.round(t/r)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(229),i=n(6);(e=t.exports=n(97)).init=function(t){t.inspectOpts={};for(var n=Object.keys(e.inspectOpts),r=0;rNumber.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");t.ref();var i=Math.min(65558,e),a=new Buffer(i),o=e-a.length;_(t,a,0,i,o,function(s){if(s)return r(s);for(var l=i-22;l>=0;l-=1)if(101010256===a.readUInt32LE(l)){var c=a.slice(l),u=c.readUInt16LE(4);if(0!==u)return r(new Error("multi-disk zip files are not supported: found disk number: "+u));var p=c.readUInt16LE(10),h=c.readUInt32LE(16),d=c.readUInt16LE(20),g=c.length-22;if(d!==g)return r(new Error("invalid comment length. expected: "+g+". found: "+d));var m=k(c,22,c.length,!1);if(65535!==p&&4294967295!==h)return r(null,new f(t,h,e,p,m,n.autoClose,n.lazyEntries));var b=new Buffer(20),y=o+l-b.length;return void _(t,b,0,b.length,y,function(i){if(i)return r(i);if(117853008!==b.readUInt32LE(0))return r(new Error("invalid ZIP64 End of Central Directory Locator signature"));var a=E(b,8),o=new Buffer(56);_(t,o,0,o.length,a,function(i){return i?r(i):101075792!==o.readUInt32LE(0)?r(new Error("invalid ZIP64 end of central directory record signature")):(p=E(o,32),h=E(o,48),r(null,new f(t,h,e,p,m,n.autoClose,n.lazyEntries)))})})}r(new Error("end of central directory record signature not found"))})}function f(t,e,n,r,i,a,o){var l=this;s.call(l),l.reader=t,l.reader.on("error",function(t){g(l,t)}),l.reader.once("close",function(){l.emit("close")}),l.readEntryCursor=e,l.fileSize=n,l.entryCount=r,l.comment=i,l.entriesRead=0,l.autoClose=!!a,l.lazyEntries=!!o,l.isOpen=!0,l.emittedError=!1,l.lazyEntries||l.readEntry()}function d(t,e){t.autoClose&&t.close(),g(t,e)}function g(t,e){t.emittedError||(t.emittedError=!0,t.emit("error",e))}function m(){}function b(t,e){return new Date(1980+(t>>9&127),(t>>5&15)-1,31&t,e>>11&31,e>>5&63,2*(31&e),0)}function _(t,e,n,r,i,a){if(0===r)return setImmediate(function(){a(null,new Buffer(0))});t.read(e,n,r,i,function(t,e){return t?a(t):ef.length)return d(t,new Error("Zip64 Extended Information Extra Field does not include Original Size"));r.uncompressedSize=E(f,m),m+=8}if(4294967295===r.compressedSize){if(m+8>f.length)return d(t,new Error("Zip64 Extended Information Extra Field does not include Compressed Size"));r.compressedSize=E(f,m),m+=8}if(4294967295===r.relativeOffsetOfLocalHeader){if(m+8>f.length)return d(t,new Error("Zip64 Extended Information Extra Field does not include Relative Header Offset"));r.relativeOffsetOfLocalHeader=E(f,m),m+=8}}if(0===r.compressionMethod&&r.compressedSize!==r.uncompressedSize){var b="compressed/uncompressed size mismatch for stored file: "+r.compressedSize+" != "+r.uncompressedSize;return d(t,new Error(b))}if(-1!==r.fileName.indexOf("\\"))return d(t,new Error("invalid characters in fileName: "+r.fileName));if(/^[a-zA-Z]:/.test(r.fileName)||/^\//.test(r.fileName))return d(t,new Error("absolute path: "+r.fileName));if(-1!==r.fileName.split("/").indexOf(".."))return d(t,new Error("invalid relative path: "+r.fileName));t.emit("entry",r),t.lazyEntries||t.readEntry()}})}})}}else setImmediate(function(){t.autoClose&&t.close(),t.emittedError||t.emit("end")})},f.prototype.openReadStream=function(t,e){var n=this;if(!n.isOpen)return e(new Error("closed"));n.reader.ref();var r=new Buffer(30);_(n.reader,r,0,r.length,t.relativeOffsetOfLocalHeader,function(a){try{if(a)return e(a);var o=r.readUInt32LE(0);if(67324752!==o)return e(new Error("invalid local file header signature: 0x"+o.toString(16)));var s,l=r.readUInt16LE(26),c=r.readUInt16LE(28),u=t.relativeOffsetOfLocalHeader+r.length+l+c;if(0===t.compressionMethod)s=!1;else{if(8!==t.compressionMethod)return e(new Error("unsupported compression method: "+t.compressionMethod));s=!0}var p=u,h=p+t.compressedSize;if(0!==t.compressedSize&&h>n.fileSize)return e(new Error("file data overflows file bounds: "+p+" + "+t.compressedSize+" > "+n.fileSize));var f=n.reader.createReadStream({start:p,end:h}),d=f;if(s){var g=!1,m=i.createInflateRaw();f.on("error",function(t){setImmediate(function(){g||m.emit("error",t)})});var b=new y(t.uncompressedSize);m.on("error",function(t){setImmediate(function(){g||b.emit("error",t)})}),b.destroy=function(){g=!0,m.unpipe(b),f.unpipe(m),f.destroy()},d=f.pipe(m).pipe(b)}e(null,d)}finally{n.reader.unref()}})},m.prototype.getLastModDate=function(){return b(this.lastModFileDate,this.lastModFileTime)},o.inherits(y,l),y.prototype._transform=function(t,e,n){if(this.actualByteCount+=t.length,this.actualByteCount>this.expectedByteCount){var r="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(r))}n(null,t)},y.prototype._flush=function(t){if(this.actualByteCount0)){if(t.refCount<0)throw new Error("invalid unref");t.close(function(e){if(e)return t.emit("error",e);t.emit("close")})}},v.prototype.createReadStream=function(t){var e=t.start,n=t.end;if(e===n){var r=new c;return setImmediate(function(){r.end()}),r}var i=this._readStreamForRange(e,n),a=!1,o=new w(this);i.on("error",function(t){setImmediate(function(){a||o.emit("error",t)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var s=new y(n-e);return o.on("error",function(t){setImmediate(function(){a||s.emit("error",t)})}),s.destroy=function(){a=!0,o.unpipe(s),o.destroy()},i.pipe(o).pipe(s)},v.prototype._readStreamForRange=function(t,e){throw new Error("not implemented")},v.prototype.read=function(t,e,n,r,i){var a=this.createReadStream({start:r,end:r+n}),o=new u,s=0;o._write=function(n,r,i){n.copy(t,e+s,0,n.length),s+=n.length,i()},o.on("finish",i),a.on("error",function(t){i(t)}),a.pipe(o)},v.prototype.close=function(t){setImmediate(t)},o.inherits(w,c),w.prototype._flush=function(t){this.unref(),t()},w.prototype.unref=function(t){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var x="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function k(t,e,n,r){if(r)return t.toString("utf8",e,n);for(var i="",a=e;a0)){if(t.refCount<0)throw new Error("invalid unref");t.autoClose&&r.close(t.fd,function(e){e?t.emit("error",e):t.emit("close")})}},i.inherits(h,o),h.prototype._read=function(t){var e=this;if(!e.destroyed){var n=Math.min(e._readableState.highWaterMark,t);if(null!=e.endOffset&&(n=Math.min(n,e.endOffset-e.pos)),n<=0)return e.destroyed=!0,e.push(null),void e.context.unref();e.context.pend.go(function(t){if(e.destroyed)return t();var i=new Buffer(n);r.read(e.context.fd,i,0,n,e.pos,function(n,r){n?e.destroy(n):0===r?(e.destroyed=!0,e.push(null),e.context.unref()):(e.pos+=r,e.push(i.slice(0,r))),t()})})}},h.prototype.destroy=function(t){this.destroyed||(t=t||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",t),this.context.unref())},i.inherits(f,s),f.prototype._write=function(t,e,n){var i=this;if(!i.destroyed){if(i.pos+t.length>i.endOffset){var a=new Error("maximum file length exceeded");return a.code="ETOOBIG",i.destroy(),void n(a)}i.context.pend.go(function(e){if(i.destroyed)return e();r.write(i.context.fd,t,0,t.length,i.pos,function(t,r){t?(i.destroy(),e(),n(t)):(i.bytesWritten+=r,i.pos+=r,i.emit("progress"),e(),n())})})}},f.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},i.inherits(d,u),d.prototype.read=function(t,e,n,r,i){var a=r+n,o=a-this.buffer.length,s=o>0?o:n;this.buffer.copy(t,e,r,a),setImmediate(function(){i(null,s)})},d.prototype.write=function(t,e,n,r,i){t.copy(this.buffer,r,e,e+n),setImmediate(function(){i(null,n,t)})},d.prototype.createReadStream=function(t){var e=new l(t=t||{});return e.start=t.start||0,e.endOffset=t.end,e.pos=e.endOffset||this.buffer.length,e.destroyed=!1,e.write(this.buffer.slice(e.start,e.pos)),e.end(),e.destroy=function(){e.destroyed=!0},e},d.prototype.createWriteStream=function(t){var e=this,n=new s(t=t||{});return n.start=t.start||0,n.endOffset=null==t.end?this.buffer.length:+t.end,n.bytesWritten=0,n.pos=n.start,n.destroyed=!1,n._write=function(t,r,i){if(!n.destroyed){var a=n.pos+t.length;if(a>n.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",n.destroyed=!0,void i(o)}t.copy(e.buffer,n.pos,0,t.length),n.bytesWritten+=t.length,n.pos=a,n.emit("progress"),i()}},n.destroy=function(){n.destroyed=!0},n},d.prototype.ref=function(){this.refCount+=1},d.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},function(t,e){function n(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function r(t){t.pending+=1;var e=!1;return function(r){if(e)throw new Error("callback called twice");if(e=!0,t.error=t.error||r,t.pending-=1,t.waiting.length>0&&t.pending0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,a=r.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,n=a,i=s,e.copy(n,i),s+=o.data.length,o=o.next;return a},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e,n){t.exports=n(6).deprecate},function(t,e,n){"use strict";t.exports=a;var r=n(103),i=n(5);function a(t){if(!(this instanceof a))return new a(t);r.call(this,t)}i.inherits=n(3),i.inherits(a,r),a.prototype._transform=function(t,e,n){n(null,t)}},function(t,e){var n=Object.prototype.toString,r="function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;t.exports=function(t,e,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return a=t,"ArrayBuffer"===n.call(a).slice(8,-1)?function(t,e,n){e>>>=0;var i=t.byteLength-e;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(t.slice(e,e+n)):new Buffer(new Uint8Array(t.slice(e,e+n)))}(t,e,i):"string"==typeof t?function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(t,e):new Buffer(t,e)}(t,e):r?Buffer.from(t):new Buffer(t);var a}},function(t,e){var n,r,i,a=void 0,o=1e5,s=(n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,{Class:function(t){return n.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(t,e){return e in t},HasOwnProperty:function(t,e){return r.call(t,e)},IsCallable:function(t){return"function"==typeof t},ToInt32:function(t){return t>>0},ToUint32:function(t){return t>>>0}}),l=Math.LN2,c=Math.abs,u=Math.floor,p=Math.log,h=Math.min,f=Math.pow,d=Math.round;function g(t){if(m&&i){var e,n=m(t);for(e=0;e>n}function _(t,e){var n=32-e;return t<>>n}function y(t){return[255&t]}function v(t){return b(t[0],8)}function w(t){return[255&t]}function x(t){return _(t[0],8)}function k(t){return[(t=d(Number(t)))<0?0:t>255?255:255&t]}function E(t){return[t>>8&255,255&t]}function S(t){return b(t[0]<<8|t[1],16)}function T(t){return[t>>8&255,255&t]}function I(t){return _(t[0]<<8|t[1],16)}function O(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]}function C(t){return b(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function A(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]}function M(t){return _(t[0]<<24|t[1]<<16|t[2]<<8|t[3],32)}function D(t,e,n){var r,i,a,o,s,d,g,m=(1<.5?e+1:e%2?e+1:e}for(t!=t?(i=(1<=f(2,1-m)?(i=h(u(p(t)/l),1023),(a=b(t/f(2,i)*f(2,n)))/f(2,n)>=2&&(i+=1,a=1),i>m?(i=(1<>=1;return p.reverse(),o=p.join(""),s=(1<0?l*f(2,c-s)*(1+u/f(2,n)):0!==u?l*f(2,-(s-1))*(u/f(2,n)):l<0?-0:0}function L(t){return P(t,11,52)}function R(t){return D(t,11,52)}function B(t){return P(t,8,23)}function N(t){return D(t,8,23)}!function(){var t=function(t){if((t=s.ToInt32(t))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var e;for(this.byteLength=t,this._bytes=[],this._bytes.length=t,e=0;ethis.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=s.ToUint32(r),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(l=arguments[0],this.length=s.ToUint32(l.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,u=0;uo)throw new RangeError("Array too large for polyfill");var e;for(e=0;e=this.length)return a;var e,n,r=[];for(e=0,n=this.byteOffset+t*this.BYTES_PER_ELEMENT;e=this.length)return a;var n,r,i=this._pack(e);for(n=0,r=this.byteOffset+t*this.BYTES_PER_ELEMENT;nthis.length)throw new RangeError("Offset plus length of array is out of range");if(u=this.byteOffset+i*this.BYTES_PER_ELEMENT,p=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(h=[],o=0,l=n.byteOffset;othis.length)throw new RangeError("Offset plus length of array is out of range");for(o=0;on?n:t}t=s.ToInt32(t),e=s.ToInt32(e),arguments.length<1&&(t=0),arguments.length<2&&(e=this.length),t<0&&(t=this.length+t),e<0&&(e=this.length+e),t=n(t,0,this.length);var r=(e=n(e,0,this.length))-t;return r<0&&(r=0),new this.constructor(this.buffer,this.byteOffset+t*this.BYTES_PER_ELEMENT,r)},c}var l=r(1,y,v),c=r(1,w,x),u=r(1,k,x),p=r(2,E,S),h=r(2,T,I),f=r(4,O,C),d=r(4,A,M),m=r(4,N,B),b=r(8,R,L);e.Int8Array=e.Int8Array||l,e.Uint8Array=e.Uint8Array||c,e.Uint8ClampedArray=e.Uint8ClampedArray||u,e.Int16Array=e.Int16Array||p,e.Uint16Array=e.Uint16Array||h,e.Int32Array=e.Int32Array||f,e.Uint32Array=e.Uint32Array||d,e.Float32Array=e.Float32Array||m,e.Float64Array=e.Float64Array||b}(),function(){function t(t,e){return s.IsCallable(t.get)?t.get(e):t[e]}var n,r=(n=new e.Uint16Array([4660]),18===t(new e.Uint8Array(n.buffer),0)),i=function(t,n,r){if(0===arguments.length)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||"ArrayBuffer"===s.Class(t)))throw new TypeError("TypeError");if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=s.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=s.ToUint32(r),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");g(this)};function a(n){return function(i,a){if((i=s.ToUint32(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var o,l=new e.Uint8Array(this.buffer,i,n.BYTES_PER_ELEMENT),c=[];for(o=0;othis.byteLength)throw new RangeError("Array index out of range");var l,c=new n([a]),u=new e.Uint8Array(c.buffer),p=[];for(l=0;l=t.length&&n()}c(t,function(t){e(t,o(i))})},a.forEach=a.each,a.eachSeries=function(t,e,n){if(n=n||function(){},!t.length)return n();var r=0,i=function(){e(t[r],function(e){e?(n(e),n=function(){}):(r+=1)>=t.length?n():i()})};i()},a.forEachSeries=a.eachSeries,a.eachLimit=function(t,e,n,r){h(e).apply(null,[t,n,r])},a.forEachLimit=a.eachLimit;var h=function(t){return function(e,n,r){if(r=r||function(){},!e.length||t<=0)return r();var i=0,a=0,o=0;!function s(){if(i>=e.length)return r();for(;o=e.length?r():s())})}()}},f=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[a.each].concat(e))}},d=function(t){return function(){var e=Array.prototype.slice.call(arguments);return t.apply(null,[a.eachSeries].concat(e))}},g=function(t,e,n,r){if(e=u(e,function(t,e){return{index:e,value:t}}),r){var i=[];t(e,function(t,e){n(t.value,function(n,r){i[t.index]=r,e(n)})},function(t){r(t,i)})}else t(e,function(t,e){n(t.value,function(t){e(t)})})};a.map=f(g),a.mapSeries=d(g),a.mapLimit=function(t,e,n,r){return m(e)(t,n,r)};var m=function(t){return function(t,e){return function(){var n=Array.prototype.slice.call(arguments);return e.apply(null,[h(t)].concat(n))}}(t,g)};a.reduce=function(t,e,n,r){a.eachSeries(t,function(t,r){n(e,t,function(t,n){e=n,r(t)})},function(t){r(t,e)})},a.inject=a.reduce,a.foldl=a.reduce,a.reduceRight=function(t,e,n,r){var i=u(t,function(t){return t}).reverse();a.reduce(i,e,n,r)},a.foldr=a.reduceRight;var b=function(t,e,n,r){var i=[];t(e=u(e,function(t,e){return{index:e,value:t}}),function(t,e){n(t.value,function(n){n&&i.push(t),e()})},function(t){r(u(i.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})};a.filter=f(b),a.filterSeries=d(b),a.select=a.filter,a.selectSeries=a.filterSeries;var _=function(t,e,n,r){var i=[];t(e=u(e,function(t,e){return{index:e,value:t}}),function(t,e){n(t.value,function(n){n||i.push(t),e()})},function(t){r(u(i.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})};a.reject=f(_),a.rejectSeries=d(_);var y=function(t,e,n,r){t(e,function(t,e){n(t,function(n){n?(r(t),r=function(){}):e()})},function(t){r()})};a.detect=f(y),a.detectSeries=d(y),a.some=function(t,e,n){a.each(t,function(t,r){e(t,function(t){t&&(n(!0),n=function(){}),r()})},function(t){n(!1)})},a.any=a.some,a.every=function(t,e,n){a.each(t,function(t,r){e(t,function(t){t||(n(!1),n=function(){}),r()})},function(t){n(!0)})},a.all=a.every,a.sortBy=function(t,e,n){a.map(t,function(t,n){e(t,function(e,r){e?n(e):n(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,u(e.sort(function(t,e){var n=t.criteria,r=e.criteria;return nr?1:0}),function(t){return t.value}))})},a.auto=function(t,e){e=e||function(){};var n=p(t),r=n.length;if(!r)return e();var i={},o=[],s=function(t){o.unshift(t)},u=function(){r--,c(o.slice(0),function(t){t()})};s(function(){if(!r){var t=e;e=function(){},t(null,i)}}),c(n,function(n){var r=l(t[n])?t[n]:[t[n]],h=function(t){var r=Array.prototype.slice.call(arguments,1);if(r.length<=1&&(r=r[0]),t){var o={};c(p(i),function(t){o[t]=i[t]}),o[n]=r,e(t,o),e=function(){}}else i[n]=r,a.setImmediate(u)},f=r.slice(0,Math.abs(r.length-1))||[],d=function(){return e=function(t,e){return t&&i.hasOwnProperty(e)},r=!0,((t=f).reduce?t.reduce(e,r):(c(t,function(t,n,i){r=e(r,t,n,i)}),r))&&!i.hasOwnProperty(n);var t,e,r};if(d())r[r.length-1](h,i);else{var g=function(){d()&&(!function(t){for(var e=0;e>>1);n(e,t[a])>=0?r=a:i=a-1}return r}(t.tasks,o,n)+1,0,o),t.saturated&&t.tasks.length===t.concurrency&&t.saturated(),a.setImmediate(t.process)})}(r,t,e,i)},delete r.unshift,r},a.cargo=function(t,e){var n=!1,r=[],i={tasks:r,payload:e,saturated:null,empty:null,drain:null,drained:!0,push:function(t,n){l(t)||(t=[t]),c(t,function(t){r.push({data:t,callback:"function"==typeof n?n:null}),i.drained=!1,i.saturated&&r.length===e&&i.saturated()}),a.setImmediate(i.process)},process:function a(){if(!n){if(0===r.length)return i.drain&&!i.drained&&i.drain(),void(i.drained=!0);var o="number"==typeof e?r.splice(0,e):r.splice(0,r.length),s=u(o,function(t){return t.data});i.empty&&i.empty(),n=!0,t(s,function(){n=!1;var t=arguments;c(o,function(e){e.callback&&e.callback.apply(null,t)}),a()})}},length:function(){return r.length},running:function(){return n}};return i};var x=function(t){return function(e){var n=Array.prototype.slice.call(arguments,1);e.apply(null,n.concat([function(e){var n=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(e?console.error&&console.error(e):console[t]&&c(n,function(e){console[t](e)}))}]))}};a.log=x("log"),a.dir=x("dir"),a.memoize=function(t,e){var n={},r={};e=e||function(t){return t};var i=function(){var i=Array.prototype.slice.call(arguments),o=i.pop(),s=e.apply(null,i);s in n?a.nextTick(function(){o.apply(null,n[s])}):s in r?r[s].push(o):(r[s]=[o],t.apply(null,i.concat([function(){n[s]=arguments;var t=r[s];delete r[s];for(var e=0,i=t.length;e2){var r=Array.prototype.slice.call(arguments,2);return n.apply(this,r)}return n};a.applyEach=f(k),a.applyEachSeries=d(k),a.forever=function(t,e){!function n(r){if(r){if(e)return e(r);throw r}t(n)}()},t.exports?t.exports=a:void 0===(r=function(){return a}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r=n(6),i=n(4).PassThrough||n(249);function a(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function o(t,e){if(!(this instanceof o))return new o(t,e);i.call(this,e),a(this,"_read",function(){t.call(this,e).pipe(this)}),this.emit("readable")}function s(t,e){if(!(this instanceof s))return new s(t,e);i.call(this,e),a(this,"_write",function(){var n=t.call(this,e);this.pipe(n)}),this.emit("writable")}t.exports={Readable:o,Writable:s},r.inherits(o,i),r.inherits(s,i)},function(t,e,n){t.exports=n(250)},function(t,e,n){t.exports=a;var r=n(251),i=n(5);function a(t){if(!(this instanceof a))return new a(t);r.call(this,t)}i.inherits=n(3),i.inherits(a,r),a.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=o;var r=n(107),i=n(5);function a(t,e){this.afterTransform=function(t,n){return function(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&t.push(n);i&&i(e);var a=t._readableState;a.reading=!1,(a.needReadable||a.length0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!a){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&a){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||a||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,a?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,a=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!t||t>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},u.prototype._read=function(t){this.emit("error",new Error("not implemented"))},u.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var o=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:u;function s(t){t===n&&u()}function l(){t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function u(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===a.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},u.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;ie?1:tprocessEmitQueue",t===this.EOF?":EOF:":t),!t){this.log(">processEmitQueue, falsey m"),this._processingEmitQueue=!1;break}if(t===this.EOF||!this.mark||this.stat)this.log("peq: unmarked, or eof"),i.call(this,0,!1);else if(this.statCache[t]){var n,r=this.statCache[t];r&&(n=r.isDirectory()?2:1),this.log("peq: stat cached"),i.call(this,n,2===n)}else this.log("peq: _stat, then next"),this._stat(t,i);function i(n,r){this.log("next",t,n,r);var i=t===this.EOF?"end":"match";c(!this._endEmitted),"end"===i&&(this._endEmitted=!0),n&&(r&&!t.match(/\/$/)?t+="/":!r&&t.match(/\/$/)&&(t=t.replace(/\/+$/,""))),this.log("emit",i,t),this.emit(i,t),this._processingEmitQueue=!1,e&&t!==this.EOF&&!this.paused&&this._processEmitQueue()}}e=!0},h.prototype._process=function(t,e,n,r){c(this instanceof h);var a=function(t,e){c(this instanceof h),this.paused?(this._processQueue||(this._processQueue=[],this.once("resume",function(){var t=this._processQueue;this._processQueue=null,t.forEach(function(t){t()})})),this._processQueue.push(r.bind(this,t,e))):r.call(this,t,e)}.bind(this);if(this.aborted)return a();if(e>this.maxDepth)return a();for(var o,s,u=0;"string"==typeof t[u];)u++;switch(u){case t.length:return o=t.join("/"),void this._stat(o,function(t,e){return t&&(o&&g(o)&&!this.nomount&&(o="/"===o.charAt(0)?l.join(this.root,o):l.resolve(this.root,o)),"win32"===process.platform&&(o=o.replace(/\\/g,"/")),this.matches[n]=this.matches[n]||{},this.matches[n][o]=!0,this.emitMatch(o)),a()});case 0:o=null;break;default:o=(o=t.slice(0,u)).join("/")}return null===o?s=".":g(o)||g(t.join("/"))?(o&&g(o)||(o=l.join("/",o)),s=o=l.resolve(o),this.log("absolute: ",o,this.root,t,s)):s=o,this.log("readdir(%j)",s,this.cwd,this.root),this._readdir(s,function(r,s){if(r)return a();if(t[u]!==i.GLOBSTAR){t[u];var c=t[u]._glob,p=this.dot||"."===c.charAt(0);if(s=s.filter(function(e){return("."!==e.charAt(0)||p)&&e.match(t[u])}),u===t.length-1&&!this.mark&&!this.stat)return s.forEach(function(t){o&&(t="/"!==o?o+"/"+t:o+t),"/"!==t.charAt(0)||this.nomount||(t=l.join(this.root,t)),"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this.matches[n]=this.matches[n]||{},this.matches[n][t]=!0,this.emitMatch(t)},this),a.call(this);f=s.length,d=null;if(0===f)return a();s.forEach(function(r){var i=t.slice(0,u).concat(r).concat(t.slice(u+1));this._process(i,e+1,n,function(t){if(!d)return t?a(d=t):0==--f?a.call(this):void 0})},this)}else{var h=[t.slice(0,u).concat(t.slice(u+1))];if(s.forEach(function(e){("."!==e.charAt(0)||this.dot)&&(h.push(t.slice(0,u).concat(e).concat(t.slice(u+1))),h.push(t.slice(0,u).concat(e).concat(t.slice(u))))},this),!(h=h.filter(function(t){var e=function(t){return"**"+t.map(function(t){return t===i.GLOBSTAR?"**":""+t}).join("/")}(t),n=!this._globstars[e];return this._globstars[e]=!0,n},this)).length)return a();var f=h.length,d=null;h.forEach(function(t){this._process(t,e+1,n,function(t){if(!d)return t?a(d=t):--f<=0?a():void 0})},this)}})},h.prototype._stat=function(t,e){c(this instanceof h);var n=t;if("/"===t.charAt(0)?n=l.join(this.root,t):this.changedCwd&&(n=l.resolve(this.cwd,t)),t.length>this.maxLength)return(s=new Error("Path name too long")).code="ENAMETOOLONG",s.path=t,this._afterStat(t,n,e,s);if(this.log("stat",[this.cwd,t,"=",n]),!this.stat&&this.cache.hasOwnProperty(t)){var i=this.cache[t],a=i&&(Array.isArray(i)||2===i);return this.sync?e.call(this,!!i,a):process.nextTick(e.bind(this,!!i,a))}var o=this.statCache[n];if(this.sync||o){var s;try{o=r.statSync(n)}catch(t){s=t}this._afterStat(t,n,e,s,o)}else r.stat(n,this._afterStat.bind(this,t,n,e))},h.prototype._afterStat=function(t,e,n,r,i){var a;c(this instanceof h),"/"===e.slice(-1)&&i&&!i.isDirectory()&&(this.log("should be ENOTDIR, fake it"),(r=new Error("ENOTDIR, not a directory '"+e+"'")).path=e,r.code="ENOTDIR",i=null);var o=!this.statCache[e];this.statCache[e]=i,r||!i?a=!1:(a=i.isDirectory()?2:1,o&&this.emit("stat",t,i)),this.cache[t]=this.cache[t]||a,n.call(this,!!a,2===a)},h.prototype._readdir=function(t,e){c(this instanceof h);var n=t;if("/"===t.charAt(0)?n=l.join(this.root,t):g(t)?n=t:this.changedCwd&&(n=l.resolve(this.cwd,t)),t.length>this.maxLength)return(o=new Error("Path name too long")).code="ENAMETOOLONG",o.path=t,this._afterReaddir(t,n,e,o);if(this.log("readdir",[this.cwd,t,n]),this.cache.hasOwnProperty(t)){var i=this.cache[t];if(Array.isArray(i))return this.sync?e.call(this,null,i):process.nextTick(e.bind(this,null,i));if(!i||1===i){var a=i?"ENOTDIR":"ENOENT";return(o=new Error((i?"Not a directory":"Not found")+": "+t)).path=t,o.code=a,this.log(t,o),this.sync?e.call(this,o):process.nextTick(e.bind(this,o))}}if(this.sync){var o,s;try{s=r.readdirSync(n)}catch(t){o=t}return this._afterReaddir(t,n,e,o,s)}r.readdir(n,this._afterReaddir.bind(this,t,n,e))},h.prototype._afterReaddir=function(t,e,n,r,i){if(c(this instanceof h),i&&!r)return this.cache[t]=i,this.mark||this.stat||i.forEach(function(e){e="/"===t?t+e:t+"/"+e,this.cache[e]=!0},this),n.call(this,r,i);if(r)switch(r.code){case"ENOTDIR":return this.cache[t]=1,n.call(this,r);case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":return this.cache[t]=!1,n.call(this,r);default:return this.cache[t]=!1,this.strict&&this.emit("error",r),this.silent||console.error("glob error",r),n.call(this,r)}};var g="win32"===process.platform?function(t){if(m(t))return!0;var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),n=e[1]||"",r=n&&":"!==n.charAt(1);return!!e[2]||r}:m;function m(t){return"/"===t.charAt(0)||""===t}},function(t,e,n){(function(t){!function(t,e,r,i){r?r.exports=m:e.minimatch=m,m.Minimatch=b;var a=n(258),o=m.cache=new a({max:100}),s=m.GLOBSTAR=b.GLOBSTAR={},l=n(259),c=(n(2),"[^/]"),u=c+"*?",p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",h="(?:(?!(?:\\/|^)\\.).)*?",f="().*{}+?[]^$\\!".split("").reduce(function(t,e){return t[e]=!0,t},{});var d=/\/+/;function g(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function m(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new b(e,n).match(t))}function b(t,e){if(!(this instanceof b))return new b(t,e,o);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"win32"===i&&(t=t.split("\\").join("/"));var n=t+"\n"+l(e),r=m.cache.get(n);if(r)return r;m.cache.set(n,this),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}m.filter=function(t,e){return e=e||{},function(n,r,i){return m(n,t,e)}},m.defaults=function(t){if(!t||!Object.keys(t).length)return m;var e=m,n=function(n,r,i){return e.minimatch(n,r,g(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,g(t,r))},n},b.defaults=function(t){return t&&Object.keys(t).length?m.defaults(t).Minimatch:b},b.prototype.debug=function(){},b.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map(function(t){return t.split(d)}),this.debug(this.pattern,n),n=n.map(function(t,e,n){return t.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,n),this.set=n},b.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,a=t.length;ih?-1:1,d=[],a=p;a!=h+f;a+=f)for(var g=0,m=u.length;g=0&&!(r=t[o]);o--);for(var o=0,s=a.length;o>> no match, partial?",t,h,e,f),h!==o))}if("string"==typeof u?(c=r.nocase?p.toLowerCase()===u.toLowerCase():p===u,this.debug("string match",u,p,c)):(c=p.match(u),this.debug("pattern match",u,p,c)),!c)return!1}if(i===o&&a===l)return!0;if(i===o)return n;if(a===l)return i===o-1&&""===t[i];throw new Error("wtf?")}}(0,this,t,"object"==typeof process?process.platform:"win32")}).call(this,n(68)(t))},function(t,e,n){!function(){function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function n(){return 1}t.exports?t.exports=a:this.LRUCache=a;var r=!1;function i(t){r||"string"==typeof t||"number"==typeof t||(r=!0,console.error(new TypeError("LRU: key must be a string or number. Almost certainly a bug! "+typeof t).stack))}function a(t){if(!(this instanceof a))return new a(t);"number"==typeof t&&(t={max:t}),t||(t={}),this._max=t.max,(!this._max||"number"!=typeof this._max||this._max<=0)&&(this._max=1/0),this._lengthCalculator=t.length||n,"function"!=typeof this._lengthCalculator&&(this._lengthCalculator=n),this._allowStale=t.stale||!1,this._maxAge=t.maxAge||null,this._dispose=t.dispose,this.reset()}function o(t,e,n){i(e);var r=t._cache[e];return r&&(s(t,r)?(u(t,r),t._allowStale||(r=void 0)):n&&function(t,e){c(t,e),e.lu=t._mru++,t._lruList[e.lu]=e}(t,r),r&&(r=r.value)),r}function s(t,e){if(!e||!e.maxAge&&!t._maxAge)return!1;var n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t._maxAge&&n>t._maxAge}function l(t){for(;t._lrut._max;)u(t,t._lruList[t._lru])}function c(t,e){for(delete t._lruList[e.lu];t._lruthis._max&&l(this)},get:function(){return this._max},enumerable:!0}),Object.defineProperty(a.prototype,"lengthCalculator",{set:function(t){if("function"!=typeof t)for(var e in this._lengthCalculator=n,this._length=this._itemCount,this._cache)this._cache[e].length=1;else for(var e in this._lengthCalculator=t,this._length=0,this._cache)this._cache[e].length=this._lengthCalculator(this._cache[e].value),this._length+=this._cache[e].length;this._length>this._max&&l(this)},get:function(){return this._lengthCalculator},enumerable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this._length},enumerable:!0}),Object.defineProperty(a.prototype,"itemCount",{get:function(){return this._itemCount},enumerable:!0}),a.prototype.forEach=function(t,e){e=e||this;for(var n=0,r=this._itemCount,i=this._mru-1;i>=0&&n=0&&e=0&&e=0&&ethis._max?(u(this,this._cache[t]),!1):(this._dispose&&this._dispose(t,this._cache[t].value),this._cache[t].now=a,this._cache[t].maxAge=r,this._cache[t].value=n,this._length+=o-this._cache[t].length,this._cache[t].length=o,this.get(t),this._length>this._max&&l(this),!0);var s=new p(t,n,this._mru++,o,a,r);return s.length>this._max?(this._dispose&&this._dispose(t,n),!1):(this._length+=s.length,this._lruList[s.lu]=this._cache[t]=s,this._itemCount++,this._length>this._max&&l(this),!0)},a.prototype.has=function(t){return i(t),!!e(this._cache,t)&&!s(this,this._cache[t])},a.prototype.get=function(t){return i(t),o(this,t,!0)},a.prototype.peek=function(t){return i(t),o(this,t,!1)},a.prototype.pop=function(){var t=this._lruList[this._lru];return u(this,t),t||null},a.prototype.del=function(t){i(t),u(this,this._cache[t])},a.prototype.load=function(t){this.reset();for(var e=Date.now(),n=t.length-1;n>=0;n--){var r=t[n];i(r.k);var a=r.e||0;if(0===a)this.set(r.k,r.v);else{var o=a-e;o>0&&this.set(r.k,r.v,o)}}}}()},function(t,e){t.exports=function(t,e){e=e||10;var n=[],r="",i=RegExp;return function t(a,o){o>e||"function"!=typeof a&&void 0!==a&&("object"!=typeof a||!a||a instanceof i?r+=a:-1===n.indexOf(a)&&o!==e&&(n.push(a),r+="{",Object.keys(a).forEach(function(e,n,i){if("_"!==e.charAt(0)){var s=typeof a[e];"function"!==s&&"undefined"!==s&&(r+=e,t(a[e],o+1))}})))}(t,0),r}},function(t,e,n){var r=n(261),i=n(45),a=t.exports=function(t){t=this.options=i.defaults(t,{comment:"",forceUTC:!1,store:!1}),this.supports={directory:!0},this.engine=new r(t)};a.prototype.append=function(t,e,n){this.engine.entry(t,e,n)},a.prototype.finalize=function(){this.engine.finalize()},a.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},a.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)}},function(t,e,n){var r=n(6).inherits,i=n(108).ZipArchiveOutputStream,a=n(108).ZipArchiveEntry,o=n(271),s=t.exports=function(t){if(!(this instanceof s))return new s(t);(t=this.options=t||{}).zlib=t.zlib||{},i.call(this,t),"number"==typeof t.level&&t.level>=0&&(t.zlib.level=t.level,delete t.level),t.zlib.level&&0===t.zlib.level&&(t.store=!0),t.comment&&t.comment.length>0&&this.setComment(t.comment)};r(s,i),s.prototype._normalizeFileData=function(t){var e="directory"===(t=o.defaults(t,{type:"file",name:null,date:null,mode:null,store:this.options.store,comment:""})).type;return t.name&&(t.name=o.sanitizePath(t.name),"/"===t.name.slice(-1)?(e=!0,t.type="directory"):e&&(t.name+="/")),e&&(t.store=!0),t.date=o.dateify(t.date),t},s.prototype.entry=function(t,e,n){if("function"!=typeof n&&(n=this._emitErrorCallback.bind(this)),"file"===(e=this._normalizeFileData(e)).type||"directory"===e.type){if("string"==typeof e.name&&0!==e.name.length){var r=new a(e.name);return r.setTime(e.date),e.store&&r.setMethod(0),e.comment.length>0&&r.setComment(e.comment),"number"==typeof e.mode&&r.setUnixMode(e.mode),i.prototype.entry.call(this,r,t,n)}n(new Error("entry name must be a non-empty string value"))}else n(new Error(e.type+" entries not currently supported"))},s.prototype.finalize=function(){this.finish()}},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){t.exports=a;var r=n(116),i=n(5);function a(t){if(!(this instanceof a))return new a(t);r.call(this,t)}i.inherits=n(3),i.inherits(a,r),a.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(6).inherits,i=n(46),a=n(265),o=a.DeflateCRC32Stream,s=n(112),l=(n(109),n(110),n(111)),c=(n(117),n(58)),u=t.exports=function(t){if(!(this instanceof u))return new u(t);(t=this.options=t||{}).zlib=this._zlibDefaults(t.zlib),s.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1}};r(u,s),u.prototype._afterAppend=function(t){this._entries.push(t),this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()},u.prototype._appendBuffer=function(t,e,n){0===e.length&&t.setMethod(l.METHOD_STORED);var r=t.getMethod();return r===l.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(i.unsigned(e))),this._writeLocalFileHeader(t),r===l.METHOD_STORED?(this.write(e),this._afterAppend(t),void n(null,t)):r===l.METHOD_DEFLATED?void this._smartStream(t,n).end(e):void n(new Error("compression method "+r+" not implemented"))},u.prototype._appendStream=function(t,e,n){t.getGeneralPurposeBit().useDataDescriptor(!0),this._writeLocalFileHeader(t);var r=this._smartStream(t,n);e.pipe(r)},u.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()},u.prototype._setDefaults=function(t){-1===t.getMethod()&&t.setMethod(l.METHOD_DEFLATED),t.getMethod()===l.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(l.DATA_DESCRIPTOR_MIN_VERSION)),-1===t.getTime()&&t.setTime(new Date),t._offsets={file:0,data:0,contents:0}},u.prototype._smartStream=function(t,e){var n=t.getMethod()===l.METHOD_DEFLATED?new o(this.options.zlib):new a;return n.once("error",e),n.once("end",function(r){t.setCrc(n.digest()),t.setSize(n.size()),t.setCompressedSize(n.size(!0)),this._afterAppend(t),e(null,t)}.bind(this)),n.pipe(this,{end:!1}),n},u.prototype._writeCentralDirectoryEnd=function(){this.write(c.getLongBytes(l.SIG_EOCD)),this.write(l.SHORT_ZERO),this.write(l.SHORT_ZERO),this.write(c.getShortBytes(this._entries.length)),this.write(c.getShortBytes(this._entries.length)),this.write(c.getLongBytes(this._archive.centralLength)),this.write(c.getLongBytes(this._archive.centralOffset));var t=this.getComment(),e=Buffer.byteLength(t);this.write(c.getShortBytes(e)),this.write(t)},u.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t._offsets;this.write(c.getLongBytes(l.SIG_CFH)),this.write(c.getShortBytes(t.getPlatform()<<8|l.DATA_DESCRIPTOR_MIN_VERSION)),this._writeVersionGeneral(t),this.write(c.getShortBytes(n)),this.write(c.getLongBytes(t.getTimeDos())),this.write(c.getLongBytes(t.getCrc())),this.write(c.getLongBytes(t.getCompressedSize())),this.write(c.getLongBytes(t.getSize()));var i=t.getName(),a=t.getComment(),o=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(i=new Buffer(i),a=new Buffer(a)),this.write(c.getShortBytes(i.length)),this.write(c.getShortBytes(o.length)),this.write(c.getShortBytes(a.length)),this.write(l.SHORT_ZERO),this.write(c.getShortBytes(t.getInternalAttributes())),this.write(c.getLongBytes(t.getExternalAttributes())),this.write(c.getLongBytes(r.file)),this.write(i),this.write(o),this.write(a)},u.prototype._writeDataDescriptor=function(t){t.getGeneralPurposeBit().usesDataDescriptor()&&(this.write(c.getLongBytes(l.SIG_DD)),this.write(c.getLongBytes(t.getCrc())),this.write(c.getLongBytes(t.getCompressedSize())),this.write(c.getLongBytes(t.getSize())))},u.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t.getName(),i=t.getLocalFileDataExtra();e.usesUTF8ForNames()&&(r=new Buffer(r)),t._offsets.file=this.offset,this.write(c.getLongBytes(l.SIG_LFH)),this._writeVersionGeneral(t),this.write(c.getShortBytes(n)),this.write(c.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,t.getGeneralPurposeBit().usesDataDescriptor()?(this.write(l.LONG_ZERO),this.write(l.LONG_ZERO),this.write(l.LONG_ZERO)):(this.write(c.getLongBytes(t.getCrc())),this.write(c.getLongBytes(t.getCompressedSize())),this.write(c.getLongBytes(t.getSize()))),this.write(c.getShortBytes(r.length)),this.write(c.getShortBytes(i.length)),this.write(r),this.write(i),t._offsets.contents=this.offset},u.prototype._writeVersionGeneral=function(t){this.write(c.getShortBytes(t.getVersionNeededToExtract())),this.write(t.getGeneralPurposeBit().encode())},u.prototype._zlibDefaults=function(t){return"object"!=typeof t&&(t={}),"number"!=typeof t.level&&(t.level=l.ZLIB_BEST_SPEED),t},u.prototype.getComment=function(t){return null!==this._archive.comment?this._archive.comment:""},u.prototype.setComment=function(t){this._archive.comment=t}},function(t,e,n){(e=t.exports=n(266)).CRC32Stream=e,e.DeflateCRC32Stream=n(270)},function(t,e,n){var r=n(6).inherits,i=n(267).Transform,a=n(46),o=t.exports=function(t){i.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0};r(o,i),o.prototype._transform=function(t,e,n){t&&(this.checksum=a(t,this.checksum),this.rawSize+=t.length),n(null,t)},o.prototype.digest=function(){return a.unsigned(0,this.checksum)},o.prototype.hex=function(){return this.digest().toString(16).toUpperCase()},o.prototype.size=function(){return this.rawSize}},function(t,e,n){var r=n(4);(e=t.exports=n(118)).Stream=r,e.Readable=e,e.Writable=n(119),e.Duplex=n(60),e.Transform=n(120),e.PassThrough=n(269),process.browser||"disable"!==process.env.READABLE_STREAM||(t.exports=n(4))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){t.exports=a;var r=n(120),i=n(5);function a(t){if(!(this instanceof a))return new a(t);r.call(this,t)}i.inherits=n(3),i.inherits(a,r),a.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(16),i=n(6).inherits,a=n(46),o=t.exports=function(t){r.DeflateRaw.call(this,t),this.checksum=new Buffer(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0,"function"!=typeof r.DeflateRaw.prototype.push&&this.on("data",function(t){t&&(this.compressedSize+=t.length)})};i(o,r.DeflateRaw),o.prototype.push=function(t,e){return t&&(this.compressedSize+=t.length),r.DeflateRaw.prototype.push.call(this,t,e)},o.prototype.write=function(t,e,n){return t&&(this.checksum=a(t,this.checksum),this.rawSize+=t.length),r.DeflateRaw.prototype.write.call(this,t,e,n)},o.prototype.digest=function(){return a.unsigned(0,this.checksum)},o.prototype.hex=function(){return this.digest().toString(16).toUpperCase()},o.prototype.size=function(t){return(t=t||!1)?this.compressedSize:this.rawSize}},function(t,e,n){n(7);var r=n(2),i=n(4).Stream,a=n(272).PassThrough,o=n(56),s=t.exports={};s.convertDateTimeDos=function(t){return new Date(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)},s.dateify=function(t){return t=(t=t||new Date)instanceof Date?t:"string"==typeof t?new Date(t):new Date},s.defaults=function(t,e,n){var r=arguments;return r[0]=r[0]||{},o.defaults.apply(o,r)},s.dosDateTime=function(t,e){t=t instanceof Date?t:s.dateify(t);var n=(e=e||!1)?t.getUTCFullYear():t.getFullYear();return n<1980?2162688:n>=2044?2141175677:n-1980<<25|(e?t.getUTCMonth():t.getMonth())+1<<21|(e?t.getUTCDate():t.getDate())<<16|(e?t.getUTCHours():t.getHours())<<11|(e?t.getUTCMinutes():t.getMinutes())<<5|(e?t.getUTCSeconds():t.getSeconds())/2},s.isStream=function(t){return t instanceof i},s.normalizeInputSource=function(t){if(null===t)return new Buffer(0);if("string"==typeof t)return new Buffer(t);if(s.isStream(t)&&!t._readableState){var e=new a;return t.pipe(e),e}return t},s.sanitizePath=function(){return r.join.apply(r,arguments).replace(/\\/g,"/").replace(/:/g,"").replace(/^\/+/,"")},s.unixifyPath=function(){return r.join.apply(r,arguments).replace(/\\/g,"/")}},function(t,e,n){var r=n(4);(e=t.exports=n(121)).Stream=r,e.Readable=e,e.Writable=n(122),e.Duplex=n(61),e.Transform=n(123),e.PassThrough=n(274),process.browser||"disable"!==process.env.READABLE_STREAM||(t.exports=n(4))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){t.exports=a;var r=n(123),i=n(5);function a(t){if(!(this instanceof a))return new a(t);r.call(this,t)}i.inherits=n(3),i.inherits(a,r),a.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(16),i=n(276),a=n(45),o=t.exports=function(t){"object"!=typeof(t=this.options=a.defaults(t,{gzip:!1})).gzipOptions&&(t.gzipOptions={}),this.supports={directory:!0},this.engine=i.pack(t),this.compressor=!1,t.gzip&&(this.compressor=r.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};o.prototype._onCompressorError=function(t){this.engine.emit("error",t)},o.prototype.append=function(t,e,n){var r=this;function i(t,i){t?n(t):r.engine.entry(e,i,function(t){n(t,e)})}if(e.mtime=e.date,"buffer"===e.sourceType)i(null,t);else if("stream"===e.sourceType&&e._stats){e.size=e._stats.size;var o=r.engine.entry(e,function(t){n(t,e)});t.pipe(o)}else"stream"===e.sourceType&&a.collectStream(t,i)},o.prototype.finalize=function(){this.engine.finalize()},o.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)},o.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)}},function(t,e,n){e.extract=n(277),e.pack=n(286)},function(t,e,n){var r=n(6),i=n(278),a=n(283),o=n(125),s=n(23).Writable,l=n(23).PassThrough,c=function(){},u=function(t){return(t&=511)&&512-t},p=function(t){if(!(this instanceof p))return new p(t);s.call(this,t),this._buffer=i(),this._missing=0,this._onparse=c,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null;var e=this,n=e._buffer,r=function(){e._continue()},h=function(t){if(e._locked=!1,t)return e.destroy(t);e._stream||r()},f=function(){e._stream=null;var t=u(e._header.size);t?e._parse(t,d):e._parse(512,b),e._locked||r()},d=function(){e._buffer.consume(u(e._header.size)),e._parse(512,b),r()},g=function(){var t=e._header.size;e._paxGlobal=o.decodePax(n.slice(0,t)),n.consume(t),f()},m=function(){var t=e._header.size;e._pax=o.decodePax(n.slice(0,t)),e._paxGlobal&&(e._pax=a(e._paxGlobal,e._pax)),n.consume(t),f()},b=function(){var t,i;try{t=e._header=o.decode(n.slice(0,512))}catch(t){e.emit("error",t)}return n.consume(512),t?"pax-global-header"===t.type?(e._parse(t.size,g),void r()):"pax-header"===t.type?(e._parse(t.size,m),void r()):(e._pax&&(e._header=t=function(t,e){return e.path&&(t.name=e.path),e.linkpath&&(t.linkname=e.linkpath),t}(t,e._pax),e._pax=null),e._locked=!0,t.size?(e._stream=new l,e.emit("entry",t,e._stream,h),e._parse(t.size,f),void r()):(e._parse(512,b),void e.emit("entry",t,(i=new l,i.end(),i),h))):(e._parse(512,b),void r())};this._parse(512,b)};r.inherits(p,s),p.prototype.destroy=function(t){this._destroyed||(this._destroyed=!0,t&&this.emit("error",t),this.emit("close"),this._stream&&this._stream.emit("close"))},p.prototype._parse=function(t,e){this._destroyed||(this._missing=t,this._onparse=e)},p.prototype._continue=function(t){if(!this._destroyed){var e=this._cb;this._cb=c,this._overflow?this._write(this._overflow,void 0,e):e()}},p.prototype._write=function(t,e,n){if(!this._destroyed){var r=this._stream,i=this._buffer,a=this._missing;if(t.lengtha&&(o=t.slice(a),t=t.slice(0,a)),r?r.end(t):i.append(t),this._overflow=o,this._onparse()}},t.exports=p},function(t,e,n){var r=n(279);function i(t){if(!(this instanceof i))return new i(t);if(this._bufs=[],this.length=0,"function"==typeof t){this._callback=t;var e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)})}else Buffer.isBuffer(t)?this.append(t):Array.isArray(t)&&t.forEach(function(t){Buffer.isBuffer(t)&&this.append(t)}.bind(this));r.call(this)}n(6).inherits(i,r),i.prototype._offset=function(t){for(var e,n=0,r=0;rthis.length)&&(r=this.length),n>=this.length)return t||new Buffer(0);if(r<=0)return t||new Buffer(0);var i,a,o=!!t,s=this._offset(n),l=r-n,c=l,u=o&&e||0,p=s[1];if(0===n&&r==this.length){if(!o)return Buffer.concat(this._bufs);for(a=0;a(i=this._bufs[a].length-p))){this._bufs[a].copy(t,u,p,p+c);break}this._bufs[a].copy(t,u,p),u+=i,c-=i,p&&(p=0)}return t},i.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},i.prototype.consume=function(t){for(;this._bufs.length;){if(!(t>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},i.prototype.duplicate=function(){for(var t=0,e=new i;t0?d(t):v(t)}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!a){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&a){s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||a||r||(n=e.decoder.write(n)),e.length+=e.objectMode?1:n.length,a?e.buffer.unshift(n):(e.reading=!1,e.buffer.push(n)),e.needReadable&&d(t),function(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(function(){!function(t,e){var n=e.length;for(;!e.reading&&!e.flowing&&!e.ended&&e.lengthe.highWaterMark&&(e.highWaterMark=function(t){if(t>=h)t=h;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function d(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?process.nextTick(function(){g(t)}):g(t))}function g(t){t.emit("readable")}function m(t){var e,n=t._readableState;function r(t,r,i){!1===t.write(e)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(e=t.read());)if(1===n.pipesCount?r(n.pipes):w(n.pipes,r),t.emit("data",e),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(a.listenerCount(t,"data")>0&&_(t));n.ranOut=!0}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,m(this))}function _(t,e){if(t._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=e||!1,r=!1;t.readable=!0,t.pipe=s.prototype.pipe,t.on=t.addListener=s.prototype.on,t.on("readable",function(){var e;for(r=!0;!n&&null!==(e=t.read());)t.emit("data",e);null===e&&(r=!1,t._readableState.needReadable=!0)}),t.pause=function(){n=!0,this.emit("pause")},t.resume=function(){n=!1,r?process.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function y(t,e){var n,r=e.buffer,a=e.length,o=!!e.decoder,s=!!e.objectMode;if(0===r.length)return null;if(0===a)n=null;else if(s)n=r.shift();else if(!t||t>=a)n=o?r.join(""):i.concat(r,a),r.length=0;else{if(t0)throw new Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,process.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function w(t,e){for(var n=0,r=t.length;n0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d(this),null;if(0===(t=f(t,e))&&e.ended)return n=null,e.length>0&&e.decoder&&(n=y(t,e),e.length-=n.length),0===e.length&&v(this),n;var i=e.needReadable;return e.length-t<=e.highWaterMark&&(i=!0),(e.ended||e.reading)&&(i=!1),i&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),i&&!e.reading&&(t=f(r,e)),null===(n=t>0?y(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&v(this),n},u.prototype._read=function(t){this.emit("error",new Error("not implemented"))},u.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1;var o=(!e||!1!==e.end)&&t!==process.stdout&&t!==process.stderr?l:u;function s(t){t===n&&u()}function l(){t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&m(t)}}(n);function u(){t.removeListener("close",h),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",u),t._writableState&&!t._writableState.needDrain||c()}function p(e){d(),t.removeListener("error",p),0===a.listenerCount(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",f),d()}function f(){t.removeListener("close",h),d()}function d(){n.unpipe(t)}return t.on("drain",c),t._events&&t._events.error?r(t._events.error)?t._events.error.unshift(p):t._events.error=[p,t._events.error]:t.on("error",p),t.once("close",h),t.once("finish",f),t.emit("pipe",n),i.flowing||(this.on("readable",b),i.flowing=!0,process.nextTick(function(){m(n)})),t},u.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;i