2 lines
114 KiB
JavaScript
2 lines
114 KiB
JavaScript
webpackJsonp([1],{0:function(e,t,n){n("+prg"),e.exports=n("lVK7")},1:function(e,t){},2:function(e,t){},"3lb1":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("thjQ"),u=n.n(h),d=n("ydjI"),f=n("r/a0"),p=(n.n(f),n("V5xO")),m=n("HACt"),b=n("mihT"),g=n("mjy5"),_=n("eDYK"),y=n("DlSv"),w=n("JI0G"),v=n("VyOR"),E=function(e){return u()("Enter the new file name",{content:{element:"input",attributes:{placeholder:e}}})},x=function(e){if(p.a.isDirty()){var t="Recent changes have not been saved";return u()(t,{timer:1e3}),e.returnValue=t}},k=s.a.createElement(c.d,null,s.a.createElement(c.c,{to:"/"})),C=s.a.createElement(c.d,null,s.a.createElement(c.c,{to:"/"})),S=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.hfoe=a.handleFileOrEntry.bind(a),a.flipViz=a.flip_viz.bind(a),a.force=a.force.bind(a),a.state={viz:!0},a}return a(t,e),t.prototype.componentDidMount=function(){window.removeEventListener("beforeunload",x),window.addEventListener("beforeunload",x,!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(!p.a.isDirty())return p.a.reset();u()("Are you sure you want to close "+p.a.fname+"?",{buttons:["No","Yes"]}).then(function(e){e&&p.a.reset()})},t.prototype.renameFile=function(){E(p.a.fname).then(function(e){e&&p.a.setName(e)})},t.prototype.handleFile=function(e){return e instanceof File?this.handleOneFile(e):u()("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{p.a.setBStr(n,function(e){u()("Error:"+(e.message||e))}),p.a.setName(e.name)}catch(t){u()("Error:"+(t.message||t))}},t.readAsBinaryString(e)},n=[];if(e.size>v.a&&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"),u()({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 u()("Error: "+t.message);p.a.setContentAB(e,n)},{size:v.a})},t.prototype.handleFileOrEntry=function(e){var t=this;if(p.a.isEmpty())return this.handleFile(e);if(!(e instanceof File))return u()("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=p.a.getFixedName(n);n>-1&&(r.buttons.update="Update contents"),u()(p.a.fname+" "+(i&&"("+i+")")+" is open. What do you want to do with "+e.name+"?",r).then(function(r){switch(r){case"open":if(!p.a.isDirty())return p.a.reset(),t.handleFile(e);u()("There are unsaved changes. Are you sure you want to close "+p.a.fname+"?",{buttons:["No","Yes"]}).then(function(n){n&&(p.a.reset(),t.handleFile(e))});break;case"add":var i="";p.a.find(e.name)?(i=p.a.addNewFile(),u()("File "+e.name+" exists! New file: "+i)):i=p.a.addNewFile(e.name);var a=p.a.getIdByName(i);t.handleEntry(a,e);break;case"update":t.handleEntry(n,e)}})},t.prototype.newEntry=function(){var e=p.a.addNewFile();u()("New File: "+e)},t.prototype.exportFile=function(){p.a.exportBStr(p.a.fname||"SheetJS.cfb")},t.prototype.deleteEntry=function(e){u()("Are you sure you want to delete "+p.a.getFixedName(e),{buttons:["No","Yes"]}).then(function(t){switch(t){case!0:p.a.delFileById(e);break;default:return}})},t.prototype.renameEntry=function(e){E(p.a.getFixedPath(e)).then(function(t){t&&p.a.renFileById(e,t)})},t.prototype.render=function(){var e=this;return s.a.createElement("div",{className:"Outer"},s.a.createElement(w.a,{handleFile:this.hfoe},s.a.createElement(m.a,{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}})),s.a.createElement("div",{className:"Bottom"},s.a.createElement(d.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&&s.a.createElement(w.a,{handleFile:this.hfoe},s.a.createElement(b.a,{idx:this.props.match.params.idx,fname:p.a.fname,exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),s.a.createElement(w.a,{handleFile:this.hfoe},s.a.createElement("div",{className:"RightPane"},p.a.isEmpty()?s.a.createElement(c.e,null,s.a.createElement(c.d,{exact:!0,path:"/"},s.a.createElement(y.a,{handleFile:this.handleFile})),C):s.a.createElement(c.e,null,s.a.createElement(c.d,{path:"/view"},s.a.createElement(g.a,{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})),s.a.createElement(c.d,{exact:!0,path:"/"},s.a.createElement(_.a,{exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),k))))))},t}(o.Component);t.a=Object(l.a)(S)},"9Sgv":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("MPy6"),c=s.a.createElement(l.a,{title:"File has unsaved changes",position:"bottom"},"**"),h=function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){return this.props.isDirty?c:""},t}(o.Component);t.a=h},C583:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var r=n("lDdF"),i=(n.n(r),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}),a=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},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(r.saveAs)(new Blob([i(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(r.saveAs)(new Blob([a(e)],{type:"application/octet-stream"}),t||"sheetjs.out")}},DlSv:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("eybw"),u=(n.n(h),n("V5xO")),d=n("W7d1"),f=n("VyOR"),p=s.a.createElement("br",null),m=s.a.createElement("div",{className:"Title"},"Welcome to CFB Editor"),b=s.a.createElement("div",{className:"Subtitle"},"View and Edit archives with ease"),g=s.a.createElement("br",null),_=s.a.createElement("br",null),y=s.a.createElement("div",{className:"minor"},"Your data never leaves your device"),w=s.a.createElement("div",null,"You can also drag and drop a file into the window"),v=s.a.createElement("br",null),E=s.a.createElement("br",null),x=s.a.createElement("br",null),k=s.a.createElement("br",null),C=s.a.createElement("br",null),S=s.a.createElement("details",null,s.a.createElement("summary",null,s.a.createElement("b",null,"Download Sample Files")," (click to show)"),s.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xls"},"CFB: pivot_table_test.xls"),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xlsb"},"ZIP: pivot_table_test.xlsb"),s.a.createElement("br",null)),z=s.a.createElement("br",null),A=s.a.createElement("br",null),F=s.a.createElement("br",null),O=s.a.createElement("div",{className:"minor"},"(some items may not fit, consider using a wider screen)"),B=s.a.createElement("br",null),I=s.a.createElement("br",null),T=s.a.createElement("br",null),N=s.a.createElement("div",{className:"minor"},s.a.createElement("a",{className:"minor",href:"http://sheetjs.com"},"Copyright (C) 2017-present SheetJS LLC")),R=function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.newCFB=function(){u.a.newFile("SheetJS.cfb")},t.prototype.newZIP=function(){u.a.newFile("SheetJS.zip")},t.prototype.render=function(){return u.a.isEmpty()?s.a.createElement("div",{className:"conpainer"},p,m,b,g,_,s.a.createElement(d.a,{handleFile:this.props.handleFile,title:"Read a file on your device",fmts:f.b}),y,w,v,s.a.createElement("a",{onClick:this.newZIP},"Click here to make a new ZIP archive"),E,x,s.a.createElement("a",{onClick:this.newCFB},"Click here to make a new CFB archive"),k,C,S,z,s.a.createElement(c.b,{to:"/help"},"Show Help"),A,F,window.matchMedia&&!window.matchMedia("(min-width: 800px)").matches?O:B,I,T,N):s.a.createElement(c.c,{to:"/"})},t}(o.Component);t.a=Object(l.a)(R)},GtGB:function(e,t,n){"use strict";function r(e){var t=0,n="";return e.replace(i,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<")}t.a=r;var i=/<(\/?)([^\s?>!/:]*:|)([^\s?>:/]+)[^>]*>/gm},HACt:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("0Efu")),d=(n.n(u),n("xwm3")),f=(n.n(d),n("V5xO")),p=n("MPy6"),m=n("9Sgv"),b=s.a.createElement(u,{name:"line-scale-pulse-out",fadeIn:"none"}),g=s.a.createElement(h.Icon,{name:"floppy-o",fixedWidth:!0}),_=s.a.createElement(h.Icon,{name:"close",fixedWidth:!0}),y=s.a.createElement(h.Icon,{name:"question",fixedWidth:!0}),w=s.a.createElement(p.a,{title:"About Us",position:"bottom"},s.a.createElement("a",{href:"http://sheetjs.com"},s.a.createElement("img",{className:"Logo",src:"logo.png",height:"24px",width:"24px"}))),v=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.flipViz=a.flipViz.bind(a),a.force=a.force.bind(a),a}return a(t,e),t.prototype.flipViz=function(){this.props.flipViz(),this.forceUpdate()},t.prototype.force=function(){this.forceUpdate()},t.prototype.render=function(){return s.a.createElement("div",{className:"ToolBar"},s.a.createElement("div",{className:"AlignLeft"},s.a.createElement("div",{className:"TitleName"},"CFB Editor",s.a.createElement(p.a,{title:(this.props.viz?"Hide":"Show")+" Sidebar",position:"bottom"},s.a.createElement("a",{onClick:this.flipViz},s.a.createElement(h.Icon,{name:"caret-"+(this.props.viz?"left":"right"),fixedWidth:!0}))),f.a.getLoading()&&b)),s.a.createElement("div",{className:"AlignCenter"},s.a.createElement("div",{className:"TitleFile"},f.a.fname?this.props.idx?s.a.createElement(c.b,{to:"/"},"<"+f.a.fname+">"):"<"+f.a.fname+">":null,s.a.createElement(m.a,{isDirty:f.a.isDirty()}))),s.a.createElement("div",{className:"AlignRight"},s.a.createElement("div",{className:"TitleIcons"},!f.a.isEmpty()&&s.a.createElement(p.a,{title:"Download archive",position:"bottom"},s.a.createElement("a",{onClick:this.props.exportFile},g)),!f.a.isEmpty()&&s.a.createElement(p.a,{title:"Close archive",position:"bottom"},s.a.createElement("a",{onClick:this.props.erase},_)),s.a.createElement(p.a,{title:"Show Help",position:"bottom"},s.a.createElement(c.b,{to:"/help"},y)),w)))},t}(o.Component);t.a=Object(l.a)(v)},JI0G:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.onDrop=a.onDrop.bind(a),a}return a(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 s.a.createElement("div",{className:"DDD",onDrop:this.onDrop,onDragEnter:this.suppress,onDragOver:this.suppress},this.props.children)},t}(o.Component);t.a=l},K9jv:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}function o(e){return e.href.match(/^\//)?l.a.createElement(h.b,{to:e.href},e.children):l.a.createElement("a",{href:e.href},e.children)}var s=n("GiK3"),l=n.n(s),c=n("nCbI"),h=n("F8kA"),u=n("ytRd"),d=n.n(u),f=n("lfvs"),p=n.n(f),m=n("QFHE"),b=(n.n(m),function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){return l.a.createElement(p.a,{className:"helpview",source:d.a,renderers:{Link:o}})},t}(s.Component));t.a=Object(c.a)(b)},MPy6:function(e,t,n){"use strict";var r=n("oVvp"),i=(n.n(r),n("ejSu"));n.n(i);t.a=i.Tooltip},QFHE:function(e,t){},V5xO:function(e,t,n){"use strict";var r=n("nCbI"),i=n("Su46"),a=(n.n(i),n("XyJX")),o=(n.n(a),n("C583")),s=n("co4O");t.a=Object(r.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"ÐÏà":n.type="CFB",n.file=i.read(e,{type:"binary"});break;case"PK":case"PK":n.type="ZIP",n.file=new a(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()?i.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()?"":Object(s.d)(this.getFileNameById(e))},getFixedPath:function(e){return this.isEmpty()?"":this.isCFB()?Object(s.d)(this.getFileNameById(e)).replace(/^[^/]*/,""):Object(s.d)(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=Object(s.b)(t),r=this.getFileNameById(e);this.isCFB()?(i.utils.prep_blob(n),i.utils.cfb_add(this.file,r,Object(s.b)(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=Object(s.h)(t).replace(/^\//,"");this.isCFB()?(i.utils.cfb_mov(this.file,n,this.getFileNameById(0)+r),i.utils.cfb_gc(this.file)):this.isZIP()&&(this.file.file(r,Object(s.a)(this.getContentById(e)),{binary:!0}),this.file.remove(n)),this.dirty=!0},delFileById:function(e){var t=this.getFileNameById(e);this.isCFB()&&i.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);Object(o.a)(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=Object(o.b)(i.write(e.file,{type:"binary"}),e.fname||"SheetJS.cfb")),e.isZIP()&&(t=Object(o.b)(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 a;t.file("Sh33tJ5","7262"),this.file=t}else this.file=i.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?Object(s.g)(e._data):Object(s.b)(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:0},getTextByEntry:function(e){return e&&(e._data||e.content)?e._data?"string"==typeof e._data?e._data:Object(s.a)(e._data.getContent()):Object(s.a)(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()?i.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;if(this.isEmpty())return-1;if(this.isZIP()){return Object.keys(this.file.files).filter(function(e){return!t.file.files[e].dir}).indexOf(e)}return this.entries().indexOf(this.find(e))},Sheet:"JS"})},VyOR:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=384,i=5<<20,a=["application/zip","application/octet-stream"].join(",")+["zip","xlsx","xlsb","xlsm","ods","cfb","xls","qpw","wb3","ppt","doc"].map(function(e){return"."+e}).join(",")},W7d1:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.handleChange=a.handleChange.bind(a),a}return a(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 s.a.createElement("form",{className:"form-inline"},s.a.createElement("div",{className:"form-group"},this.props.title&&this.props.title+": ",s.a.createElement("input",{type:"file",className:"form-control",id:"file",onChange:this.handleChange})))},t}(o.Component);t.a=l},XyJX:function(e,t,n){(function(n){var r,i,a,o,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};!function(n){if("object"==s(t)&&void 0!==e&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)e.exports=n();else{JSZip=n(),i=[],r=n,void 0!==(a="function"==typeof r?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]){var c="function"==typeof o&&o;if(!l&&c)return o(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var h=n[s]={exports:{}};t[s][0].call(h.exports,function(e){var n=t[s][1][e];return i(n||e)},h,h.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="",u=0;u<e.length;)n=e.charCodeAt(u++),i=e.charCodeAt(u++),a=e.charCodeAt(u++),o=n>>2,s=(3&n)<<4|i>>4,l=(15&i)<<2|a>>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="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)o=r.indexOf(e.charAt(u++)),s=r.indexOf(e.charAt(u++)),l=r.indexOf(e.charAt(u++)),c=r.indexOf(e.charAt(u++)),n=o<<2|s>>4,i=(15&s)<<4|l>>2,a=(3&l)<<6|c,h+=String.fromCharCode(n),64!=l&&(h+=String.fromCharCode(i)),64!=c&&(h+=String.fromCharCode(a));return h}},{}],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,o=0,s=0;t^=-1;for(var l=0,c=e.length;l<c;l++)s=n?e[l]:e.charCodeAt(l),o=255&(t^s),a=i[o],t=t>>>8^a;return-1^t}},{"./utils":21}],5:[function(e,t,n){"use strict";function r(e){this.data=null,this.length=0,this.index=0}var i=e("./utils");r.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 i.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=r},{"./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";function r(e,t){if(!(this instanceof r))return new r(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}var i=e("./base64");r.prototype=e("./object"),r.prototype.load=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.utils=e("./deprecatedPublicUtils"),r.base64={encode:function(e){return i.encode(e)},decode:function(e){return i.decode(e)}},r.compressions=e("./compressions"),t.exports=r},{"./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||{},t.base64&&(e=r.decode(e)),a=new i(e,t),n=a.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";function r(e){this.data=e,this.length=this.data.length,this.index=0}var i=e("./uint8ArrayReader");r.prototype=new i,r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=r},{"./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"),u=e("./nodeBuffer"),d=e("./utf8"),f=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?u(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){return e=e||{},!0!==e.base64||null!==e.binary&&void 0!==e.binary||(e.binary=!0),e=w(e,s),e.date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e},E=function(e,t,n){var r,a=i.getTypeOf(t);if(n=v(n),n.createFolders&&(r=x(e))&&k.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},x=function(e){"/"==e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},k=function(e,t){return"/"!=e.slice(-1)&&(e+="/"),t=void 0!==t&&t,this.files[e]||E.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},C=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),n&&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},S=function(e,t,n,r){var s,l,c,h,u=(n.compressedContent,i.transformTo("string",d.utf8encode(t.name))),f=t.comment||"",p=i.transformTo("string",d.utf8encode(f)),m=u.length!==t.name.length,b=p.length!==f.length,g=t.options,_="",w="",v="";c=t._initialMetadata.dir!==t.dir?t.dir:g.dir,h=t._initialMetadata.date!==t.date?t.date:g.date,s=h.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(u),4)+u,_+="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(u.length,2),E+=y(_.length,2),{fileRecord:o.LOCAL_FILE_HEADER+E+u+_,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)+u+_+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,E.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=k.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 u in this.files)if(this.files.hasOwnProperty(u)){var d=this.files[u],m=d.options.compression||e.compression.toUpperCase(),b=c[m];if(!b)throw new Error(m+" is not a valid compression method !");var g=C.call(this,d,b),_=S.call(this,u,d,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 f(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",d.utf8encode(e))},utf8decode:function(e){return d.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";function r(e,t){this.data=e,t||(this.data=a.string2binary(this.data)),this.length=this.data.length,this.index=0}var i=e("./dataReader"),a=e("./utils");r.prototype=new i,r.prototype.byteAt=function(e){return this.data.charCodeAt(e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.index,this.index+e);return this.index+=e,t},t.exports=r},{"./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=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;i.append(t),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}}).call(this,void 0!==n?n:void 0)},{}],18:[function(e,t,n){"use strict";function r(e){e&&(this.data=e,this.length=this.data.length,this.index=0)}var i=e("./dataReader");r.prototype=new i,r.prototype.byteAt=function(e){return this.data[e]},r.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},r.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=r},{"./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){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)n=e.charCodeAt(a),55296==(64512&n)&&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++)n=e.charCodeAt(a),55296==(64512&n)&&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},c=function(e,t){var n;for(t=t||e.length,t>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},h=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"):l(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");e=r.transformTo(i.uint8array?"uint8array":"array",e);for(var t=[],n=0,a=e.length;n<a;){var o=c(e,Math.min(n+65536,a));i.uint8array?t.push(h(e.subarray(n,o))):t.push(h(e.slice(n,o))),n=o}return t.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(e,t,n){"use strict";function r(e){return e}function i(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}function a(e){var t=65536,r=[],i=e.length,a=n.getTypeOf(e),o=0,s=!0;try{switch(a){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,c(0))}}catch(e){s=!1}if(!s){for(var l="",h=0;h<e.length;h++)l+=String.fromCharCode(e[h]);return l}for(;o<i&&t>1;)try{"array"===a||"nodebuffer"===a?r.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+t,i)))),o+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function o(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var s=e("./support"),l=e("./compressions"),c=e("./nodeBuffer");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=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=new t;return r.append(e),r.getBlob("application/zip")}catch(e){throw new Error("Bug : can't construct the Blob.")}}},n.applyFromCharCode=a;var h={};h.string={string:r,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return i(e,new Uint8Array(e.length))},nodebuffer:function(e){return i(e,c(e.length))}},h.array={string:a,array:r,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return c(e)}},h.arraybuffer={string:function(e){return a(new Uint8Array(e))},array:function(e){return o(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:r,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return c(new Uint8Array(e))}},h.uint8array={string:a,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:r,nodebuffer:function(e){return c(e)}},h.nodebuffer={string:a,array:function(e){return o(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return o(e,new Uint8Array(e.length))},nodebuffer:r},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":s.nodebuffer&&c.test(e)?"nodebuffer":s.uint8array&&e instanceof Uint8Array?"uint8array":s.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!s[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++)t=e.charCodeAt(n),r+="\\x"+(t<16?"0":"")+t.toString(16).toUpperCase();return r},n.findCompression=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[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";function r(e,t){this.files=[],this.loadOptions=t,e&&this.load(e)}var i=e("./stringReader"),a=e("./nodeBufferReader"),o=e("./uint8ArrayReader"),s=e("./utils"),l=e("./signature"),c=e("./zipEntry"),h=e("./support"),u=e("./object");r.prototype={checkSignature:function(e){var t=this.reader.readString(4);if(t!==e)throw new Error("Corrupted zip or bug : unexpected signature ("+s.pretty(t)+", expected "+s.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=u.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(l.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===l.CENTRAL_FILE_HEADER;)e=new c({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(l.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(l.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,-1===(e=this.reader.lastIndexOfSignature(l.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(l.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(l.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(e){var t=s.getTypeOf(e);"string"!==t||h.uint8array?this.reader="nodebuffer"===t?new a(e):new o(s.transformTo("uint8array",e)):this.reader=new i(e,this.loadOptions.optimizedBinaryString)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=r},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(e,t,n){"use strict";function r(e,t){this.options=e,this.loadOptions=t}var i=e("./stringReader"),a=e("./utils"),o=e("./compressedObject"),s=e("./object");r.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,i){return function(){var e=a.transformTo(r.uncompressInputType,this.getCompressedContent()),t=r.uncompress(e);if(t.length!==i)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=a.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new o,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=a.transformTo("string",this.decompressed.getContent()),s.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 i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.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=s.utf8decode(this.fileName),this.fileComment=s.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 i(e.value);return 1!==t.readInt(1)?null:s.crc32(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readString(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=new i(e.value);return 1!==t.readInt(1)?null:s.crc32(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readString(e.length-5))}return null}},t.exports=r},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,t,n){"use strict";var r=e("./lib/utils/common").assign,i=e("./lib/deflate"),a=e("./lib/inflate"),o=e("./lib/zlib/constants"),s={};r(s,i,a,o),t.exports=s},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,t,n){"use strict";function r(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function i(e,t){return t=t||{},t.raw=!0,r(e,t)}function a(e,t){return t=t||{},t.gzip=!0,r(e,t)}var o=e("./zlib/deflate.js"),s=e("./utils/common"),l=e("./utils/strings"),c=e("./zlib/messages"),h=e("./zlib/zstream"),u=function(e){this.options=s.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 h,this.strm.avail_out=0;var n=o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(c[n]);t.header&&o.deflateSetHeader(this.strm,t.header)};u.prototype.push=function(e,t){var n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,i.input="string"==typeof e?l.string2buf(e):e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new s.Buf8(a),i.next_out=0,i.avail_out=a),1!==(n=o.deflate(i,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;(0===i.avail_out||0===i.avail_in&&4===r)&&("string"===this.options.to?this.onData(l.buf2binstring(s.shrinkBuf(i.output,i.next_out))):this.onData(s.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4!==r||(n=o.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=u,n.deflate=r,n.deflateRaw=i,n.gzip=a},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";function r(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function i(e,t){return t=t||{},t.raw=!0,r(e,t)}var a=e("./zlib/inflate.js"),o=e("./utils/common"),s=e("./utils/strings"),l=e("./zlib/constants"),c=e("./zlib/messages"),h=e("./zlib/zstream"),u=e("./zlib/gzheader"),d=function(e){this.options=o.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 h,this.strm.avail_out=0;var n=a.inflateInit2(this.strm,t.windowBits);if(n!==l.Z_OK)throw new Error(c[n]);this.header=new u,a.inflateGetHeader(this.strm,this.header)};d.prototype.push=function(e,t){var n,r,i,c,h,u=this.strm,d=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?l.Z_FINISH:l.Z_NO_FLUSH,u.input="string"==typeof e?s.binstring2buf(e):e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new o.Buf8(d),u.next_out=0,u.avail_out=d),(n=a.inflate(u,l.Z_NO_FLUSH))!==l.Z_STREAM_END&&n!==l.Z_OK)return this.onEnd(n),this.ended=!0,!1;u.next_out&&(0===u.avail_out||n===l.Z_STREAM_END||0===u.avail_in&&r===l.Z_FINISH)&&("string"===this.options.to?(i=s.utf8border(u.output,u.next_out),c=u.next_out-i,h=s.buf2string(u.output,i),u.next_out=c,u.avail_out=d-c,c&&o.arraySet(u.output,u.output,i,c,0),this.onData(h)):this.onData(o.shrinkBuf(u.output,u.next_out)))}while(u.avail_in>0&&n!==l.Z_STREAM_END);return n===l.Z_STREAM_END&&(r=l.Z_FINISH),r!==l.Z_FINISH||(n=a.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l.Z_OK)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===l.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=r,n.inflateRaw=i,n.ungzip=r},{"./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)return void e.set(t.subarray(n,n+r),i);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";function r(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}var i=e("./common"),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new i.Buf8(256),l=0;l<256;l++)s[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;s[254]=s[254]=1,n.string2buf=function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)n=e.charCodeAt(a),55296==(64512&n)&&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=new i.Buf8(l),o=0,a=0;o<l;a++)n=e.charCodeAt(a),55296==(64512&n)&&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},n.buf2binstring=function(e){return r(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,a,o,l=t||e.length,c=new Array(2*l);for(i=0,n=0;n<l;)if((a=e[n++])<128)c[i++]=a;else if((o=s[a])>4)c[i++]=65533,n+=o-1;else{for(a&=2===o?31:3===o?15:7;o>1&&n<l;)a=a<<6|63&e[n++],o--;o>1?c[i++]=65533:a<65536?c[i++]=a:(a-=65536,c[i++]=55296|a>>10&1023,c[i++]=56320|1023&a)}return r(c,i)},n.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t,n){"use strict";function r(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){o=n>2e3?2e3:n,n-=o;do{i=i+t[r++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=r},{}],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";function r(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}var i=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=r},{}],32:[function(e,t,n){"use strict";function r(e,t){return e.msg=I[t],t}function i(e){return(e<<1)-(e>4?9:0)}function a(e){for(var t=e.length;--t>=0;)e[t]=0}function o(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(A.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 s(e,t){F._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,o(e.strm)}function l(e,t){e.pending_buf[e.pending++]=t}function c(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function h(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,A.arraySet(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=O(e.adler,t,i,n):2===e.state.wrap&&(e.adler=B(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function u(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-se?e.strstart-(e.w_size-se):0,c=e.window,h=e.w_mask,u=e.prev,d=e.strstart+oe,f=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+o]===p&&c[n+o-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<d);if(r=oe-(d-a),a=d-oe,r>o){if(e.match_start=t,o=r,r>=s)break;f=c[a+o-1],p=c[a+o]}}}while((t=u[t&h])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function d(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-se)){A.arraySet(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=o?r-o:0}while(--n);n=o,t=n;do{r=e.prev[--t],e.prev[t]=r>=o?r-o:0}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=h(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=ae)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+ae-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<ae)););}while(e.lookahead<se&&0!==e.strm.avail_in)}function f(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(d(e),0===e.lookahead&&t===T)return be;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,s(e,!1),0===e.strm.avail_out))return be;if(e.strstart-e.block_start>=e.w_size-se&&(s(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):(e.strstart>e.block_start&&(s(e,!1),e.strm.avail_out),be)}function p(e,t){for(var n,r;;){if(e.lookahead<se){if(d(e),e.lookahead<se&&t===T)return be;if(0===e.lookahead)break}if(n=0,e.lookahead>=ae&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-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-se&&(e.match_length=u(e,n)),e.match_length>=ae)if(r=F._tr_tally(e,e.strstart-e.match_start,e.match_length-ae),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ae){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-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=F._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(s(e,!1),0===e.strm.avail_out))return be}return e.insert=e.strstart<ae-1?e.strstart:ae-1,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?be:ge}function m(e,t){for(var n,r,i;;){if(e.lookahead<se){if(d(e),e.lookahead<se&&t===T)return be;if(0===e.lookahead)break}if(n=0,e.lookahead>=ae&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-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=ae-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-se&&(e.match_length=u(e,n),e.match_length<=5&&(e.strategy===V||e.match_length===ae&&e.strstart-e.match_start>4096)&&(e.match_length=ae-1)),e.prev_length>=ae&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ae,r=F._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ae),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-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=ae-1,e.strstart++,r&&(s(e,!1),0===e.strm.avail_out))return be}else if(e.match_available){if(r=F._tr_tally(e,0,e.window[e.strstart-1]),r&&s(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return be}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=F._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ae-1?e.strstart:ae-1,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?be:ge}function b(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=oe){if(d(e),e.lookahead<=oe&&t===T)return be;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ae&&e.strstart>0&&(i=e.strstart-1,(r=o[i])===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+oe;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=oe-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ae?(n=F._tr_tally(e,1,e.match_length-ae),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=F._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(s(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?be:ge}function g(e,t){for(var n;;){if(0===e.lookahead&&(d(e),0===e.lookahead)){if(t===T)return be;break}if(e.match_length=0,n=F._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(s(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?be:ge}function _(e){e.window_size=2*e.w_size,a(e.head),e.max_lazy_match=z[e.level].max_lazy,e.good_match=z[e.level].good_length,e.nice_match=z[e.level].nice_length,e.max_chain_length=z[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ae-1,e.match_available=0,e.ins_h=0}function y(){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=J,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 A.Buf16(2*re),this.dyn_dtree=new A.Buf16(2*(2*te+1)),this.bl_tree=new A.Buf16(2*(2*ne+1)),a(this.dyn_ltree),a(this.dyn_dtree),a(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new A.Buf16(ie+1),this.heap=new A.Buf16(2*ee+1),a(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new A.Buf16(2*ee+1),a(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}function w(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=G,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ce:pe,e.adler=2===t.wrap?0:1,t.last_flush=T,F._tr_init(t),L):r(e,U)}function v(e){var t=w(e);return t===L&&_(e.state),t}function E(e,t){return e&&e.state?2!==e.state.wrap?U:(e.state.gzhead=t,L):U}function x(e,t,n,i,a,o){if(!e)return U;var s=1;if(t===W&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>q||n!==J||i<8||i>15||t<0||t>9||o<0||o>Y)return r(e,U);8===i&&(i=9);var l=new y;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+ae-1)/ae),l.window=new A.Buf8(2*l.w_size),l.head=new A.Buf16(l.hash_size),l.prev=new A.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new A.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,v(e)}function k(e,t){return x(e,t,J,Q,$,X)}function C(e,t){var n,s,h,u;if(!e||!e.state||t>D||t<0)return e?r(e,U):U;if(s=e.state,!e.output||!e.input&&0!==e.avail_in||s.status===me&&t!==j)return r(e,0===e.avail_out?M:U);if(s.strm=e,n=s.last_flush,s.last_flush=t,s.status===ce)if(2===s.wrap)e.adler=0,l(s,31),l(s,139),l(s,8),s.gzhead?(l(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),l(s,255&s.gzhead.time),l(s,s.gzhead.time>>8&255),l(s,s.gzhead.time>>16&255),l(s,s.gzhead.time>>24&255),l(s,9===s.level?2:s.strategy>=H||s.level<2?4:0),l(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(l(s,255&s.gzhead.extra.length),l(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(e.adler=B(e.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=he):(l(s,0),l(s,0),l(s,0),l(s,0),l(s,0),l(s,9===s.level?2:s.strategy>=H||s.level<2?4:0),l(s,we),s.status=pe);else{var d=J+(s.w_bits-8<<4)<<8,f=-1;f=s.strategy>=H||s.level<2?0:s.level<6?1:6===s.level?2:3,d|=f<<6,0!==s.strstart&&(d|=le),d+=31-d%31,s.status=pe,c(s,d),0!==s.strstart&&(c(s,e.adler>>>16),c(s,65535&e.adler)),e.adler=1}if(s.status===he)if(s.gzhead.extra){for(h=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),o(e),h=s.pending,s.pending!==s.pending_buf_size));)l(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=ue)}else s.status=ue;if(s.status===ue)if(s.gzhead.name){h=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),o(e),h=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,l(s,u)}while(0!==u);s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),0===u&&(s.gzindex=0,s.status=de)}else s.status=de;if(s.status===de)if(s.gzhead.comment){h=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),o(e),h=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,l(s,u)}while(0!==u);s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),0===u&&(s.status=fe)}else s.status=fe;if(s.status===fe&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&o(e),s.pending+2<=s.pending_buf_size&&(l(s,255&e.adler),l(s,e.adler>>8&255),e.adler=0,s.status=pe)):s.status=pe),0!==s.pending){if(o(e),0===e.avail_out)return s.last_flush=-1,L}else if(0===e.avail_in&&i(t)<=i(n)&&t!==j)return r(e,M);if(s.status===me&&0!==e.avail_in)return r(e,M);if(0!==e.avail_in||0!==s.lookahead||t!==T&&s.status!==me){var p=s.strategy===H?g(s,t):s.strategy===K?b(s,t):z[s.level].func(s,t);if(p!==_e&&p!==ye||(s.status=me),p===be||p===_e)return 0===e.avail_out&&(s.last_flush=-1),L;if(p===ge&&(t===N?F._tr_align(s):t!==D&&(F._tr_stored_block(s,0,0,!1),t===R&&(a(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),o(e),0===e.avail_out))return s.last_flush=-1,L}return t!==j?L:s.wrap<=0?P:(2===s.wrap?(l(s,255&e.adler),l(s,e.adler>>8&255),l(s,e.adler>>16&255),l(s,e.adler>>24&255),l(s,255&e.total_in),l(s,e.total_in>>8&255),l(s,e.total_in>>16&255),l(s,e.total_in>>24&255)):(c(s,e.adler>>>16),c(s,65535&e.adler)),o(e),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?L:P)}function S(e){var t;return e&&e.state?(t=e.state.status)!==ce&&t!==he&&t!==ue&&t!==de&&t!==fe&&t!==pe&&t!==me?r(e,U):(e.state=null,t===pe?r(e,Z):L):U}var z,A=e("../utils/common"),F=e("./trees"),O=e("./adler32"),B=e("./crc32"),I=e("./messages"),T=0,N=1,R=3,j=4,D=5,L=0,P=1,U=-2,Z=-3,M=-5,W=-1,V=1,H=2,K=3,Y=4,X=0,G=2,J=8,q=9,Q=15,$=8,ee=286,te=30,ne=19,re=2*ee+1,ie=15,ae=3,oe=258,se=oe+ae+1,le=32,ce=42,he=69,ue=73,de=91,fe=103,pe=113,me=666,be=1,ge=2,_e=3,ye=4,we=3,ve=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};z=[new ve(0,0,0,0,f),new ve(4,4,8,4,p),new ve(4,5,16,8,p),new ve(4,6,32,32,p),new ve(4,4,16,16,m),new ve(8,16,32,32,m),new ve(8,16,128,128,m),new ve(8,32,128,256,m),new ve(32,128,258,1024,m),new ve(32,258,258,4096,m)],n.deflateInit=k,n.deflateInit2=x,n.deflateReset=v,n.deflateResetKeep=w,n.deflateSetHeader=E,n.deflate=C,n.deflateEnd=S,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";function r(){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}t.exports=r},{}],34:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,l,c,h,u,d,f,p,m,b,g,_,y,w,v,E,x,k,C,S;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),a=e.next_out,S=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,h=n.whave,u=n.wnext,d=n.window,f=n.hold,p=n.bits,m=n.lencode,b=n.distcode,g=(1<<n.lenbits)-1,_=(1<<n.distbits)-1;e:do{p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),y=m[f&g];t:for(;;){if(w=y>>>24,f>>>=w,p-=w,0===(w=y>>>16&255))S[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(f&(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,w&&(p<w&&(f+=C[r++]<<p,p+=8),v+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=C[r++]<<p,p+=8,f+=C[r++]<<p,p+=8),y=b[f&_];n:for(;;){if(w=y>>>24,f>>>=w,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(E=65535&y,w&=15,p<w&&(f+=C[r++]<<p,(p+=8)<w&&(f+=C[r++]<<p,p+=8)),(E+=f&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=w,p-=w,w=a-o,E>w){if((w=E-w)>h&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,k=d,0===u){if(x+=c-w,w<v){v-=w;do{S[a++]=d[x++]}while(--w);x=a-E,k=S}}else if(u<w){if(x+=c+u-w,(w-=u)<v){v-=w;do{S[a++]=d[x++]}while(--w);if(x=0,u<v){w=u,v-=w;do{S[a++]=d[x++]}while(--w);x=a-E,k=S}}}else if(x+=u-w,w<v){v-=w;do{S[a++]=d[x++]}while(--w);x=a-E,k=S}for(;v>2;)S[a++]=k[x++],S[a++]=k[x++],S[a++]=k[x++],v-=3;v&&(S[a++]=k[x++],v>1&&(S[a++]=k[x++]))}else{x=a-E;do{S[a++]=S[x++],S[a++]=S[x++],S[a++]=S[x++],v-=3}while(v>2);v&&(S[a++]=S[x++],v>1&&(S[a++]=S[x++]))}break}}break}}while(r<i&&a<s);v=p>>3,r-=v,p-=v<<3,f&=(1<<p)-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=f,n.bits=p}},{}],35:[function(e,t,n){"use strict";function r(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){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 g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(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=j,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new g.Buf32(pe),t.distcode=t.distdyn=new g.Buf32(me),t.sane=1,t.back=-1,A):B}function o(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,a(e)):B}function s(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)?B:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,o(e))):B}function l(e,t){var n,r;return e?(r=new i,e.state=r,r.window=null,n=s(e,t),n!==A&&(e.state=null),n):B}function c(e){return l(e,be)}function h(e){if(ge){var t;for(m=new g.Buf32(512),b=new g.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(v(x,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;v(k,e.lens,0,32,b,0,e.work,{bits:5}),ge=!1}e.lencode=m,e.lenbits=9,e.distcode=b,e.distbits=5}function u(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new g.Buf8(a.wsize)),r>=a.wsize?(g.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),g.arraySet(a.window,t,n-r,i,a.wnext),r-=i,r?(g.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function d(e,t){var n,i,a,o,s,l,c,d,f,p,m,b,pe,me,be,ge,_e,ye,we,ve,Ee,xe,ke,Ce,Se=0,ze=new g.Buf8(4),Ae=[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 B;n=e.state,n.mode===Y&&(n.mode=X),s=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,i=e.input,l=e.avail_in,d=n.hold,f=n.bits,p=l,m=c,xe=A;e:for(;;)switch(n.mode){case j:if(0===n.wrap){n.mode=X;break}for(;f<16;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(2&n.wrap&&35615===d){n.check=0,ze[0]=255&d,ze[1]=d>>>8&255,n.check=y(n.check,ze,2,0),d=0,f=0,n.mode=D;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=ue;break}if((15&d)!==R){e.msg="unknown compression method",n.mode=ue;break}if(d>>>=4,f-=4,Ee=8+(15&d),0===n.wbits)n.wbits=Ee;else if(Ee>n.wbits){e.msg="invalid window size",n.mode=ue;break}n.dmax=1<<Ee,e.adler=n.check=1,n.mode=512&d?H:Y,d=0,f=0;break;case D:for(;f<16;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(n.flags=d,(255&n.flags)!==R){e.msg="unknown compression method",n.mode=ue;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=ue;break}n.head&&(n.head.text=d>>8&1),512&n.flags&&(ze[0]=255&d,ze[1]=d>>>8&255,n.check=y(n.check,ze,2,0)),d=0,f=0,n.mode=L;case L:for(;f<32;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}n.head&&(n.head.time=d),512&n.flags&&(ze[0]=255&d,ze[1]=d>>>8&255,ze[2]=d>>>16&255,ze[3]=d>>>24&255,n.check=y(n.check,ze,4,0)),d=0,f=0,n.mode=P;case P:for(;f<16;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}n.head&&(n.head.xflags=255&d,n.head.os=d>>8),512&n.flags&&(ze[0]=255&d,ze[1]=d>>>8&255,n.check=y(n.check,ze,2,0)),d=0,f=0,n.mode=U;case U:if(1024&n.flags){for(;f<16;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}n.length=d,n.head&&(n.head.extra_len=d),512&n.flags&&(ze[0]=255&d,ze[1]=d>>>8&255,n.check=y(n.check,ze,2,0)),d=0,f=0}else n.head&&(n.head.extra=null);n.mode=Z;case Z:if(1024&n.flags&&(b=n.length,b>l&&(b=l),b&&(n.head&&(Ee=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),g.arraySet(n.head.extra,i,o,b,Ee)),512&n.flags&&(n.check=y(n.check,i,b,o)),l-=b,o+=b,n.length-=b),n.length))break e;n.length=0,n.mode=M;case M:if(2048&n.flags){if(0===l)break e;b=0;do{Ee=i[o+b++],n.head&&Ee&&n.length<65536&&(n.head.name+=String.fromCharCode(Ee))}while(Ee&&b<l);if(512&n.flags&&(n.check=y(n.check,i,b,o)),l-=b,o+=b,Ee)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=W;case W:if(4096&n.flags){if(0===l)break e;b=0;do{Ee=i[o+b++],n.head&&Ee&&n.length<65536&&(n.head.comment+=String.fromCharCode(Ee))}while(Ee&&b<l);if(512&n.flags&&(n.check=y(n.check,i,b,o)),l-=b,o+=b,Ee)break e}else n.head&&(n.head.comment=null);n.mode=V;case V:if(512&n.flags){for(;f<16;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(d!==(65535&n.check)){e.msg="header crc mismatch",n.mode=ue;break}d=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Y;break;case H:for(;f<32;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}e.adler=n.check=r(d),d=0,f=0,n.mode=K;case K:if(0===n.havedict)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=d,n.bits=f,O;e.adler=n.check=1,n.mode=Y;case Y:if(t===S||t===z)break e;case X:if(n.last){d>>>=7&f,f-=7&f,n.mode=le;break}for(;f<3;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}switch(n.last=1&d,d>>>=1,f-=1,3&d){case 0:n.mode=G;break;case 1:if(h(n),n.mode=te,t===z){d>>>=2,f-=2;break e}break;case 2:n.mode=Q;break;case 3:e.msg="invalid block type",n.mode=ue}d>>>=2,f-=2;break;case G:for(d>>>=7&f,f-=7&f;f<32;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if((65535&d)!=(d>>>16^65535)){e.msg="invalid stored block lengths",n.mode=ue;break}if(n.length=65535&d,d=0,f=0,n.mode=J,t===z)break e;case J:n.mode=q;case q:if(b=n.length){if(b>l&&(b=l),b>c&&(b=c),0===b)break e;g.arraySet(a,i,o,b,s),l-=b,o+=b,c-=b,s+=b,n.length-=b;break}n.mode=Y;break;case Q:for(;f<14;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(n.nlen=257+(31&d),d>>>=5,f-=5,n.ndist=1+(31&d),d>>>=5,f-=5,n.ncode=4+(15&d),d>>>=4,f-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ue;break}n.have=0,n.mode=$;case $:for(;n.have<n.ncode;){for(;f<3;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}n.lens[Ae[n.have++]]=7&d,d>>>=3,f-=3}for(;n.have<19;)n.lens[Ae[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,ke={bits:n.lenbits},xe=v(E,n.lens,0,19,n.lencode,0,n.work,ke),n.lenbits=ke.bits,xe){e.msg="invalid code lengths set",n.mode=ue;break}n.have=0,n.mode=ee;case ee:for(;n.have<n.nlen+n.ndist;){for(;Se=n.lencode[d&(1<<n.lenbits)-1],be=Se>>>24,ge=Se>>>16&255,_e=65535&Se,!(be<=f);){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(_e<16)d>>>=be,f-=be,n.lens[n.have++]=_e;else{if(16===_e){for(Ce=be+2;f<Ce;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(d>>>=be,f-=be,0===n.have){e.msg="invalid bit length repeat",n.mode=ue;break}Ee=n.lens[n.have-1],b=3+(3&d),d>>>=2,f-=2}else if(17===_e){for(Ce=be+3;f<Ce;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}d>>>=be,f-=be,Ee=0,b=3+(7&d),d>>>=3,f-=3}else{for(Ce=be+7;f<Ce;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}d>>>=be,f-=be,Ee=0,b=11+(127&d),d>>>=7,f-=7}if(n.have+b>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ue;break}for(;b--;)n.lens[n.have++]=Ee}}if(n.mode===ue)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=ue;break}if(n.lenbits=9,ke={bits:n.lenbits},xe=v(x,n.lens,0,n.nlen,n.lencode,0,n.work,ke),n.lenbits=ke.bits,xe){e.msg="invalid literal/lengths set",n.mode=ue;break}if(n.distbits=6,n.distcode=n.distdyn,ke={bits:n.distbits},xe=v(k,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,ke),n.distbits=ke.bits,xe){e.msg="invalid distances set",n.mode=ue;break}if(n.mode=te,t===z)break e;case te:n.mode=ne;case ne:if(l>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=d,n.bits=f,w(e,m),s=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,i=e.input,l=e.avail_in,d=n.hold,f=n.bits,n.mode===Y&&(n.back=-1);break}for(n.back=0;Se=n.lencode[d&(1<<n.lenbits)-1],be=Se>>>24,ge=Se>>>16&255,_e=65535&Se,!(be<=f);){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(ge&&0==(240&ge)){for(ye=be,we=ge,ve=_e;Se=n.lencode[ve+((d&(1<<ye+we)-1)>>ye)],be=Se>>>24,ge=Se>>>16&255,_e=65535&Se,!(ye+be<=f);){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}d>>>=ye,f-=ye,n.back+=ye}if(d>>>=be,f-=be,n.back+=be,n.length=_e,0===ge){n.mode=se;break}if(32&ge){n.back=-1,n.mode=Y;break}if(64&ge){e.msg="invalid literal/length code",n.mode=ue;break}n.extra=15&ge,n.mode=re;case re:if(n.extra){for(Ce=n.extra;f<Ce;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}n.length+=d&(1<<n.extra)-1,d>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ie;case ie:for(;Se=n.distcode[d&(1<<n.distbits)-1],be=Se>>>24,ge=Se>>>16&255,_e=65535&Se,!(be<=f);){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(0==(240&ge)){for(ye=be,we=ge,ve=_e;Se=n.distcode[ve+((d&(1<<ye+we)-1)>>ye)],be=Se>>>24,ge=Se>>>16&255,_e=65535&Se,!(ye+be<=f);){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}d>>>=ye,f-=ye,n.back+=ye}if(d>>>=be,f-=be,n.back+=be,64&ge){e.msg="invalid distance code",n.mode=ue;break}n.offset=_e,n.extra=15&ge,n.mode=ae;case ae:if(n.extra){for(Ce=n.extra;f<Ce;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}n.offset+=d&(1<<n.extra)-1,d>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ue;break}n.mode=oe;case oe:if(0===c)break e;if(b=m-c,n.offset>b){if((b=n.offset-b)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ue;break}b>n.wnext?(b-=n.wnext,pe=n.wsize-b):pe=n.wnext-b,b>n.length&&(b=n.length),me=n.window}else me=a,pe=s-n.offset,b=n.length;b>c&&(b=c),c-=b,n.length-=b;do{a[s++]=me[pe++]}while(--b);0===n.length&&(n.mode=ne);break;case se:if(0===c)break e;a[s++]=n.length,c--,n.mode=ne;break;case le:if(n.wrap){for(;f<32;){if(0===l)break e;l--,d|=i[o++]<<f,f+=8}if(m-=c,e.total_out+=m,n.total+=m,m&&(e.adler=n.check=n.flags?y(n.check,a,m,s-m):_(n.check,a,m,s-m)),m=c,(n.flags?d:r(d))!==n.check){e.msg="incorrect data check",n.mode=ue;break}d=0,f=0}n.mode=ce;case ce:if(n.wrap&&n.flags){for(;f<32;){if(0===l)break e;l--,d+=i[o++]<<f,f+=8}if(d!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=ue;break}d=0,f=0}n.mode=he;case he:xe=F;break e;case ue:xe=I;break e;case de:return T;case fe:default:return B}return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=d,n.bits=f,(n.wsize||m!==e.avail_out&&n.mode<ue&&(n.mode<le||t!==C))&&u(e,e.output,e.next_out,m-e.avail_out)?(n.mode=de,T):(p-=e.avail_in,m-=e.avail_out,e.total_in+=p,e.total_out+=m,n.total+=m,n.wrap&&m&&(e.adler=n.check=n.flags?y(n.check,a,m,e.next_out-m):_(n.check,a,m,e.next_out-m)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Y?128:0)+(n.mode===te||n.mode===J?256:0),(0===p&&0===m||t===C)&&xe===A&&(xe=N),xe)}function f(e){if(!e||!e.state)return B;var t=e.state;return t.window&&(t.window=null),e.state=null,A}function p(e,t){var n;return e&&e.state?(n=e.state,0==(2&n.wrap)?B:(n.head=t,t.done=!1,A)):B}var m,b,g=e("../utils/common"),_=e("./adler32"),y=e("./crc32"),w=e("./inffast"),v=e("./inftrees"),E=0,x=1,k=2,C=4,S=5,z=6,A=0,F=1,O=2,B=-2,I=-3,T=-4,N=-5,R=8,j=1,D=2,L=3,P=4,U=5,Z=6,M=7,W=8,V=9,H=10,K=11,Y=12,X=13,G=14,J=15,q=16,Q=17,$=18,ee=19,te=20,ne=21,re=22,ie=23,ae=24,oe=25,se=26,le=27,ce=28,he=29,ue=30,de=31,fe=32,pe=852,me=592,be=15,ge=!0;n.inflateReset=o,n.inflateReset2=s,n.inflateResetKeep=a,n.inflateInit=c,n.inflateInit2=l,n.inflate=d,n.inflateEnd=f,n.inflateGetHeader=p,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,u,d){var f,p,m,b,g,_,y,w,v,E=d.bits,x=0,k=0,C=0,S=0,z=0,A=0,F=0,O=0,B=0,I=0,T=null,N=0,R=new r.Buf16(16),j=new r.Buf16(16),D=null,L=0;for(x=0;x<=15;x++)R[x]=0;for(k=0;k<l;k++)R[t[n+k]]++;for(z=E,S=15;S>=1&&0===R[S];S--);if(z>S&&(z=S),0===S)return c[h++]=20971520,c[h++]=20971520,d.bits=1,0;for(C=1;C<S&&0===R[C];C++);for(z<C&&(z=C),O=1,x=1;x<=15;x++)if(O<<=1,(O-=R[x])<0)return-1;if(O>0&&(0===e||1!==S))return-1;for(j[1]=0,x=1;x<15;x++)j[x+1]=j[x]+R[x];for(k=0;k<l;k++)0!==t[n+k]&&(u[j[t[n+k]]++]=k);if(0===e?(T=D=u,_=19):1===e?(T=i,N-=257,D=a,L-=257,_=256):(T=o,D=s,_=-1),I=0,k=0,x=C,g=h,A=z,F=0,m=-1,B=1<<z,b=B-1,1===e&&B>852||2===e&&B>592)return 1;for(var P=0;;){P++,y=x-F,u[k]<_?(w=0,v=u[k]):u[k]>_?(w=D[L+u[k]],v=T[N+u[k]]):(w=96,v=0),f=1<<x-F,p=1<<A,C=p;do{p-=f,c[g+(I>>F)+p]=y<<24|w<<16|v|0}while(0!==p);for(f=1<<x-1;I&f;)f>>=1;if(0!==f?(I&=f-1,I+=f):I=0,k++,0==--R[x]){if(x===S)break;x=t[n+u[k]]}if(x>z&&(I&b)!==m){for(0===F&&(F=z),g+=C,A=x-F,O=1<<A;A+F<S&&!((O-=R[A+F])<=0);)A++,O<<=1;if(B+=1<<A,1===e&&B>852||2===e&&B>592)return 1;m=I&b,c[m]=z<<24|A<<16|g-h|0}}return 0!==I&&(c[g+I]=x-F<<24|64<<16|0),d.bits=z,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";function r(e){for(var t=e.length;--t>=0;)e[t]=0}function i(e){return e<256?re[e]:re[256+(e>>>7)]}function a(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function o(e,t,n){e.bi_valid>H-n?(e.bi_buf|=t<<e.bi_valid&65535,a(e,e.bi_buf),e.bi_buf=t>>H-e.bi_valid,e.bi_valid+=n-H):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function s(e,t,n){o(e,n[2*t],n[2*t+1])}function l(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function c(e){16===e.bi_valid?(a(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)}function h(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,h=t.stat_desc.static_tree,u=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=V;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<W;n++)r=e.heap[n],a=l[2*l[2*r+1]+1]+1,a>p&&(a=p,m++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=f&&(o=d[r-f]),s=l[2*r],e.opt_len+=s*(a+o),u&&(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--)}}function u(e,t,n){var r,i,a=new Array(V+1),o=0;for(r=1;r<=V;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]=l(a[s]++,s))}}function d(){var e,t,n,r,i,a=new Array(V+1);for(n=0,r=0;r<L-1;r++)for(ae[r]=n,e=0;e<1<<q[r];e++)ie[n++]=r;for(ie[n-1]=r,i=0,r=0;r<16;r++)for(oe[r]=i,e=0;e<1<<Q[r];e++)re[i++]=r;for(i>>=7;r<Z;r++)for(oe[r]=i<<7,e=0;e<1<<Q[r]-7;e++)re[256+i++]=r;for(t=0;t<=V;t++)a[t]=0;for(e=0;e<=143;)te[2*e+1]=8,e++,a[8]++;for(;e<=255;)te[2*e+1]=9,e++,a[9]++;for(;e<=279;)te[2*e+1]=7,e++,a[7]++;for(;e<=287;)te[2*e+1]=8,e++,a[8]++;for(u(te,U+1,a),e=0;e<Z;e++)ne[2*e+1]=5,ne[2*e]=l(e,5);se=new he(te,q,P+1,U,V),le=new he(ne,Q,0,Z,V),ce=new he(new Array(0),$,0,M,K)}function f(e){var t;for(t=0;t<U;t++)e.dyn_ltree[2*t]=0;for(t=0;t<Z;t++)e.dyn_dtree[2*t]=0;for(t=0;t<M;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*Y]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function p(e){e.bi_valid>8?a(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 m(e,t,n,r){p(e),r&&(a(e,n),a(e,~n)),O.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function b(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 g(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&b(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!b(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function _(e,t,n){var r,a,l,c,h=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*h]<<8|e.pending_buf[e.d_buf+2*h+1],a=e.pending_buf[e.l_buf+h],h++,0===r?s(e,a,t):(l=ie[a],s(e,l+P+1,t),c=q[l],0!==c&&(a-=ae[l],o(e,a,c)),r--,l=i(r),s(e,l,n),0!==(c=Q[l])&&(r-=oe[l],o(e,r,c)))}while(h<e.last_lit);s(e,Y,t)}function y(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=W,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;)i=e.heap[++e.heap_len]=c<2?++c:0,a[2*i]=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--)g(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],g(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++,g(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],h(e,t),u(a,c,e.bl_count)}function w(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*X]++):s<=10?e.bl_tree[2*G]++:e.bl_tree[2*J]++,s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4))}function v(e,t,n){var r,i,a=-1,l=t[1],c=0,h=7,u=4;for(0===l&&(h=138,u=3),r=0;r<=n;r++)if(i=l,l=t[2*(r+1)+1],!(++c<h&&i===l)){if(c<u)do{s(e,i,e.bl_tree)}while(0!=--c);else 0!==i?(i!==a&&(s(e,i,e.bl_tree),c--),s(e,X,e.bl_tree),o(e,c-3,2)):c<=10?(s(e,G,e.bl_tree),o(e,c-3,3)):(s(e,J,e.bl_tree),o(e,c-11,7));c=0,a=i,0===l?(h=138,u=3):i===l?(h=6,u=3):(h=7,u=4)}}function E(e){var t;for(w(e,e.dyn_ltree,e.l_desc.max_code),w(e,e.dyn_dtree,e.d_desc.max_code),y(e,e.bl_desc),t=M-1;t>=3&&0===e.bl_tree[2*ee[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function x(e,t,n,r){var i;for(o(e,t-257,5),o(e,n-1,5),o(e,r-4,4),i=0;i<r;i++)o(e,e.bl_tree[2*ee[i]+1],3);v(e,e.dyn_ltree,t-1),v(e,e.dyn_dtree,n-1)}function k(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return I;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return T;for(t=32;t<P;t++)if(0!==e.dyn_ltree[2*t])return T;return I}function C(e){de||(d(),de=!0),e.l_desc=new ue(e.dyn_ltree,se),e.d_desc=new ue(e.dyn_dtree,le),e.bl_desc=new ue(e.bl_tree,ce),e.bi_buf=0,e.bi_valid=0,f(e)}function S(e,t,n,r){o(e,(R<<1)+(r?1:0),3),m(e,t,n,!0)}function z(e){o(e,j<<1,3),s(e,Y,te),c(e)}function A(e,t,n,r){var i,a,s=0;e.level>0?(e.strm.data_type===N&&(e.strm.data_type=k(e)),y(e,e.l_desc),y(e,e.d_desc),s=E(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?S(e,t,n,r):e.strategy===B||a===i?(o(e,(j<<1)+(r?1:0),3),_(e,te,ne)):(o(e,(D<<1)+(r?1:0),3),x(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),_(e,e.dyn_ltree,e.dyn_dtree)),f(e),r&&p(e)}function F(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*(ie[n]+P+1)]++,e.dyn_dtree[2*i(t)]++),e.last_lit===e.lit_bufsize-1}var O=e("../utils/common"),B=4,I=0,T=1,N=2,R=0,j=1,D=2,L=29,P=256,U=P+1+L,Z=30,M=19,W=2*U+1,V=15,H=16,K=7,Y=256,X=16,G=17,J=18,q=[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],Q=[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],$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=new Array(2*(U+2));r(te);var ne=new Array(2*Z);r(ne);var re=new Array(512);r(re);var ie=new Array(256);r(ie);var ae=new Array(L);r(ae);var oe=new Array(Z);r(oe);var se,le,ce,he=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},ue=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t},de=!1;n._tr_init=C,n._tr_stored_block=S,n._tr_flush_block=A,n._tr_tally=F,n._tr_align=z},{"../utils/common":27}],39:[function(e,t,n){"use strict";function r(){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}t.exports=r},{}]},{},[9])(9)})}).call(t,n("EuP9").Buffer)},cilB:function(e,t){},co4O:function(e,t,n){"use strict";n.d(t,"f",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return c}),n.d(t,"e",function(){return h}),n.d(t,"b",function(){return u}),n.d(t,"g",function(){return d}),n.d(t,"a",function(){return f}),n.d(t,"c",function(){return m});var r=n("Ynx1"),i=(n.n(r),"%02hhx"),a=i+i+" ",o=[].concat(Array.from({length:16}).map(function(e,t){return a.repeat(t>>1)+(t%2?i:" ")+" "+" ".repeat(7-(t>>1))+"|"+"%c".repeat(t)+" ".repeat(16-t)+"|\n"}),[a.repeat(8)+"|"+"%c".repeat(16)+"|\n"]),s=function(e){var t=e[0],n=e[1];return n&&n.length?o[n.length]?Object(r.vsprintf)("%04x: "+o[n.length],[t].concat(n,n.map(function(e){return String.fromCharCode(e).replace(/[^\x20-\x7E]/g,".")}))):"wtf":""},l=function(e){return e.replace(/[\u0000-\u001f]/,function(e){return Object(r.sprintf)("\\u%04X",e.charCodeAt(0))})},c=function(e){return e.replace(/\\u(\d{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})},h=function(e){return Object(r.sprintf)("%02u-%02u-%02u %02u:%02u",e.getUTCMonth()+1,e.getUTCDate(),e.getUTCFullYear()%100,e.getUTCHours(),e.getUTCMinutes())},u=function(e){for(var t=[],n=new Uint8Array(e),r=0;r<n.length;++r)t[r]=n[r];return t},d=function(e){return e.split("").map(function(e){return e.charCodeAt(0)})},f=function(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t.push(String.fromCharCode(e[n]));return t.join("")},p=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},m=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=p(t-18432):(t-=14336,r.push(String.fromCharCode(p(63&t))),t=p(t>>6&63))),r.push(String.fromCharCode(t));return r.join("")}},eDYK:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("iHqW")),d=(n.n(u),n("Ynx1")),f=(n.n(d),n("V5xO")),p=n("co4O"),m=s.a.createElement("b",null,"Archive Name:"),b=s.a.createElement("div",{className:"minor"}," "),g=s.a.createElement("div",{className:"minor"}," "),_=s.a.createElement(h.Icon,{name:"floppy-o",fixedWidth:!0}),y=s.a.createElement(h.Icon,{name:"i-cursor",fixedWidth:!0}),w=s.a.createElement(h.Icon,{name:"plus",fixedWidth:!0}),v=s.a.createElement(h.Icon,{name:"close",fixedWidth:!0}),E=s.a.createElement("div",{className:"minor"},"Entries can be renamed or deleted from the file view."),x=s.a.createElement("div",{className:"minor"},"Entries can be added by dragging and dropping files from your computer."),k=s.a.createElement("br",null),C=s.a.createElement("summary",null,s.a.createElement("b",null,"Metadata")," (click to show)"),S=s.a.createElement("b",null,"Root Name:"),z=s.a.createElement("br",null),A=s.a.createElement("b",null,"CLSID:"),F=s.a.createElement("br",null),O=s.a.createElement("br",null),B=s.a.createElement("br",null),I=s.a.createElement("b",null,"File Manifest"),T=function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){return f.a.isEmpty()?s.a.createElement(c.c,{to:"/"}):s.a.createElement("div",{className:"conpainer"},s.a.createElement("div",null,m," ",f.a.fname),b,g,s.a.createElement("div",{className:"flexrow"},s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.exportFile},_," Download")),s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.renameFile},y," Rename")),s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.addFile},w," Add File")),s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.erase},v," Close"))),E,x,k,f.a.isCFB()&&s.a.createElement("details",null,C,S," ",f.a.getRootName(),z,A," ",f.a.getCLSID(),F,O),B,I,s.a.createElement("pre",null," Length Date Time Name\n"," -------- ---- ---- ----\n",f.a.getFileList().map(function(e){var t=e[0],n=e[1],r=e[2];return s.a.createElement("span",{key:r.toString()},Object(d.sprintf)("%9lu %s ",f.a.getSizeByEntry(n),Object(p.e)(f.a.getFileTime(r))),t.replace(/.*\//g,"").charCodeAt(0)>=14336&&t.replace(/.*\//g,"").charCodeAt(0)<=18496?s.a.createElement(c.b,{to:"/view/"+r},Object(p.d)(t)+" ("+Object(p.c)(t.replace(/.*\//g,""))+")"):s.a.createElement(c.b,{to:"/view/"+r},Object(p.d)(t)),"\n")})))},t}(o.Component);t.a=Object(l.a)(T)},eybw:function(e,t){},iHqW:function(e,t){},lVK7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("cilB"),i=(n.n(r),n("GiK3")),a=n.n(i),o=n("O27J"),s=(n.n(o),n("pnOm"));Object(o.render)(a.a.createElement(s.a,null),document.querySelector("#app"))},mihT:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("rudr")),d=(n.n(u),n("V5xO")),f=n("co4O"),p=n("MPy6"),m=s.a.createElement("div",{className:"tree"}," "),b=s.a.createElement("br",null),g=s.a.createElement(h.Icon,{name:"list",fixedWidth:!0}),_=s.a.createElement("b",null,"Show Manifest"),y=s.a.createElement("b",null,"Archive Operations"),w=s.a.createElement("br",null),v=s.a.createElement(h.Icon,{name:"floppy-o",fixedWidth:!0}),E=s.a.createElement("b",null,"Download Archive"),x=s.a.createElement(h.Icon,{name:"i-cursor",fixedWidth:!0}),k=s.a.createElement("b",null,"Rename Archive"),C=s.a.createElement(h.Icon,{name:"plus",fixedWidth:!0}),S=s.a.createElement("b",null,"Add file to Archive"),z=s.a.createElement("li",null,s.a.createElement("b",null,"(or drag and drop a file here)")),A=s.a.createElement(h.Icon,{name:"close",fixedWidth:!0}),F=s.a.createElement("b",null,"Close Archive"),O=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.exportFile=a.exportFile.bind(a),a.renameFile=a.renameFile.bind(a),a.erase=a.erase.bind(a),a}return a(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 d.a.isEmpty()?m:s.a.createElement("div",{className:"tree"},s.a.createElement("b",null,"Files in "+d.a.fname),b,s.a.createElement("ul",null,s.a.createElement("li",null,s.a.createElement(c.b,{to:"/"},g," ",_)),d.a.getFileList().map(function(t){var n=t[0],r=t[2];return s.a.createElement("li",{key:r.toString()},s.a.createElement(c.b,{to:"/view/"+r},s.a.createElement(h.Icon,{name:r==e.props.idx?"file":"file-text-o",fixedWidth:!0})," ",n.replace(/[^/]*\//,"").charCodeAt(0)<14336||n.replace(/[^/]*\//,"").charCodeAt(0)>18496?Object(f.d)((d.a.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")):s.a.createElement(p.a,{title:"MSI: "+Object(f.c)(n.replace(/[^/]*\//,"")),position:"bottom"},Object(f.d)((d.a.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")))))})),y,w,s.a.createElement("ul",null,s.a.createElement("li",null,s.a.createElement("a",{onClick:this.exportFile},v," ",E)),s.a.createElement("li",null,s.a.createElement("a",{onClick:this.renameFile},x," ",k)),s.a.createElement("li",null,s.a.createElement("a",{onClick:this.props.addFile},C," ",S)),z,s.a.createElement("li",null,s.a.createElement("a",{onClick:this.erase},A," ",F))))},t}(o.Component);t.a=Object(l.a)(O)},mjy5:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("AdvP")),d=n.n(u),f=n("LaZR"),p=(n.n(f),n("0Efu")),m=(n.n(p),n("iHqW")),b=(n.n(m),n("Ynx1")),g=(n.n(b),n("Onw6")),_=(n.n(g),n("V5xO")),y=n("W7d1"),w=n("co4O"),v=n("VyOR"),E=n("GtGB"),x=s.a.createElement("b",null,"File Name:"),k=s.a.createElement("div",{className:"minor"}," "),C=s.a.createElement(h.Icon,{name:"download",fixedWidth:!0}),S=s.a.createElement(h.Icon,{name:"chain-broken",fixedWidth:!0}),z=s.a.createElement(h.Icon,{name:"i-cursor",fixedWidth:!0}),A=s.a.createElement("br",null),F=s.a.createElement("div",{className:"minor"},"You can also drag and drop a file."),O=s.a.createElement("br",null),B=s.a.createElement("summary",null,s.a.createElement("b",null,"Entry Metadata")," (click to show)"),I=s.a.createElement("b",null,"Full Path:"),T=s.a.createElement("br",null),N=s.a.createElement("b",null,"Size:"),R=s.a.createElement("br",null),j=s.a.createElement("b",null,"CRC32:"),D=s.a.createElement("br",null),L=s.a.createElement("br",null),P=s.a.createElement(p,{name:"line-scale-pulse-out",fadeIn:"none"}),U=s.a.createElement("pre",null,"(file is empty)"),Z=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.state={loading:!0,FN:"",_size:0,_crc32:"",show_text:!1,indexData:[]},["export","delete","rename","handle","stload","common"].forEach(function(e){a[e]=a[e].bind(a)}),a}return a(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(){_.a.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=_.a.getFileNameById(e.idx),r=_.a.getFileEntryById(e.idx);if(!n||!r||_.a.isCFB()&&2!=r.type)return t.setState({loading:!1});var i=Object(w.d)(r.name),a=_.a.getContentByEntry(r),o=_.a.getSizeByEntry(r),s=Object(b.sprintf)("%0.8X",Object(g.buf)(a)),l="text"==e.mode,c=l?_.a.getTextByEntry(r):"",h=c&&("<?xml "==c.slice(0,6)||c.slice(0,100).match(/^<\w*(:\w+)?[\s/>]/)),u=e.mode||"text";if("full"==u&&(u="text"),!e.mode||"full"==e.mode){var d=_.a.getContentSliceByEntry(r,0,16);255==d[0]&&216==d[1]&&255==d[2]&&(u="imag")}var f="imag"==t.props.mode,p=f?"data:image/jpeg;base64,"+btoa(_.a.getTextByEntry(r)):"",m=t.props&&t.props.mode?_.a.getSizeByEntry(r):Math.min(_.a.getSizeByEntry(r),v.c),y=Array.from({length:m+15>>4}).map(function(e,t){return 16*t}),E=c||p?[]:y.map(function(e){return Object(w.f)([e,_.a.getContentSliceByEntry(r,e,e+16)])});t.setState({loading:!1,FN:i,_size:o,_crc32:s,show_text:l,T:c,doxml:h,show_link:u,show_imag:f,I:p,indices:y,indexData:E}),t.forceUpdate()},0)},t.prototype.render=function(){var e=_.a.getFileNameById(this.props.idx),t=_.a.getFileEntryById(this.props.idx);if(!e||!t||_.a.isCFB()&&2!=t.type)return s.a.createElement(c.c,{to:"/"});var n=Object(w.d)(e),r=this.state,i=r.FN,a=r._size,o=r._crc32,l=r.show_text,h=r.T,u=r.doxml,p=r.show_link,m=r.show_imag,b=r.I,g=r.indices,Z=r.indexData,M=a>v.c&&!this.props.mode,W={text:"Text",imag:"Image"}[p];return s.a.createElement("div",{className:"conpainer"},s.a.createElement("div",null,x," ",i," ",i.charCodeAt(0)>=14336&&i.charCodeAt(0)<=18496&&"MSI Name: "+Object(w.c)(i)),s.a.createElement("div",{className:"minor"},i!=t.name?'File name has non-display characters, which are rendered as "\\u" followed by character code':" "),k,s.a.createElement("div",{className:"flexrow"},s.a.createElement("div",{className:"col-xs-4"},s.a.createElement("a",{onClick:this.export},C," Export Entry")),s.a.createElement("div",{className:"col-xs-4"},s.a.createElement("a",{onClick:this.delete},S," Delete Entry")),s.a.createElement("div",{className:"col-xs-4"},s.a.createElement("a",{onClick:this.rename},z," Rename Entry"))),A,s.a.createElement(y.a,{handleFile:this.handle,title:"Replace file contents"}),F,O,s.a.createElement("details",null,B,I," ",n,T,N," ",a," bytes",R,j," ",o,D),L,s.a.createElement("b",null,M?"Showing First "+v.c+" Bytes":"Showing File Contents",M&&s.a.createElement(c.b,{to:"/view/"+this.props.idx+"/full"}," (Full Contents) "),p&&p!=this.props.mode&&s.a.createElement(c.b,{to:"/view/"+this.props.idx+"/"+p,onClick:this.stload}," (View as ",W,") ")),this.state.loading?P:l?s.a.createElement(d.a,{style:f.arduinoLight,customStyle:{width:"calc(100vw - "+(this.props.viz?300:50)+"px)"}},u?Object(E.a)(h):h):m?s.a.createElement("div",null,s.a.createElement("img",{src:b})):g.length?s.a.createElement("pre",null,Z):U)},t}(o.PureComponent);t.a=Object(l.a)(Z)},pnOm:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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)}var o=n("GiK3"),s=n.n(o),l=n("F8kA"),c=n("3lb1"),h=n("K9jv"),u=s.a.createElement(l.d,{path:"/view/:idx/:mode",component:c.a}),d=s.a.createElement(l.d,{path:"/view/:idx",component:c.a}),f=s.a.createElement(l.d,{exact:!0,path:"/",component:c.a}),p=s.a.createElement(l.d,{exact:!0,path:"/help",component:h.a}),m=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return s.a.createElement(l.a,{basename:"/cfb-editor"},s.a.createElement(l.e,null,u,d,f,p,s.a.createElement(l.d,{render:function(){return s.a.createElement(l.c,{to:"/"})}})))},t}(o.Component);t.a=m},"r/a0":function(e,t){},rudr:function(e,t){},xwm3:function(e,t){},ytRd: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'}},[0]);
|
||
//# sourceMappingURL=app.8297993e.js.map
|