cfb-editor/app.7aae236f.js

14 lines
112 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{110:function(e,t,n){},115:function(e,t,n){},27:function(e,t,n){(function(n){var r,i,a,o,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};
/*!
JSZip - 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 pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
*/
!function(n){"object"==s(t)&&void 0!==e&&"undefined"==typeof DO_NOT_EXPORT_JSZIP?e.exports=n():(JSZip=n(),i=[],void 0===(a="function"==typeof(r=n)?r.apply(t,i):r)||(e.exports=a))}(function(){return function e(t,n,r){function i(s,l){if(!n[s]){if(!t[s]){if(!l&&("function"==typeof o&&o))return o(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof o&&o,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e,t){for(var n,i,a,o,s,l,c,h="",d=0;d<e.length;)o=(n=e.charCodeAt(d++))>>2,s=(3&n)<<4|(i=e.charCodeAt(d++))>>4,l=(15&i)<<2|(a=e.charCodeAt(d++))>>6,c=63&a,isNaN(i)?l=c=64:isNaN(a)&&(c=64),h=h+r.charAt(o)+r.charAt(s)+r.charAt(l)+r.charAt(c);return h},n.decode=function(e,t){var n,i,a,o,s,l,c="",h=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");h<e.length;)n=r.indexOf(e.charAt(h++))<<2|(o=r.indexOf(e.charAt(h++)))>>4,i=(15&o)<<4|(s=r.indexOf(e.charAt(h++)))>>2,a=(3&s)<<6|(l=r.indexOf(e.charAt(h++))),c+=String.fromCharCode(n),64!=s&&(c+=String.fromCharCode(i)),64!=l&&(c+=String.fromCharCode(a));return c}},{}],2:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],3:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(void 0===e||!e.length)return 0;var n="string"!==r.getTypeOf(e);void 0===t&&(t=0);var a=0;t^=-1;for(var o=0,s=e.length;o<s;o++)a=n?e[o]:e.charCodeAt(o),t=t>>>8^i[255&(t^a)];return-1^t}},{"./utils":21}],5:[function(e,t,n){"use strict";var r=e("./utils");function i(e){this.data=null,this.length=0,this.index=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=i},{"./utils":21}],6:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.comment=null},{}],7:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":21}],8:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e){return i.deflateRaw(e)},n.uncompress=function(e){return i.inflateRaw(e)}},{pako:24}],9:[function(e,t,n){"use strict";var r=e("./base64");function i(e,t){if(!(this instanceof i))return new i(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=e("./object"),i.prototype.load=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.utils=e("./deprecatedPublicUtils"),i.base64={encode:function(e){return r.encode(e)},decode:function(e){return r.decode(e)}},i.compressions=e("./compressions"),t.exports=i},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,n){"use strict";var r=e("./base64"),i=e("./zipEntries");t.exports=function(e,t){var n,a,o,s;for((t=t||{}).base64&&(e=r.decode(e)),n=(a=new i(e,t)).files,o=0;o<n.length;o++)s=n[o],this.file(s.fileName,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileComment.length?s.fileComment:null,createFolders:t.createFolders});return a.zipComment.length&&(this.comment=a.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(e,t,r){(function(e){"use strict";t.exports=function(t,n){return new e(t,n)},t.exports.test=function(t){return e.isBuffer(t)}}).call(this,void 0!==n?n:void 0)},{}],12:[function(e,t,n){"use strict";var r=e("./uint8ArrayReader");function i(e){this.data=e,this.length=this.data.length,this.index=0}i.prototype=new r,i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=i},{"./uint8ArrayReader":18}],13:[function(e,t,n){"use strict";var r=e("./support"),i=e("./utils"),a=e("./crc32"),o=e("./signature"),s=e("./defaults"),l=e("./base64"),c=e("./compressions"),h=e("./compressedObject"),d=e("./nodeBuffer"),f=e("./utf8"),u=e("./stringWriter"),p=e("./uint8ArrayWriter"),m=function(e){if(e._data instanceof h&&(e._data=e._data.getContent(),e.options.binary=!0,e.options.base64=!1,"uint8array"===i.getTypeOf(e._data))){var t=e._data;e._data=new Uint8Array(t.length),0!==t.length&&e._data.set(t,0)}return e._data},b=function(e){var t=m(e);return"string"===i.getTypeOf(t)?!e.options.binary&&r.nodebuffer?d(t,"utf-8"):e.asBinary():t},g=function(e){var t=m(this);return null===t||void 0===t?"":(this.options.base64&&(t=l.decode(t)),t=e&&this.options.binary?z.utf8decode(t):i.transformTo("string",t),e||this.options.binary||(t=i.transformTo("string",z.utf8encode(t))),t)},_=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this._data=t,this.options=n,this._initialMetadata={dir:n.dir,date:n.date}};_.prototype={asText:function(){return g.call(this,!0)},asBinary:function(){return g.call(this,!1)},asNodeBuffer:function(){var e=b(this);return i.transformTo("nodebuffer",e)},asUint8Array:function(){var e=b(this);return i.transformTo("uint8array",e)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var y=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},w=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},v=function(e,t,n){var r,a=i.getTypeOf(t);if((n=function(e){return!0!==(e=e||{}).base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),(e=w(e,s)).date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e}(n)).createFolders&&(r=E(e))&&x.call(this,r,!0),n.dir||null===t||void 0===t)n.base64=!1,n.binary=!1,t=null;else if("string"===a)n.binary&&!n.base64&&!0!==n.optimizedBinaryString&&(t=i.string2binary(t));else{if(n.base64=!1,n.binary=!0,!(a||t instanceof h))throw new Error("The data of '"+e+"' is in an unsupported format !");"arraybuffer"===a&&(t=i.transformTo("uint8array",t))}var o=new _(e,t,n);return this.files[e]=o,o},E=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},x=function(e,t){return"/"!=e.slice(-1)&&(e+="/"),t=void 0!==t&&t,this.files[e]||v.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},k=function(e,t){var n,r=new h;return e._data instanceof h?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,0===r.uncompressedSize||e.dir?(t=c.STORE,r.compressedContent="",r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n)))):((n=b(e))&&0!==n.length&&!e.dir||(t=c.STORE,n=""),r.uncompressedSize=n.length,r.crc32=a(n),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n))),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r},C=function(e,t,n,r){n.compressedContent;var s,l,c,h,d=i.transformTo("string",f.utf8encode(t.name)),u=t.comment||"",p=i.transformTo("string",f.utf8encode(u)),m=d.length!==t.name.length,b=p.length!==u.length,g=t.options,_="",w="",v="";c=t._initialMetadata.dir!==t.dir?t.dir:g.dir,s=(h=t._initialMetadata.date!==t.date?t.date:g.date).getHours(),s<<=6,s|=h.getMinutes(),s<<=5,s|=h.getSeconds()/2,l=h.getFullYear()-1980,l<<=4,l|=h.getMonth()+1,l<<=5,l|=h.getDate(),m&&(w=y(1,1)+y(a(d),4)+d,_+="up"+y(w.length,2)+w),b&&(v=y(1,1)+y(this.crc32(p),4)+p,_+="uc"+y(v.length,2)+v);var E="";return E+="\n\0",E+=m||b?"\0\b":"\0\0",E+=n.compressionMethod,E+=y(s,2),E+=y(l,2),E+=y(n.crc32,4),E+=y(n.compressedSize,4),E+=y(n.uncompressedSize,4),E+=y(d.length,2),E+=y(_.length,2),{fileRecord:o.LOCAL_FILE_HEADER+E+d+_,dirRecord:o.CENTRAL_FILE_HEADER+"\0"+E+y(p.length,2)+"\0\0\0\0"+(!0===c?"\0\0\0":"\0\0\0\0")+y(r,4)+d+_+p,compressedObject:n}},z={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,a=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=new _(r.name,r._data,w(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&a.push(i));return a},file:function(e,t,n){if(1===arguments.length){if(i.isRegExp(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,v.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=x.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){e=w(e||{},{base64:!0,compression:"STORE",type:"base64",comment:null}),i.checkSupport(e.type);var t,n,r=[],a=0,s=0,h=i.transformTo("string",this.utf8encode(e.comment||this.comment||""));for(var d in this.files)if(this.files.hasOwnProperty(d)){var f=this.files[d],m=f.options.compression||e.compression.toUpperCase(),b=c[m];if(!b)throw new Error(m+" is not a valid compression method !");var g=k.call(this,f,b),_=C.call(this,d,f,g,a);a+=_.fileRecord.length+g.compressedSize,s+=_.dirRecord.length,r.push(_)}var v;v=o.CENTRAL_DIRECTORY_END+"\0\0\0\0"+y(r.length,2)+y(r.length,2)+y(s,4)+y(a,4)+y(h.length,2)+h;var E=e.type.toLowerCase();for(t="uint8array"===E||"arraybuffer"===E||"blob"===E||"nodebuffer"===E?new p(a+s+v.length):new u(a+s+v.length),n=0;n<r.length;n++)t.append(r[n].fileRecord),t.append(r[n].compressedObject.compressedContent);for(n=0;n<r.length;n++)t.append(r[n].dirRecord);t.append(v);var x=t.finalize();switch(e.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(e.type.toLowerCase(),x);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",x));case"base64":return e.base64?l.encode(x):x;default:return x}},crc32:function(e,t){return a(e,t)},utf8encode:function(e){return i.transformTo("string",f.utf8encode(e))},utf8decode:function(e){return f.utf8decode(e)}};t.exports=z},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],15:[function(e,t,n){"use strict";var r=e("./dataReader"),i=e("./utils");function a(e,t){this.data=e,t||(this.data=i.string2binary(this.data)),this.length=this.data.length,this.index=0}a.prototype=new r,a.prototype.byteAt=function(e){return this.data.charCodeAt(e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=a},{"./dataReader":5,"./utils":21}],16:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){this.data=[]};i.prototype={append:function(e){e=r.transformTo("string",e),this.data.push(e)},finalize:function(){return this.data.join("")}},t.exports=i},{"./utils":21}],17:[function(e,t,r){(function(e){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==e,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var t=new ArrayBuffer(0);try{r.blob=0===new Blob([t],{type:"application/zip"}).size}catch(e){try{var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);n.append(t),r.blob=0===n.getBlob("application/zip").size}catch(e){r.blob=!1}}}}).call(this,void 0!==n?n:void 0)},{}],18:[function(e,t,n){"use strict";var r=e("./dataReader");function i(e){e&&(this.data=e,this.length=this.data.length,this.index=0)}i.prototype=new r,i.prototype.byteAt=function(e){return this.data[e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a;return-1},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=i},{"./dataReader":5}],19:[function(e,t,n){"use strict";var r=e("./utils"),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=i},{"./utils":21}],20:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),a=e("./nodeBuffer"),o=new Array(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1;var l=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t},c=function(e){var t,n,i,a,s=e.length,l=new Array(2*s);for(n=0,t=0;t<s;)if((i=e[t++])<128)l[n++]=i;else if((a=o[i])>4)l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&t<s;)i=i<<6|63&e[t++],a--;a>1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)};n.utf8encode=function(e){return i.nodebuffer?a(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=0,a=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],n=0,a=(e=r.transformTo(i.uint8array?"uint8array":"array",e)).length;n<a;){var o=l(e,Math.min(n+65536,a));i.uint8array?t.push(c(e.subarray(n,o))):t.push(c(e.slice(n,o))),n=o}return t.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(e,t,n){"use strict";var r=e("./support"),i=e("./compressions"),a=e("./nodeBuffer");function o(e){return e}function s(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function l(e){var t=65536,r=[],i=e.length,o=n.getTypeOf(e),s=0,l=!0;try{switch(o){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,a(0))}}catch(e){l=!1}if(!l){for(var c="",h=0;h<e.length;h++)c+=String.fromCharCode(e[h]);return c}for(;s<i&&t>1;)try{"array"===o||"nodebuffer"===o?r.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+t,i)))),s+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function c(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.string2binary=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(255&e.charCodeAt(n));return t},n.arrayBuffer2Blob=function(e){n.checkSupport("blob");try{return new Blob([e],{type:"application/zip"})}catch(n){try{var t=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);return t.append(e),t.getBlob("application/zip")}catch(e){throw new Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=l;var h={};h.string={string:o,array:function(e){return s(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return s(e,new Uint8Array(e.length))},nodebuffer:function(e){return s(e,a(e.length))}},h.array={string:l,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a(e)}},h.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a(new Uint8Array(e))}},h.uint8array={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return a(e)}},h.nodebuffer={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:o},n.transformTo=function(e,t){if(t||(t=""),!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return h[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.test(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this browser")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.findCompression=function(e){for(var t in i)if(i.hasOwnProperty(t)&&i[t].magic===e)return i[t];return null},n.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(e,t,n){"use strict";var r=e("./stringReader"),i=e("./nodeBufferReader"),a=e("./uint8ArrayReader"),o=e("./utils"),s=e("./signature"),l=e("./zipEntry"),c=e("./support"),h=e("./object");function d(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}d.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")},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),this.zipComment=h.utf8decode(this.zipComment)},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={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readString(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===s.CENTRAL_FILE_HEADER;)(e=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(-1===e)throw new Error("Corrupted zip : can't find end of central directory");if(this.reader.setIndex(e),this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,-1===(e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(e),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(e){var t=o.getTypeOf(e);"string"!==t||c.uint8array?this.reader="nodebuffer"===t?new i(e):new a(o.transformTo("uint8array",e)):this.reader=new r(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=d},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(e,t,n){"use strict";var r=e("./stringReader"),i=e("./utils"),a=e("./compressedObject"),o=e("./object");function s(e,t){this.options=e,this.loadOptions=t}s.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(e,t,n){return function(){var r=e.index;e.setIndex(t);var i=e.readData(n);return e.setIndex(r),i}},prepareContent:function(e,t,n,r,a){return function(){var e=i.transformTo(r.uncompressInputType,this.getCompressedContent()),t=r.uncompress(e);if(t.length!==a)throw new Error("Bug : uncompressed data size mismatch");return t}},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readString(this.fileNameLength),e.skip(n),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(null===(t=i.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new a,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(e,e.index,this.compressedSize,t),this.decompressed.getContent=this.prepareContent(e,e.index,this.compressedSize,t,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=i.transformTo("string",this.decompressed.getContent()),o.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(e){if(this.versionMadeBy=e.readString(2),this.versionNeeded=e.readInt(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4),this.fileNameLength=e.readInt(2),this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=e.readString(this.fileNameLength),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readString(this.fileCommentLength),this.dir=!!(16&this.externalFileAttributes)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=new r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index;for(this.extraFields=this.extraFields||{};e.index<i+this.extraFieldsLength;)t=e.readInt(2),n=e.readInt(2),r=e.readString(n),this.extraFields[t]={id:t,length:n,value:r}},handleUTF8:function(){if(this.useUTF8())this.fileName=o.utf8decode(this.fileName),this.fileComment=o.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();null!==e&&(this.fileName=e);var t=this.findExtraFieldUnicodeComment();null!==t&&(this.fileComment=t)}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=new r(e.value);return 1!==t.readInt(1)?null:o.crc32(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new r(e.value);return 1!==t.readInt(1)?null:o.crc32(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readString(e.length-5))}return null}},t.exports=s},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,t,n){"use strict";var r=e("./zlib/deflate.js"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=function(e){this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.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,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(o[n]);t.header&&r.deflateSetHeader(this.strm,t.header)};function c(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}l.prototype.push=function(e,t){var n,o,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,s.input="string"==typeof e?a.string2buf(e):e,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,o))&&0!==n)return this.onEnd(n),this.ended=!0,!1;(0===s.avail_out||0===s.avail_in&&4===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,0===n)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=l,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";var r=e("./zlib/inflate.js"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),h=function(e){this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.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,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)};function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}h.prototype.push=function(e,t){var n,s,l,c,h,d=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,d.input="string"==typeof e?a.binstring2buf(e):e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(f),d.next_out=0,d.avail_out=f),(n=r.inflate(d,o.Z_NO_FLUSH))!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0===d.avail_out||n===o.Z_STREAM_END||0===d.avail_in&&s===o.Z_FINISH)&&("string"===this.options.to?(l=a.utf8border(d.output,d.next_out),c=d.next_out-l,h=a.buf2string(d.output,l),d.next_out=c,d.avail_out=f-c,c&&i.arraySet(d.output,d.output,l,c,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))}while(d.avail_in>0&&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)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==(void 0===n?"undefined":s(n)))throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],28:[function(e,t,n){"use strict";var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){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(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=0,a=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,c=new Array(2*s);for(r=0,n=0;n<s;)if((i=e[n++])<128)c[r++]=i;else if((a=o[i])>4)c[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n<s;)i=i<<6|63&e[n++],a--;a>1?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)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}},{}],30:[function(e,t,n){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}},{}],31:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],32:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./trees"),a=e("./adler32"),o=e("./crc32"),s=e("./messages"),l=0,c=1,h=3,d=4,f=5,u=0,p=1,m=-2,b=-3,g=-5,_=-1,y=1,w=2,v=3,E=4,x=0,k=2,C=8,z=9,S=15,B=8,F=286,A=30,I=19,O=2*F+1,T=15,N=3,R=258,D=R+N+1,j=32,L=42,P=69,U=73,Z=91,M=103,W=113,H=666,V=1,Y=2,X=3,K=4,J=3;function q(e,t){return e.msg=s[t],t}function G(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function $(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function ee(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,$(e.strm)}function te(e,t){e.pending_buf[e.pending++]=t}function ne(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function re(e,t,n,i){var s=e.avail_in;return s>i&&(s=i),0===s?0:(e.avail_in-=s,r.arraySet(t,e.input,e.next_in,s,n),1===e.state.wrap?e.adler=a(e.adler,t,s,n):2===e.state.wrap&&(e.adler=o(e.adler,t,s,n)),e.next_in+=s,e.total_in+=s,s)}function ie(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-D?e.strstart-(e.w_size-D):0,c=e.window,h=e.w_mask,d=e.prev,f=e.strstart+R,u=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===u&&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]&&a<f);if(r=R-(f-a),a=f-R,r>o){if(e.match_start=t,o=r,r>=s)break;u=c[a+o-1],p=c[a+o]}}}while((t=d[t&h])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function ae(e){var t,n,i,a,o,s=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-D)){r.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,t=n=e.hash_size;do{i=e.head[--t],e.head[t]=i>=s?i-s:0}while(--n);t=n=s;do{i=e.prev[--t],e.prev[t]=i>=s?i-s:0}while(--n);a+=s}if(0===e.strm.avail_in)break;if(n=re(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=N)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+N-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<N)););}while(e.lookahead<D&&0!==e.strm.avail_in)}function oe(e,t){for(var n,r;;){if(e.lookahead<D){if(ae(e),e.lookahead<D&&t===l)return V;if(0===e.lookahead)break}if(n=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-D&&(e.match_length=ie(e,n)),e.match_length>=N)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-N),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=N){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=e.strstart<N-1?e.strstart:N-1,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}function se(e,t){for(var n,r,a;;){if(e.lookahead<D){if(ae(e),e.lookahead<D&&t===l)return V;if(0===e.lookahead)break}if(n=0,e.lookahead>=N&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=N-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-D&&(e.match_length=ie(e,n),e.match_length<=5&&(e.strategy===y||e.match_length===N&&e.strstart-e.match_start>4096)&&(e.match_length=N-1)),e.prev_length>=N&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-N,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-N),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+N-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=N-1,e.strstart++,r&&(ee(e,!1),0===e.strm.avail_out))return V}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&ee(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return V}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<N-1?e.strstart:N-1,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}var le,ce=function(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i};function he(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=k,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?L:W,e.adler=2===t.wrap?0:1,t.last_flush=l,i._tr_init(t),u):q(e,m)}function de(e){var t=he(e);return t===u&&function(e){e.window_size=2*e.w_size,Q(e.head),e.max_lazy_match=le[e.level].max_lazy,e.good_match=le[e.level].good_length,e.nice_match=le[e.level].nice_length,e.max_chain_length=le[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=N-1,e.match_available=0,e.ins_h=0}(e.state),t}function fe(e,t,n,i,a,o){if(!e)return m;var s=1;if(t===_&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>z||n!==C||i<8||i>15||t<0||t>9||o<0||o>E)return q(e,m);8===i&&(i=9);var l=new function(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*O),this.dyn_dtree=new r.Buf16(2*(2*A+1)),this.bl_tree=new r.Buf16(2*(2*I+1)),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(T+1),this.heap=new r.Buf16(2*F+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*F+1),Q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0};return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+N-1)/N),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=l.lit_bufsize>>1,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,de(e)}le=[new ce(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ae(e),0===e.lookahead&&t===l)return V;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ee(e,!1),0===e.strm.avail_out))return V;if(e.strstart-e.block_start>=e.w_size-D&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):(e.strstart>e.block_start&&(ee(e,!1),e.strm.avail_out),V)}),new ce(4,4,8,4,oe),new ce(4,5,16,8,oe),new ce(4,6,32,32,oe),new ce(4,4,16,16,se),new ce(8,16,32,32,se),new ce(8,16,128,128,se),new ce(8,32,128,256,se),new ce(32,128,258,1024,se),new ce(32,258,258,4096,se)],n.deflateInit=function(e,t){return fe(e,t,C,S,B,x)},n.deflateInit2=fe,n.deflateReset=de,n.deflateResetKeep=he,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?m:(e.state.gzhead=t,u):m},n.deflate=function(e,t){var n,r,a,s;if(!e||!e.state||t>f||t<0)return e?q(e,m):m;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===H&&t!==d)return q(e,0===e.avail_out?g:m);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===L)if(2===r.wrap)e.adler=0,te(r,31),te(r,139),te(r,8),r.gzhead?(te(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),te(r,255&r.gzhead.time),te(r,r.gzhead.time>>8&255),te(r,r.gzhead.time>>16&255),te(r,r.gzhead.time>>24&255),te(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),te(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(te(r,255&r.gzhead.extra.length),te(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=o(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=P):(te(r,0),te(r,0),te(r,0),te(r,0),te(r,0),te(r,9===r.level?2:r.strategy>=w||r.level<2?4:0),te(r,J),r.status=W);else{var b=C+(r.w_bits-8<<4)<<8;b|=(r.strategy>=w||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(b|=j),b+=31-b%31,r.status=W,ne(r,b),0!==r.strstart&&(ne(r,e.adler>>>16),ne(r,65535&e.adler)),e.adler=1}if(r.status===P)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),$(e),a=r.pending,r.pending!==r.pending_buf_size));)te(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=U)}else r.status=U;if(r.status===U)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),$(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,te(r,s)}while(0!==s);r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),0===s&&(r.gzindex=0,r.status=Z)}else r.status=Z;if(r.status===Z)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),$(e),a=r.pending,r.pending===r.pending_buf_size)){s=1;break}s=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,te(r,s)}while(0!==s);r.gzhead.hcrc&&r.pending>a&&(e.adler=o(e.adler,r.pending_buf,r.pending-a,a)),0===s&&(r.status=M)}else r.status=M;if(r.status===M&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&$(e),r.pending+2<=r.pending_buf_size&&(te(r,255&e.adler),te(r,e.adler>>8&255),e.adler=0,r.status=W)):r.status=W),0!==r.pending){if($(e),0===e.avail_out)return r.last_flush=-1,u}else if(0===e.avail_in&&G(t)<=G(n)&&t!==d)return q(e,g);if(r.status===H&&0!==e.avail_in)return q(e,g);if(0!==e.avail_in||0!==r.lookahead||t!==l&&r.status!==H){var _=r.strategy===w?function(e,t){for(var n;;){if(0===e.lookahead&&(ae(e),0===e.lookahead)){if(t===l)return V;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}(r,t):r.strategy===v?function(e,t){for(var n,r,a,o,s=e.window;;){if(e.lookahead<=R){if(ae(e),e.lookahead<=R&&t===l)return V;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=N&&e.strstart>0&&(r=s[a=e.strstart-1])===s[++a]&&r===s[++a]&&r===s[++a]){o=e.strstart+R;do{}while(r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&a<o);e.match_length=R-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=N?(n=i._tr_tally(e,1,e.match_length-N),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ee(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===d?(ee(e,!0),0===e.strm.avail_out?X:K):e.last_lit&&(ee(e,!1),0===e.strm.avail_out)?V:Y}(r,t):le[r.level].func(r,t);if(_!==X&&_!==K||(r.status=H),_===V||_===X)return 0===e.avail_out&&(r.last_flush=-1),u;if(_===Y&&(t===c?i._tr_align(r):t!==f&&(i._tr_stored_block(r,0,0,!1),t===h&&(Q(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),$(e),0===e.avail_out))return r.last_flush=-1,u}return t!==d?u:r.wrap<=0?p:(2===r.wrap?(te(r,255&e.adler),te(r,e.adler>>8&255),te(r,e.adler>>16&255),te(r,e.adler>>24&255),te(r,255&e.total_in),te(r,e.total_in>>8&255),te(r,e.total_in>>16&255),te(r,e.total_in>>24&255)):(ne(r,e.adler>>>16),ne(r,65535&e.adler)),$(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?u:p)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==L&&t!==P&&t!==U&&t!==Z&&t!==M&&t!==W&&t!==H?q(e,m):(e.state=null,t===W?q(e,b):u):m},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(e,t,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}},{}],34:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,l,c,h,d,f,u,p,m,b,g,_,y,w,v,E,x,k,C,z;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),a=e.next_out,z=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,h=n.whave,d=n.wnext,f=n.window,u=n.hold,p=n.bits,m=n.lencode,b=n.distcode,g=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;e:do{p<15&&(u+=C[r++]<<p,p+=8,u+=C[r++]<<p,p+=8),y=m[u&g];t:for(;;){if(u>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))z[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(u&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=65535&y,(w&=15)&&(p<w&&(u+=C[r++]<<p,p+=8),v+=u&(1<<w)-1,u>>>=w,p-=w),p<15&&(u+=C[r++]<<p,p+=8,u+=C[r++]<<p,p+=8),y=b[u&_];n:for(;;){if(u>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(u&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(E=65535&y,p<(w&=15)&&(u+=C[r++]<<p,(p+=8)<w&&(u+=C[r++]<<p,p+=8)),(E+=u&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(u>>>=w,p-=w,E>(w=a-o)){if((w=E-w)>h&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,k=f,0===d){if(x+=c-w,w<v){v-=w;do{z[a++]=f[x++]}while(--w);x=a-E,k=z}}else if(d<w){if(x+=c+d-w,(w-=d)<v){v-=w;do{z[a++]=f[x++]}while(--w);if(x=0,d<v){v-=w=d;do{z[a++]=f[x++]}while(--w);x=a-E,k=z}}}else if(x+=d-w,w<v){v-=w;do{z[a++]=f[x++]}while(--w);x=a-E,k=z}for(;v>2;)z[a++]=k[x++],z[a++]=k[x++],z[a++]=k[x++],v-=3;v&&(z[a++]=k[x++],v>1&&(z[a++]=k[x++]))}else{x=a-E;do{z[a++]=z[x++],z[a++]=z[x++],z[a++]=z[x++],v-=3}while(v>2);v&&(z[a++]=z[x++],v>1&&(z[a++]=z[x++]))}break}}break}}while(r<i&&a<s);r-=v=p>>3,u&=(1<<(p-=v<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=u,n.bits=p}},{}],35:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=0,c=1,h=2,d=4,f=5,u=6,p=0,m=1,b=2,g=-2,_=-3,y=-4,w=-5,v=8,E=1,x=2,k=3,C=4,z=5,S=6,B=7,F=8,A=9,I=10,O=11,T=12,N=13,R=14,D=15,j=16,L=17,P=18,U=19,Z=20,M=21,W=22,H=23,V=24,Y=25,X=26,K=27,J=28,q=29,G=30,Q=31,$=32,ee=852,te=592,ne=15;function re(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=E,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,p):g}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,ie(e)):g}function oe(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?g:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ae(e))):g}function se(e,t){var n,i;return e?(i=new function(){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},e.state=i,i.window=null,(n=oe(e,t))!==p&&(e.state=null),n):g}var le,ce,he=!0;function de(e){if(he){var t;for(le=new r.Buf32(512),ce=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,le,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(h,e.lens,0,32,ce,0,e.work,{bits:5}),he=!1}e.lencode=le,e.lenbits=9,e.distcode=ce,e.distbits=5}n.inflateReset=ae,n.inflateReset2=oe,n.inflateResetKeep=ie,n.inflateInit=function(e){return se(e,ne)},n.inflateInit2=se,n.inflate=function(e,t){var n,ee,te,ne,ie,ae,oe,se,le,ce,he,fe,ue,pe,me,be,ge,_e,ye,we,ve,Ee,xe,ke,Ce=0,ze=new r.Buf8(4),Se=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return g;(n=e.state).mode===T&&(n.mode=N),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,ce=ae,he=oe,Ee=p;e:for(;;)switch(n.mode){case E:if(0===n.wrap){n.mode=N;break}for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(2&n.wrap&&35615===se){n.check=0,ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0),se=0,le=0,n.mode=x;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=G;break}if((15&se)!==v){e.msg="unknown compression method",n.mode=G;break}if(le-=4,ve=8+(15&(se>>>=4)),0===n.wbits)n.wbits=ve;else if(ve>n.wbits){e.msg="invalid window size",n.mode=G;break}n.dmax=1<<ve,e.adler=n.check=1,n.mode=512&se?I:T,se=0,le=0;break;case x:for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(n.flags=se,(255&n.flags)!==v){e.msg="unknown compression method",n.mode=G;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=G;break}n.head&&(n.head.text=se>>8&1),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0,n.mode=k;case k:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.head&&(n.head.time=se),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,ze[2]=se>>>16&255,ze[3]=se>>>24&255,n.check=a(n.check,ze,4,0)),se=0,le=0,n.mode=C;case C:for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.head&&(n.head.xflags=255&se,n.head.os=se>>8),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0,n.mode=z;case z:if(1024&n.flags){for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.length=se,n.head&&(n.head.extra_len=se),512&n.flags&&(ze[0]=255&se,ze[1]=se>>>8&255,n.check=a(n.check,ze,2,0)),se=0,le=0}else n.head&&(n.head.extra=null);n.mode=S;case S:if(1024&n.flags&&((fe=n.length)>ae&&(fe=ae),fe&&(n.head&&(ve=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,ve)),512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=B;case B:if(2048&n.flags){if(0===ae)break e;fe=0;do{ve=ee[ne+fe++],n.head&&ve&&n.length<65536&&(n.head.name+=String.fromCharCode(ve))}while(ve&&fe<ae);if(512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,ve)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=F;case F:if(4096&n.flags){if(0===ae)break e;fe=0;do{ve=ee[ne+fe++],n.head&&ve&&n.length<65536&&(n.head.comment+=String.fromCharCode(ve))}while(ve&&fe<ae);if(512&n.flags&&(n.check=a(n.check,ee,fe,ne)),ae-=fe,ne+=fe,ve)break e}else n.head&&(n.head.comment=null);n.mode=A;case A:if(512&n.flags){for(;le<16;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(se!==(65535&n.check)){e.msg="header crc mismatch",n.mode=G;break}se=0,le=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=T;break;case I:for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}e.adler=n.check=re(se),se=0,le=0,n.mode=O;case O:if(0===n.havedict)return e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,b;e.adler=n.check=1,n.mode=T;case T:if(t===f||t===u)break e;case N:if(n.last){se>>>=7&le,le-=7&le,n.mode=K;break}for(;le<3;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}switch(n.last=1&se,le-=1,3&(se>>>=1)){case 0:n.mode=R;break;case 1:if(de(n),n.mode=Z,t===u){se>>>=2,le-=2;break e}break;case 2:n.mode=L;break;case 3:e.msg="invalid block type",n.mode=G}se>>>=2,le-=2;break;case R:for(se>>>=7&le,le-=7&le;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if((65535&se)!=(se>>>16^65535)){e.msg="invalid stored block lengths",n.mode=G;break}if(n.length=65535&se,se=0,le=0,n.mode=D,t===u)break e;case D:n.mode=j;case j:if(fe=n.length){if(fe>ae&&(fe=ae),fe>oe&&(fe=oe),0===fe)break e;r.arraySet(te,ee,ne,fe,ie),ae-=fe,ne+=fe,oe-=fe,ie+=fe,n.length-=fe;break}n.mode=T;break;case L:for(;le<14;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(n.nlen=257+(31&se),se>>>=5,le-=5,n.ndist=1+(31&se),se>>>=5,le-=5,n.ncode=4+(15&se),se>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=G;break}n.have=0,n.mode=P;case P:for(;n.have<n.ncode;){for(;le<3;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.lens[Se[n.have++]]=7&se,se>>>=3,le-=3}for(;n.have<19;)n.lens[Se[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,xe={bits:n.lenbits},Ee=s(l,n.lens,0,19,n.lencode,0,n.work,xe),n.lenbits=xe.bits,Ee){e.msg="invalid code lengths set",n.mode=G;break}n.have=0,n.mode=U;case U:for(;n.have<n.nlen+n.ndist;){for(;be=(Ce=n.lencode[se&(1<<n.lenbits)-1])>>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(ge<16)se>>>=me,le-=me,n.lens[n.have++]=ge;else{if(16===ge){for(ke=me+2;le<ke;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(se>>>=me,le-=me,0===n.have){e.msg="invalid bit length repeat",n.mode=G;break}ve=n.lens[n.have-1],fe=3+(3&se),se>>>=2,le-=2}else if(17===ge){for(ke=me+3;le<ke;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}le-=me,ve=0,fe=3+(7&(se>>>=me)),se>>>=3,le-=3}else{for(ke=me+7;le<ke;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}le-=me,ve=0,fe=11+(127&(se>>>=me)),se>>>=7,le-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=G;break}for(;fe--;)n.lens[n.have++]=ve}}if(n.mode===G)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=G;break}if(n.lenbits=9,xe={bits:n.lenbits},Ee=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,xe),n.lenbits=xe.bits,Ee){e.msg="invalid literal/lengths set",n.mode=G;break}if(n.distbits=6,n.distcode=n.distdyn,xe={bits:n.distbits},Ee=s(h,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,xe),n.distbits=xe.bits,Ee){e.msg="invalid distances set",n.mode=G;break}if(n.mode=Z,t===u)break e;case Z:n.mode=M;case M:if(ae>=6&&oe>=258){e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,o(e,he),ie=e.next_out,te=e.output,oe=e.avail_out,ne=e.next_in,ee=e.input,ae=e.avail_in,se=n.hold,le=n.bits,n.mode===T&&(n.back=-1);break}for(n.back=0;be=(Ce=n.lencode[se&(1<<n.lenbits)-1])>>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(be&&0==(240&be)){for(_e=me,ye=be,we=ge;be=(Ce=n.lencode[we+((se&(1<<_e+ye)-1)>>_e)])>>>16&255,ge=65535&Ce,!(_e+(me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}se>>>=_e,le-=_e,n.back+=_e}if(se>>>=me,le-=me,n.back+=me,n.length=ge,0===be){n.mode=X;break}if(32&be){n.back=-1,n.mode=T;break}if(64&be){e.msg="invalid literal/length code",n.mode=G;break}n.extra=15&be,n.mode=W;case W:if(n.extra){for(ke=n.extra;le<ke;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.length+=se&(1<<n.extra)-1,se>>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=H;case H:for(;be=(Ce=n.distcode[se&(1<<n.distbits)-1])>>>16&255,ge=65535&Ce,!((me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(0==(240&be)){for(_e=me,ye=be,we=ge;be=(Ce=n.distcode[we+((se&(1<<_e+ye)-1)>>_e)])>>>16&255,ge=65535&Ce,!(_e+(me=Ce>>>24)<=le);){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}se>>>=_e,le-=_e,n.back+=_e}if(se>>>=me,le-=me,n.back+=me,64&be){e.msg="invalid distance code",n.mode=G;break}n.offset=ge,n.extra=15&be,n.mode=V;case V:if(n.extra){for(ke=n.extra;le<ke;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}n.offset+=se&(1<<n.extra)-1,se>>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=G;break}n.mode=Y;case Y:if(0===oe)break e;if(fe=he-oe,n.offset>fe){if((fe=n.offset-fe)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=G;break}fe>n.wnext?(fe-=n.wnext,ue=n.wsize-fe):ue=n.wnext-fe,fe>n.length&&(fe=n.length),pe=n.window}else pe=te,ue=ie-n.offset,fe=n.length;fe>oe&&(fe=oe),oe-=fe,n.length-=fe;do{te[ie++]=pe[ue++]}while(--fe);0===n.length&&(n.mode=M);break;case X:if(0===oe)break e;te[ie++]=n.length,oe--,n.mode=M;break;case K:if(n.wrap){for(;le<32;){if(0===ae)break e;ae--,se|=ee[ne++]<<le,le+=8}if(he-=oe,e.total_out+=he,n.total+=he,he&&(e.adler=n.check=n.flags?a(n.check,te,he,ie-he):i(n.check,te,he,ie-he)),he=oe,(n.flags?se:re(se))!==n.check){e.msg="incorrect data check",n.mode=G;break}se=0,le=0}n.mode=J;case J:if(n.wrap&&n.flags){for(;le<32;){if(0===ae)break e;ae--,se+=ee[ne++]<<le,le+=8}if(se!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=G;break}se=0,le=0}n.mode=q;case q:Ee=m;break e;case G:Ee=_;break e;case Q:return y;case $:default:return g}return e.next_out=ie,e.avail_out=oe,e.next_in=ne,e.avail_in=ae,n.hold=se,n.bits=le,(n.wsize||he!==e.avail_out&&n.mode<G&&(n.mode<K||t!==d))&&function(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,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,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}(e,e.output,e.next_out,he-e.avail_out)?(n.mode=Q,y):(ce-=e.avail_in,he-=e.avail_out,e.total_in+=ce,e.total_out+=he,n.total+=he,n.wrap&&he&&(e.adler=n.check=n.flags?a(n.check,te,he,e.next_out-he):i(n.check,te,he,e.next_out-he)),e.data_type=n.bits+(n.last?64:0)+(n.mode===T?128:0)+(n.mode===Z||n.mode===D?256:0),(0===ce&&0===he||t===d)&&Ee===p&&(Ee=w),Ee)},n.inflateEnd=function(e){if(!e||!e.state)return g;var t=e.state;return t.window&&(t.window=null),e.state=null,p},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?g:(n.head=t,t.done=!1,p):g},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(e,t,n){"use strict";var r=e("../utils/common"),i=[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,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[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,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,c,h,d,f){var u,p,m,b,g,_,y,w,v,E=f.bits,x=0,k=0,C=0,z=0,S=0,B=0,F=0,A=0,I=0,O=0,T=null,N=0,R=new r.Buf16(16),D=new r.Buf16(16),j=null,L=0;for(x=0;x<=15;x++)R[x]=0;for(k=0;k<l;k++)R[t[n+k]]++;for(S=E,z=15;z>=1&&0===R[z];z--);if(S>z&&(S=z),0===z)return c[h++]=20971520,c[h++]=20971520,f.bits=1,0;for(C=1;C<z&&0===R[C];C++);for(S<C&&(S=C),A=1,x=1;x<=15;x++)if(A<<=1,(A-=R[x])<0)return-1;if(A>0&&(0===e||1!==z))return-1;for(D[1]=0,x=1;x<15;x++)D[x+1]=D[x]+R[x];for(k=0;k<l;k++)0!==t[n+k]&&(d[D[t[n+k]]++]=k);if(0===e?(T=j=d,_=19):1===e?(T=i,N-=257,j=a,L-=257,_=256):(T=o,j=s,_=-1),O=0,k=0,x=C,g=h,B=S,F=0,m=-1,b=(I=1<<S)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){0,y=x-F,d[k]<_?(w=0,v=d[k]):d[k]>_?(w=j[L+d[k]],v=T[N+d[k]]):(w=96,v=0),u=1<<x-F,C=p=1<<B;do{c[g+(O>>F)+(p-=u)]=y<<24|w<<16|v|0}while(0!==p);for(u=1<<x-1;O&u;)u>>=1;if(0!==u?(O&=u-1,O+=u):O=0,k++,0==--R[x]){if(x===z)break;x=t[n+d[k]]}if(x>S&&(O&b)!==m){for(0===F&&(F=S),g+=C,A=1<<(B=x-F);B+F<z&&!((A-=R[B+F])<=0);)B++,A<<=1;if(I+=1<<B,1===e&&I>852||2===e&&I>592)return 1;c[m=O&b]=S<<24|B<<16|g-h|0}}return 0!==O&&(c[g+O]=x-F<<24|64<<16|0),f.bits=S,0}},{"../utils/common":27}],37:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(e,t,n){"use strict";var r=e("../utils/common"),i=4,a=0,o=1,s=2;function l(e){for(var t=e.length;--t>=0;)e[t]=0}var c=0,h=1,d=2,f=29,u=256,p=u+1+f,m=30,b=19,g=2*p+1,_=15,y=16,w=7,v=256,E=16,x=17,k=18,C=[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],z=[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],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(p+2));l(F);var A=new Array(2*m);l(A);var I=new Array(512);l(I);var O=new Array(256);l(O);var T=new Array(f);l(T);var N=new Array(m);l(N);var R,D,j,L=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},P=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t};function U(e){return e<256?I[e]:I[256+(e>>>7)]}function Z(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,Z(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function W(e,t,n){M(e,n[2*t],n[2*t+1])}function H(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function V(e,t,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<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=H(a[s]++,s))}}function Y(e){var t;for(t=0;t<p;t++)e.dyn_ltree[2*t]=0;for(t=0;t<m;t++)e.dyn_dtree[2*t]=0;for(t=0;t<b;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function X(e){e.bi_valid>8?Z(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function K(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function J(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&K(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!K(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function q(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?W(e,i,t):(W(e,(a=O[i])+u+1,t),0!==(o=C[a])&&M(e,i-=T[a],o),W(e,a=U(--r),n),0!==(o=z[a])&&M(e,r-=N[a],o))}while(s<e.last_lit);W(e,v,t)}function G(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=g,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)J(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],J(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,J(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,h=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=_;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<g;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,m++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=u&&(o=f[r-u]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(h[2*r+1]+o)));if(0!==m){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),V(a,c,e.bl_count)}function Q(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*E]++):s<=10?e.bl_tree[2*x]++:e.bl_tree[2*k]++,s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4))}function $(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<c)do{W(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(W(e,i,e.bl_tree),s--),W(e,E,e.bl_tree),M(e,s-3,2)):s<=10?(W(e,x,e.bl_tree),M(e,s-3,3)):(W(e,k,e.bl_tree),M(e,s-11,7));s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4)}}var ee=!1;function te(e,t,n,i){M(e,(c<<1)+(i?1:0),3),function(e,t,n,i){X(e),i&&(Z(e,n),Z(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){ee||(function(){var e,t,n,r,i,a=new Array(_+1);for(n=0,r=0;r<f-1;r++)for(T[r]=n,e=0;e<1<<C[r];e++)O[n++]=r;for(O[n-1]=r,i=0,r=0;r<16;r++)for(N[r]=i,e=0;e<1<<z[r];e++)I[i++]=r;for(i>>=7;r<m;r++)for(N[r]=i<<7,e=0;e<1<<z[r]-7;e++)I[256+i++]=r;for(t=0;t<=_;t++)a[t]=0;for(e=0;e<=143;)F[2*e+1]=8,e++,a[8]++;for(;e<=255;)F[2*e+1]=9,e++,a[9]++;for(;e<=279;)F[2*e+1]=7,e++,a[7]++;for(;e<=287;)F[2*e+1]=8,e++,a[8]++;for(V(F,p+1,a),e=0;e<m;e++)A[2*e+1]=5,A[2*e]=H(e,5);R=new L(F,C,u+1,p,_),D=new L(A,z,0,m,_),j=new L(new Array(0),S,0,b,w)}(),ee=!0),e.l_desc=new P(e.dyn_ltree,R),e.d_desc=new P(e.dyn_dtree,D),e.bl_desc=new P(e.bl_tree,j),e.bi_buf=0,e.bi_valid=0,Y(e)},n._tr_stored_block=te,n._tr_flush_block=function(e,t,n,r){var l,c,f=0;e.level>0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return o;return a}(e)),G(e,e.l_desc),G(e,e.d_desc),f=function(e){var t;for(Q(e,e.dyn_ltree,e.l_desc.max_code),Q(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=b-1;t>=3&&0===e.bl_tree[2*B[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),l=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=l&&(l=c)):l=c=n+5,n+4<=l&&-1!==t?te(e,t,n,r):e.strategy===i||c===l?(M(e,(h<<1)+(r?1:0),3),q(e,F,A)):(M(e,(d<<1)+(r?1:0),3),function(e,t,n,r){var i;for(M(e,t-257,5),M(e,n-1,5),M(e,r-4,4),i=0;i<r;i++)M(e,e.bl_tree[2*B[i]+1],3);$(e,e.dyn_ltree,t-1),$(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,f+1),q(e,e.dyn_ltree,e.dyn_dtree)),Y(e),r&&X(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+u+1)]++,e.dyn_dtree[2*U(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){M(e,h<<1,3),W(e,v,F),function(e){16===e.bi_valid?(Z(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":27}],39:[function(e,t,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}},{}]},{},[9])(9)})}).call(this,n(31).Buffer)},39:function(e,t,n){},408:function(e,t,n){},430:function(e,t,n){},432:function(e,t,n){"use strict";n.r(t);n(56);var r=n(0),i=n.n(r),a=n(26),o=n(437),s=n(436),l=n(438),c=n(435),h=n(3),d=n(5),f=n.n(d),u=n(49),p=(n(66),n(7)),m=n(27),b=n(28),g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(b.saveAs)(new Blob([function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(b.saveAs)(new Blob([function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=e[r];return t}(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},y=n(8),w="%02hhx",v=w+w+" ",E=[].concat(Array.from({length:16}).map(function(e,t){return v.repeat(t>>1)+(t%2?w:" ")+" "+" ".repeat(7-(t>>1))+"|"+"%c".repeat(t)+" ".repeat(16-t)+"|\n"}),[v.repeat(8)+"|"+"%c".repeat(16)+"|\n"]),x=function(e){return e.replace(/[\u0000-\u001f]/,function(e){return Object(y.a)("\\u%04X",e.charCodeAt(0))})},k=function(e){for(var t=[],n=new Uint8Array(e),r=0;r<n.length;++r)t[r]=n[r];return t},C=function(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t.push(String.fromCharCode(e[n]));return t.join("")},z=function(e){switch(!0){case e<10:return e+48;case e<36:return e+55;case e<62:return e+61;case 62==e:return 46}return 95},S=function(e){var t=e.charCodeAt(0),n=0,r=[];for(18496==t&&++n;t=e.charCodeAt(n++);)t>=14336&&t<18496&&(t>=18432?t=z(t-18432):(t-=14336,r.push(String.fromCharCode(z(63&t))),t=z(t>>6&63))),r.push(String.fromCharCode(t));return r.join("")},B=Object(h.b)({fname:"",file:null,dirty:!1,loading:!1,isDirty:function(){return this.file&&this.dirty},setLoading:function(e){return this.loading=e},getLoading:function(){return this.loading},isEmpty:function(){return!this.file},isCFB:function(){return this.file&&this.file.FullPaths},isZIP:function(){return this.file&&!this.isCFB()},getType:function(){return this.isCFB()?"CFB":this.isZIP()?"ZIP":"???"},getFileList:function(){var e=this;return this.keys().map(function(t,n){return[t,e.getFileEntryById(n),n]}).filter(function(t){return e.isCFB()?2==t[1].type:!t[1].dir})},getNextName:function(e){return e?this.find("SheetJS"+e)?this.getNextName(e+1):"SheetJS"+e:this.getNextName(1)},getRootName:function(){return this.isCFB()?this.getFileNameById(0):""},getCLSID:function(){return this.isCFB()?this.getFileEntryById(0).clsid:""},setName:function(e){this.fname=e},setBStr:function(e,t){var n=this;this.loading=!0,setTimeout(function(){try{switch(e.slice(0,4)){case"MIME":case"ÐÏà":n.type="CFB",n.file=p.read(e,{type:"binary"});break;case"PK":case"PK":n.type="ZIP",n.file=new m(e,{base64:!1});break;default:throw new Error("Invalid file (magic "+e.slice(0,4).split("").map(function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})+")")}n.loading=!1}catch(e){n.loading=!1,t&&t(e)}},100)},addNewFile:function(e){var t=e||this.getNextName(1);this.isCFB()?p.utils.cfb_add(this.file,t,[55,50,54,50]):this.isZIP()&&this.file.file(t,"7262");var n=this.find(t);return this.dirty=!0,this.isCFB()?this.getFileNameById(this.entries().indexOf(n)):t},getFileNameById:function(e){return this.keys()[e]||""},getFileEntryById:function(e){return this.entries()[e]||null},getFixedName:function(e){return this.isEmpty()?"":x(this.getFileNameById(e))},getFixedPath:function(e){return this.isEmpty()?"":this.isCFB()?x(this.getFileNameById(e)).replace(/^[^/]*/,""):x(this.getFileNameById(e))},getFileTime:function(e){return this.isEmpty()||!this.getFileEntryById(e)?new Date(NaN):this.getFileTimeEntry(e)||this.getFileTimeEntry(0)||new Date(1980,0,1)},setContentAB:function(e,t){var n=k(t),r=this.getFileNameById(e);this.isCFB()?(p.utils.prep_blob(n),p.utils.cfb_add(this.file,r,k(n))):this.isZIP()&&this.file.file(r,n.map(function(e){return String.fromCharCode(e)}).join(""),{binary:"true"}),this.dirty=!0},renFileById:function(e,t){var n=this.getFileNameById(e),r=function(e){return e.replace(/\\u(\d{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})}(t).replace(/^\//,"");this.isCFB()?(p.utils.cfb_mov(this.file,n,this.getFileNameById(0)+r),p.utils.cfb_gc(this.file)):this.isZIP()&&(this.file.file(r,C(this.getContentById(e)),{binary:!0}),this.file.remove(n)),this.dirty=!0},delFileById:function(e){var t=this.getFileNameById(e);this.isCFB()&&p.utils.cfb_del(this.file,t),this.isZIP()&&this.file.remove(t),this.dirty=!0},exportBStrById:function(e){var t=this;this.loading=!0,setTimeout(function(){try{var n=t.getFileEntryById(e);_(t.getContentByEntry(n),n.name),t.loading=!1}catch(e){throw t.loading=!1,e}},100)},exportBStr:function(){var e=this;this.loading=!0,setTimeout(function(){try{e.dirty=!1;var t=void 0;return e.isCFB()&&(t=g(p.write(e.file,{type:"binary"}),e.fname||"SheetJS.cfb")),e.isZIP()&&(t=g(e.file.generate({type:"string",compression:"DEFLATE"}),e.fname||"SheetJS.zip")),e.loading=!1,t}catch(t){throw e.loading=!1,t}},100)},newFile:function(e){if(this.fname=e||"sheetjs.cfb",this.fname.match(/\.zip$/)){var t=new m;t.file("Sh33tJ5","7262"),this.file=t}else this.file=p.utils.cfb_new();this.dirty=!0},reset:function(){this.file=null,this.fname="",this.dirty=!1},getContentById:function(e){return this.getContentByEntry(this.getFileEntryById(e))},getContentByEntry:function(e){return e?e._data?"string"==typeof e._data?function(e){return e.split("").map(function(e){return e.charCodeAt(0)})}(e._data):k(e._data.getContent()):e.content||[]:[]},getContentSliceByEntry:function(e,t,n){return e?e.content?e.content.slice(t,n):this.getContentByEntry(e).slice(t,n):[]},getSizeByEntry:function(e){return(!this.isCFB()||e.content&&e.content.length)&&e&&(e.size||e._data&&e._data.uncompressedSize||e._data.length)||0},getTextByEntry:function(e){return e&&(e._data||e.content)?e._data?"string"==typeof e._data?e._data:C(e._data.getContent()):C(e.content):""},getFileTimeEntry:function(e){var t=this.getFileEntryById(e);return t?t.ct||t.mt||t.date||0!=e&&this.getFileTime(0)||new Date(1980,0,1):new Date(NaN)},find:function(e){return this.isEmpty()?null:this.isCFB()?p.find(this.file,e):this.file.filter(function(t,n){return e==t||e==n.name})[0]},keys:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FullPaths:Object.keys(this.file.files).filter(function(t){return!e.file.files[t].dir})},entries:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FileIndex:this.keys().map(function(t){return e.file.files[t]})},getIdByName:function(e){var t=this;return this.isEmpty()?-1:this.isZIP()?Object.keys(this.file.files).filter(function(e){return!t.file.files[e].dir}).indexOf(e):this.entries().indexOf(this.find(e))},Sheet:"JS"}),F=n(434),A=n(2),I=n(16),O=(n(110),n(112),n(43).Tooltip);var T=i.a.createElement(O,{title:"File has unsaved changes",position:"bottom"},"**"),N=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return this.props.isDirty?T:""},t}(r.Component);var R=i.a.createElement(I,{name:"line-scale-pulse-out",fadeIn:"none"}),D=i.a.createElement(A.Icon,{name:"floppy-o",fixedWidth:!0}),j=i.a.createElement(A.Icon,{name:"close",fixedWidth:!0}),L=i.a.createElement(A.Icon,{name:"question",fixedWidth:!0}),P=i.a.createElement(O,{title:"About Us",position:"bottom"},i.a.createElement("a",{href:"http://sheetjs.com"},i.a.createElement("img",{className:"Logo",src:"logo.png",height:"24px",width:"24px"}))),U=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.flipViz=r.flipViz.bind(r),r.force=r.force.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.flipViz=function(){this.props.flipViz(),this.forceUpdate()},t.prototype.force=function(){this.forceUpdate()},t.prototype.render=function(){return i.a.createElement("div",{className:"ToolBar"},i.a.createElement("div",{className:"AlignLeft"},i.a.createElement("div",{className:"TitleName"},"CFB Editor",i.a.createElement(O,{title:(this.props.viz?"Hide":"Show")+" Sidebar",position:"bottom"},i.a.createElement("a",{onClick:this.flipViz},i.a.createElement(A.Icon,{name:"caret-"+(this.props.viz?"left":"right"),fixedWidth:!0}))),B.getLoading()&&R)),i.a.createElement("div",{className:"AlignCenter"},i.a.createElement("div",{className:"TitleFile"},B.fname?this.props.idx?i.a.createElement(F.a,{to:"/"},"<"+B.fname+">"):"<"+B.fname+">":null,i.a.createElement(N,{isDirty:B.isDirty()}))),i.a.createElement("div",{className:"AlignRight"},i.a.createElement("div",{className:"TitleIcons"},!B.isEmpty()&&i.a.createElement(O,{title:"Download archive",position:"bottom"},i.a.createElement("a",{onClick:this.props.exportFile},D)),!B.isEmpty()&&i.a.createElement(O,{title:"Close archive",position:"bottom"},i.a.createElement("a",{onClick:this.props.erase},j)),i.a.createElement(O,{title:"Show Help",position:"bottom"},i.a.createElement(F.a,{to:"/help"},L)),P)))},t}(r.Component),Z=Object(h.a)(U);n(115);var M=i.a.createElement("div",{className:"tree"}," "),W=i.a.createElement("br",null),H=i.a.createElement(A.Icon,{name:"list",fixedWidth:!0}),V=i.a.createElement("b",null,"Show Manifest"),Y=i.a.createElement("b",null,"Archive Operations"),X=i.a.createElement("br",null),K=i.a.createElement(A.Icon,{name:"floppy-o",fixedWidth:!0}),J=i.a.createElement("b",null,"Download Archive"),q=i.a.createElement(A.Icon,{name:"i-cursor",fixedWidth:!0}),G=i.a.createElement("b",null,"Rename Archive"),Q=i.a.createElement(A.Icon,{name:"plus",fixedWidth:!0}),$=i.a.createElement("b",null,"Add file to Archive"),ee=i.a.createElement("li",null,i.a.createElement("b",null,"(or drag and drop a file here)")),te=i.a.createElement(A.Icon,{name:"close",fixedWidth:!0}),ne=i.a.createElement("b",null,"Close Archive"),re=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.exportFile=r.exportFile.bind(r),r.renameFile=r.renameFile.bind(r),r.erase=r.erase.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.exportFile=function(){this.props.exportFile()},t.prototype.renameFile=function(){this.props.renameFile()},t.prototype.erase=function(){this.props.erase()},t.prototype.render=function(){var e=this;return B.isEmpty()?M:i.a.createElement("div",{className:"tree"},i.a.createElement("b",null,"Files in "+B.fname),W,i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement(F.a,{to:"/"},H,"  ",V)),B.getFileList().map(function(t){var n=t[0],r=t[2];return i.a.createElement("li",{key:r.toString()},i.a.createElement(F.a,{to:"/view/"+r},i.a.createElement(A.Icon,{name:r==e.props.idx?"file":"file-text-o",fixedWidth:!0}),"  ",n.replace(/[^/]*\//,"").charCodeAt(0)<14336||n.replace(/[^/]*\//,"").charCodeAt(0)>18496?x((B.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")):i.a.createElement(O,{title:"MSI: "+S(n.replace(/[^/]*\//,"")),position:"bottom"},x((B.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")))))})),Y,X,i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("a",{onClick:this.exportFile},K,"  ",J)),i.a.createElement("li",null,i.a.createElement("a",{onClick:this.renameFile},q,"  ",G)),i.a.createElement("li",null,i.a.createElement("a",{onClick:this.props.addFile},Q,"  ",$)),ee,i.a.createElement("li",null,i.a.createElement("a",{onClick:this.erase},te,"  ",ne))))},t}(r.Component),ie=Object(h.a)(re),ae=n(44),oe=n.n(ae),se=n(45),le=(n(39),n(46));var ce=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.handleChange=r.handleChange.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleChange=function(e){var t=e.target.files;t&&t[0]&&this.props.handleFile(t[0])},t.prototype.render=function(){return i.a.createElement("form",{className:"form-inline"},i.a.createElement("div",{className:"form-group"},this.props.title&&this.props.title+": ",i.a.createElement("input",{type:"file",className:"form-control",id:"file",onChange:this.handleChange})))},t}(r.Component),he=["application/zip","application/octet-stream"].join(",")+["mht","mhtml","zip","xlsx","xlsb","xlsm","ods","cfb","xls","qpw","wb3","ppt","doc"].map(function(e){return"."+e}).join(","),de=/<(\/?)([^\s?>!/:]*:|)([^\s?>:/]+)[^>]*>/gm;var fe=i.a.createElement("b",null,"File Name:"),ue=i.a.createElement("div",{className:"minor"}," "),pe=i.a.createElement(A.Icon,{name:"download",fixedWidth:!0}),me=i.a.createElement(A.Icon,{name:"chain-broken",fixedWidth:!0}),be=i.a.createElement(A.Icon,{name:"i-cursor",fixedWidth:!0}),ge=i.a.createElement("br",null),_e=i.a.createElement("div",{className:"minor"},"You can also drag and drop a file."),ye=i.a.createElement("br",null),we=i.a.createElement("summary",null,i.a.createElement("b",null,"Entry Metadata")," (click to show)"),ve=i.a.createElement("b",null,"Full Path:"),Ee=i.a.createElement("br",null),xe=i.a.createElement("b",null,"Size:"),ke=i.a.createElement("br",null),Ce=i.a.createElement("b",null,"CRC32:"),ze=i.a.createElement("br",null),Se=i.a.createElement("br",null),Be=i.a.createElement(I,{name:"line-scale-pulse-out",fadeIn:"none"}),Fe=i.a.createElement("pre",null,"(file is empty)"),Ae=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.state={loading:!0,FN:"",_size:0,_crc32:"",show_text:!1,indexData:[]},["export","delete","rename","handle","stload","common"].forEach(function(e){r[e]=r[e].bind(r)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){this.common(this.props,!0)},t.prototype.componentWillReceiveProps=function(e){return this.common(e,!1),!0},t.prototype.export=function(){B.exportBStrById(this.props.idx)},t.prototype.delete=function(){this.props.deleteEntry(this.props.idx)},t.prototype.rename=function(){this.props.renameEntry(this.props.idx)},t.prototype.handle=function(e){this.props.handleFile(this.props.idx,e)},t.prototype.stload=function(){},t.prototype.common=function(e){var t=this;this.state.loading||this.setState({loading:!0}),setTimeout(function(){var n=B.getFileNameById(e.idx),r=B.getFileEntryById(e.idx);if(!n||!r||B.isCFB()&&2!=r.type)return t.setState({loading:!1});var i=x(r.name),a=B.getContentByEntry(r),o=B.getSizeByEntry(r),s=Object(y.a)("%0.8X",Object(le.buf)(a)),l="text"==e.mode,c=l?B.getTextByEntry(r):"",h=c&&("<?xml "==c.slice(0,6)||c.slice(0,100).match(/^<\w*(:\w+)?[\s/>]/)),d=e.mode||"text";if("full"==d&&(d="text"),!e.mode||"full"==e.mode){var f=B.getContentSliceByEntry(r,0,16);255==f[0]&&216==f[1]&&255==f[2]&&(d="imag")}var u="imag"==t.props.mode,p=u?"data:image/jpeg;base64,"+btoa(B.getTextByEntry(r)):"",m=t.props&&t.props.mode?B.getSizeByEntry(r):Math.min(B.getSizeByEntry(r),384),b=Array.from({length:m+15>>4}).map(function(e,t){return 16*t}),g=c||p?[]:b.map(function(e){return function(e){var t=e[0],n=e[1];return n&&n.length?E[n.length]?Object(y.b)("%04x: "+E[n.length],[t].concat(n,n.map(function(e){return String.fromCharCode(e).replace(/[^\x20-\x7E]/g,".")}))):"wtf":""}([e,B.getContentSliceByEntry(r,e,e+16)])});t.setState({loading:!1,FN:i,_size:o,_crc32:s,show_text:l,T:c,doxml:h,show_link:d,show_imag:u,I:p,indices:b,indexData:g}),t.forceUpdate()},0)},t.prototype.render=function(){var e=B.getFileNameById(this.props.idx),t=B.getFileEntryById(this.props.idx);if(!e||!t||B.isCFB()&&2!=t.type)return i.a.createElement(c.a,{to:"/"});var n=x(e),r=this.state,a=r.FN,o=r._size,s=r._crc32,l=r.show_text,h=r.T,d=r.doxml,f=r.show_link,u=r.show_imag,p=r.I,m=r.indices,b=r.indexData,g=o>384&&!this.props.mode,_={text:"Text",imag:"Image"}[f];return i.a.createElement("div",{className:"conpainer"},i.a.createElement("div",null,fe," ",a," ",a.charCodeAt(0)>=14336&&a.charCodeAt(0)<=18496&&"MSI Name: "+S(a)),i.a.createElement("div",{className:"minor"},a!=t.name?'File name has non-display characters, which are rendered as "\\u" followed by character code':" "),ue,i.a.createElement("div",{className:"flexrow"},i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.export},pe," Export Entry")),i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.delete},me," Delete Entry")),i.a.createElement("div",{className:"col-xs-4"},i.a.createElement("a",{onClick:this.rename},be," Rename Entry"))),ge,i.a.createElement(ce,{handleFile:this.handle,title:"Replace file contents"}),_e,ye,i.a.createElement("details",null,we,ve," ",n,Ee,xe," ",o," bytes",ke,Ce," ",s,ze),Se,i.a.createElement("b",null,g?"Showing First 384 Bytes":"Showing File Contents",g&&i.a.createElement(F.a,{to:"/view/"+this.props.idx+"/full"}," (Full Contents) "),f&&f!=this.props.mode&&i.a.createElement(F.a,{to:"/view/"+this.props.idx+"/"+f,onClick:this.stload}," (View as ",_,") ")),this.state.loading?Be:l?i.a.createElement(oe.a,{style:se.arduinoLight,customStyle:{width:"calc(100vw - "+(this.props.viz?300:50)+"px)"}},d?function(e){var t=0,n="";return e.replace(de,function(e,r,i,a){var o=t;"/"==r?(--t,--o):"/"==e.charAt(e.length-2)||++t;var s=a==n&&"/"==r?"":"\n"+" ".repeat(o);return n=a,s+e}).replace(/\n+\n</gm,"\n<")}(h):h):u?i.a.createElement("div",null,i.a.createElement("img",{src:p})):m.length?i.a.createElement("pre",null,b):Fe)},t}(r.PureComponent),Ie=Object(h.a)(Ae);var Oe=i.a.createElement("b",null,"Archive Name:"),Te=i.a.createElement("div",{className:"minor"}," "),Ne=i.a.createElement("div",{className:"minor"}," "),Re=i.a.createElement(A.Icon,{name:"floppy-o",fixedWidth:!0}),De=i.a.createElement(A.Icon,{name:"i-cursor",fixedWidth:!0}),je=i.a.createElement(A.Icon,{name:"plus",fixedWidth:!0}),Le=i.a.createElement(A.Icon,{name:"close",fixedWidth:!0}),Pe=i.a.createElement("div",{className:"minor"},"Entries can be renamed or deleted from the file view."),Ue=i.a.createElement("div",{className:"minor"},"Entries can be added by dragging and dropping files from your computer."),Ze=i.a.createElement("br",null),Me=i.a.createElement("summary",null,i.a.createElement("b",null,"Metadata")," (click to show)"),We=i.a.createElement("b",null,"Root Name:"),He=i.a.createElement("br",null),Ve=i.a.createElement("b",null,"CLSID:"),Ye=i.a.createElement("br",null),Xe=i.a.createElement("br",null),Ke=i.a.createElement("br",null),Je=i.a.createElement("b",null,"File Manifest"),qe=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return B.isEmpty()?i.a.createElement(c.a,{to:"/"}):i.a.createElement("div",{className:"conpainer"},i.a.createElement("div",null,Oe," ",B.fname),Te,Ne,i.a.createElement("div",{className:"flexrow"},i.a.createElement("div",{className:"col-xs-3"},i.a.createElement("a",{onClick:this.props.exportFile},Re," Download")),i.a.createElement("div",{className:"col-xs-3"},i.a.createElement("a",{onClick:this.props.renameFile},De," Rename")),i.a.createElement("div",{className:"col-xs-3"},i.a.createElement("a",{onClick:this.props.addFile},je," Add File")),i.a.createElement("div",{className:"col-xs-3"},i.a.createElement("a",{onClick:this.props.erase},Le," Close"))),Pe,Ue,Ze,B.isCFB()&&i.a.createElement("details",null,Me,We," ",B.getRootName(),He,Ve," ",B.getCLSID(),Ye,Xe),Ke,Je,i.a.createElement("pre",null," Length Date Time Name\n"," -------- ---- ---- ----\n",B.getFileList().map(function(e){var t=e[0],n=e[1],r=e[2];return i.a.createElement("span",{key:r.toString()},Object(y.a)("%9lu %s ",B.getSizeByEntry(n),function(e){return Object(y.a)("%02u-%02u-%02u %02u:%02u",e.getUTCMonth()+1,e.getUTCDate(),e.getUTCFullYear()%100,e.getUTCHours(),e.getUTCMinutes())}(B.getFileTime(r))),t.replace(/.*\//g,"").charCodeAt(0)>=14336&&t.replace(/.*\//g,"").charCodeAt(0)<=18496?i.a.createElement(F.a,{to:"/view/"+r},x(t)+" ("+S(t.replace(/.*\//g,""))+")"):i.a.createElement(F.a,{to:"/view/"+r},x(t)),"\n")})))},t}(r.Component),Ge=Object(h.a)(qe);n(408);var Qe=i.a.createElement("br",null),$e=i.a.createElement("div",{className:"Title"},"Welcome to CFB Editor"),et=i.a.createElement("div",{className:"Subtitle"},"View and Edit archives with ease"),tt=i.a.createElement("br",null),nt=i.a.createElement("br",null),rt=i.a.createElement("div",{className:"minor"},"Your data never leaves your device"),it=i.a.createElement("div",null,"You can also drag and drop a file into the window"),at=i.a.createElement("br",null),ot=i.a.createElement("br",null),st=i.a.createElement("br",null),lt=i.a.createElement("br",null),ct=i.a.createElement("br",null),ht=i.a.createElement("details",null,i.a.createElement("summary",null,i.a.createElement("b",null,"Download Sample Files")," (click to show)"),i.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xls"},"CFB: pivot_table_test.xls"),i.a.createElement("br",null),i.a.createElement("br",null),i.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xlsb"},"ZIP: pivot_table_test.xlsb"),i.a.createElement("br",null)),dt=i.a.createElement("br",null),ft=i.a.createElement("br",null),ut=i.a.createElement("br",null),pt=i.a.createElement("div",{className:"minor"},"(some items may not fit, consider using a wider screen)"),mt=i.a.createElement("br",null),bt=i.a.createElement("br",null),gt=i.a.createElement("br",null),_t=i.a.createElement("div",{className:"minor"},i.a.createElement("a",{className:"minor",href:"http://sheetjs.com"},"Copyright (C) 2017-present SheetJS LLC")),yt=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.newCFB=function(){B.newFile("SheetJS.cfb")},t.prototype.newZIP=function(){B.newFile("SheetJS.zip")},t.prototype.render=function(){return B.isEmpty()?i.a.createElement("div",{className:"conpainer"},Qe,$e,et,tt,nt,i.a.createElement(ce,{handleFile:this.props.handleFile,title:"Read a file on your device",fmts:he}),rt,it,at,i.a.createElement("a",{onClick:this.newZIP},"Click here to make a new ZIP archive"),ot,st,i.a.createElement("a",{onClick:this.newCFB},"Click here to make a new CFB archive"),lt,ct,ht,dt,i.a.createElement(F.a,{to:"/help"},"Show Help"),ft,ut,window.matchMedia&&!window.matchMedia("(min-width: 800px)").matches?pt:mt,bt,gt,_t):i.a.createElement(c.a,{to:"/"})},t}(r.Component),wt=Object(h.a)(yt);var vt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.onDrop=r.onDrop.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.suppress=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.onDrop=function(e){e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;t&&0!=t.length&&this.props.handleFile(1==t.length?t[0]:t)},t.prototype.render=function(){return i.a.createElement("div",{className:"DDD",onDrop:this.onDrop,onDragEnter:this.suppress,onDragOver:this.suppress},this.props.children)},t}(r.Component);var Et=function(e){return f()("Enter the new file name",{content:{element:"input",attributes:{placeholder:e}}})},xt=function(e){if(B.isDirty()){var t="Recent changes have not been saved";return f()(t,{timer:1e3}),e.returnValue=t}},kt=i.a.createElement(o.a,null,i.a.createElement(c.a,{to:"/"})),Ct=i.a.createElement(o.a,null,i.a.createElement(c.a,{to:"/"})),zt=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.hfoe=r.handleFileOrEntry.bind(r),r.flipViz=r.flip_viz.bind(r),r.force=r.force.bind(r),r.state={viz:!0},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){window.removeEventListener("beforeunload",xt),window.addEventListener("beforeunload",xt,!0)},t.prototype.flip_viz=function(){this.setState({viz:!this.state.viz}),this.forceUpdate()},t.prototype.force=function(){this.toolbar&&this.toolbar.force()},t.prototype.erase=function(){if(!B.isDirty())return B.reset();f()("Are you sure you want to close "+B.fname+"?",{buttons:["No","Yes"]}).then(function(e){e&&B.reset()})},t.prototype.renameFile=function(){Et(B.fname).then(function(e){e&&B.setName(e)})},t.prototype.handleFile=function(e){return e instanceof File?this.handleOneFile(e):f()("Please drop only one file")},t.prototype.handleOneFile=function(e){var t=function(){var t=new FileReader;t.onload=function(t){var n=t.target.result;try{B.setBStr(n,function(e){f()("Error:"+(e.message||e))}),B.setName(e.name)}catch(t){f()("Error:"+(t.message||t))}},t.readAsBinaryString(e)},n=[];if(e.size>5<<20&&n.push("File size "+e.size+" exceeds limit."),n.length>0){n.push("Operations may be slow. Shall we proceed?");var r=document.createElement("div");r.innerHTML=n.join("<br/>\n"),f()({content:r,buttons:["No","Yes"]}).then(function(e){e&&t()})}else t()},t.prototype.handleEntry=function(e,t){!function(e,t,n){var r=new FileReader;if(r.onload=function(e){var n=e.target.result;t(null,n)},n&&n.size>0&&e.size>n.size)return t(new Error("File size "+e.size+" exceeds limit"),null);r.readAsArrayBuffer(e)}(t,function(t,n){if(t)return f()("Error: "+t.message);B.setContentAB(e,n)},{size:5<<20})},t.prototype.handleFileOrEntry=function(e){var t=this;if(B.isEmpty())return this.handleFile(e);if(!(e instanceof File))return f()("Please drop only one file");var n=this.props.match&&null!=this.props.match.params.idx?this.props.match.params.idx:-1,r={buttons:{open:"Open",add:"Add File"}},i=B.getFixedName(n);n>-1&&(r.buttons.update="Update contents"),f()(B.fname+" "+(i&&"("+i+")")+" is open. What do you want to do with "+e.name+"?",r).then(function(r){switch(r){case"open":if(!B.isDirty())return B.reset(),t.handleFile(e);f()("There are unsaved changes. Are you sure you want to close "+B.fname+"?",{buttons:["No","Yes"]}).then(function(n){n&&(B.reset(),t.handleFile(e))});break;case"add":var i="";B.find(e.name)?(i=B.addNewFile(),f()("File "+e.name+" exists! New file: "+i)):i=B.addNewFile(e.name);var a=B.getIdByName(i);t.handleEntry(a,e);break;case"update":t.handleEntry(n,e)}})},t.prototype.newEntry=function(){var e=B.addNewFile();f()("New File: "+e)},t.prototype.exportFile=function(){B.exportBStr(B.fname||"SheetJS.cfb")},t.prototype.deleteEntry=function(e){f()("Are you sure you want to delete "+B.getFixedName(e),{buttons:["No","Yes"]}).then(function(t){switch(t){case!0:B.delFileById(e);break;default:return}})},t.prototype.renameEntry=function(e){Et(B.getFixedPath(e)).then(function(t){t&&B.renFileById(e,t)})},t.prototype.render=function(){var e=this;return i.a.createElement("div",{className:"Outer"},i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement(Z,{idx:this.props.match.params.idx,erase:this.erase,exportFile:this.exportFile,handleFile:this.hfoe,viz:this.state.viz,flipViz:this.flipViz,ref:function(t){e.toolbar=t}})),i.a.createElement("div",{className:"Bottom"},i.a.createElement(u.a,{split:"vertical",minSize:50,maxSize:250,defaultSize:window.matchMedia&&!window.matchMedia("(min-width: 650px)").matches?50:250,style:{height:"calc(100% - 55px)"},pane1Style:{display:this.state.viz?"block":"none"}},this.state.viz&&i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement(ie,{idx:this.props.match.params.idx,fname:B.fname,exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),i.a.createElement(vt,{handleFile:this.hfoe},i.a.createElement("div",{className:"RightPane"},B.isEmpty()?i.a.createElement(l.a,null,i.a.createElement(o.a,{exact:!0,path:"/"},i.a.createElement(wt,{handleFile:this.handleFile})),Ct):i.a.createElement(l.a,null,i.a.createElement(o.a,{path:"/view"},i.a.createElement(Ie,{idx:this.props.match.params.idx||0,mode:this.props.match.params.mode,deleteEntry:this.deleteEntry,renameEntry:this.renameEntry,handleFile:this.handleEntry,viz:this.state.viz,force:this.force})),i.a.createElement(o.a,{exact:!0,path:"/"},i.a.createElement(Ge,{exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),kt))))))},t}(r.Component),St=Object(h.a)(zt),Bt=n(47),Ft=n.n(Bt),At=n(48),It=n.n(At);n(430);function Ot(e){return e.href.match(/^\//)?i.a.createElement(F.a,{to:e.href},e.children):i.a.createElement("a",{href:e.href},e.children)}var Tt=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.a.createElement(It.a,{className:"helpview",source:Ft.a,renderers:{Link:Ot}})},t}(r.Component),Nt=Object(h.a)(Tt);var Rt=i.a.createElement(o.a,{path:"/view/:idx/:mode",component:St}),Dt=i.a.createElement(o.a,{path:"/view/:idx",component:St}),jt=i.a.createElement(o.a,{exact:!0,path:"/",component:St}),Lt=i.a.createElement(o.a,{exact:!0,path:"/help",component:Nt}),Pt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.a.createElement(s.a,{basename:"/cfb-editor"},i.a.createElement(l.a,null,Rt,Dt,jt,Lt,i.a.createElement(o.a,{render:function(){return i.a.createElement(c.a,{to:"/"})}})))},t}(r.Component);Object(a.render)(i.a.createElement(Pt,null),document.querySelector("#app"))},47:function(e,t){e.exports='## CFB Editor\n\n[(click here to go back to the main screen)](/)\n\nThe CFB Editor can edit CFB and ZIP archives in your web browser! No data is\nsent to any remote server. All operations are performed locally, so your data\nis safe. It is powered by web browser magic.\n\n### Loading data\n\nThe editor can read an existing file or generate a new file:\n\n**Reading an Existing File**\n\nFrom the main screen, click "Choose File" and select a file. Alternatively,\nyou can click and drag a file from your device into the box.\n<details open>\n\t<summary><b>Show Animation</b></summary>\n<a href="ReadFile.gif"><img src="ReadFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n**Creating a new file**\n\nClick on the relevant links from the main screen.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="NewFile.gif"><img src="NewFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n**Closing a file to start from scratch**\n\nIf a file is open, click on the <i class="fa fa-fw fa-close"></i> Close archive\nlinks to close the file and go back to the initial view.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="CloseFile.gif"><img src="CloseFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n### Saving data\n\nThe editor can download updated archives or individual files to your device:\n\n**Download an updated archive**\n\nClick on the <i class="fa fa-fw fa-floppy-o"></i> Download Archive links\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="DownloadFile.gif"><img src="DownloadFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n**Download a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the <i class="fa fa-fw fa-download"></i> Export Entry\nlink to download the viewed file.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="DownloadEntry.gif"><img src="DownloadEntry.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n### Modifying files in the archive\n\nThe editor can add, delete, and rename files:\n\n**Rename the archive**\n\nClick on the <i class="fa fa-fw fa-i-cursor"></i> Rename archive link in the\nsidebar or the archive view.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="RenameFile.gif"><img src="RenameFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n**Rename a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the <i class="fa fa-fw fa-i-cursor"></i> Rename link in\nthe file view to rename.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="RenameEntry.gif"><img src="RenameEntry.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n**Delete a file from the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the <i class="fa fa-fw fa-chain-broken"></i> Rename link\nin the file view to rename.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="DeleteFile.gif"><img src="DeleteFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n**Updating data for a file**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the "Choose file" button to upload a new file that will\nreplace the existing data.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="UpdateFile.gif"><img src="UpdateFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n**Add a file to the archive**\n\nClick on the <i class="fa fa-fw fa-plus"></i> Add file link in the sidebar or\nthe archive view. By default, the file will have a generated name and dummy\ncontent. Follow the instructions to rename the file and update the content.\n\n<details>\n\t<summary><b>Show Animation</b></summary>\n<a href="DragFile.gif"><img src="DragFile.gif" style="max-width:100%" /></a>\n</details>\n\n<br />\n<br />\n\n[(C) 2017-present SheetJS LLC](http://sheetjs.com)\n'},50:function(e,t,n){n(51),e.exports=n(432)},56:function(e,t,n){},66:function(e,t,n){},71:function(e,t){}},[[50,2,1]]]);
//# sourceMappingURL=app.7aae236f.js.map