>>=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;t0?(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=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&&("]/)),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\n\tShow Animation
\n\n \n\n
\n
\n\n**Creating a new file**\n\nClick on the relevant links from the main screen.\n\n\n\tShow Animation
\n\n \n\n
\n
\n\n**Closing a file to start from scratch**\n\nIf a file is open, click on the Close archive\nlinks to close the file and go back to the initial view.\n\n\n\tShow Animation
\n\n \n\n
\n
\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 Download Archive links\n\n\n\tShow Animation
\n\n \n\n
\n
\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 Export Entry\nlink to download the viewed file.\n\n\n\tShow Animation
\n\n \n\n
\n
\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 Rename archive link in the\nsidebar or the archive view.\n\n\n\tShow Animation
\n\n \n\n
\n
\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 Rename link in\nthe file view to rename.\n\n\n\tShow Animation
\n\n \n\n
\n
\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 Rename link\nin the file view to rename.\n\n\n\tShow Animation
\n\n \n\n
\n
\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\n\tShow Animation
\n\n \n\n
\n
\n\n**Add a file to the archive**\n\nClick on the 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\n\tShow Animation
\n\n \n\n
\n
\n\n[(C) 2017-present SheetJS LLC](http://sheetjs.com)\n'}},[0]);
//# sourceMappingURL=app.8297993e.js.map