/*!

JSZip v2.2.0 - A Javascript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2014 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.

JSZip uses the library zlib.js released under the following license :
zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSZip=e():"undefined"!=typeof global?global.JSZip=e():"undefined"!=typeof self&&(self.JSZip=e())}(function(){var j,_,a1;return(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(r,_,a1){'use strict';var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a1.encode=function(b,u){var o="";var c,d,f,g,h,k,l;var i=0;while(i<b.length){c=b.charCodeAt(i++);d=b.charCodeAt(i++);f=b.charCodeAt(i++);g=c>>2;h=((c&3)<<4)|(d>>4);k=((d&15)<<2)|(f>>6);l=f&63;if(isNaN(d)){k=l=64;}else if(isNaN(f)){l=64;}o=o+a.charAt(g)+a.charAt(h)+a.charAt(k)+a.charAt(l);}return o;};a1.decode=function(b,u){var o="";var c,d,f;var g,h,k,l;var i=0;b=b.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<b.length){g=a.indexOf(b.charAt(i++));h=a.indexOf(b.charAt(i++));k=a.indexOf(b.charAt(i++));l=a.indexOf(b.charAt(i++));c=(g<<2)|(h>>4);d=((h&15)<<4)|(k>>2);f=((k&3)<<6)|l;o=o+String.fromCharCode(c);if(k!=64){o=o+String.fromCharCode(d);}if(l!=64){o=o+String.fromCharCode(f);}}return o;};},{}],2:[function(r,_,a1){'use strict';function C(){this.compressedSize=0;this.uncompressedSize=0;this.crc32=0;this.compressionMethod=null;this.compressedContent=null;}C.prototype={getContent:function(){return null;},getCompressedContent:function(){return null;}};_.exports=C;},{}],3:[function(r,_,a1){'use strict';a1.STORE={magic:"\x00\x00",compress:function(c){return c;},uncompress:function(c){return c;},compressInputType:null,uncompressInputType:null};a1.DEFLATE=r('./flate');},{"./flate":6}],4:[function(r,_,a1){'use strict';var u=r('./utils');function D(d){this.data=null;this.length=0;this.index=0;}D.prototype={checkOffset:function(o){this.checkIndex(this.index+o);},checkIndex:function(n){if(this.length<n||n<0){throw new Error("End of data reached (data length = "+this.length+", asked index = "+(n)+"). Corrupted zip ?");}},setIndex:function(n){this.checkIndex(n);this.index=n;},skip:function(n){this.setIndex(this.index+n);},byteAt:function(i){},readInt:function(s){var a=0,i;this.checkOffset(s);for(i=this.index+s-1;i>=this.index;i--){a=(a<<8)+this.byteAt(i);}this.index+=s;return a;},readString:function(s){return u.transformTo("string",this.readData(s));},readData:function(s){},lastIndexOfSignature:function(s){},readDate:function(){var d=this.readInt(4);return new Date(((d>>25)&0x7f)+1980,((d>>21)&0x0f)-1,(d>>16)&0x1f,(d>>11)&0x1f,(d>>5)&0x3f,(d&0x1f)<<1);}};_.exports=D;},{"./utils":14}],5:[function(r,_,a1){'use strict';a1.base64=false;a1.binary=false;a1.dir=false;a1.date=null;a1.compression=null;},{}],6:[function(r,_,a1){'use strict';var U=(typeof Uint8Array!=='undefined')&&(typeof Uint16Array!=='undefined')&&(typeof Uint32Array!=='undefined');var Z=r('zlibjs/bin/rawdeflate.min').Zlib;var a=r('zlibjs/bin/rawinflate.min').Zlib;a1.uncompressInputType=U?"uint8array":"array";a1.compressInputType=U?"uint8array":"array";a1.magic="\x08\x00";a1.compress=function(i){var d=new Z.RawDeflate(i);return d.compress();};a1.uncompress=function(i){var b=new a.RawInflate(i);return b.decompress();};},{"zlibjs/bin/rawdeflate.min":19,"zlibjs/bin/rawinflate.min":20}],7:[function(r,_,a1){'use strict';function J(d,o){if(!(this instanceof J))return new J(d,o);this.files={};this.root="";if(d){this.load(d,o);}this.clone=function(){var n=new J();for(var i in this){if(typeof this[i]!=="function"){n[i]=this[i];}}return n;};}J.prototype=r('./object');J.prototype.load=r('./load');J.support=r('./support');J.defaults=r('./defaults');J.utils=r('./utils');J.base64=r('./base64');J.compressions=r('./compressions');_.exports=J;},{"./base64":1,"./compressions":3,"./defaults":5,"./load":8,"./object":9,"./support":12,"./utils":14}],8:[function(r,_,a1){'use strict';var b=r('./base64');var Z=r('./zipEntries');_.exports=function(d,o){var f,z,i,a;o=o||{};if(o.base64){d=b.decode(d);}z=new Z(d,o);f=z.files;for(i=0;i<f.length;i++){a=f[i];this.file(a.fileName,a.decompressed,{binary:true,optimizedBinaryString:true,date:a.date,dir:a.dir});}return this;};},{"./base64":1,"./zipEntries":15}],9:[function(r,_,a1){'use strict';var s=r('./support');var u=r('./utils');var a=r('./signature');var d=r('./defaults');var b=r('./base64');var f=r('./compressions');var C=r('./compressedObject');var g=r('./nodeBuffer');var t,h;if(s.uint8array&&typeof TextEncoder==="function"&&typeof TextDecoder==="function"){t=new TextEncoder("utf-8");h=new TextDecoder("utf-8");}var l=function(c){if(c._data instanceof C){c._data=c._data.getContent();c.options.binary=true;c.options.base64=false;if(u.getTypeOf(c._data)==="uint8array"){var i=c._data;c._data=new Uint8Array(i.length);if(i.length!==0){c._data.set(i,0);}}}return c._data;};var m=function(c){var i=l(c),k=u.getTypeOf(i);if(k==="string"){if(!c.options.binary){if(t){return t.encode(i);}if(s.nodebuffer){return g(i,"utf-8");}}return c.asBinary();}return i;};var p=function(c){var i=l(this);if(i===null||typeof i==="undefined"){return"";}if(this.options.base64){i=b.decode(i);}if(c&&this.options.binary){i=E.utf8decode(i);}else{i=u.transformTo("string",i);}if(!c&&!this.options.binary){i=E.utf8encode(i);}return i;};var Z=function(n,c,o){this.name=n;this._data=c;this.options=o;};Z.prototype={asText:function(){return p.call(this,true);},asBinary:function(){return p.call(this,false);},asNodeBuffer:function(){var c=m(this);return u.transformTo("nodebuffer",c);},asUint8Array:function(){var c=m(this);return u.transformTo("uint8array",c);},asArrayBuffer:function(){return this.asUint8Array().buffer;}};var q=function(c,k){var n="",i;for(i=0;i<k;i++){n+=String.fromCharCode(c&0xff);c=c>>>8;}return n;};var v=function(){var c={},i,k;for(i=0;i<arguments.length;i++){for(k in arguments[i]){if(arguments[i].hasOwnProperty(k)&&typeof c[k]==="undefined"){c[k]=arguments[i][k];}}}return c;};var w=function(o){o=o||{};if(o.base64===true&&(o.binary===null||o.binary===undefined)){o.binary=true;}o=v(o,d);o.date=o.date||new Date();if(o.compression!==null)o.compression=o.compression.toUpperCase();return o;};var x=function(n,c,o){var i=y(n),k=u.getTypeOf(c);if(i){z.call(this,i);}o=w(o);if(o.dir||c===null||typeof c==="undefined"){o.base64=false;o.binary=false;c=null;}else if(k==="string"){if(o.binary&&!o.base64){if(o.optimizedBinaryString!==true){c=u.string2binary(c);}}}else{o.base64=false;o.binary=true;if(!k&&!(c instanceof C)){throw new Error("The data of '"+n+"' is in an unsupported format !");}if(k==="arraybuffer"){c=u.transformTo("uint8array",c);}}var F=new Z(n,c,o);this.files[n]=F;return F;};var y=function(c){if(c.slice(-1)=='/'){c=c.substring(0,c.length-1);}var i=c.lastIndexOf('/');return(i>0)?c.substring(0,i):"";};var z=function(n){if(n.slice(-1)!="/"){n+="/";}if(!this.files[n]){x.call(this,n,null,{dir:true});}return this.files[n];};var A=function(c,i){var k=new C(),n;if(c._data instanceof C){k.uncompressedSize=c._data.uncompressedSize;k.crc32=c._data.crc32;if(k.uncompressedSize===0||c.options.dir){i=f['STORE'];k.compressedContent="";k.crc32=0;}else if(c._data.compressionMethod===i.magic){k.compressedContent=c._data.getCompressedContent();}else{n=c._data.getContent();k.compressedContent=i.compress(u.transformTo(i.compressInputType,n));}}else{n=m(c);if(!n||n.length===0||c.options.dir){i=f['STORE'];n="";}k.uncompressedSize=n.length;k.crc32=this.crc32(n);k.compressedContent=i.compress(u.transformTo(i.compressInputType,n));}k.compressedSize=k.compressedContent.length;k.compressionMethod=i.magic;return k;};var B=function(n,c,i,k){var F=i.compressedContent,G=this.utf8encode(c.name),H=G!==c.name,o=c.options,I,J,K="",L="";I=o.date.getHours();I=I<<6;I=I|o.date.getMinutes();I=I<<5;I=I|o.date.getSeconds()/2;J=o.date.getFullYear()-1980;J=J<<4;J=J|(o.date.getMonth()+1);J=J<<5;J=J|o.date.getDate();if(H){L=q(1,1)+q(this.crc32(G),4)+G;K+="\x75\x70"+q(L.length,2)+L;}var M="";M+="\x0A\x00";M+=H?"\x00\x08":"\x00\x00";M+=i.compressionMethod;M+=q(I,2);M+=q(J,2);M+=q(i.crc32,4);M+=q(i.compressedSize,4);M+=q(i.uncompressedSize,4);M+=q(G.length,2);M+=q(K.length,2);var N=a.LOCAL_FILE_HEADER+M+G+K;var O=a.CENTRAL_FILE_HEADER+"\x14\x00"+M+"\x00\x00"+"\x00\x00"+"\x00\x00"+(c.options.dir===true?"\x10\x00\x00\x00":"\x00\x00\x00\x00")+q(k,4)+G+K;return{fileRecord:N,dirRecord:O,compressedObject:i};};var S=function(){this.data=[];};S.prototype={append:function(i){i=u.transformTo("string",i);this.data.push(i);},finalize:function(){return this.data.join("");}};var U=function(c){this.data=new Uint8Array(c);this.index=0;};U.prototype={append:function(i){if(i.length!==0){i=u.transformTo("uint8array",i);this.data.set(i,this.index);this.index+=i.length;}},finalize:function(){return this.data;}};var D=(function(){var c;var n;var k;var i=[];for(n=0;n<256;n++){c=n;for(k=0;k<8;k++){if(c&1){c=0xedb88320^(c>>>1);}else{c=c>>>1;}}i[n]=c;}return i;})();var E={load:function(c,o){throw new Error("Load method is not defined. Is the file jszip-load.js included ?");},filter:function(c){var i=[],k,n,o,F;for(k in this.files){if(!this.files.hasOwnProperty(k)){continue;}o=this.files[k];F=new Z(o.name,o._data,v(o.options));n=k.slice(this.root.length,k.length);if(k.slice(0,this.root.length)===this.root&&c(n,F)){i.push(F);}}return i;},file:function(n,c,o){if(arguments.length===1){if(u.isRegExp(n)){var i=n;return this.filter(function(k,F){return!F.options.dir&&i.test(k);});}else{return this.filter(function(k,F){return!F.options.dir&&k===n;})[0]||null;}}else{n=this.root+n;x.call(this,n,c,o);}return this;},folder:function(c){if(!c){return this;}if(u.isRegExp(c)){return this.filter(function(o,F){return F.options.dir&&c.test(o);});}var n=this.root+c;var i=z.call(this,n);var k=this.clone();k.root=i.name;return k;},remove:function(n){n=this.root+n;var c=this.files[n];if(!c){if(n.slice(-1)!="/"){n+="/";}c=this.files[n];}if(c){if(!c.options.dir){delete this.files[n];}else{var k=this.filter(function(o,c){return c.name.slice(0,n.length)===n;});for(var i=0;i<k.length;i++){delete this.files[k[i].name];}}}return this;},generate:function(o){o=v(o||{},{base64:true,compression:"STORE",type:"base64"});u.checkSupport(o.type);var c=[],k=0,n=0,F,i;for(var G in this.files){if(!this.files.hasOwnProperty(G)){continue;}var H=this.files[G];var I=H.options.compression||o.compression.toUpperCase();var J=f[I];if(!J){throw new Error(I+" is not a valid compression method !");}var K=A.call(this,H,J);var L=B.call(this,G,H,K,k);k+=L.fileRecord.length+K.compressedSize;n+=L.dirRecord.length;c.push(L);}var M="";M=a.CENTRAL_DIRECTORY_END+"\x00\x00"+"\x00\x00"+q(c.length,2)+q(c.length,2)+q(n,4)+q(k,4)+"\x00\x00";var N=o.type.toLowerCase();if(N==="uint8array"||N==="arraybuffer"||N==="blob"||N==="nodebuffer"){F=new U(k+n+M.length);}else{F=new S(k+n+M.length);}for(i=0;i<c.length;i++){F.append(c[i].fileRecord);F.append(c[i].compressedObject.compressedContent);}for(i=0;i<c.length;i++){F.append(c[i].dirRecord);}F.append(M);var O=F.finalize();switch(o.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return u.transformTo(o.type.toLowerCase(),O);case"blob":return u.arrayBuffer2Blob(u.transformTo("arraybuffer",O));case"base64":return(o.base64)?b.encode(O):O;default:return O;}},crc32:function(i,k){var c=(typeof(k)=="undefined"?0:k)^0xffffffff;var o=typeof i!=="string";var n;if(o){for(n=0;n<i.length;n++){c=D[(c^i[n])&0xff]^(c>>>8);}}else{for(n=0;n<i.length;n++){c=D[(c^i.charCodeAt(n))&0xff]^(c>>>8);}}return c^0xffffffff;},utf8encode:function(c,k){var P=0,i,L=c.length;var o;var I=typeof c!="string";if(k){o=[];}else{o={push:function(i){this.value+=String.fromCharCode(i);},value:"",valueOf:function(){return this.value;}};}while(P<L){i=I?c[P++]:c.charCodeAt(P++);if(i<128){o.push(i);}else if(i<2048){o.push(((i>>6)&15)|192);o.push((i&63)|128);}else{o.push(((i>>12)&15)|224);o.push(((i>>6)&63)|128);o.push((i&63)|128);}}return o.valueOf();},utf8decode:function(c){var k=[],P=0,L=c.length;var n=typeof c!="string";var o=function(P){return n?c[P]:c.charCodeAt(P);};while(P<L){var i=n?c[P++]:c.charCodeAt(P++);if(i<128){k.push(String.fromCharCode(i));}else if((i>=192)&&(i<224)){k.push(String.fromCharCode(((i&31)<<6)|(o(P++)&63)));}else{k.push(String.fromCharCode(((i&15)<<12)|((o(P++)&63)<<6)|(o(P++)&63)));}}return k.join("");}};_.exports=E;},{"./base64":1,"./compressedObject":2,"./compressions":3,"./defaults":5,"./nodeBuffer":17,"./signature":10,"./support":12,"./utils":14}],10:[function(r,_,a1){'use strict';a1.LOCAL_FILE_HEADER="PK\x03\x04";a1.CENTRAL_FILE_HEADER="PK\x01\x02";a1.CENTRAL_DIRECTORY_END="PK\x05\x06";a1.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";a1.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";a1.DATA_DESCRIPTOR="PK\x07\x08";},{}],11:[function(r,_,a1){'use strict';var D=r('./dataReader');var u=r('./utils');function S(d,o){this.data=d;if(!o){this.data=u.string2binary(this.data);}this.length=this.data.length;this.index=0;}S.prototype=new D();S.prototype.byteAt=function(i){return this.data.charCodeAt(i);};S.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s);};S.prototype.readData=function(s){this.checkOffset(s);var a=this.data.slice(this.index,this.index+s);this.index+=s;return a;};_.exports=S;},{"./dataReader":4,"./utils":14}],12:[function(r,_,a1){var p=r("__browserify_process");'use strict';a1.base64=true;a1.array=true;a1.string=true;a1.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";a1.nodebuffer=!p.browser;a1.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined"){a1.blob=false;}else{var b=new ArrayBuffer(0);try{a1.blob=new Blob([b],{type:"application/zip"}).size===0;}catch(e){try{var B=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;var a=new B();a.append(b);a1.blob=a.getBlob('application/zip').size===0;}catch(e){a1.blob=false;}}}},{"__browserify_process":18}],13:[function(r,_,a1){'use strict';var D=r('./dataReader');function U(d){if(d){this.data=d;this.length=this.data.length;this.index=0;}}U.prototype=new D();U.prototype.byteAt=function(i){return this.data[i];};U.prototype.lastIndexOfSignature=function(s){var a=s.charCodeAt(0),b=s.charCodeAt(1),c=s.charCodeAt(2),d=s.charCodeAt(3);for(var i=this.length-4;i>=0;--i){if(this.data[i]===a&&this.data[i+1]===b&&this.data[i+2]===c&&this.data[i+3]===d){return i;}}return-1;};U.prototype.readData=function(s){this.checkOffset(s);var a=this.data.subarray(this.index,this.index+s);this.index+=s;return a;};_.exports=U;},{"./dataReader":4}],14:[function(r,_,a1){'use strict';var s=r('./support');var c=r('./compressions');var n=r('./nodeBuffer');a1.string2binary=function(g){var h="";for(var i=0;i<g.length;i++){h+=String.fromCharCode(g.charCodeAt(i)&0xff);}return h;};a1.string2Uint8Array=function(g){return a1.transformTo("uint8array",g);};a1.uint8Array2String=function(g){return a1.transformTo("string",g);};a1.string2Blob=function(g){var h=a1.transformTo("arraybuffer",g);return a1.arrayBuffer2Blob(h);};a1.arrayBuffer2Blob=function(g){a1.checkSupport("blob");try{return new Blob([g],{type:"application/zip"});}catch(e){try{var B=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;var h=new B();h.append(g);return h.getBlob('application/zip');}catch(e){throw new Error("Bug : can't construct the Blob.");}}};function a(i){return i;}function b(g,h){for(var i=0;i<g.length;++i){h[i]=g.charCodeAt(i)&0xFF;}return h;}function d(g){var h=65536;var l=[],m=g.length,o=a1.getTypeOf(g),k=0,p=true;try{switch(o){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,n(0));break;}}catch(e){p=false;}if(!p){var q="";for(var i=0;i<g.length;i++){q+=String.fromCharCode(g[i]);}return q;}while(k<m&&h>1){try{if(o==="array"||o==="nodebuffer"){l.push(String.fromCharCode.apply(null,g.slice(k,Math.min(k+h,m))));}else{l.push(String.fromCharCode.apply(null,g.subarray(k,Math.min(k+h,m))));}k+=h;}catch(e){h=Math.floor(h/2);}}return l.join("");}function f(g,h){for(var i=0;i<g.length;i++){h[i]=g[i];}return h;}var t={};t["string"]={"string":a,"array":function(i){return b(i,new Array(i.length));},"arraybuffer":function(i){return t["string"]["uint8array"](i).buffer;},"uint8array":function(i){return b(i,new Uint8Array(i.length));},"nodebuffer":function(i){return b(i,n(i.length));}};t["array"]={"string":d,"array":a,"arraybuffer":function(i){return(new Uint8Array(i)).buffer;},"uint8array":function(i){return new Uint8Array(i);},"nodebuffer":function(i){return n(i);}};t["arraybuffer"]={"string":function(i){return d(new Uint8Array(i));},"array":function(i){return f(new Uint8Array(i),new Array(i.byteLength));},"arraybuffer":a,"uint8array":function(i){return new Uint8Array(i);},"nodebuffer":function(i){return n(new Uint8Array(i));}};t["uint8array"]={"string":d,"array":function(i){return f(i,new Array(i.length));},"arraybuffer":function(i){return i.buffer;},"uint8array":a,"nodebuffer":function(i){return n(i);}};t["nodebuffer"]={"string":d,"array":function(i){return f(i,new Array(i.length));},"arraybuffer":function(i){return t["nodebuffer"]["uint8array"](i).buffer;},"uint8array":function(i){return f(i,new Uint8Array(i.length));},"nodebuffer":a};a1.transformTo=function(o,i){if(!i){i="";}if(!o){return i;}a1.checkSupport(o);var g=a1.getTypeOf(i);var h=t[g][o](i);return h;};a1.getTypeOf=function(i){if(typeof i==="string"){return"string";}if(Object.prototype.toString.call(i)==="[object Array]"){return"array";}if(s.nodebuffer&&n.test(i)){return"nodebuffer";}if(s.uint8array&&i instanceof Uint8Array){return"uint8array";}if(s.arraybuffer&&i instanceof ArrayBuffer){return"arraybuffer";}};a1.checkSupport=function(g){var h=s[g.toLowerCase()];if(!h){throw new Error(g+" is not supported by this browser");}};a1.MAX_VALUE_16BITS=65535;a1.MAX_VALUE_32BITS=-1;a1.pretty=function(g){var h='',k,i;for(i=0;i<(g||"").length;i++){k=g.charCodeAt(i);h+='\\x'+(k<16?"0":"")+k.toString(16).toUpperCase();}return h;};a1.findCompression=function(g){for(var m in c){if(!c.hasOwnProperty(m)){continue;}if(c[m].magic===g){return c[m];}}return null;};a1.isRegExp=function(o){return Object.prototype.toString.call(o)==="[object RegExp]";};},{"./compressions":3,"./nodeBuffer":17,"./support":12}],15:[function(r,_,a1){'use strict';var S=r('./stringReader');var N=r('./nodeBufferReader');var U=r('./uint8ArrayReader');var u=r('./utils');var s=r('./signature');var Z=r('./zipEntry');var a=r('./support');function b(d,l){this.files=[];this.loadOptions=l;if(d){this.load(d);}}b.prototype={checkSignature:function(c){var d=this.reader.readString(4);if(d!==c){throw new Error("Corrupted zip or bug : unexpected signature "+"("+u.pretty(d)+", expected "+u.pretty(c)+")");}},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2);this.diskWithCentralDirStart=this.reader.readInt(2);this.centralDirRecordsOnThisDisk=this.reader.readInt(2);this.centralDirRecords=this.reader.readInt(2);this.centralDirSize=this.reader.readInt(4);this.centralDirOffset=this.reader.readInt(4);this.zipCommentLength=this.reader.readInt(2);this.zipComment=this.reader.readString(this.zipCommentLength);},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8);this.versionMadeBy=this.reader.readString(2);this.versionNeeded=this.reader.readInt(2);this.diskNumber=this.reader.readInt(4);this.diskWithCentralDirStart=this.reader.readInt(4);this.centralDirRecordsOnThisDisk=this.reader.readInt(8);this.centralDirRecords=this.reader.readInt(8);this.centralDirSize=this.reader.readInt(8);this.centralDirOffset=this.reader.readInt(8);this.zip64ExtensibleData={};var c=this.zip64EndOfCentralSize-44,i=0,d,f,g;while(i<c){d=this.reader.readInt(2);f=this.reader.readInt(4);g=this.reader.readString(f);this.zip64ExtensibleData[d]={id:d,length:f,value:g};}},readBlockZip64EndOfCentralLocator:function(){this.diskWithZip64CentralDirStart=this.reader.readInt(4);this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8);this.disksCount=this.reader.readInt(4);if(this.disksCount>1){throw new Error("Multi-volumes zip are not supported");}},readLocalFiles:function(){var i,f;for(i=0;i<this.files.length;i++){f=this.files[i];this.reader.setIndex(f.localHeaderOffset);this.checkSignature(s.LOCAL_FILE_HEADER);f.readLocalPart(this.reader);f.handleUTF8();}},readCentralDir:function(){var f;this.reader.setIndex(this.centralDirOffset);while(this.reader.readString(4)===s.CENTRAL_FILE_HEADER){f=new Z({zip64:this.zip64},this.loadOptions);f.readCentralPart(this.reader);this.files.push(f);}},readEndOfCentral:function(){var o=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(o===-1){throw new Error("Corrupted zip : can't find end of central directory");}this.reader.setIndex(o);this.checkSignature(s.CENTRAL_DIRECTORY_END);this.readBlockEndOfCentral();if(this.diskNumber===u.MAX_VALUE_16BITS||this.diskWithCentralDirStart===u.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===u.MAX_VALUE_16BITS||this.centralDirRecords===u.MAX_VALUE_16BITS||this.centralDirSize===u.MAX_VALUE_32BITS||this.centralDirOffset===u.MAX_VALUE_32BITS){this.zip64=true;o=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR);if(o===-1){throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");}this.reader.setIndex(o);this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR);this.readBlockZip64EndOfCentralLocator();this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir);this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END);this.readBlockZip64EndOfCentral();}},prepareReader:function(d){var t=u.getTypeOf(d);if(t==="string"&&!a.uint8array){this.reader=new S(d,this.loadOptions.optimizedBinaryString);}else if(t==="nodebuffer"){this.reader=new N(d);}else{this.reader=new U(u.transformTo("uint8array",d));}},load:function(d){this.prepareReader(d);this.readEndOfCentral();this.readCentralDir();this.readLocalFiles();}};_.exports=b;},{"./nodeBufferReader":17,"./signature":10,"./stringReader":11,"./support":12,"./uint8ArrayReader":13,"./utils":14,"./zipEntry":16}],16:[function(r,_,a1){'use strict';var S=r('./stringReader');var u=r('./utils');var C=r('./compressedObject');var a=r('./object');function Z(o,l){this.options=o;this.loadOptions=l;}Z.prototype={isEncrypted:function(){return(this.bitFlag&0x0001)===0x0001;},useUTF8:function(){return(this.bitFlag&0x0800)===0x0800;},prepareCompressedContent:function(b,f,l){return function(){var p=b.index;b.setIndex(f);var c=b.readData(l);b.setIndex(p);return c;};},prepareContent:function(b,f,l,c,d){return function(){var g=u.transformTo(c.uncompressInputType,this.getCompressedContent());var h=c.uncompress(g);if(h.length!==d){throw new Error("Bug : uncompressed data size mismatch");}return h;};},readLocalPart:function(b){var c,l;b.skip(22);this.fileNameLength=b.readInt(2);l=b.readInt(2);this.fileName=b.readString(this.fileNameLength);b.skip(l);if(this.compressedSize==-1||this.uncompressedSize==-1){throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory "+"(compressedSize == -1 || uncompressedSize == -1)");}c=u.findCompression(this.compressionMethod);if(c===null){throw new Error("Corrupted zip : compression "+u.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");}this.decompressed=new C();this.decompressed.compressedSize=this.compressedSize;this.decompressed.uncompressedSize=this.uncompressedSize;this.decompressed.crc32=this.crc32;this.decompressed.compressionMethod=this.compressionMethod;this.decompressed.getCompressedContent=this.prepareCompressedContent(b,b.index,this.compressedSize,c);this.decompressed.getContent=this.prepareContent(b,b.index,this.compressedSize,c,this.uncompressedSize);if(this.loadOptions.checkCRC32){this.decompressed=u.transformTo("string",this.decompressed.getContent());if(a.crc32(this.decompressed)!==this.crc32){throw new Error("Corrupted zip : CRC32 mismatch");}}},readCentralPart:function(b){this.versionMadeBy=b.readString(2);this.versionNeeded=b.readInt(2);this.bitFlag=b.readInt(2);this.compressionMethod=b.readString(2);this.date=b.readDate();this.crc32=b.readInt(4);this.compressedSize=b.readInt(4);this.uncompressedSize=b.readInt(4);this.fileNameLength=b.readInt(2);this.extraFieldsLength=b.readInt(2);this.fileCommentLength=b.readInt(2);this.diskNumberStart=b.readInt(2);this.internalFileAttributes=b.readInt(2);this.externalFileAttributes=b.readInt(4);this.localHeaderOffset=b.readInt(4);if(this.isEncrypted()){throw new Error("Encrypted zip are not supported");}this.fileName=b.readString(this.fileNameLength);this.readExtraFields(b);this.parseZIP64ExtraField(b);this.fileComment=b.readString(this.fileCommentLength);this.dir=this.externalFileAttributes&0x00000010?true:false;},parseZIP64ExtraField:function(b){if(!this.extraFields[0x0001]){return;}var c=new S(this.extraFields[0x0001].value);if(this.uncompressedSize===u.MAX_VALUE_32BITS){this.uncompressedSize=c.readInt(8);}if(this.compressedSize===u.MAX_VALUE_32BITS){this.compressedSize=c.readInt(8);}if(this.localHeaderOffset===u.MAX_VALUE_32BITS){this.localHeaderOffset=c.readInt(8);}if(this.diskNumberStart===u.MAX_VALUE_32BITS){this.diskNumberStart=c.readInt(4);}},readExtraFields:function(b){var s=b.index,c,d,f;this.extraFields=this.extraFields||{};while(b.index<s+this.extraFieldsLength){c=b.readInt(2);d=b.readInt(2);f=b.readString(d);this.extraFields[c]={id:c,length:d,value:f};}},handleUTF8:function(){if(this.useUTF8()){this.fileName=a.utf8decode(this.fileName);this.fileComment=a.utf8decode(this.fileComment);}else{var b=this.findExtraFieldUnicodePath();if(b!==null){this.fileName=b;}}},findExtraFieldUnicodePath:function(){var b=this.extraFields[0x7075];if(b){var c=new S(b.value);if(c.readInt(1)!==1){return null;}if(a.crc32(this.fileName)!==c.readInt(4)){return null;}return a.utf8decode(c.readString(b.length-5));}return null;}};_.exports=Z;},{"./compressedObject":2,"./object":9,"./stringReader":11,"./utils":14}],17:[function(r,_,a1){},{}],18:[function(r,_,a1){var p=_.exports={};p.nextTick=(function(){var c=typeof window!=='undefined'&&window.setImmediate;var a=typeof window!=='undefined'&&window.postMessage&&window.addEventListener;if(c){return function(f){return window.setImmediate(f)};}if(a){var q=[];window.addEventListener('message',function(b){var s=b.source;if((s===window||s===null)&&b.data==='process-tick'){b.stopPropagation();if(q.length>0){var f=q.shift();f();}}},true);return function nextTick(f){q.push(f);window.postMessage('process-tick','*');};}return function nextTick(f){setTimeout(f,0);};})();p.title='browser';p.browser=true;p.env={};p.argv=[];p.binding=function(n){throw new Error('process.binding is not supported');};p.cwd=function(){return'/'};p.chdir=function(d){throw new Error('process.chdir is not supported');};},{}],19:[function(i,_,a1){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
(function(){'use strict';var n=void 0,u=!0,o=this;function ba(e,d){var c=e.split("."),f=o;!(c[0]in f)&&f.execScript&&f.execScript("var "+c[0]);for(var a;c.length&&(a=c.shift());)!c.length&&d!==n?f[a]=d:f=f[a]?f[a]:f[a]={}};var C="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array&&"undefined"!==typeof DataView;function K(e,d){this.index="number"===typeof d?d:0;this.d=0;this.buffer=e instanceof(C?Uint8Array:Array)?e:new(C?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&ca(this)}function ca(e){var d=e.buffer,c,f=d.length,a=new(C?Uint8Array:Array)(f<<1);if(C)a.set(d);else for(c=0;c<f;++c)a[c]=d[c];return e.buffer=a}K.prototype.a=function(e,d,c){var f=this.buffer,a=this.index,b=this.d,k=f[a],m;c&&1<d&&(e=8<d?(L[e&255]<<24|L[e>>>8&255]<<16|L[e>>>16&255]<<8|L[e>>>24&255])>>32-d:L[e]>>8-d);if(8>d+b)k=k<<d|e,b+=d;else for(m=0;m<d;++m)k=k<<1|e>>d-m-1&1,8===++b&&(b=0,f[a++]=L[k],k=0,a===f.length&&(f=ca(this)));f[a]=k;this.buffer=f;this.d=b;this.index=a};K.prototype.finish=function(){var e=this.buffer,d=this.index,c;0<this.d&&(e[d]<<=8-this.d,e[d]=L[e[d]],d++);C?c=e.subarray(0,d):(e.length=d,c=e);return c};var ga=new(C?Uint8Array:Array)(256),M;for(M=0;256>M;++M){for(var R=M,S=R,ha=7,R=R>>>1;R;R>>>=1)S<<=1,S|=R&1,--ha;ga[M]=(S<<ha&255)>>>0}var L=ga;function ja(e){this.buffer=new(C?Uint16Array:Array)(2*e);this.length=0}ja.prototype.getParent=function(e){return 2*((e-2)/4|0)};ja.prototype.push=function(e,d){var c,f,a=this.buffer,b;c=this.length;a[this.length++]=d;for(a[this.length++]=e;0<c;)if(f=this.getParent(c),a[c]>a[f])b=a[c],a[c]=a[f],a[f]=b,b=a[c+1],a[c+1]=a[f+1],a[f+1]=b,c=f;else break;return this.length};ja.prototype.pop=function(){var e,d,c=this.buffer,f,a,b;d=c[0];e=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(b=0;;){a=2*b+2;if(a>=this.length)break;a+2<this.length&&c[a+2]>c[a]&&(a+=2);if(c[a]>c[b])f=c[b],c[b]=c[a],c[a]=f,f=c[b+1],c[b+1]=c[a+1],c[a+1]=f;else break;b=a}return{index:e,value:d,length:this.length}};function ka(e,d){this.e=ma;this.f=0;this.input=C&&e instanceof Array?new Uint8Array(e):e;this.c=0;d&&(d.lazy&&(this.f=d.lazy),"number"===typeof d.compressionType&&(this.e=d.compressionType),d.outputBuffer&&(this.b=C&&d.outputBuffer instanceof Array?new Uint8Array(d.outputBuffer):d.outputBuffer),"number"===typeof d.outputIndex&&(this.c=d.outputIndex));this.b||(this.b=new(C?Uint8Array:Array)(32768))}var ma=2,T=[],U;for(U=0;288>U;U++)switch(u){case 143>=U:T.push([U+48,8]);break;case 255>=U:T.push([U-144+400,9]);break;case 279>=U:T.push([U-256+0,7]);break;case 287>=U:T.push([U-280+192,8]);break;default:throw"invalid literal: "+U;}ka.prototype.h=function(){var e,d,c,f,a=this.input;switch(this.e){case 0:c=0;for(f=a.length;c<f;){d=C?a.subarray(c,c+65535):a.slice(c,c+65535);c+=d.length;var b=d,k=c===f,m=n,g=n,p=n,v=n,x=n,l=this.b,h=this.c;if(C){for(l=new Uint8Array(this.b.buffer);l.length<=h+b.length+5;)l=new Uint8Array(l.length<<1);l.set(this.b)}m=k?1:0;l[h++]=m|0;g=b.length;p=~g+65536&65535;l[h++]=g&255;l[h++]=g>>>8&255;l[h++]=p&255;l[h++]=p>>>8&255;if(C)l.set(b,h),h+=b.length,l=l.subarray(0,h);else{v=0;for(x=b.length;v<x;++v)l[h++]=b[v];l.length=h}this.c=h;this.b=l}break;case 1:var q=new K(C?new Uint8Array(this.b.buffer):this.b,this.c);q.a(1,1,u);q.a(1,2,u);var t=na(this,a),w,da,z;w=0;for(da=t.length;w<da;w++)if(z=t[w],K.prototype.a.apply(q,T[z]),256<z)q.a(t[++w],t[++w],u),q.a(t[++w],5),q.a(t[++w],t[++w],u);else if(256===z)break;this.b=q.finish();this.c=this.b.length;break;case ma:var B=new K(C?new Uint8Array(this.b.buffer):this.b,this.c),ra,J,N,O,P,Ia=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W,sa,X,ta,ea,ia=Array(19),ua,Q,fa,y,va;ra=ma;B.a(1,1,u);B.a(ra,2,u);J=na(this,a);W=oa(this.j,15);sa=pa(W);X=oa(this.i,7);ta=pa(X);for(N=286;257<N&&0===W[N-1];N--);for(O=30;1<O&&0===X[O-1];O--);var wa=N,xa=O,F=new(C?Uint32Array:Array)(wa+xa),r,G,s,Y,E=new(C?Uint32Array:Array)(316),D,A,H=new(C?Uint8Array:Array)(19);for(r=G=0;r<wa;r++)F[G++]=W[r];for(r=0;r<xa;r++)F[G++]=X[r];if(!C){r=0;for(Y=H.length;r<Y;++r)H[r]=0}r=D=0;for(Y=F.length;r<Y;r+=G){for(G=1;r+G<Y&&F[r+G]===F[r];++G);s=G;if(0===F[r])if(3>s)for(;0<s--;)E[D++]=0,H[0]++;else for(;0<s;)A=138>s?s:138,A>s-3&&A<s&&(A=s-3),10>=A?(E[D++]=17,E[D++]=A-3,H[17]++):(E[D++]=18,E[D++]=A-11,H[18]++),s-=A;else if(E[D++]=F[r],H[F[r]]++,s--,3>s)for(;0<s--;)E[D++]=F[r],H[F[r]]++;else for(;0<s;)A=6>s?s:6,A>s-3&&A<s&&(A=s-3),E[D++]=16,E[D++]=A-3,H[16]++,s-=A}e=C?E.subarray(0,D):E.slice(0,D);ea=oa(H,7);for(y=0;19>y;y++)ia[y]=ea[Ia[y]];for(P=19;4<P&&0===ia[P-1];P--);ua=pa(ea);B.a(N-257,5,u);B.a(O-1,5,u);B.a(P-4,4,u);for(y=0;y<P;y++)B.a(ia[y],3,u);y=0;for(va=e.length;y<va;y++)if(Q=e[y],B.a(ua[Q],ea[Q],u),16<=Q){y++;switch(Q){case 16:fa=2;break;case 17:fa=3;break;case 18:fa=7;break;default:throw"invalid code: "+Q;}B.a(e[y],fa,u)}var ya=[sa,W],za=[ta,X],I,Aa,Z,la,Ba,Ca,Da,Ea;Ba=ya[0];Ca=ya[1];Da=za[0];Ea=za[1];I=0;for(Aa=J.length;I<Aa;++I)if(Z=J[I],B.a(Ba[Z],Ca[Z],u),256<Z)B.a(J[++I],J[++I],u),la=J[++I],B.a(Da[la],Ea[la],u),B.a(J[++I],J[++I],u);else if(256===Z)break;this.b=B.finish();this.c=this.b.length;break;default:throw"invalid compression type";}return this.b};function qa(e,d){this.length=e;this.g=d}var Fa=function(){function e(a){switch(u){case 3===a:return[257,a-3,0];case 4===a:return[258,a-4,0];case 5===a:return[259,a-5,0];case 6===a:return[260,a-6,0];case 7===a:return[261,a-7,0];case 8===a:return[262,a-8,0];case 9===a:return[263,a-9,0];case 10===a:return[264,a-10,0];case 12>=a:return[265,a-11,1];case 14>=a:return[266,a-13,1];case 16>=a:return[267,a-15,1];case 18>=a:return[268,a-17,1];case 22>=a:return[269,a-19,2];case 26>=a:return[270,a-23,2];case 30>=a:return[271,a-27,2];case 34>=a:return[272,a-31,2];case 42>=a:return[273,a-35,3];case 50>=a:return[274,a-43,3];case 58>=a:return[275,a-51,3];case 66>=a:return[276,a-59,3];case 82>=a:return[277,a-67,4];case 98>=a:return[278,a-83,4];case 114>=a:return[279,a-99,4];case 130>=a:return[280,a-115,4];case 162>=a:return[281,a-131,5];case 194>=a:return[282,a-163,5];case 226>=a:return[283,a-195,5];case 257>=a:return[284,a-227,5];case 258===a:return[285,a-258,0];default:throw"invalid length: "+a;}}var d=[],c,f;for(c=3;258>=c;c++)f=e(c),d[c]=f[2]<<24|f[1]<<16|f[0];return d}(),Ga=C?new Uint32Array(Fa):Fa;function na(e,d){function c(a,c){var b=a.g,d=[],f=0,e;e=Ga[a.length];d[f++]=e&65535;d[f++]=e>>16&255;d[f++]=e>>24;var g;switch(u){case 1===b:g=[0,b-1,0];break;case 2===b:g=[1,b-2,0];break;case 3===b:g=[2,b-3,0];break;case 4===b:g=[3,b-4,0];break;case 6>=b:g=[4,b-5,1];break;case 8>=b:g=[5,b-7,1];break;case 12>=b:g=[6,b-9,2];break;case 16>=b:g=[7,b-13,2];break;case 24>=b:g=[8,b-17,3];break;case 32>=b:g=[9,b-25,3];break;case 48>=b:g=[10,b-33,4];break;case 64>=b:g=[11,b-49,4];break;case 96>=b:g=[12,b-65,5];break;case 128>=b:g=[13,b-97,5];break;case 192>=b:g=[14,b-129,6];break;case 256>=b:g=[15,b-193,6];break;case 384>=b:g=[16,b-257,7];break;case 512>=b:g=[17,b-385,7];break;case 768>=b:g=[18,b-513,8];break;case 1024>=b:g=[19,b-769,8];break;case 1536>=b:g=[20,b-1025,9];break;case 2048>=b:g=[21,b-1537,9];break;case 3072>=b:g=[22,b-2049,10];break;case 4096>=b:g=[23,b-3073,10];break;case 6144>=b:g=[24,b-4097,11];break;case 8192>=b:g=[25,b-6145,11];break;case 12288>=b:g=[26,b-8193,12];break;case 16384>=b:g=[27,b-12289,12];break;case 24576>=b:g=[28,b-16385,13];break;case 32768>=b:g=[29,b-24577,13];break;default:throw"invalid distance";}e=g;d[f++]=e[0];d[f++]=e[1];d[f++]=e[2];var k,m;k=0;for(m=d.length;k<m;++k)l[h++]=d[k];t[d[0]]++;w[d[3]]++;q=a.length+c-1;x=null}var f,a,b,k,m,g={},p,v,x,l=C?new Uint16Array(2*d.length):[],h=0,q=0,t=new(C?Uint32Array:Array)(286),w=new(C?Uint32Array:Array)(30),r=e.f,z;if(!C){for(b=0;285>=b;)t[b++]=0;for(b=0;29>=b;)w[b++]=0}t[256]=1;f=0;for(a=d.length;f<a;++f){b=m=0;for(k=3;b<k&&f+b!==a;++b)m=m<<8|d[f+b];g[m]===n&&(g[m]=[]);p=g[m];if(!(0<q--)){for(;0<p.length&&32768<f-p[0];)p.shift();if(f+3>=a){x&&c(x,-1);b=0;for(k=a-f;b<k;++b)z=d[f+b],l[h++]=z,++t[z];break}0<p.length?(v=Ha(d,f,p),x?x.length<v.length?(z=d[f-1],l[h++]=z,++t[z],c(v,0)):c(x,-1):v.length<r?x=v:c(v,0)):x?c(x,-1):(z=d[f],l[h++]=z,++t[z])}p.push(f)}l[h++]=256;t[256]++;e.j=t;e.i=w;return C?l.subarray(0,h):l}function Ha(e,d,c){var f,a,b=0,k,m,g,p,v=e.length;m=0;p=c.length;a:for(;m<p;m++){f=c[p-m-1];k=3;if(3<b){for(g=b;3<g;g--)if(e[f+g-1]!==e[d+g-1])continue a;k=b}for(;258>k&&d+k<v&&e[f+k]===e[d+k];)++k;k>b&&(a=f,b=k);if(258===k)break}return new qa(b,d-a)}function oa(e,d){var c=e.length,f=new ja(572),a=new(C?Uint8Array:Array)(c),b,k,m,g,p;if(!C)for(g=0;g<c;g++)a[g]=0;for(g=0;g<c;++g)0<e[g]&&f.push(g,e[g]);b=Array(f.length/2);k=new(C?Uint32Array:Array)(f.length/2);if(1===b.length)return a[f.pop().index]=1,a;g=0;for(p=f.length/2;g<p;++g)b[g]=f.pop(),k[g]=b[g].value;m=Ja(k,k.length,d);g=0;for(p=b.length;g<p;++g)a[b[g].index]=m[g];return a}function Ja(e,d,c){function f(a){var b=g[a][p[a]];b===d?(f(a+1),f(a+1)):--k[b];++p[a]}var a=new(C?Uint16Array:Array)(c),b=new(C?Uint8Array:Array)(c),k=new(C?Uint8Array:Array)(d),m=Array(c),g=Array(c),p=Array(c),v=(1<<c)-d,x=1<<c-1,l,h,q,t,w;a[c-1]=d;for(h=0;h<c;++h)v<x?b[h]=0:(b[h]=1,v-=x),v<<=1,a[c-2-h]=(a[c-1-h]/2|0)+d;a[0]=b[0];m[0]=Array(a[0]);g[0]=Array(a[0]);for(h=1;h<c;++h)a[h]>2*a[h-1]+b[h]&&(a[h]=2*a[h-1]+b[h]),m[h]=Array(a[h]),g[h]=Array(a[h]);for(l=0;l<d;++l)k[l]=c;for(q=0;q<a[c-1];++q)m[c-1][q]=e[q],g[c-1][q]=q;for(l=0;l<c;++l)p[l]=0;1===b[c-1]&&(--k[0],++p[c-1]);for(h=c-2;0<=h;--h){t=l=0;w=p[h+1];for(q=0;q<a[h];q++)t=m[h+1][w]+m[h+1][w+1],t>e[l]?(m[h][q]=t,g[h][q]=d,w+=2):(m[h][q]=e[l],g[h][q]=l,++l);p[h]=0;1===b[h]&&f(h)}return k}function pa(e){var d=new(C?Uint16Array:Array)(e.length),c=[],f=[],a=0,b,k,m,g;b=0;for(k=e.length;b<k;b++)c[e[b]]=(c[e[b]]|0)+1;b=1;for(k=16;b<=k;b++)f[b]=a,a+=c[b]|0,a<<=1;b=0;for(k=e.length;b<k;b++){a=f[e[b]];f[e[b]]+=1;m=d[b]=0;for(g=e[b];m<g;m++)d[b]=d[b]<<1|a&1,a>>>=1}return d};ba("Zlib.RawDeflate",ka);ba("Zlib.RawDeflate.prototype.compress",ka.prototype.h);var Ka={NONE:0,FIXED:1,DYNAMIC:ma},V,La,$,Ma;if(Object.keys)V=Object.keys(Ka);else for(La in V=[],$=0,Ka)V[$++]=La;$=0;for(Ma=V.length;$<Ma;++$)La=V[$],ba("Zlib.RawDeflate.CompressionType."+La,Ka[La]);}).call(this);},{}],20:[function(i,_,a1){(function(){'use strict';var l=this;function p(b,e){var a=b.split("."),c=l;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&void 0!==e?c[d]=e:c=c[d]?c[d]:c[d]={}};var q="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array&&"undefined"!==typeof DataView;function t(b){var e=b.length,a=0,c=Number.POSITIVE_INFINITY,d,f,g,h,k,m,r,n,s,J;for(n=0;n<e;++n)b[n]>a&&(a=b[n]),b[n]<c&&(c=b[n]);d=1<<a;f=new(q?Uint32Array:Array)(d);g=1;h=0;for(k=2;g<=a;){for(n=0;n<e;++n)if(b[n]===g){m=0;r=h;for(s=0;s<g;++s)m=m<<1|r&1,r>>=1;J=g<<16|n;for(s=m;s<d;s+=k)f[s]=J;++h}++g;h<<=1;k<<=1}return[f,a,c]};function u(b,e){this.g=[];this.h=32768;this.c=this.f=this.d=this.k=0;this.input=q?new Uint8Array(b):b;this.l=!1;this.i=v;this.q=!1;if(e||!(e={}))e.index&&(this.d=e.index),e.bufferSize&&(this.h=e.bufferSize),e.bufferType&&(this.i=e.bufferType),e.resize&&(this.q=e.resize);switch(this.i){case w:this.a=32768;this.b=new(q?Uint8Array:Array)(32768+this.h+258);break;case v:this.a=0;this.b=new(q?Uint8Array:Array)(this.h);this.e=this.v;this.m=this.s;this.j=this.t;break;default:throw Error("invalid inflate mode");}}var w=0,v=1;u.prototype.u=function(){for(;!this.l;){var b=x(this,3);b&1&&(this.l=!0);b>>>=1;switch(b){case 0:var e=this.input,a=this.d,c=this.b,d=this.a,f=e.length,g=void 0,h=void 0,k=c.length,m=void 0;this.c=this.f=0;if(a+1>=f)throw Error("invalid uncompressed block header: LEN");g=e[a++]|e[a++]<<8;if(a+1>=f)throw Error("invalid uncompressed block header: NLEN");h=e[a++]|e[a++]<<8;if(g===~h)throw Error("invalid uncompressed block header: length verify");if(a+g>e.length)throw Error("input buffer is broken");switch(this.i){case w:for(;d+g>c.length;){m=k-d;g-=m;if(q)c.set(e.subarray(a,a+m),d),d+=m,a+=m;else for(;m--;)c[d++]=e[a++];this.a=d;c=this.e();d=this.a}break;case v:for(;d+g>c.length;)c=this.e({o:2});break;default:throw Error("invalid inflate mode");}if(q)c.set(e.subarray(a,a+g),d),d+=g,a+=g;else for(;g--;)c[d++]=e[a++];this.d=a;this.a=d;this.b=c;break;case 1:this.j(y,z);break;case 2:A(this);break;default:throw Error("unknown BTYPE: "+b);}}return this.m()};var B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=q?new Uint16Array(B):B,D=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],E=q?new Uint16Array(D):D,F=[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,0,0],G=q?new Uint8Array(F):F,H=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],I=q?new Uint16Array(H):H,K=[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],L=q?new Uint8Array(K):K,M=new(q?Uint8Array:Array)(288),N,O;N=0;for(O=M.length;N<O;++N)M[N]=143>=N?8:255>=N?9:279>=N?7:8;var y=t(M),P=new(q?Uint8Array:Array)(30),Q,R;Q=0;for(R=P.length;Q<R;++Q)P[Q]=5;var z=t(P);function x(b,e){for(var a=b.f,c=b.c,d=b.input,f=b.d,g=d.length,h;c<e;){if(f>=g)throw Error("input buffer is broken");a|=d[f++]<<c;c+=8}h=a&(1<<e)-1;b.f=a>>>e;b.c=c-e;b.d=f;return h}function S(b,e){for(var a=b.f,c=b.c,d=b.input,f=b.d,g=d.length,h=e[0],k=e[1],m,r;c<k&&!(f>=g);)a|=d[f++]<<c,c+=8;m=h[a&(1<<k)-1];r=m>>>16;b.f=a>>r;b.c=c-r;b.d=f;return m&65535}function A(b){function e(a,b,c){var e,d=this.p,f,g;for(g=0;g<a;)switch(e=S(this,b),e){case 16:for(f=3+x(this,2);f--;)c[g++]=d;break;case 17:for(f=3+x(this,3);f--;)c[g++]=0;d=0;break;case 18:for(f=11+x(this,7);f--;)c[g++]=0;d=0;break;default:d=c[g++]=e}this.p=d;return c}var a=x(b,5)+257,c=x(b,5)+1,d=x(b,4)+4,f=new(q?Uint8Array:Array)(C.length),g,h,k,m;for(m=0;m<d;++m)f[C[m]]=x(b,3);if(!q){m=d;for(d=f.length;m<d;++m)f[C[m]]=0}g=t(f);h=new(q?Uint8Array:Array)(a);k=new(q?Uint8Array:Array)(c);b.p=0;b.j(t(e.call(b,a,g,h)),t(e.call(b,c,g,k)))}u.prototype.j=function(b,e){var a=this.b,c=this.a;this.n=b;for(var d=a.length-258,f,g,h,k;256!==(f=S(this,b));)if(256>f)c>=d&&(this.a=c,a=this.e(),c=this.a),a[c++]=f;else{g=f-257;k=E[g];0<G[g]&&(k+=x(this,G[g]));f=S(this,e);h=I[f];0<L[f]&&(h+=x(this,L[f]));c>=d&&(this.a=c,a=this.e(),c=this.a);for(;k--;)a[c]=a[c++-h]}for(;8<=this.c;)this.c-=8,this.d--;this.a=c};u.prototype.t=function(b,e){var a=this.b,c=this.a;this.n=b;for(var d=a.length,f,g,h,k;256!==(f=S(this,b));)if(256>f)c>=d&&(a=this.e(),d=a.length),a[c++]=f;else{g=f-257;k=E[g];0<G[g]&&(k+=x(this,G[g]));f=S(this,e);h=I[f];0<L[f]&&(h+=x(this,L[f]));c+k>d&&(a=this.e(),d=a.length);for(;k--;)a[c]=a[c++-h]}for(;8<=this.c;)this.c-=8,this.d--;this.a=c};u.prototype.e=function(){var b=new(q?Uint8Array:Array)(this.a-32768),e=this.a-32768,a,c,d=this.b;if(q)b.set(d.subarray(32768,b.length));else{a=0;for(c=b.length;a<c;++a)b[a]=d[a+32768]}this.g.push(b);this.k+=b.length;if(q)d.set(d.subarray(e,e+32768));else for(a=0;32768>a;++a)d[a]=d[e+a];this.a=32768;return d};u.prototype.v=function(b){var e,a=this.input.length/this.d+1|0,c,d,f,g=this.input,h=this.b;b&&("number"===typeof b.o&&(a=b.o),"number"===typeof b.r&&(a+=b.r));2>a?(c=(g.length-this.d)/this.n[2],f=258*(c/2)|0,d=f<h.length?h.length+f:h.length<<1):d=h.length*a;q?(e=new Uint8Array(d),e.set(h)):e=h;return this.b=e};u.prototype.m=function(){var b=0,e=this.b,a=this.g,c,d=new(q?Uint8Array:Array)(this.k+(this.a-32768)),f,g,h,k;if(0===a.length)return q?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);f=0;for(g=a.length;f<g;++f){c=a[f];h=0;for(k=c.length;h<k;++h)d[b++]=c[h]}f=32768;for(g=this.a;f<g;++f)d[b++]=e[f];this.g=[];return this.buffer=d};u.prototype.s=function(){var b,e=this.a;q?this.q?(b=new Uint8Array(e),b.set(this.b.subarray(0,e))):b=this.b.subarray(0,e):(this.b.length>e&&(this.b.length=e),b=this.b);return this.buffer=b};p("Zlib.RawInflate",u);p("Zlib.RawInflate.prototype.decompress",u.prototype.u);var T={ADAPTIVE:v,BLOCK:w},U,V,W,X;if(Object.keys)U=Object.keys(T);else for(V in U=[],W=0,T)U[W++]=V;W=0;for(X=U.length;W<X;++W)V=U[W],p("Zlib.RawInflate.BufferType."+V,T[V]);}).call(this);},{}]},{},[7])(7)});;
