/**
 * CyberChef - The Cyber Swiss Army Knife
 *
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 *
 *   Copyright 2016 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */!function(A){var I={};function g(e){if(I[e])return I[e].exports;var t=I[e]={i:e,l:!1,exports:{}};return A[e].call(t.exports,t,t.exports,g),t.l=!0,t.exports}g.m=A,g.c=I,g.d=function(A,I,e){g.o(A,I)||Object.defineProperty(A,I,{enumerable:!0,get:e})},g.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},g.t=function(A,I){if(1&I&&(A=g(A)),8&I)return A;if(4&I&&"object"==typeof A&&A&&A.__esModule)return A;var e=Object.create(null);if(g.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:A}),2&I&&"string"!=typeof A)for(var t in A)g.d(e,t,function(I){return A[I]}.bind(null,t));return e},g.n=function(A){var I=A&&A.__esModule?function(){return A.default}:function(){return A};return g.d(I,"a",I),I},g.o=function(A,I){return Object.prototype.hasOwnProperty.call(A,I)},g.p="",g(g.s=1474)}({0:function(A,I,g){"use strict";(function(A,e,t){g.d(I,"c",(function(){return l})),g.d(I,"d",(function(){return F})),g.d(I,"e",(function(){return D})),g.d(I,"a",(function(){return S}));var i=g(8),r=g.n(i),C=g(11),n=g.n(C),o=g(1),B=g.n(o),a=g(2),E=g.n(a),Q=g(24),s=g.n(Q),h=g(16),c=g(20),u=g(30),f=g(29),y=function(){function I(){B()(this,I)}var g;return E()(I,null,[{key:"chr",value:function(A){if(A>65535){A-=65536;var I=String.fromCharCode(A>>>10&1023|55296);return A=56320|1023&A,I+String.fromCharCode(A)}return String.fromCharCode(A)}},{key:"ord",value:function(A){if(2===A.length){var I=A.charCodeAt(0),g=A.charCodeAt(1);if(I>=55296&&I<56320&&g>=56320&&g<57344)return 1024*(I-55296)+g-56320+65536}return A.charCodeAt(0)}},{key:"padBytesRight",value:function(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,e=new Array(I);return e.fill(g),[...A].forEach((function(A,I){e[I]=A})),e}},{key:"truncate",value:function(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return A.length>I&&(A=A.slice(0,I-g.length)+g),A}},{key:"hex",value:function(A){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(A="string"==typeof A?I.ord(A):A).toString(16).padStart(g,"0")}},{key:"bin",value:function(A){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(A="string"==typeof A?I.ord(A):A).toString(2).padStart(g,"0")}},{key:"printable",value:function(A){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w()&&window.app&&!window.app.options.treatAsUtf8&&(A=I.byteArrayToChars(I.strToByteArray(A)));var e=/[\0-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F\xAD\u0378\u0379\u037F-\u0383\u038B\u038D\u03A2\u0528-\u0530\u0557\u0558\u0560\u0588\u058B-\u058E\u0590\u05C8-\u05CF\u05EB-\u05EF\u05F5-\u0605\u061C\u061D\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB-\u07FF\u082E\u082F\u083F\u085C\u085D\u085F-\u089F\u08A1\u08AD-\u08E3\u08FF\u0978\u0980\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FC-\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0C00\u0C04\u0C0D\u0C11\u0C29\u0C34\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5A-\u0C5F\u0C64\u0C65\u0C70-\u0C77\u0C80\u0C81\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0D01\u0D04\u0D0D\u0D11\u0D3B\u0D3C\u0D45\u0D49\u0D4F-\u0D56\u0D58-\u0D5F\u0D64\u0D65\u0D76-\u0D78\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3E\u0E5C-\u0E80\u0E83\u0E85\u0E86\u0E89\u0E8B\u0E8C\u0E8E-\u0E93\u0E98\u0EA0\u0EA4\u0EA6\u0EA8\u0EA9\u0EAC\u0EBA\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F5-\u13FF\u169D-\u169F\u16F1-\u16FF\u170D\u1715-\u171F\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180F\u181A-\u181F\u1878-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191D-\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE-\u1AFF\u1B4C-\u1B4F\u1B7D-\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C80-\u1CBF\u1CC8-\u1CCF\u1CF7-\u1CFF\u1DE7-\u1DFB\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20BB-\u20CF\u20F1-\u20FF\u218A-\u218F\u23F4-\u23FF\u2427-\u243F\u244B-\u245F\u2700\u2B4D-\u2B4F\u2B5A-\u2BFF\u2C2F\u2C5F\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E3C-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3040\u3097\u3098\u3100-\u3104\u312E-\u3130\u318F\u31BB-\u31BF\u31E4-\u31EF\u321F\u32FF\u4DB6-\u4DBF\u9FCD-\u9FFF\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA698-\uA69E\uA6F8-\uA6FF\uA78F\uA794-\uA79F\uA7AB-\uA7F7\uA82C-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C5-\uA8CD\uA8DA-\uA8DF\uA8FC-\uA8FF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9E0-\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAA7C-\uAA7F\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F-\uABBF\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFE\uFDFF\uFE1A-\uFE1F\uFE27-\uFE2F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]/g,t=/[\x09-\x10\x0D\u2028\u2029]/g;return A=A.replace(e,"."),g||(A=A.replace(t,".")),A}},{key:"parseEscapedChars",value:function(A){return A.replace(/\\([bfnrtv'"]|[0-3][0-7]{2}|[0-7]{1,2}|x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]{1,6}\}|\\)/g,(function(A,I){switch(I[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(I,8));case"b":return"\b";case"t":return"\t";case"n":return"\n";case"v":return"\v";case"f":return"\f";case"r":return"\r";case'"':return'"';case"'":return"'";case"x":return String.fromCharCode(parseInt(I.substr(1),16));case"u":return"{"===I[1]?String.fromCodePoint(parseInt(I.slice(2,-1),16)):String.fromCharCode(parseInt(I.substr(1),16))}}))}},{key:"escapeRegex",value:function(A){return A.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(A){for(var g=[],e=0;e<A.length;e++)if(e<A.length-2&&"-"===A[e+1]&&"\\"!==A[e]){for(var t=I.ord(A[e]),i=I.ord(A[e+2]),r=t;r<=i;r++)g.push(I.chr(r));e+=2}else e<A.length-2&&"\\"===A[e]&&"-"===A[e+1]?(g.push("-"),e++):g.push(A[e]);return g}},{key:"convertToByteArray",value:function(A,g){switch(g.toLowerCase()){case"binary":return Object(f.a)(A);case"hex":return Object(c.a)(A);case"decimal":return Object(u.a)(A);case"base64":return Object(h.a)(A,null,"byteArray");case"utf8":return I.strToUtf8ByteArray(A);case"latin1":default:return I.strToByteArray(A)}}},{key:"convertToByteString",value:function(A,g){switch(g.toLowerCase()){case"binary":return I.byteArrayToChars(Object(f.a)(A));case"hex":return I.byteArrayToChars(Object(c.a)(A));case"decimal":return I.byteArrayToChars(Object(u.a)(A));case"base64":return I.byteArrayToChars(Object(h.a)(A,null,"byteArray"));case"utf8":return s.a.encode(A);case"latin1":default:return A}}},{key:"strToArrayBuffer",value:function(A){for(var g,e=new Uint8Array(A.length),t=A.length;t--;)if(g=A.charCodeAt(t),e[t]=g,g>255)return I.strToUtf8ArrayBuffer(A);return e.buffer}},{key:"strToUtf8ArrayBuffer",value:function(A){var g=s.a.encode(A);return A.length!==g.length&&(F()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),I.strToArrayBuffer(g)}},{key:"strToByteArray",value:function(A){for(var g,e=new Array(A.length),t=A.length;t--;)if(g=A.charCodeAt(t),e[t]=g,g>255)return I.strToUtf8ByteArray(A);return e}},{key:"strToUtf8ByteArray",value:function(A){var g=s.a.encode(A);return A.length!==g.length&&(F()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),I.strToByteArray(g)}},{key:"strToCharcode",value:function(A){for(var g=[],e=0;e<A.length;e++){var t=A.charCodeAt(e);if(e<A.length-1&&t>=55296&&t<56320){var i=A[e+1].charCodeAt(0);i>=56320&&i<57344&&(t=I.ord(A[e]+A[++e]))}g.push(t)}return g}},{key:"byteArrayToUtf8",value:function(A){var g=I.byteArrayToChars(A);try{var e=s.a.decode(g);return g.length!==e.length&&(F()?self.setOption("attemptHighlight",!1):w()&&(window.app.options.attemptHighlight=!1)),e}catch(A){return g}}},{key:"byteArrayToChars",value:function(A){if(!A)return"";for(var I="",g=0;g<A.length;)I+=String.fromCharCode(A[g++]);return I}},{key:"arrayBufferToStr",value:function(A){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=new Uint8Array(A);return g?I.byteArrayToUtf8(e):I.byteArrayToChars(e)}},{key:"calculateShannonEntropy",value:function(A){A instanceof ArrayBuffer&&(A=new Uint8Array(A));var I,g=[],e=new Array(256).fill(0);for(I=0;I<A.length;I++)e[A[I]]++;for(I=0;I<e.length;I++)e[I]>0&&g.push(e[I]/A.length);var t,i=0;for(I=0;I<g.length;I++)i+=(t=g[I])*Math.log(t)/Math.log(2);return-i}},{key:"parseCSV",value:function(A){var I,g,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],i=!1,r=!1,C="",n=[],o=[];A.length&&"\ufeff"===A[0]&&(A=A.substr(1));for(var B=0;B<A.length;B++)I=A[B],g=A[B+1]||"",i?(C+=I,i=!1):'"'!==I||r?'"'===I&&r?'"'===g?i=!0:r=!1:!r&&e.indexOf(I)>=0?(n.push(C),C=""):!r&&t.indexOf(I)>=0?(n.push(C),C="",o.push(n),n=[],t.indexOf(g)>=0&&g!==I&&B++):C+=I:r=!0;return n.length&&(n.push(C),o.push(n)),o}},{key:"stripHtmlTags",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return I&&(A=A.replace(/<(script|style)[^>]*>.*<\/(script|style)>/gim,"")),A.replace(/<[^>]+>/g,"")}},{key:"escapeHtml",value:function(A){var I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"};return A.replace(/[&<>"'/`]/g,(function(A){return I[A]}))}},{key:"unescapeHtml",value:function(A){var I={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/","&#x60;":"`"};return A.replace(/&#?x?[a-z0-9]{2,4};/gi,(function(A){return I[A]||A}))}},{key:"encodeURIFragment",value:function(A){var I={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(A=encodeURIComponent(A)).replace(/%[0-9A-F]{2}/g,(function(A){return I[A]||A}))}},{key:"generatePrettyRecipe",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g="",e="",t="",i="",r="";return A.forEach((function(A){e=A.op.replace(/ /g,"_"),t=JSON.stringify(A.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),i=A.disabled?"/disabled":"",r=A.breakpoint?"/breakpoint":"",g+=`${e}(${t}${i}${r})`,I&&(g+="\n")})),g}},{key:"parseRecipeConfig",value:function(A){if(0===(A=A.trim()).length)return[];if("["===A[0])return JSON.parse(A);var I,g;A=A.replace(/\n/g,"");for(var e=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,t=[];I=e.exec(A);){g="["+(g=I[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var i={op:I[1].replace(/_/g," "),args:JSON.parse(g)};I[3]&&I[3].indexOf("disabled")>0&&(i.disabled=!0),I[3]&&I[3].indexOf("breakpoint")>0&&(i.breakpoint=!0),t.push(i)}return t}},{key:"displayFilesAsHTML",value:(g=n()(r.a.mark((function A(g){var e,t,i,C,o;return r.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:e=function(A){return`<div class='card' style='white-space: normal;'>\n                    <div class='card-header'>\n                        <h6 class="mb-0">\n                            ${I.escapeHtml(A.name)}\n                        </h6>\n                    </div>\n                </div>`},t=function(A,g){if(g.startsWith("image")){var e="data:";return e+=g+";","<img style='max-width: 100%;' src='"+(e+="base64,"+Object(h.b)(A))+"'>"}return`<pre>${I.escapeHtml(I.arrayBufferToStr(A.buffer))}</pre>`},i=function(){var A=n()(r.a.mark((function A(g,e){var i,C,n,o;return r.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,I.readFile(g);case 2:return i=A.sent,C=new Blob([i],{type:g.type||"octet/stream"}),n=URL.createObjectURL(C),o=`<div class='card' style='white-space: normal;'>\n                    <div class='card-header' id='heading${e}'>\n                        <h6 class='mb-0'>\n                            <a class='collapsed'\n                                data-toggle='collapse'\n                                href='#collapse${e}'\n                                aria-expanded='false'\n                                aria-controls='collapse${e}'\n                                title="Show/hide contents of '${I.escapeHtml(g.name)}'">\n                                ${I.escapeHtml(g.name)}</a>\n                            <span class='float-right' style="margin-top: -3px">\n                                ${g.size.toLocaleString()} bytes\n                                <a title="Download ${I.escapeHtml(g.name)}"\n                                    href="${n}"\n                                    download="${I.escapeHtml(g.name)}"\n                                    data-toggle="tooltip">\n                                    <i class="material-icons" style="vertical-align: bottom">save</i>\n                                </a>\n                                <a title="Move to input"\n                                    href="#"\n                                    blob-url="${n}"\n                                    file-name="${I.escapeHtml(g.name)}"\n                                    class="extract-file"\n                                    data-toggle="tooltip">\n                                    <i class="material-icons" style="vertical-align: bottom">open_in_browser</i>\n                                </a>\n                            </span>\n                        </h6>\n                    </div>\n                    <div id='collapse${e}' class='collapse' aria-labelledby='heading${e}' data-parent="#files">\n                        <div class='card-body'>\n                            ${t(i,g.type)}\n                        </div>\n                    </div>\n                </div>`,A.abrupt("return",o);case 7:case"end":return A.stop()}}),A)})));return function(I,g){return A.apply(this,arguments)}}(),C=`<div style='padding: 5px; white-space: normal;'>\n                ${g.length} file(s) found\n            </div><div id="files" style="padding: 20px">`,o=0;case 5:if(!(o<g.length)){A.next=17;break}if(!g[o].name.endsWith("/")){A.next=10;break}C+=e(g[o]),A.next=14;break;case 10:return A.t0=C,A.next=13,i(g[o],o);case 13:C=A.t0+=A.sent;case 14:o++,A.next=5;break;case 17:return A.abrupt("return",C+="</div>");case 18:case"end":return A.stop()}}),A)}))),function(A){return g.apply(this,arguments)})},{key:"parseURIParams",value:function(A){if(""===A)return{};"?"!==A[0]&&"#"!==A[0]||(A=A.substr(1));for(var I=A.split("&"),g={},e=0;e<I.length;e++){var t=I[e].split("=");2!==t.length?g[I[e]]=!0:g[t[0]]=decodeURIComponent(t[1].replace(/\+/g," "))}return g}},{key:"readFile",value:function(I){return l()?A.from(I).buffer:new Promise((function(A,g){var e=new FileReader,t=new Uint8Array(I.size),i=0,r=function(){if(i>=I.size)A(t);else{var g=I.slice(i,i+10485760);e.readAsArrayBuffer(g)}};e.onload=function(A){t.set(new Uint8Array(e.result),i),i+=10485760,r()},e.onerror=function(A){g(e.error.message)},r()}))}},{key:"readFileSync",value:function(A){if(!l())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(A.data).buffer}},{key:"mod",value:function(A,I){return(A%I+I)%I}},{key:"gcd",value:function(A,g){return g?I.gcd(g,A%g):A}},{key:"modInv",value:function(A,I){A%=I;for(var g=1;g<I;g++)if(A*g%26==1)return g}},{key:"charRep",value:function(A){return{Space:" ",Percent:"%",Comma:",","Semi-colon":";",Colon:":",Tab:"\t","Line feed":"\n",CRLF:"\r\n","Forward slash":"/",Backslash:"\\","0x":"0x","\\x":"\\x","Nothing (separate chars)":"",None:""}[A]}},{key:"regexRep",value:function(A){return{Space:/\s+/g,Percent:/%/g,Comma:/,/g,"Semi-colon":/;/g,Colon:/:/g,"Line feed":/\n/g,CRLF:/\r\n/g,"Forward slash":/\//g,Backslash:/\\/g,"0x with comma":/,?0x/g,"0x":/0x/g,"\\x":/\\x/g,None:/\s+/g}[A]}}]),I}();function l(){return void 0!==e&&null!=e.versions&&null!=e.versions.node}function w(){return"object"==typeof window}function F(){return"function"==typeof importScripts}function D(A){F()?self.sendStatusMessage(A):w()?app.alert(A,1e4):l()&&!t.TESTING&&console.debug(A)}I.b=y,Array.prototype.unique=function(){for(var A={},I=[],g=0,e=this.length;g<e;g++)Object.prototype.hasOwnProperty.call(A,this[g])||(I.push(this[g]),A[this[g]]=1);return I},Array.prototype.max=function(){return Math.max.apply(null,this)},Array.prototype.min=function(){return Math.min.apply(null,this)},Array.prototype.sum=function(){return this.reduce((function(A,I){return A+I}),0)},Array.prototype.equals=function(A){if(!A)return!1;var I=this.length;if(I!==A.length)return!1;for(;I--;)if(this[I]!==A[I])return!1;return!0},String.prototype.count=function(A){return this.split(A).length-1};var p={};function S(A,I,g,e,t){return function(){clearTimeout(p[g]),p[g]=setTimeout((function(){A.apply(e,t)}),I)}}String.prototype.padStart||(String.prototype.padStart=function(A,I){return A>>=0,I=String(void 0!==I?I:" "),this.length>A?String(this):((A-=this.length)>I.length&&(I+=I.repeat(A/I.length)),I.slice(0,A)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(A,I){return A>>=0,I=String(void 0!==I?I:" "),this.length>A?String(this):((A-=this.length)>I.length&&(I+=I.repeat(A/I.length)),String(this)+I.slice(0,A))})}).call(this,g(12).Buffer,g(27),g(25))},1:function(A,I){A.exports=function(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}},11:function(A,I){function g(A,I,g,e,t,i,r){try{var C=A[i](r),n=C.value}catch(A){return void g(A)}C.done?I(n):Promise.resolve(n).then(e,t)}A.exports=function(A){return function(){var I=this,e=arguments;return new Promise((function(t,i){var r=A.apply(I,e);function C(A){g(r,t,i,C,n,"next",A)}function n(A){g(r,t,i,C,n,"throw",A)}C(void 0)}))}}},12:function(A,I,g){"use strict";(function(A){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var e=g(47),t=g(48),i=g(40);function r(){return n.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function C(A,I){if(r()<I)throw new RangeError("Invalid typed array length");return n.TYPED_ARRAY_SUPPORT?(A=new Uint8Array(I)).__proto__=n.prototype:(null===A&&(A=new n(I)),A.length=I),A}function n(A,I,g){if(!(n.TYPED_ARRAY_SUPPORT||this instanceof n))return new n(A,I,g);if("number"==typeof A){if("string"==typeof I)throw new Error("If encoding is specified then the first argument must be a string");return a(this,A)}return o(this,A,I,g)}function o(A,I,g,e){if("number"==typeof I)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&I instanceof ArrayBuffer?function(A,I,g,e){if(I.byteLength,g<0||I.byteLength<g)throw new RangeError("'offset' is out of bounds");if(I.byteLength<g+(e||0))throw new RangeError("'length' is out of bounds");I=void 0===g&&void 0===e?new Uint8Array(I):void 0===e?new Uint8Array(I,g):new Uint8Array(I,g,e);n.TYPED_ARRAY_SUPPORT?(A=I).__proto__=n.prototype:A=E(A,I);return A}(A,I,g,e):"string"==typeof I?function(A,I,g){"string"==typeof g&&""!==g||(g="utf8");if(!n.isEncoding(g))throw new TypeError('"encoding" must be a valid string encoding');var e=0|s(I,g),t=(A=C(A,e)).write(I,g);t!==e&&(A=A.slice(0,t));return A}(A,I,g):function(A,I){if(n.isBuffer(I)){var g=0|Q(I.length);return 0===(A=C(A,g)).length||I.copy(A,0,0,g),A}if(I){if("undefined"!=typeof ArrayBuffer&&I.buffer instanceof ArrayBuffer||"length"in I)return"number"!=typeof I.length||(e=I.length)!=e?C(A,0):E(A,I);if("Buffer"===I.type&&i(I.data))return E(A,I.data)}var e;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(A,I)}function B(A){if("number"!=typeof A)throw new TypeError('"size" argument must be a number');if(A<0)throw new RangeError('"size" argument must not be negative')}function a(A,I){if(B(I),A=C(A,I<0?0:0|Q(I)),!n.TYPED_ARRAY_SUPPORT)for(var g=0;g<I;++g)A[g]=0;return A}function E(A,I){var g=I.length<0?0:0|Q(I.length);A=C(A,g);for(var e=0;e<g;e+=1)A[e]=255&I[e];return A}function Q(A){if(A>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|A}function s(A,I){if(n.isBuffer(A))return A.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(A)||A instanceof ArrayBuffer))return A.byteLength;"string"!=typeof A&&(A=""+A);var g=A.length;if(0===g)return 0;for(var e=!1;;)switch(I){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":case void 0:return K(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*g;case"hex":return g>>>1;case"base64":return q(A).length;default:if(e)return K(A).length;I=(""+I).toLowerCase(),e=!0}}function h(A,I,g){var e=!1;if((void 0===I||I<0)&&(I=0),I>this.length)return"";if((void 0===g||g>this.length)&&(g=this.length),g<=0)return"";if((g>>>=0)<=(I>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return m(this,I,g);case"utf8":case"utf-8":return d(this,I,g);case"ascii":return U(this,I,g);case"latin1":case"binary":return G(this,I,g);case"base64":return S(this,I,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,I,g);default:if(e)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),e=!0}}function c(A,I,g){var e=A[I];A[I]=A[g],A[g]=e}function u(A,I,g,e,t){if(0===A.length)return-1;if("string"==typeof g?(e=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,isNaN(g)&&(g=t?0:A.length-1),g<0&&(g=A.length+g),g>=A.length){if(t)return-1;g=A.length-1}else if(g<0){if(!t)return-1;g=0}if("string"==typeof I&&(I=n.from(I,e)),n.isBuffer(I))return 0===I.length?-1:f(A,I,g,e,t);if("number"==typeof I)return I&=255,n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?t?Uint8Array.prototype.indexOf.call(A,I,g):Uint8Array.prototype.lastIndexOf.call(A,I,g):f(A,[I],g,e,t);throw new TypeError("val must be string, number or Buffer")}function f(A,I,g,e,t){var i,r=1,C=A.length,n=I.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(A.length<2||I.length<2)return-1;r=2,C/=2,n/=2,g/=2}function o(A,I){return 1===r?A[I]:A.readUInt16BE(I*r)}if(t){var B=-1;for(i=g;i<C;i++)if(o(A,i)===o(I,-1===B?0:i-B)){if(-1===B&&(B=i),i-B+1===n)return B*r}else-1!==B&&(i-=i-B),B=-1}else for(g+n>C&&(g=C-n),i=g;i>=0;i--){for(var a=!0,E=0;E<n;E++)if(o(A,i+E)!==o(I,E)){a=!1;break}if(a)return i}return-1}function y(A,I,g,e){g=Number(g)||0;var t=A.length-g;e?(e=Number(e))>t&&(e=t):e=t;var i=I.length;if(i%2!=0)throw new TypeError("Invalid hex string");e>i/2&&(e=i/2);for(var r=0;r<e;++r){var C=parseInt(I.substr(2*r,2),16);if(isNaN(C))return r;A[g+r]=C}return r}function l(A,I,g,e){return T(K(I,A.length-g),A,g,e)}function w(A,I,g,e){return T(function(A){for(var I=[],g=0;g<A.length;++g)I.push(255&A.charCodeAt(g));return I}(I),A,g,e)}function F(A,I,g,e){return w(A,I,g,e)}function D(A,I,g,e){return T(q(I),A,g,e)}function p(A,I,g,e){return T(function(A,I){for(var g,e,t,i=[],r=0;r<A.length&&!((I-=2)<0);++r)g=A.charCodeAt(r),e=g>>8,t=g%256,i.push(t),i.push(e);return i}(I,A.length-g),A,g,e)}function S(A,I,g){return 0===I&&g===A.length?e.fromByteArray(A):e.fromByteArray(A.slice(I,g))}function d(A,I,g){g=Math.min(A.length,g);for(var e=[],t=I;t<g;){var i,r,C,n,o=A[t],B=null,a=o>239?4:o>223?3:o>191?2:1;if(t+a<=g)switch(a){case 1:o<128&&(B=o);break;case 2:128==(192&(i=A[t+1]))&&(n=(31&o)<<6|63&i)>127&&(B=n);break;case 3:i=A[t+1],r=A[t+2],128==(192&i)&&128==(192&r)&&(n=(15&o)<<12|(63&i)<<6|63&r)>2047&&(n<55296||n>57343)&&(B=n);break;case 4:i=A[t+1],r=A[t+2],C=A[t+3],128==(192&i)&&128==(192&r)&&128==(192&C)&&(n=(15&o)<<18|(63&i)<<12|(63&r)<<6|63&C)>65535&&n<1114112&&(B=n)}null===B?(B=65533,a=1):B>65535&&(B-=65536,e.push(B>>>10&1023|55296),B=56320|1023&B),e.push(B),t+=a}return function(A){var I=A.length;if(I<=4096)return String.fromCharCode.apply(String,A);var g="",e=0;for(;e<I;)g+=String.fromCharCode.apply(String,A.slice(e,e+=4096));return g}(e)}I.Buffer=n,I.SlowBuffer=function(A){+A!=A&&(A=0);return n.alloc(+A)},I.INSPECT_MAX_BYTES=50,n.TYPED_ARRAY_SUPPORT=void 0!==A.TYPED_ARRAY_SUPPORT?A.TYPED_ARRAY_SUPPORT:function(){try{var A=new Uint8Array(1);return A.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===A.foo()&&"function"==typeof A.subarray&&0===A.subarray(1,1).byteLength}catch(A){return!1}}(),I.kMaxLength=r(),n.poolSize=8192,n._augment=function(A){return A.__proto__=n.prototype,A},n.from=function(A,I,g){return o(null,A,I,g)},n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0})),n.alloc=function(A,I,g){return function(A,I,g,e){return B(I),I<=0?C(A,I):void 0!==g?"string"==typeof e?C(A,I).fill(g,e):C(A,I).fill(g):C(A,I)}(null,A,I,g)},n.allocUnsafe=function(A){return a(null,A)},n.allocUnsafeSlow=function(A){return a(null,A)},n.isBuffer=function(A){return!(null==A||!A._isBuffer)},n.compare=function(A,I){if(!n.isBuffer(A)||!n.isBuffer(I))throw new TypeError("Arguments must be Buffers");if(A===I)return 0;for(var g=A.length,e=I.length,t=0,i=Math.min(g,e);t<i;++t)if(A[t]!==I[t]){g=A[t],e=I[t];break}return g<e?-1:e<g?1:0},n.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(A,I){if(!i(A))throw new TypeError('"list" argument must be an Array of Buffers');if(0===A.length)return n.alloc(0);var g;if(void 0===I)for(I=0,g=0;g<A.length;++g)I+=A[g].length;var e=n.allocUnsafe(I),t=0;for(g=0;g<A.length;++g){var r=A[g];if(!n.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(e,t),t+=r.length}return e},n.byteLength=s,n.prototype._isBuffer=!0,n.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var I=0;I<A;I+=2)c(this,I,I+1);return this},n.prototype.swap32=function(){var A=this.length;if(A%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var I=0;I<A;I+=4)c(this,I,I+3),c(this,I+1,I+2);return this},n.prototype.swap64=function(){var A=this.length;if(A%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var I=0;I<A;I+=8)c(this,I,I+7),c(this,I+1,I+6),c(this,I+2,I+5),c(this,I+3,I+4);return this},n.prototype.toString=function(){var A=0|this.length;return 0===A?"":0===arguments.length?d(this,0,A):h.apply(this,arguments)},n.prototype.equals=function(A){if(!n.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||0===n.compare(this,A)},n.prototype.inspect=function(){var A="",g=I.INSPECT_MAX_BYTES;return this.length>0&&(A=this.toString("hex",0,g).match(/.{2}/g).join(" "),this.length>g&&(A+=" ... ")),"<Buffer "+A+">"},n.prototype.compare=function(A,I,g,e,t){if(!n.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(void 0===I&&(I=0),void 0===g&&(g=A?A.length:0),void 0===e&&(e=0),void 0===t&&(t=this.length),I<0||g>A.length||e<0||t>this.length)throw new RangeError("out of range index");if(e>=t&&I>=g)return 0;if(e>=t)return-1;if(I>=g)return 1;if(this===A)return 0;for(var i=(t>>>=0)-(e>>>=0),r=(g>>>=0)-(I>>>=0),C=Math.min(i,r),o=this.slice(e,t),B=A.slice(I,g),a=0;a<C;++a)if(o[a]!==B[a]){i=o[a],r=B[a];break}return i<r?-1:r<i?1:0},n.prototype.includes=function(A,I,g){return-1!==this.indexOf(A,I,g)},n.prototype.indexOf=function(A,I,g){return u(this,A,I,g,!0)},n.prototype.lastIndexOf=function(A,I,g){return u(this,A,I,g,!1)},n.prototype.write=function(A,I,g,e){if(void 0===I)e="utf8",g=this.length,I=0;else if(void 0===g&&"string"==typeof I)e=I,g=this.length,I=0;else{if(!isFinite(I))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");I|=0,isFinite(g)?(g|=0,void 0===e&&(e="utf8")):(e=g,g=void 0)}var t=this.length-I;if((void 0===g||g>t)&&(g=t),A.length>0&&(g<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var i=!1;;)switch(e){case"hex":return y(this,A,I,g);case"utf8":case"utf-8":return l(this,A,I,g);case"ascii":return w(this,A,I,g);case"latin1":case"binary":return F(this,A,I,g);case"base64":return D(this,A,I,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p(this,A,I,g);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),i=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(A,I,g){var e="";g=Math.min(A.length,g);for(var t=I;t<g;++t)e+=String.fromCharCode(127&A[t]);return e}function G(A,I,g){var e="";g=Math.min(A.length,g);for(var t=I;t<g;++t)e+=String.fromCharCode(A[t]);return e}function m(A,I,g){var e=A.length;(!I||I<0)&&(I=0),(!g||g<0||g>e)&&(g=e);for(var t="",i=I;i<g;++i)t+=J(A[i]);return t}function k(A,I,g){for(var e=A.slice(I,g),t="",i=0;i<e.length;i+=2)t+=String.fromCharCode(e[i]+256*e[i+1]);return t}function Y(A,I,g){if(A%1!=0||A<0)throw new RangeError("offset is not uint");if(A+I>g)throw new RangeError("Trying to access beyond buffer length")}function M(A,I,g,e,t,i){if(!n.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>t||I<i)throw new RangeError('"value" argument is out of bounds');if(g+e>A.length)throw new RangeError("Index out of range")}function N(A,I,g,e){I<0&&(I=65535+I+1);for(var t=0,i=Math.min(A.length-g,2);t<i;++t)A[g+t]=(I&255<<8*(e?t:1-t))>>>8*(e?t:1-t)}function R(A,I,g,e){I<0&&(I=4294967295+I+1);for(var t=0,i=Math.min(A.length-g,4);t<i;++t)A[g+t]=I>>>8*(e?t:3-t)&255}function b(A,I,g,e,t,i){if(g+e>A.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function v(A,I,g,e,i){return i||b(A,0,g,4),t.write(A,I,g,e,23,4),g+4}function H(A,I,g,e,i){return i||b(A,0,g,8),t.write(A,I,g,e,52,8),g+8}n.prototype.slice=function(A,I){var g,e=this.length;if((A=~~A)<0?(A+=e)<0&&(A=0):A>e&&(A=e),(I=void 0===I?e:~~I)<0?(I+=e)<0&&(I=0):I>e&&(I=e),I<A&&(I=A),n.TYPED_ARRAY_SUPPORT)(g=this.subarray(A,I)).__proto__=n.prototype;else{var t=I-A;g=new n(t,void 0);for(var i=0;i<t;++i)g[i]=this[i+A]}return g},n.prototype.readUIntLE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var e=this[A],t=1,i=0;++i<I&&(t*=256);)e+=this[A+i]*t;return e},n.prototype.readUIntBE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var e=this[A+--I],t=1;I>0&&(t*=256);)e+=this[A+--I]*t;return e},n.prototype.readUInt8=function(A,I){return I||Y(A,1,this.length),this[A]},n.prototype.readUInt16LE=function(A,I){return I||Y(A,2,this.length),this[A]|this[A+1]<<8},n.prototype.readUInt16BE=function(A,I){return I||Y(A,2,this.length),this[A]<<8|this[A+1]},n.prototype.readUInt32LE=function(A,I){return I||Y(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},n.prototype.readUInt32BE=function(A,I){return I||Y(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},n.prototype.readIntLE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var e=this[A],t=1,i=0;++i<I&&(t*=256);)e+=this[A+i]*t;return e>=(t*=128)&&(e-=Math.pow(2,8*I)),e},n.prototype.readIntBE=function(A,I,g){A|=0,I|=0,g||Y(A,I,this.length);for(var e=I,t=1,i=this[A+--e];e>0&&(t*=256);)i+=this[A+--e]*t;return i>=(t*=128)&&(i-=Math.pow(2,8*I)),i},n.prototype.readInt8=function(A,I){return I||Y(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},n.prototype.readInt16LE=function(A,I){I||Y(A,2,this.length);var g=this[A]|this[A+1]<<8;return 32768&g?4294901760|g:g},n.prototype.readInt16BE=function(A,I){I||Y(A,2,this.length);var g=this[A+1]|this[A]<<8;return 32768&g?4294901760|g:g},n.prototype.readInt32LE=function(A,I){return I||Y(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},n.prototype.readInt32BE=function(A,I){return I||Y(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},n.prototype.readFloatLE=function(A,I){return I||Y(A,4,this.length),t.read(this,A,!0,23,4)},n.prototype.readFloatBE=function(A,I){return I||Y(A,4,this.length),t.read(this,A,!1,23,4)},n.prototype.readDoubleLE=function(A,I){return I||Y(A,8,this.length),t.read(this,A,!0,52,8)},n.prototype.readDoubleBE=function(A,I){return I||Y(A,8,this.length),t.read(this,A,!1,52,8)},n.prototype.writeUIntLE=function(A,I,g,e){(A=+A,I|=0,g|=0,e)||M(this,A,I,g,Math.pow(2,8*g)-1,0);var t=1,i=0;for(this[I]=255&A;++i<g&&(t*=256);)this[I+i]=A/t&255;return I+g},n.prototype.writeUIntBE=function(A,I,g,e){(A=+A,I|=0,g|=0,e)||M(this,A,I,g,Math.pow(2,8*g)-1,0);var t=g-1,i=1;for(this[I+t]=255&A;--t>=0&&(i*=256);)this[I+t]=A/i&255;return I+g},n.prototype.writeUInt8=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,1,255,0),n.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[I]=255&A,I+1},n.prototype.writeUInt16LE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):N(this,A,I,!0),I+2},n.prototype.writeUInt16BE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):N(this,A,I,!1),I+2},n.prototype.writeUInt32LE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[I+3]=A>>>24,this[I+2]=A>>>16,this[I+1]=A>>>8,this[I]=255&A):R(this,A,I,!0),I+4},n.prototype.writeUInt32BE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):R(this,A,I,!1),I+4},n.prototype.writeIntLE=function(A,I,g,e){if(A=+A,I|=0,!e){var t=Math.pow(2,8*g-1);M(this,A,I,g,t-1,-t)}var i=0,r=1,C=0;for(this[I]=255&A;++i<g&&(r*=256);)A<0&&0===C&&0!==this[I+i-1]&&(C=1),this[I+i]=(A/r>>0)-C&255;return I+g},n.prototype.writeIntBE=function(A,I,g,e){if(A=+A,I|=0,!e){var t=Math.pow(2,8*g-1);M(this,A,I,g,t-1,-t)}var i=g-1,r=1,C=0;for(this[I+i]=255&A;--i>=0&&(r*=256);)A<0&&0===C&&0!==this[I+i+1]&&(C=1),this[I+i]=(A/r>>0)-C&255;return I+g},n.prototype.writeInt8=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,1,127,-128),n.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[I]=255&A,I+1},n.prototype.writeInt16LE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):N(this,A,I,!0),I+2},n.prototype.writeInt16BE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):N(this,A,I,!1),I+2},n.prototype.writeInt32LE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8,this[I+2]=A>>>16,this[I+3]=A>>>24):R(this,A,I,!0),I+4},n.prototype.writeInt32BE=function(A,I,g){return A=+A,I|=0,g||M(this,A,I,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),n.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):R(this,A,I,!1),I+4},n.prototype.writeFloatLE=function(A,I,g){return v(this,A,I,!0,g)},n.prototype.writeFloatBE=function(A,I,g){return v(this,A,I,!1,g)},n.prototype.writeDoubleLE=function(A,I,g){return H(this,A,I,!0,g)},n.prototype.writeDoubleBE=function(A,I,g){return H(this,A,I,!1,g)},n.prototype.copy=function(A,I,g,e){if(g||(g=0),e||0===e||(e=this.length),I>=A.length&&(I=A.length),I||(I=0),e>0&&e<g&&(e=g),e===g)return 0;if(0===A.length||0===this.length)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),A.length-I<e-g&&(e=A.length-I+g);var t,i=e-g;if(this===A&&g<I&&I<e)for(t=i-1;t>=0;--t)A[t+I]=this[t+g];else if(i<1e3||!n.TYPED_ARRAY_SUPPORT)for(t=0;t<i;++t)A[t+I]=this[t+g];else Uint8Array.prototype.set.call(A,this.subarray(g,g+i),I);return i},n.prototype.fill=function(A,I,g,e){if("string"==typeof A){if("string"==typeof I?(e=I,I=0,g=this.length):"string"==typeof g&&(e=g,g=this.length),1===A.length){var t=A.charCodeAt(0);t<256&&(A=t)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!n.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof A&&(A&=255);if(I<0||this.length<I||this.length<g)throw new RangeError("Out of range index");if(g<=I)return this;var i;if(I>>>=0,g=void 0===g?this.length:g>>>0,A||(A=0),"number"==typeof A)for(i=I;i<g;++i)this[i]=A;else{var r=n.isBuffer(A)?A:K(new n(A,e).toString()),C=r.length;for(i=0;i<g-I;++i)this[i+I]=r[i%C]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function J(A){return A<16?"0"+A.toString(16):A.toString(16)}function K(A,I){var g;I=I||1/0;for(var e=A.length,t=null,i=[],r=0;r<e;++r){if((g=A.charCodeAt(r))>55295&&g<57344){if(!t){if(g>56319){(I-=3)>-1&&i.push(239,191,189);continue}if(r+1===e){(I-=3)>-1&&i.push(239,191,189);continue}t=g;continue}if(g<56320){(I-=3)>-1&&i.push(239,191,189),t=g;continue}g=65536+(t-55296<<10|g-56320)}else t&&(I-=3)>-1&&i.push(239,191,189);if(t=null,g<128){if((I-=1)<0)break;i.push(g)}else if(g<2048){if((I-=2)<0)break;i.push(g>>6|192,63&g|128)}else if(g<65536){if((I-=3)<0)break;i.push(g>>12|224,g>>6&63|128,63&g|128)}else{if(!(g<1114112))throw new Error("Invalid code point");if((I-=4)<0)break;i.push(g>>18|240,g>>12&63|128,g>>6&63|128,63&g|128)}}return i}function q(A){return e.toByteArray(function(A){if((A=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")}(A).replace(L,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function T(A,I,g,e){for(var t=0;t<e&&!(t+g>=I.length||t>=A.length);++t)I[t+g]=A[t];return t}}).call(this,g(25))},13:function(A,I,g){var e=g(49),t=g(50),i=g(51);A.exports=function(A,I){return e(A)||t(A,I)||i()}},1474:function(A,I,g){"use strict";g.r(I);var e=g(13),t=g.n(e),i=g(1),r=g.n(i),C=g(2),n=g.n(C),o=g(4),B=g.n(o),a=g(3),E=g.n(a),Q=g(5),s=g.n(Q),h=g(9),c=g(7),u=g(427),f=g.n(u),y=g(0),l=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Bzip2 Compress",A.module="Compression",A.description="Bzip2 is a compression library developed by Julian Seward (of GHC fame) that uses the Burrows-Wheeler algorithm. It only supports compressing single files and its compression is slow, however is more effective than Deflate (.gz & .zip).",A.infoURL="https://wikipedia.org/wiki/Bzip2",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Block size (100s of kb)",type:"number",value:9,min:1,max:9},{name:"Work factor",type:"number",value:30}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=t()(I,2),e=g[0],i=g[1];if(A.byteLength<=0)throw new c.a("Please provide an input.");return Object(y.d)()&&self.sendStatusMessage("Loading Bzip2..."),new Promise((function(I,g){f()().then((function(t){Object(y.d)()&&self.sendStatusMessage("Compressing data...");var r=new Uint8Array(A),C=t.compressBZ2(r,e,i);if(0!==C.error)g(new c.a(C.error_msg));else{var n=C.output;I(n.buffer.slice(n.byteOffset,n.byteLength+n.byteOffset))}}))}))}}]),I}(h.a),w=g(8),F=g.n(w),D=g(11),p=g.n(D),S=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Bzip2 Decompress",A.module="Compression",A.description="Decompresses data using the Bzip2 algorithm.",A.infoURL="https://wikipedia.org/wiki/Bzip2",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Use low-memory, slower decompression algorithm",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x42\\x5a\\x68",flags:"",args:[]}],A}var g;return s()(I,A),n()(I,[{key:"run",value:(g=p()(F.a.mark((function A(I,g){var e,i;return F.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(e=t()(g,1),i=e[0],!(I.byteLength<=0)){A.next=3;break}throw new c.a("Please provide an input.");case 3:return Object(y.d)()&&self.sendStatusMessage("Loading Bzip2..."),A.abrupt("return",new Promise((function(A,g){f()().then((function(e){Object(y.d)()&&self.sendStatusMessage("Decompressing data...");var t=new Uint8Array(I),r=e.decompressBZ2(t,i?1:0);if(0!==r.error)g(new c.a(r.error_msg));else{var C=r.output;A(C.buffer.slice(C.byteOffset,C.byteLength+C.byteOffset))}}))})));case 5:case"end":return A.stop()}}),A)}))),function(A,I){return g.apply(this,arguments)})}]),I}(h.a),d=g(802),U=g.n(d).a.Zlib,G=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Gunzip",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with gzip headers.",A.infoURL="https://wikipedia.org/wiki/Gzip",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[],A.checks=[{pattern:"^\\x1f\\x8b\\x08",flags:"",args:[]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new U.Gunzip(new Uint8Array(A));return new Uint8Array(g.decompress()).buffer}}]),I}(h.a),m=g(334),k=g.n(m),Y=k.a.Zlib,M=["Dynamic Huffman Coding","Fixed Huffman Coding","None (Store)"],N=["Adaptive","Block"],R={"Fixed Huffman Coding":Y.Deflate.CompressionType.FIXED,"Dynamic Huffman Coding":Y.Deflate.CompressionType.DYNAMIC,"None (Store)":Y.Deflate.CompressionType.NONE},b=g(803),v=g.n(b).a.Zlib,H=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Gzip",A.module="Compression",A.description="Compresses data using the deflate algorithm with gzip headers.",A.infoURL="https://wikipedia.org/wiki/Gzip",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:M},{name:"Filename (optional)",type:"string",value:""},{name:"Comment (optional)",type:"string",value:""},{name:"Include file checksum",type:"boolean",value:!1}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=I[1],e=I[2],t={deflateOptions:{compressionType:R[I[0]]},flags:{fhcrc:I[3]}};g.length&&(t.flags.fname=!0,t.filename=g),e.length&&(t.flags.comment=!0,t.comment=e);var i=new v.Gzip(new Uint8Array(A),t),r=new Uint8Array(i.compress());return!t.flags.comment||16&r[3]||(r[3]|=16),r.buffer}}]),I}(h.a),L=g(804),J=g.n(L).a.Zlib,K={"Fixed Huffman Coding":J.RawDeflate.CompressionType.FIXED,"Dynamic Huffman Coding":J.RawDeflate.CompressionType.DYNAMIC,"None (Store)":J.RawDeflate.CompressionType.NONE},q=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Raw Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:M}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new J.RawDeflate(new Uint8Array(A),{compressionType:K[I[0]]});return new Uint8Array(g.compress()).buffer}}]),I}(h.a),T=g(805),x=g.n(T).a.Zlib,V={Adaptive:x.RawInflate.BufferType.ADAPTIVE,Block:x.RawInflate.BufferType.BLOCK},W=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Raw Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with no headers.",A.infoURL="https://wikipedia.org/wiki/DEFLATE",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:N},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{entropyRange:[7.5,8],args:[0,0,N,!1,!1]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new x.RawInflate(new Uint8Array(A),{index:I[0],bufferSize:I[1],bufferType:V[I[2]],resize:I[3],verify:I[4]}),e=new Uint8Array(g.decompress());if(e.length>158&&93===e[0]&&93===e[5]){for(var t=!1,i=0;i<155;i+=5)93!==e[i]&&(t=!0);if(!t)throw new c.a("Error: Unable to inflate data")}return e.buffer}}]),I}(h.a),Z=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Tar",A.module="Compression",A.description="Packs the input into a tarball.<br><br>No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){A=new Uint8Array(A);var g=function(){this.bytes=new Array(512),this.position=0};g.prototype.addEmptyBlock=function(){var A=new Array(512);A.fill(0),this.bytes=this.bytes.concat(A)},g.prototype.writeBytes=function(A){var I=this;this.position+A.length>this.bytes.length&&this.addEmptyBlock(),Array.prototype.forEach.call(A,(function(A,g){void 0!==A.charCodeAt&&(A=A.charCodeAt()),I.bytes[I.position]=A,I.position+=1}))},g.prototype.writeEndBlocks=function(){for(var A=0;A<2;A++)this.addEmptyBlock()};var e=A.length.toString(8).padStart(11,"0"),t=Math.floor(Date.now()/1e3).toString(8).padStart(11,"0"),i={fileName:y.b.padBytesRight(I[0],100),fileMode:y.b.padBytesRight("0000664",8),ownerUID:y.b.padBytesRight("0",8),ownerGID:y.b.padBytesRight("0",8),size:y.b.padBytesRight(e,12),lastModTime:y.b.padBytesRight(t,12),checksum:"        ",type:"0",linkedFileName:y.b.padBytesRight("",100),USTARFormat:y.b.padBytesRight("ustar",6),version:"00",ownerUserName:y.b.padBytesRight("",32),ownerGroupName:y.b.padBytesRight("",32),deviceMajor:y.b.padBytesRight("",8),deviceMinor:y.b.padBytesRight("",8),fileNamePrefix:y.b.padBytesRight("",155)},r=0;for(var C in i){var n=i[C];Array.prototype.forEach.call(n,(function(A){void 0!==A.charCodeAt?r+=A.charCodeAt():r+=A}))}r=y.b.padBytesRight(r.toString(8).padStart(7,"0"),8),i.checksum=r;var o=new g;return o.writeBytes(i.fileName),o.writeBytes(i.fileMode),o.writeBytes(i.ownerUID),o.writeBytes(i.ownerGID),o.writeBytes(i.size),o.writeBytes(i.lastModTime),o.writeBytes(i.checksum),o.writeBytes(i.type),o.writeBytes(i.linkedFileName),o.writeBytes(i.USTARFormat),o.writeBytes(i.version),o.writeBytes(i.ownerUserName),o.writeBytes(i.ownerGroupName),o.writeBytes(i.deviceMajor),o.writeBytes(i.deviceMinor),o.writeBytes(i.fileNamePrefix),o.writeBytes(y.b.padBytesRight("",12)),o.writeBytes(A),o.writeEndBlocks(),new File([new Uint8Array(o.bytes)],I[0])}}]),I}(h.a),O=g(6),j=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Untar",A.module="Compression",A.description="Unpacks a tarball and displays it per file.",A.infoURL="https://wikipedia.org/wiki/Tar_(computing)",A.inputType="ArrayBuffer",A.outputType="List<File>",A.presentType="html",A.args=[],A.checks=[{pattern:"^.{257}\\x75\\x73\\x74\\x61\\x72",flags:"",args:[]}],A}var g;return s()(I,A),n()(I,[{key:"run",value:function(A,I){A=new Uint8Array(A);for(var g=new O.a(A),e=[];g.hasMore();){var t=g.position+512,i={fileName:g.readString(100),fileMode:g.readString(8),ownerUID:g.readString(8),ownerGID:g.readString(8),size:parseInt(g.readString(12),8),lastModTime:new Date(1e3*parseInt(g.readString(12),8)),checksum:g.readString(8),type:g.readString(1),linkedFileName:g.readString(100),USTARFormat:g.readString(6).indexOf("ustar")>=0};if(i.USTARFormat&&(i.version=g.readString(2),i.ownerUserName=g.readString(32),i.ownerGroupName=g.readString(32),i.deviceMajor=g.readString(8),i.deviceMinor=g.readString(8),i.filenamePrefix=g.readString(155)),g.position=t,"0"===i.type){var r=g.position+i.size;i.size%512!=0&&(r+=512-i.size%512),i.bytes=g.getBytes(i.size),e.push(new File([new Uint8Array(i.bytes)],i.fileName)),g.position=r}else"5"===i.type&&e.push(new File([new Uint8Array(i.bytes)],i.fileName))}return e}},{key:"present",value:(g=p()(F.a.mark((function A(I){return F.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,y.b.displayFilesAsHTML(I);case 2:return A.abrupt("return",A.sent);case 3:case"end":return A.stop()}}),A)}))),function(A){return g.apply(this,arguments)})}]),I}(h.a),X=g(806),P=g.n(X).a.Zlib,z=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Unzip",A.module="Compression",A.description="Decompresses data using the PKZIP algorithm and displays it per file, with support for passwords.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="List<File>",A.presentType="html",A.args=[{name:"Password",type:"binaryString",value:""},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x50\\x4b(?:\\x03|\\x05|\\x07)(?:\\x04|\\x06|\\x08)",flags:"",args:["",!1]}],A}var g;return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g={password:y.b.strToByteArray(I[0]),verify:I[1]},e=new P.Unzip(new Uint8Array(A),g);return e.getFilenames().map((function(A){var I=e.decompress(A);return new File([I],A)}))}},{key:"present",value:(g=p()(F.a.mark((function A(I){return F.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,y.b.displayFilesAsHTML(I);case 2:return A.abrupt("return",A.sent);case 3:case"end":return A.stop()}}),A)}))),function(A){return g.apply(this,arguments)})}]),I}(h.a),_=g(807),$=g.n(_).a.Zlib,AA={Deflate:$.Zip.CompressionMethod.DEFLATE,"None (Store)":$.Zip.CompressionMethod.STORE},IA={MSDOS:$.Zip.OperatingSystem.MSDOS,Unix:$.Zip.OperatingSystem.UNIX,Macintosh:$.Zip.OperatingSystem.MACINTOSH},gA=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Zip",A.module="Compression",A.description="Compresses data using the PKZIP algorithm with the given filename.<br><br>No support for multiple files at this time.",A.infoURL="https://wikipedia.org/wiki/Zip_(file_format)",A.inputType="ArrayBuffer",A.outputType="File",A.args=[{name:"Filename",type:"string",value:"file.txt"},{name:"Comment",type:"string",value:""},{name:"Password",type:"binaryString",value:""},{name:"Compression method",type:"option",value:["Deflate","None (Store)"]},{name:"Operating system",type:"option",value:["MSDOS","Unix","Macintosh"]},{name:"Compression type",type:"option",value:M}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=I[0],e=y.b.strToByteArray(I[2]),t={filename:y.b.strToByteArray(g),comment:y.b.strToByteArray(I[1]),compressionMethod:AA[I[3]],os:IA[I[4]],deflateOption:{compressionType:R[I[5]]}},i=new $.Zip;return e.length&&i.setPassword(e),i.addFile(new Uint8Array(A),t),new File([i.compress()],g)}}]),I}(h.a),eA=k.a.Zlib,tA=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Zlib Deflate",A.module="Compression",A.description="Compresses data using the deflate algorithm adding zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Compression type",type:"option",value:M}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new eA.Deflate(new Uint8Array(A),{compressionType:R[I[0]]});return new Uint8Array(g.compress()).buffer}}]),I}(h.a),iA=k.a.Zlib,rA={Adaptive:iA.Inflate.BufferType.ADAPTIVE,Block:iA.Inflate.BufferType.BLOCK},CA=function(A){function I(){var A;return r()(this,I),(A=B()(this,E()(I).call(this))).name="Zlib Inflate",A.module="Compression",A.description="Decompresses data which has been compressed using the deflate algorithm with zlib headers.",A.infoURL="https://wikipedia.org/wiki/Zlib",A.inputType="ArrayBuffer",A.outputType="ArrayBuffer",A.args=[{name:"Start index",type:"number",value:0},{name:"Initial output buffer size",type:"number",value:0},{name:"Buffer expansion type",type:"option",value:N},{name:"Resize buffer after decompression",type:"boolean",value:!1},{name:"Verify result",type:"boolean",value:!1}],A.checks=[{pattern:"^\\x78(\\x01|\\x9c|\\xda|\\x5e)",flags:"",args:[0,0,"Adaptive",!1,!1]}],A}return s()(I,A),n()(I,[{key:"run",value:function(A,I){var g=new iA.Inflate(new Uint8Array(A),{index:I[0],bufferSize:I[1],bufferType:rA[I[2]],resize:I[3],verify:I[4]});return new Uint8Array(g.decompress()).buffer}}]),I}(h.a),nA="undefined"==typeof self?{}:self.OpModules||{};nA.Compression={"Bzip2 Compress":l,"Bzip2 Decompress":S,Gunzip:G,Gzip:H,"Raw Deflate":q,"Raw Inflate":W,Tar:Z,Untar:j,Unzip:z,Zip:gA,"Zlib Deflate":tA,"Zlib Inflate":CA};I.default=nA},15:function(A,I,g){"use strict";var e=g(8),t=g.n(e),i=g(11),r=g.n(i),C=g(1),n=g.n(C),o=g(2),B=g.n(o),a=g(0),E=g(4),Q=g.n(E),s=g(3),h=g.n(s),c=g(23),u=g.n(c),f=g(5),y=g.n(f);
/**
 * Custom error type for handling Dish type errors.
 * i.e. where the Dish cannot be successfully translated between types
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */
var l=function(A){function I(){var A;n()(this,I);for(var g=arguments.length,e=new Array(g),t=0;t<g;t++)e[t]=arguments[t];return(A=Q()(this,h()(I).call(this,...e))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(u()(A),I),A}return y()(I,A),I}(function(A){function I(){var I=Reflect.construct(A,Array.from(arguments));return Object.setPrototypeOf(I,Object.getPrototypeOf(this)),I}return I.prototype=Object.create(A.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(I,A):I.__proto__=A,I}(Error)),w=g(17),F=g.n(w),D=g(19),p=g(26),S=g.n(p),d=function(){function A(){n()(this,A)}return B()(A,null,[{key:"checkForValue",value:function(A){if(void 0===A)throw new Error("only use translation methods with .bind")}},{key:"toArrayBuffer",value:function(){throw new Error("toArrayBuffer has not been implemented")}},{key:"fromArrayBuffer",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];throw new Error("fromArrayBuffer has not been implemented")}}]),A}(),U=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){I.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),I}(d),G=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=F.a.isBigNumber(this.value)?a.b.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value);try{this.value=new F.a(a.b.arrayBufferToStr(this.value,!A))}catch(A){this.value=new F.a(NaN)}}}]),I}(d),m=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:function(){var A=this;if(I.checkForValue(this.value),!Object(a.c)())return new Promise((function(I,g){a.b.readFile(A.value).then((function(I){return A.value=I.buffer})).then(I).catch(g)}));this.value=a.b.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){I.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),I}(d),k=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=this.value?a.b.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value),this.value=this.value?a.b.arrayBufferToStr(this.value,!A):""}}]),I}(d),Y=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=this.value?a.b.strToArrayBuffer(a.b.unescapeHtml(a.b.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),I}(k),M=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value=void 0!==this.value?a.b.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value),this.value=JSON.parse(a.b.arrayBufferToStr(this.value,!A))}}]),I}(d),N=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}var g,e;return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:(e=r()(t.a.mark((function A(){return t.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(I.checkForValue(this.value),!Object(a.c)()){A.next=5;break}this.value=this.value.map((function(A){return Uint8Array.from(A.data)})),A.next=8;break;case 5:return A.next=7,I.concatenateTypedArraysWithTypedElements(...this.value);case 7:this.value=A.sent;case 8:case"end":return A.stop()}}),A,this)}))),function(){return e.apply(this,arguments)})},{key:"fromArrayBuffer",value:function(){I.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:(g=r()(t.a.mark((function A(){var I,g,e,i,r,C,n,o,B,E,Q,s,h,c=arguments;return t.a.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:for(I=0,g=c.length,e=new Array(g),i=0;i<g;i++)e[i]=c[i];for(r=0,C=e;r<C.length;r++)n=C[r],I+=n.size;o=new Uint8Array(I),B=0,E=0,Q=e;case 6:if(!(E<Q.length)){A.next=16;break}return s=Q[E],A.next=10,a.b.readFile(s);case 10:h=A.sent,o.set(h,B),B+=h.length;case 13:E++,A.next=6;break;case 16:return A.abrupt("return",o);case 17:case"end":return A.stop()}}),A)}))),function(){return g.apply(this,arguments)})},{key:"concatenateTypedArrays",value:function(){for(var A=0,I=arguments.length,g=new Array(I),e=0;e<I;e++)g[e]=arguments[e];for(var t=0,i=g;t<i.length;t++){var r=i[t];A+=r.length}for(var C=new Uint8Array(A),n=0,o=0,B=g;o<B.length;o++){var a=B[o];C.set(a,n),n+=a.length}return C}}]),I}(d),R=function(A){function I(){return n()(this,I),Q()(this,h()(I).apply(this,arguments))}return y()(I,A),B()(I,null,[{key:"toArrayBuffer",value:function(){I.checkForValue(this.value),this.value="number"==typeof this.value?a.b.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(A){I.checkForValue(this.value),this.value=this.value?parseFloat(a.b.arrayBufferToStr(this.value,!A)):0}}]),I}(d),b=function(){function A(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(n()(this,A),this.value=new ArrayBuffer(0),this.type=A.ARRAY_BUFFER,I&&Object.prototype.hasOwnProperty.call(I,"value")&&Object.prototype.hasOwnProperty.call(I,"type"))this.set(I.value,I.type);else if(I&&null!==g)this.set(I,g);else if(I){var e=A.typeEnum(I.constructor.name);this.set(I,e)}}var I;return B()(A,[{key:"get",value:function(I){var g=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof I&&(I=A.typeEnum(I)),this.type!==I?Object(a.c)()?(this._translate(I,e),this.value):new Promise((function(A,t){g._translate(I,e).then((function(){A(g.value)})).catch(t)})):this.value}},{key:"set",value:function(I,g){if("string"==typeof g&&(g=A.typeEnum(g)),S.a.debug("Dish type: "+A.enumLookup(g)),this.value=I,this.type=g,!this.valid()){var e=a.b.truncate(JSON.stringify(this.value),25);throw new l(`Data is not a valid ${A.enumLookup(g)}: ${e}`)}}},{key:"presentAs",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.clone();return g.get(A,I)}},{key:"detectDishType",value:function(){var A=new Uint8Array(this.value.slice(0,2048)),I=Object(D.a)(A);return I.length&&I[0].mime&&"text/plain"!==!I[0].mime?I[0].mime:null}},{key:"getTitle",value:(I=r()(t.a.mark((function I(g){var e,i;return t.a.wrap((function(I){for(;;)switch(I.prev=I.next){case 0:e="",I.t0=this.type,I.next=I.t0===A.FILE?4:I.t0===A.LIST_FILE?6:I.t0===A.JSON?8:I.t0===A.NUMBER||I.t0===A.BIG_NUMBER?10:I.t0===A.ARRAY_BUFFER||I.t0===A.BYTE_ARRAY?12:15;break;case 4:return e=this.value.name,I.abrupt("break",26);case 6:return e=`${this.value.length} file(s)`,I.abrupt("break",26);case 8:return e="application/json",I.abrupt("break",26);case 10:return e=this.value.toString(),I.abrupt("break",26);case 12:if(null===(e=this.detectDishType())){I.next=15;break}return I.abrupt("break",26);case 15:return I.prev=15,(i=this.clone()).value=i.value.slice(0,256),I.next=20,i.get(A.STRING);case 20:e=I.sent,I.next=26;break;case 23:I.prev=23,I.t1=I.catch(15),S.a.error(`${A.enumLookup(this.type)} cannot be sliced. ${I.t1}`);case 26:return I.abrupt("return",e.slice(0,g));case 27:case"end":return I.stop()}}),I,this,[[15,23]])}))),function(A){return I.apply(this,arguments)})},{key:"valid",value:function(){switch(this.type){case A.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var I=0;I<this.value.length;I++)if("number"!=typeof this.value[I]||this.value[I]<0||this.value[I]>255)return!1;return!0;case A.STRING:case A.HTML:return"string"==typeof this.value;case A.NUMBER:return"number"==typeof this.value;case A.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case A.BIG_NUMBER:if(F.a.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var g=new F.a;return g.c=this.value.c,g.e=this.value.e,g.s=this.value.s,this.value=g,!0}return!1;case A.JSON:return!0;case A.FILE:return this.value instanceof File;case A.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(A,I){return A&&I instanceof File}),!0);default:return!1}}},{key:"clone",value:function(){var I=new A;switch(this.type){case A.STRING:case A.HTML:case A.NUMBER:case A.BIG_NUMBER:I.set(this.value,this.type);break;case A.BYTE_ARRAY:case A.JSON:I.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case A.ARRAY_BUFFER:I.set(this.value.slice(0),this.type);break;case A.FILE:I.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case A.LIST_FILE:I.set(this.value.map((function(A){return new File([A],A.name,{type:A.type,lastModified:A.lastModified})})),this.type);break;default:throw new l("Cannot clone Dish, unknown type")}return I}},{key:"_translate",value:function(I){var g=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(S.a.debug(`Translating Dish from ${A.enumLookup(this.type)} to ${A.enumLookup(I)}`),!Object(a.c)())return new Promise((function(e,t){g._toArrayBuffer().then((function(){return g.type=A.ARRAY_BUFFER})).then((function(){g._fromArrayBuffer(I),e()})).catch(t)}));this._toArrayBuffer(),this.type=A.ARRAY_BUFFER,this._fromArrayBuffer(I,e)}},{key:"_toArrayBuffer",value:function(){var I=this,g={browser:{[A.STRING]:function(){return Promise.resolve(k.toArrayBuffer.bind(I)())},[A.NUMBER]:function(){return Promise.resolve(R.toArrayBuffer.bind(I)())},[A.HTML]:function(){return Promise.resolve(Y.toArrayBuffer.bind(I)())},[A.ARRAY_BUFFER]:function(){return Promise.resolve()},[A.BIG_NUMBER]:function(){return Promise.resolve(G.toArrayBuffer.bind(I)())},[A.JSON]:function(){return Promise.resolve(M.toArrayBuffer.bind(I)())},[A.FILE]:function(){return m.toArrayBuffer.bind(I)()},[A.LIST_FILE]:function(){return Promise.resolve(N.toArrayBuffer.bind(I)())},[A.BYTE_ARRAY]:function(){return Promise.resolve(U.toArrayBuffer.bind(I)())}},node:{[A.STRING]:function(){return k.toArrayBuffer.bind(I)()},[A.NUMBER]:function(){return R.toArrayBuffer.bind(I)()},[A.HTML]:function(){return Y.toArrayBuffer.bind(I)()},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return G.toArrayBuffer.bind(I)()},[A.JSON]:function(){return M.toArrayBuffer.bind(I)()},[A.FILE]:function(){return m.toArrayBuffer.bind(I)()},[A.LIST_FILE]:function(){return N.toArrayBuffer.bind(I)()},[A.BYTE_ARRAY]:function(){return U.toArrayBuffer.bind(I)()}}};try{return g[Object(a.c)()?"node":"browser"][this.type]()}catch(I){throw new l(`Error translating from ${A.enumLookup(this.type)} to ArrayBuffer: ${I}`)}}},{key:"_fromArrayBuffer",value:function(I,g){var e=this,t={[A.STRING]:function(){return k.fromArrayBuffer.bind(e)(g)},[A.NUMBER]:function(){return R.fromArrayBuffer.bind(e)(g)},[A.HTML]:function(){return Y.fromArrayBuffer.bind(e)(g)},[A.ARRAY_BUFFER]:function(){},[A.BIG_NUMBER]:function(){return G.fromArrayBuffer.bind(e)(g)},[A.JSON]:function(){return M.fromArrayBuffer.bind(e)(g)},[A.FILE]:function(){return m.fromArrayBuffer.bind(e)()},[A.LIST_FILE]:function(){return N.fromArrayBuffer.bind(e)()},[A.BYTE_ARRAY]:function(){return U.fromArrayBuffer.bind(e)()}};try{t[I](),this.type=I}catch(g){throw new l(`Error translating from ArrayBuffer to ${A.enumLookup(I)}: ${g}`)}}},{key:"size",get:function(){switch(this.type){case A.BYTE_ARRAY:case A.STRING:case A.HTML:return this.value.length;case A.NUMBER:case A.BIG_NUMBER:return this.value.toString().length;case A.ARRAY_BUFFER:return this.value.byteLength;case A.JSON:return JSON.stringify(this.value).length;case A.FILE:return this.value.size;case A.LIST_FILE:return this.value.reduce((function(A,I){return A+I.size}),0);default:return-1}}}],[{key:"typeEnum",value:function(I){switch(I.toLowerCase()){case"bytearray":case"byte array":return A.BYTE_ARRAY;case"string":return A.STRING;case"number":return A.NUMBER;case"html":return A.HTML;case"arraybuffer":case"array buffer":return A.ARRAY_BUFFER;case"bignumber":case"big number":return A.BIG_NUMBER;case"json":case"object":return A.JSON;case"file":return A.FILE;case"list<file>":return A.LIST_FILE;default:throw new l("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(I){switch(I){case A.BYTE_ARRAY:return"byteArray";case A.STRING:return"string";case A.NUMBER:return"number";case A.HTML:return"html";case A.ARRAY_BUFFER:return"ArrayBuffer";case A.BIG_NUMBER:return"BigNumber";case A.JSON:return"JSON";case A.FILE:return"File";case A.LIST_FILE:return"List<File>";default:throw new l("Invalid data type enum. No matching type.")}}}]),A}();b.BYTE_ARRAY=0,b.STRING=1,b.NUMBER=2,b.HTML=3,b.ARRAY_BUFFER=4,b.BIG_NUMBER=5,b.JSON=6,b.FILE=7,b.LIST_FILE=8;I.a=b},16:function(A,I,g){"use strict";g.d(I,"b",(function(){return i})),g.d(I,"a",(function(){return r}));var e=g(0),t=g(7);
/**
 * Base64 functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */
function i(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!A)return"";if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),"string"==typeof A&&(A=e.b.strToByteArray(A)),64!==(I=e.b.expandAlphRange(I).join("")).length&&65!==I.length)throw new t.a(`Invalid Base64 alphabet length (${I.length}): ${I}`);for(var g,i,r,C,n,o,B,a="",E=0;E<A.length;)C=(g=A[E++])>>2,n=(3&g)<<4|(i=A[E++])>>4,o=(15&i)<<2|(r=A[E++])>>6,B=63&r,isNaN(i)?o=B=64:isNaN(r)&&(B=64),a+=I.charAt(C)+I.charAt(n)+I.charAt(o)+I.charAt(B);return a}function r(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!A)return"string"===g?"":[];if(I=I||"A-Za-z0-9+/=",64!==(I=e.b.expandAlphRange(I).join("")).length&&65!==I.length)throw new t.a(`Invalid Base64 alphabet length (${I.length}): ${I}`);var r,C,n,o,B,a,E=[],Q=0;if(i){var s=new RegExp("[^"+I.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");A=A.replace(s,"")}for(;Q<A.length;)r=I.indexOf(A.charAt(Q++))<<2|(o=-1===(o=I.indexOf(A.charAt(Q++)||"="))?64:o)>>4,C=(15&o)<<4|(B=-1===(B=I.indexOf(A.charAt(Q++)||"="))?64:B)>>2,n=(3&B)<<6|(a=-1===(a=I.indexOf(A.charAt(Q++)||"="))?64:a),E.push(r),64!==B&&E.push(C),64!==a&&E.push(n);return"string"===g?e.b.byteArrayToUtf8(E):E}},17:function(A,I,g){var e;!function(t){"use strict";var i,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,C=Math.ceil,n=Math.floor,o="[BigNumber Error] ",B=o+"Number primitive has more than 15 significant digits: ",a=1e14,E=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Q=1e9;function s(A){var I=0|A;return A>0||A===I?I:I-1}function h(A){for(var I,g,e=1,t=A.length,i=A[0]+"";e<t;){for(g=14-(I=A[e++]+"").length;g--;I="0"+I);i+=I}for(t=i.length;48===i.charCodeAt(--t););return i.slice(0,t+1||1)}function c(A,I){var g,e,t=A.c,i=I.c,r=A.s,C=I.s,n=A.e,o=I.e;if(!r||!C)return null;if(g=t&&!t[0],e=i&&!i[0],g||e)return g?e?0:-C:r;if(r!=C)return r;if(g=r<0,e=n==o,!t||!i)return e?0:!t^g?1:-1;if(!e)return n>o^g?1:-1;for(C=(n=t.length)<(o=i.length)?n:o,r=0;r<C;r++)if(t[r]!=i[r])return t[r]>i[r]^g?1:-1;return n==o?0:n>o^g?1:-1}function u(A,I,g,e){if(A<I||A>g||A!==n(A))throw Error(o+(e||"Argument")+("number"==typeof A?A<I||A>g?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function f(A){var I=A.c.length-1;return s(A.e/14)==I&&A.c[I]%2!=0}function y(A,I){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(I<0?"e":"e+")+I}function l(A,I,g){var e,t;if(I<0){for(t=g+".";++I;t+=g);A=t+A}else if(++I>(e=A.length)){for(t=g,I-=e;--I;t+=g);A+=t}else I<e&&(A=A.slice(0,I)+"."+A.slice(I));return A}(i=function A(I){var g,e,t,i,w,F,D,p,S,d=J.prototype={constructor:J,toString:null,valueOf:null},U=new J(1),G=20,m=4,k=-7,Y=21,M=-1e7,N=1e7,R=!1,b=1,v=0,H={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},L="0123456789abcdefghijklmnopqrstuvwxyz";function J(A,I){var g,i,C,o,a,E,Q,s,h=this;if(!(h instanceof J))return new J(A,I);if(null==I){if(A&&!0===A._isBigNumber)return h.s=A.s,void(!A.c||A.e>N?h.c=h.e=null:A.e<M?h.c=[h.e=0]:(h.e=A.e,h.c=A.c.slice()));if((E="number"==typeof A)&&0*A==0){if(h.s=1/A<0?(A=-A,-1):1,A===~~A){for(o=0,a=A;a>=10;a/=10,o++);return void(o>N?h.c=h.e=null:(h.e=o,h.c=[A]))}s=String(A)}else{if(!r.test(s=String(A)))return t(h,s,E);h.s=45==s.charCodeAt(0)?(s=s.slice(1),-1):1}(o=s.indexOf("."))>-1&&(s=s.replace(".","")),(a=s.search(/e/i))>0?(o<0&&(o=a),o+=+s.slice(a+1),s=s.substring(0,a)):o<0&&(o=s.length)}else{if(u(I,2,L.length,"Base"),10==I)return x(h=new J(A),G+h.e+1,m);if(s=String(A),E="number"==typeof A){if(0*A!=0)return t(h,s,E,I);if(h.s=1/A<0?(s=s.slice(1),-1):1,J.DEBUG&&s.replace(/^0\.0*|\./,"").length>15)throw Error(B+A)}else h.s=45===s.charCodeAt(0)?(s=s.slice(1),-1):1;for(g=L.slice(0,I),o=a=0,Q=s.length;a<Q;a++)if(g.indexOf(i=s.charAt(a))<0){if("."==i){if(a>o){o=Q;continue}}else if(!C&&(s==s.toUpperCase()&&(s=s.toLowerCase())||s==s.toLowerCase()&&(s=s.toUpperCase()))){C=!0,a=-1,o=0;continue}return t(h,String(A),E,I)}E=!1,(o=(s=e(s,I,10,h.s)).indexOf("."))>-1?s=s.replace(".",""):o=s.length}for(a=0;48===s.charCodeAt(a);a++);for(Q=s.length;48===s.charCodeAt(--Q););if(s=s.slice(a,++Q)){if(Q-=a,E&&J.DEBUG&&Q>15&&(A>9007199254740991||A!==n(A)))throw Error(B+h.s*A);if((o=o-a-1)>N)h.c=h.e=null;else if(o<M)h.c=[h.e=0];else{if(h.e=o,h.c=[],a=(o+1)%14,o<0&&(a+=14),a<Q){for(a&&h.c.push(+s.slice(0,a)),Q-=14;a<Q;)h.c.push(+s.slice(a,a+=14));a=14-(s=s.slice(a)).length}else a-=Q;for(;a--;s+="0");h.c.push(+s)}}else h.c=[h.e=0]}function K(A,I,g,e){var t,i,r,C,n;if(null==g?g=m:u(g,0,8),!A.c)return A.toString();if(t=A.c[0],r=A.e,null==I)n=h(A.c),n=1==e||2==e&&(r<=k||r>=Y)?y(n,r):l(n,r,"0");else if(i=(A=x(new J(A),I,g)).e,C=(n=h(A.c)).length,1==e||2==e&&(I<=i||i<=k)){for(;C<I;n+="0",C++);n=y(n,i)}else if(I-=r,n=l(n,i,"0"),i+1>C){if(--I>0)for(n+=".";I--;n+="0");}else if((I+=i-C)>0)for(i+1==C&&(n+=".");I--;n+="0");return A.s<0&&t?"-"+n:n}function q(A,I){for(var g,e=1,t=new J(A[0]);e<A.length;e++){if(!(g=new J(A[e])).s){t=g;break}I.call(t,g)&&(t=g)}return t}function T(A,I,g){for(var e=1,t=I.length;!I[--t];I.pop());for(t=I[0];t>=10;t/=10,e++);return(g=e+14*g-1)>N?A.c=A.e=null:g<M?A.c=[A.e=0]:(A.e=g,A.c=I),A}function x(A,I,g,e){var t,i,r,o,B,Q,s,h=A.c,c=E;if(h){A:{for(t=1,o=h[0];o>=10;o/=10,t++);if((i=I-t)<0)i+=14,r=I,s=(B=h[Q=0])/c[t-r-1]%10|0;else if((Q=C((i+1)/14))>=h.length){if(!e)break A;for(;h.length<=Q;h.push(0));B=s=0,t=1,r=(i%=14)-14+1}else{for(B=o=h[Q],t=1;o>=10;o/=10,t++);s=(r=(i%=14)-14+t)<0?0:B/c[t-r-1]%10|0}if(e=e||I<0||null!=h[Q+1]||(r<0?B:B%c[t-r-1]),e=g<4?(s||e)&&(0==g||g==(A.s<0?3:2)):s>5||5==s&&(4==g||e||6==g&&(i>0?r>0?B/c[t-r]:0:h[Q-1])%10&1||g==(A.s<0?8:7)),I<1||!h[0])return h.length=0,e?(I-=A.e+1,h[0]=c[(14-I%14)%14],A.e=-I||0):h[0]=A.e=0,A;if(0==i?(h.length=Q,o=1,Q--):(h.length=Q+1,o=c[14-i],h[Q]=r>0?n(B/c[t-r]%c[r])*o:0),e)for(;;){if(0==Q){for(i=1,r=h[0];r>=10;r/=10,i++);for(r=h[0]+=o,o=1;r>=10;r/=10,o++);i!=o&&(A.e++,h[0]==a&&(h[0]=1));break}if(h[Q]+=o,h[Q]!=a)break;h[Q--]=0,o=1}for(i=h.length;0===h[--i];h.pop());}A.e>N?A.c=A.e=null:A.e<M&&(A.c=[A.e=0])}return A}function V(A){var I,g=A.e;return null===g?A.toString():(I=h(A.c),I=g<=k||g>=Y?y(I,g):l(I,g,"0"),A.s<0?"-"+I:I)}return J.clone=A,J.ROUND_UP=0,J.ROUND_DOWN=1,J.ROUND_CEIL=2,J.ROUND_FLOOR=3,J.ROUND_HALF_UP=4,J.ROUND_HALF_DOWN=5,J.ROUND_HALF_EVEN=6,J.ROUND_HALF_CEIL=7,J.ROUND_HALF_FLOOR=8,J.EUCLID=9,J.config=J.set=function(A){var I,g;if(null!=A){if("object"!=typeof A)throw Error(o+"Object expected: "+A);if(A.hasOwnProperty(I="DECIMAL_PLACES")&&(u(g=A[I],0,Q,I),G=g),A.hasOwnProperty(I="ROUNDING_MODE")&&(u(g=A[I],0,8,I),m=g),A.hasOwnProperty(I="EXPONENTIAL_AT")&&((g=A[I])&&g.pop?(u(g[0],-Q,0,I),u(g[1],0,Q,I),k=g[0],Y=g[1]):(u(g,-Q,Q,I),k=-(Y=g<0?-g:g))),A.hasOwnProperty(I="RANGE"))if((g=A[I])&&g.pop)u(g[0],-Q,-1,I),u(g[1],1,Q,I),M=g[0],N=g[1];else{if(u(g,-Q,Q,I),!g)throw Error(o+I+" cannot be zero: "+g);M=-(N=g<0?-g:g)}if(A.hasOwnProperty(I="CRYPTO")){if((g=A[I])!==!!g)throw Error(o+I+" not true or false: "+g);if(g){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw R=!g,Error(o+"crypto unavailable");R=g}else R=g}if(A.hasOwnProperty(I="MODULO_MODE")&&(u(g=A[I],0,9,I),b=g),A.hasOwnProperty(I="POW_PRECISION")&&(u(g=A[I],0,Q,I),v=g),A.hasOwnProperty(I="FORMAT")){if("object"!=typeof(g=A[I]))throw Error(o+I+" not an object: "+g);H=g}if(A.hasOwnProperty(I="ALPHABET")){if("string"!=typeof(g=A[I])||/^.$|[+-.\s]|(.).*\1/.test(g))throw Error(o+I+" invalid: "+g);L=g}}return{DECIMAL_PLACES:G,ROUNDING_MODE:m,EXPONENTIAL_AT:[k,Y],RANGE:[M,N],CRYPTO:R,MODULO_MODE:b,POW_PRECISION:v,FORMAT:H,ALPHABET:L}},J.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!J.DEBUG)return!0;var I,g,e=A.c,t=A.e,i=A.s;A:if("[object Array]"=={}.toString.call(e)){if((1===i||-1===i)&&t>=-Q&&t<=Q&&t===n(t)){if(0===e[0]){if(0===t&&1===e.length)return!0;break A}if((I=(t+1)%14)<1&&(I+=14),String(e[0]).length==I){for(I=0;I<e.length;I++)if((g=e[I])<0||g>=a||g!==n(g))break A;if(0!==g)return!0}}}else if(null===e&&null===t&&(null===i||1===i||-1===i))return!0;throw Error(o+"Invalid BigNumber: "+A)},J.maximum=J.max=function(){return q(arguments,d.lt)},J.minimum=J.min=function(){return q(arguments,d.gt)},J.random=(i=9007199254740992*Math.random()&2097151?function(){return n(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(A){var I,g,e,t,r,B=0,a=[],s=new J(U);if(null==A?A=G:u(A,0,Q),t=C(A/14),R)if(crypto.getRandomValues){for(I=crypto.getRandomValues(new Uint32Array(t*=2));B<t;)(r=131072*I[B]+(I[B+1]>>>11))>=9e15?(g=crypto.getRandomValues(new Uint32Array(2)),I[B]=g[0],I[B+1]=g[1]):(a.push(r%1e14),B+=2);B=t/2}else{if(!crypto.randomBytes)throw R=!1,Error(o+"crypto unavailable");for(I=crypto.randomBytes(t*=7);B<t;)(r=281474976710656*(31&I[B])+1099511627776*I[B+1]+4294967296*I[B+2]+16777216*I[B+3]+(I[B+4]<<16)+(I[B+5]<<8)+I[B+6])>=9e15?crypto.randomBytes(7).copy(I,B):(a.push(r%1e14),B+=7);B=t/7}if(!R)for(;B<t;)(r=i())<9e15&&(a[B++]=r%1e14);for(A%=14,(t=a[--B])&&A&&(r=E[14-A],a[B]=n(t/r)*r);0===a[B];a.pop(),B--);if(B<0)a=[e=0];else{for(e=-1;0===a[0];a.splice(0,1),e-=14);for(B=1,r=a[0];r>=10;r/=10,B++);B<14&&(e-=14-B)}return s.e=e,s.c=a,s}),J.sum=function(){for(var A=1,I=arguments,g=new J(I[0]);A<I.length;)g=g.plus(I[A++]);return g},e=function(){function A(A,I,g,e){for(var t,i,r=[0],C=0,n=A.length;C<n;){for(i=r.length;i--;r[i]*=I);for(r[0]+=e.indexOf(A.charAt(C++)),t=0;t<r.length;t++)r[t]>g-1&&(null==r[t+1]&&(r[t+1]=0),r[t+1]+=r[t]/g|0,r[t]%=g)}return r.reverse()}return function(I,e,t,i,r){var C,n,o,B,a,E,Q,s,c=I.indexOf("."),u=G,f=m;for(c>=0&&(B=v,v=0,I=I.replace(".",""),E=(s=new J(e)).pow(I.length-c),v=B,s.c=A(l(h(E.c),E.e,"0"),10,t,"0123456789"),s.e=s.c.length),o=B=(Q=A(I,e,t,r?(C=L,"0123456789"):(C="0123456789",L))).length;0==Q[--B];Q.pop());if(!Q[0])return C.charAt(0);if(c<0?--o:(E.c=Q,E.e=o,E.s=i,Q=(E=g(E,s,u,f,t)).c,a=E.r,o=E.e),c=Q[n=o+u+1],B=t/2,a=a||n<0||null!=Q[n+1],a=f<4?(null!=c||a)&&(0==f||f==(E.s<0?3:2)):c>B||c==B&&(4==f||a||6==f&&1&Q[n-1]||f==(E.s<0?8:7)),n<1||!Q[0])I=a?l(C.charAt(1),-u,C.charAt(0)):C.charAt(0);else{if(Q.length=n,a)for(--t;++Q[--n]>t;)Q[n]=0,n||(++o,Q=[1].concat(Q));for(B=Q.length;!Q[--B];);for(c=0,I="";c<=B;I+=C.charAt(Q[c++]));I=l(I,o,C.charAt(0))}return I}}(),g=function(){function A(A,I,g){var e,t,i,r,C=0,n=A.length,o=I%1e7,B=I/1e7|0;for(A=A.slice();n--;)C=((t=o*(i=A[n]%1e7)+(e=B*i+(r=A[n]/1e7|0)*o)%1e7*1e7+C)/g|0)+(e/1e7|0)+B*r,A[n]=t%g;return C&&(A=[C].concat(A)),A}function I(A,I,g,e){var t,i;if(g!=e)i=g>e?1:-1;else for(t=i=0;t<g;t++)if(A[t]!=I[t]){i=A[t]>I[t]?1:-1;break}return i}function g(A,I,g,e){for(var t=0;g--;)A[g]-=t,t=A[g]<I[g]?1:0,A[g]=t*e+A[g]-I[g];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(e,t,i,r,C){var o,B,E,Q,h,c,u,f,y,l,w,F,D,p,S,d,U,G=e.s==t.s?1:-1,m=e.c,k=t.c;if(!(m&&m[0]&&k&&k[0]))return new J(e.s&&t.s&&(m?!k||m[0]!=k[0]:k)?m&&0==m[0]||!k?0*G:G/0:NaN);for(y=(f=new J(G)).c=[],G=i+(B=e.e-t.e)+1,C||(C=a,B=s(e.e/14)-s(t.e/14),G=G/14|0),E=0;k[E]==(m[E]||0);E++);if(k[E]>(m[E]||0)&&B--,G<0)y.push(1),Q=!0;else{for(p=m.length,d=k.length,E=0,G+=2,(h=n(C/(k[0]+1)))>1&&(k=A(k,h,C),m=A(m,h,C),d=k.length,p=m.length),D=d,w=(l=m.slice(0,d)).length;w<d;l[w++]=0);U=k.slice(),U=[0].concat(U),S=k[0],k[1]>=C/2&&S++;do{if(h=0,(o=I(k,l,d,w))<0){if(F=l[0],d!=w&&(F=F*C+(l[1]||0)),(h=n(F/S))>1)for(h>=C&&(h=C-1),u=(c=A(k,h,C)).length,w=l.length;1==I(c,l,u,w);)h--,g(c,d<u?U:k,u,C),u=c.length,o=1;else 0==h&&(o=h=1),u=(c=k.slice()).length;if(u<w&&(c=[0].concat(c)),g(l,c,w,C),w=l.length,-1==o)for(;I(k,l,d,w)<1;)h++,g(l,d<w?U:k,w,C),w=l.length}else 0===o&&(h++,l=[0]);y[E++]=h,l[0]?l[w++]=m[D]||0:(l=[m[D]],w=1)}while((D++<p||null!=l[0])&&G--);Q=null!=l[0],y[0]||y.splice(0,1)}if(C==a){for(E=1,G=y[0];G>=10;G/=10,E++);x(f,i+(f.e=E+14*B-1)+1,r,Q)}else f.e=B,f.r=+Q;return f}}(),w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,F=/^([^.]+)\.$/,D=/^\.([^.]+)$/,p=/^-?(Infinity|NaN)$/,S=/^\s*\+(?=[\w.])|^\s+|\s+$/g,t=function(A,I,g,e){var t,i=g?I:I.replace(S,"");if(p.test(i))A.s=isNaN(i)?null:i<0?-1:1;else{if(!g&&(i=i.replace(w,(function(A,I,g){return t="x"==(g=g.toLowerCase())?16:"b"==g?2:8,e&&e!=t?A:I})),e&&(t=e,i=i.replace(F,"$1").replace(D,"0.$1")),I!=i))return new J(i,t);if(J.DEBUG)throw Error(o+"Not a"+(e?" base "+e:"")+" number: "+I);A.s=null}A.c=A.e=null},d.absoluteValue=d.abs=function(){var A=new J(this);return A.s<0&&(A.s=1),A},d.comparedTo=function(A,I){return c(this,new J(A,I))},d.decimalPlaces=d.dp=function(A,I){var g,e,t,i=this;if(null!=A)return u(A,0,Q),null==I?I=m:u(I,0,8),x(new J(i),A+i.e+1,I);if(!(g=i.c))return null;if(e=14*((t=g.length-1)-s(this.e/14)),t=g[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},d.dividedBy=d.div=function(A,I){return g(this,new J(A,I),G,m)},d.dividedToIntegerBy=d.idiv=function(A,I){return g(this,new J(A,I),0,1)},d.exponentiatedBy=d.pow=function(A,I){var g,e,t,i,r,B,a,E,Q=this;if((A=new J(A)).c&&!A.isInteger())throw Error(o+"Exponent not an integer: "+V(A));if(null!=I&&(I=new J(I)),r=A.e>14,!Q.c||!Q.c[0]||1==Q.c[0]&&!Q.e&&1==Q.c.length||!A.c||!A.c[0])return E=new J(Math.pow(+V(Q),r?2-f(A):+V(A))),I?E.mod(I):E;if(B=A.s<0,I){if(I.c?!I.c[0]:!I.s)return new J(NaN);(e=!B&&Q.isInteger()&&I.isInteger())&&(Q=Q.mod(I))}else{if(A.e>9&&(Q.e>0||Q.e<-1||(0==Q.e?Q.c[0]>1||r&&Q.c[1]>=24e7:Q.c[0]<8e13||r&&Q.c[0]<=9999975e7)))return i=Q.s<0&&f(A)?-0:0,Q.e>-1&&(i=1/i),new J(B?1/i:i);v&&(i=C(v/14+2))}for(r?(g=new J(.5),B&&(A.s=1),a=f(A)):a=(t=Math.abs(+V(A)))%2,E=new J(U);;){if(a){if(!(E=E.times(Q)).c)break;i?E.c.length>i&&(E.c.length=i):e&&(E=E.mod(I))}if(t){if(0===(t=n(t/2)))break;a=t%2}else if(x(A=A.times(g),A.e+1,1),A.e>14)a=f(A);else{if(0===(t=+V(A)))break;a=t%2}Q=Q.times(Q),i?Q.c&&Q.c.length>i&&(Q.c.length=i):e&&(Q=Q.mod(I))}return e?E:(B&&(E=U.div(E)),I?E.mod(I):i?x(E,v,m,void 0):E)},d.integerValue=function(A){var I=new J(this);return null==A?A=m:u(A,0,8),x(I,I.e+1,A)},d.isEqualTo=d.eq=function(A,I){return 0===c(this,new J(A,I))},d.isFinite=function(){return!!this.c},d.isGreaterThan=d.gt=function(A,I){return c(this,new J(A,I))>0},d.isGreaterThanOrEqualTo=d.gte=function(A,I){return 1===(I=c(this,new J(A,I)))||0===I},d.isInteger=function(){return!!this.c&&s(this.e/14)>this.c.length-2},d.isLessThan=d.lt=function(A,I){return c(this,new J(A,I))<0},d.isLessThanOrEqualTo=d.lte=function(A,I){return-1===(I=c(this,new J(A,I)))||0===I},d.isNaN=function(){return!this.s},d.isNegative=function(){return this.s<0},d.isPositive=function(){return this.s>0},d.isZero=function(){return!!this.c&&0==this.c[0]},d.minus=function(A,I){var g,e,t,i,r=this,C=r.s;if(I=(A=new J(A,I)).s,!C||!I)return new J(NaN);if(C!=I)return A.s=-I,r.plus(A);var n=r.e/14,o=A.e/14,B=r.c,E=A.c;if(!n||!o){if(!B||!E)return B?(A.s=-I,A):new J(E?r:NaN);if(!B[0]||!E[0])return E[0]?(A.s=-I,A):new J(B[0]?r:3==m?-0:0)}if(n=s(n),o=s(o),B=B.slice(),C=n-o){for((i=C<0)?(C=-C,t=B):(o=n,t=E),t.reverse(),I=C;I--;t.push(0));t.reverse()}else for(e=(i=(C=B.length)<(I=E.length))?C:I,C=I=0;I<e;I++)if(B[I]!=E[I]){i=B[I]<E[I];break}if(i&&(t=B,B=E,E=t,A.s=-A.s),(I=(e=E.length)-(g=B.length))>0)for(;I--;B[g++]=0);for(I=a-1;e>C;){if(B[--e]<E[e]){for(g=e;g&&!B[--g];B[g]=I);--B[g],B[e]+=a}B[e]-=E[e]}for(;0==B[0];B.splice(0,1),--o);return B[0]?T(A,B,o):(A.s=3==m?-1:1,A.c=[A.e=0],A)},d.modulo=d.mod=function(A,I){var e,t,i=this;return A=new J(A,I),!i.c||!A.s||A.c&&!A.c[0]?new J(NaN):!A.c||i.c&&!i.c[0]?new J(i):(9==b?(t=A.s,A.s=1,e=g(i,A,0,3),A.s=t,e.s*=t):e=g(i,A,0,b),(A=i.minus(e.times(A))).c[0]||1!=b||(A.s=i.s),A)},d.multipliedBy=d.times=function(A,I){var g,e,t,i,r,C,n,o,B,E,Q,h,c,u,f=this,y=f.c,l=(A=new J(A,I)).c;if(!(y&&l&&y[0]&&l[0]))return!f.s||!A.s||y&&!y[0]&&!l||l&&!l[0]&&!y?A.c=A.e=A.s=null:(A.s*=f.s,y&&l?(A.c=[0],A.e=0):A.c=A.e=null),A;for(e=s(f.e/14)+s(A.e/14),A.s*=f.s,(n=y.length)<(E=l.length)&&(c=y,y=l,l=c,t=n,n=E,E=t),t=n+E,c=[];t--;c.push(0));for(u=a,1e7,t=E;--t>=0;){for(g=0,Q=l[t]%1e7,h=l[t]/1e7|0,i=t+(r=n);i>t;)g=((o=Q*(o=y[--r]%1e7)+(C=h*o+(B=y[r]/1e7|0)*Q)%1e7*1e7+c[i]+g)/u|0)+(C/1e7|0)+h*B,c[i--]=o%u;c[i]=g}return g?++e:c.splice(0,1),T(A,c,e)},d.negated=function(){var A=new J(this);return A.s=-A.s||null,A},d.plus=function(A,I){var g,e=this,t=e.s;if(I=(A=new J(A,I)).s,!t||!I)return new J(NaN);if(t!=I)return A.s=-I,e.minus(A);var i=e.e/14,r=A.e/14,C=e.c,n=A.c;if(!i||!r){if(!C||!n)return new J(t/0);if(!C[0]||!n[0])return n[0]?A:new J(C[0]?e:0*t)}if(i=s(i),r=s(r),C=C.slice(),t=i-r){for(t>0?(r=i,g=n):(t=-t,g=C),g.reverse();t--;g.push(0));g.reverse()}for((t=C.length)-(I=n.length)<0&&(g=n,n=C,C=g,I=t),t=0;I;)t=(C[--I]=C[I]+n[I]+t)/a|0,C[I]=a===C[I]?0:C[I]%a;return t&&(C=[t].concat(C),++r),T(A,C,r)},d.precision=d.sd=function(A,I){var g,e,t,i=this;if(null!=A&&A!==!!A)return u(A,1,Q),null==I?I=m:u(I,0,8),x(new J(i),A,I);if(!(g=i.c))return null;if(e=14*(t=g.length-1)+1,t=g[t]){for(;t%10==0;t/=10,e--);for(t=g[0];t>=10;t/=10,e++);}return A&&i.e+1>e&&(e=i.e+1),e},d.shiftedBy=function(A){return u(A,-9007199254740991,9007199254740991),this.times("1e"+A)},d.squareRoot=d.sqrt=function(){var A,I,e,t,i,r=this,C=r.c,n=r.s,o=r.e,B=G+4,a=new J("0.5");if(1!==n||!C||!C[0])return new J(!n||n<0&&(!C||C[0])?NaN:C?r:1/0);if(0==(n=Math.sqrt(+V(r)))||n==1/0?(((I=h(C)).length+o)%2==0&&(I+="0"),n=Math.sqrt(+I),o=s((o+1)/2)-(o<0||o%2),e=new J(I=n==1/0?"1e"+o:(I=n.toExponential()).slice(0,I.indexOf("e")+1)+o)):e=new J(n+""),e.c[0])for((n=(o=e.e)+B)<3&&(n=0);;)if(i=e,e=a.times(i.plus(g(r,i,B,1))),h(i.c).slice(0,n)===(I=h(e.c)).slice(0,n)){if(e.e<o&&--n,"9999"!=(I=I.slice(n-3,n+1))&&(t||"4999"!=I)){+I&&(+I.slice(1)||"5"!=I.charAt(0))||(x(e,e.e+G+2,1),A=!e.times(e).eq(r));break}if(!t&&(x(i,i.e+G+2,0),i.times(i).eq(r))){e=i;break}B+=4,n+=4,t=1}return x(e,e.e+G+1,m,A)},d.toExponential=function(A,I){return null!=A&&(u(A,0,Q),A++),K(this,A,I,1)},d.toFixed=function(A,I){return null!=A&&(u(A,0,Q),A=A+this.e+1),K(this,A,I)},d.toFormat=function(A,I,g){var e,t=this;if(null==g)null!=A&&I&&"object"==typeof I?(g=I,I=null):A&&"object"==typeof A?(g=A,A=I=null):g=H;else if("object"!=typeof g)throw Error(o+"Argument not an object: "+g);if(e=t.toFixed(A,I),t.c){var i,r=e.split("."),C=+g.groupSize,n=+g.secondaryGroupSize,B=g.groupSeparator||"",a=r[0],E=r[1],Q=t.s<0,s=Q?a.slice(1):a,h=s.length;if(n&&(i=C,C=n,n=i,h-=i),C>0&&h>0){for(i=h%C||C,a=s.substr(0,i);i<h;i+=C)a+=B+s.substr(i,C);n>0&&(a+=B+s.slice(i)),Q&&(a="-"+a)}e=E?a+(g.decimalSeparator||"")+((n=+g.fractionGroupSize)?E.replace(new RegExp("\\d{"+n+"}\\B","g"),"$&"+(g.fractionGroupSeparator||"")):E):a}return(g.prefix||"")+e+(g.suffix||"")},d.toFraction=function(A){var I,e,t,i,r,C,n,B,a,Q,s,c,u=this,f=u.c;if(null!=A&&(!(n=new J(A)).isInteger()&&(n.c||1!==n.s)||n.lt(U)))throw Error(o+"Argument "+(n.isInteger()?"out of range: ":"not an integer: ")+V(n));if(!f)return new J(u);for(I=new J(U),a=e=new J(U),t=B=new J(U),c=h(f),r=I.e=c.length-u.e-1,I.c[0]=E[(C=r%14)<0?14+C:C],A=!A||n.comparedTo(I)>0?r>0?I:a:n,C=N,N=1/0,n=new J(c),B.c[0]=0;Q=g(n,I,0,1),1!=(i=e.plus(Q.times(t))).comparedTo(A);)e=t,t=i,a=B.plus(Q.times(i=a)),B=i,I=n.minus(Q.times(i=I)),n=i;return i=g(A.minus(e),t,0,1),B=B.plus(i.times(a)),e=e.plus(i.times(t)),B.s=a.s=u.s,s=g(a,t,r*=2,m).minus(u).abs().comparedTo(g(B,e,r,m).minus(u).abs())<1?[a,t]:[B,e],N=C,s},d.toNumber=function(){return+V(this)},d.toPrecision=function(A,I){return null!=A&&u(A,1,Q),K(this,A,I,2)},d.toString=function(A){var I,g=this,t=g.s,i=g.e;return null===i?t?(I="Infinity",t<0&&(I="-"+I)):I="NaN":(null==A?I=i<=k||i>=Y?y(h(g.c),i):l(h(g.c),i,"0"):10===A?I=l(h((g=x(new J(g),G+i+1,m)).c),g.e,"0"):(u(A,2,L.length,"Base"),I=e(l(h(g.c),i,"0"),10,A,t,!0)),t<0&&g.c[0]&&(I="-"+I)),I},d.valueOf=d.toJSON=function(){return V(this)},d._isBigNumber=!0,null!=I&&J.set(I),J}()).default=i.BigNumber=i,void 0===(e=function(){return i}.call(I,g,I,A))||(A.exports=e)}()},19:function(A,I,g){"use strict";g.d(I,"a",(function(){return F})),g.d(I,"b",(function(){return D}));var e=g(13),t=g.n(e),i=g(6),r={Images:[{name:"Joint Photographic Experts Group image",extension:"jpg,jpeg,jpe,thm,mpo",mime:"image/jpeg",description:"",signature:{0:255,1:216,2:255,3:[192,196,219,221,224,225,226,227,228,229,231,232,234,235,236,237,238,254]},extractor:function(A,I){var g=new i.a(A.slice(I));for(;g.hasMore();){var e=g.getBytes(2);if(255!==e[0])throw new Error(`Invalid marker while parsing JPEG at pos ${g.position}: ${e}`);var t=0;switch(e[1]){case 216:case 1:break;case 217:return g.carve();case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 207:case 219:case 222:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:t=g.readInt(2,"be"),g.position+=t-2;break;case 223:g.position++;break;case 220:case 221:g.position+=2;break;case 218:t=g.readInt(2,"be"),g.position+=t-2,g.continueUntil(255);break;case 0:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:default:g.continueUntil(255)}}throw new Error("Unable to parse JPEG successfully")}},{name:"Graphics Interchange Format image",extension:"gif",mime:"image/gif",description:"",signature:{0:71,1:73,2:70,3:56,4:[55,57],5:97},extractor:function(A,I){var g=new i.a(A.slice(I));g.continueUntil([33,255]),g.continueUntil([33,249]),g.moveForwardsBy(2);for(;g.hasMore();){for(g.moveForwardsBy(g.readInt(1)+1),g.moveForwardsBy(11);g.getBytes(2)!==[33,249]&&(g.moveBackwardsBy(2),g.moveForwardsBy(g.readInt(1)),g.readInt(1));)g.moveBackwardsBy(1);if(59===g.readInt(1))break;g.moveForwardsBy(1)}return g.carve()}},{name:"Portable Network Graphics image",extension:"png",mime:"image/png",description:"",signature:{0:137,1:80,2:78,3:71,4:13,5:10,6:26,7:10},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(8);var e=0,t="";for(;"IEND"!==t;)e=g.readInt(4,"be"),t=g.readString(4),g.moveForwardsBy(e+4);return g.carve()}},{name:"WEBP Image",extension:"webp",mime:"image/webp",description:"",signature:{8:87,9:69,10:66,11:80},extractor:null},{name:"Camera Image File Format",extension:"crw",mime:"image/x-canon-crw",description:"",signature:{6:72,7:69,8:65,9:80,10:67,11:67,12:68,13:82},extractor:null},{name:"Canon CR2 raw image",extension:"cr2",mime:"image/x-canon-cr2",description:"",signature:[{0:73,1:73,2:42,3:0,8:67,9:82},{0:77,1:77,2:0,3:42,8:67,9:82}],extractor:null},{name:"Tagged Image File Format image",extension:"tif",mime:"image/tiff",description:"",signature:[{0:73,1:73,2:42,3:0},{0:77,1:77,2:0,3:42}],extractor:null},{name:"Bitmap image",extension:"bmp",mime:"image/bmp",description:"",signature:{0:66,1:77,7:0,9:0,14:[12,40,56,64,108,124],15:0,16:0,17:0},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(2);var e=g.readInt(4,"le");return g.moveForwardsBy(e-6),g.carve()}},{name:"JPEG Extended Range image",extension:"jxr",mime:"image/vnd.ms-photo",description:"",signature:{0:73,1:73,2:188},extractor:null},{name:"Photoshop image",extension:"psd",mime:"image/vnd.adobe.photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:1,6:0,7:0,8:0,9:0,10:0,11:0},extractor:null},{name:"Photoshop Large Document",extension:"psb",mime:"application/x-photoshop",description:"",signature:{0:56,1:66,2:80,3:83,4:0,5:2,6:0,7:0,8:0,9:0,10:0,11:0,12:0},extractor:null},{name:"Paint Shop Pro image",extension:"psp",mime:"image/psp",description:"",signature:[{0:80,1:97,2:105,3:110,4:116,5:32,6:83,7:104,8:111,9:112,10:32,11:80,12:114,13:111,14:32,15:73,16:109},{0:126,1:66,2:75,3:0}],extractor:null},{name:"The GIMP image",extension:"xcf",mime:"image/x-xcf",description:"",signature:{0:103,1:105,2:109,3:112,4:32,5:120,6:99,7:102,8:32,9:[102,118],10:[105,48],11:[108,48],12:[101,49,50,51]},extractor:null},{name:"Icon image",extension:"ico",mime:"image/x-icon",description:"",signature:{0:0,1:0,2:1,3:0,4:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],5:0,6:[16,32,48,64,128],7:[16,32,48,64,128],9:0,10:[0,1]},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveTo(4);var e=g.readInt(2,"le");g.moveForwardsBy(8+16*(e-1));var t=g.readInt(4,"le"),r=g.readInt(4,"le");return g.moveTo(r+t),g.carve()}},{name:"Radiance High Dynamic Range image",extension:"hdr",mime:"image/vnd.radiance",description:"",signature:{0:35,1:63,2:82,3:65,4:68,5:73,6:65,7:78,8:67,9:69,10:10},extractor:null},{name:"Sony ARW image",extension:"arw",mime:"image/x-raw",description:"",signature:{0:5,1:0,2:0,3:0,4:65,5:87,6:49,7:46},extractor:null},{name:"Fujifilm Raw Image",extension:"raf",mime:"image/x-raw",description:"",signature:{0:70,1:85,2:74,3:73,4:70,5:73,6:76,7:77,8:67,9:67,10:68,11:45,12:82,13:65,14:87},extractor:null},{name:"Minolta RAW image",extension:"mrw",mime:"image/x-raw",description:"",signature:{0:0,1:77,2:82,3:77},extractor:null},{name:"Adobe Bridge Thumbnail Cache",extension:"bct",mime:"application/octet-stream",description:"",signature:{0:108,1:110,2:98,3:116,4:2,5:0,6:0,7:0},extractor:null},{name:"Microsoft Document Imaging",extension:"mdi",mime:"image/vnd.ms-modi",description:"",signature:{0:69,1:80,2:42,3:0},extractor:null},{name:"Joint Photographic Experts Group image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:47,1:57,2:106,3:47,4:52},extractor:null},{name:"Portable Network Graphics image (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:105,1:86,2:66,3:79,4:82,5:119,6:48},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,123d",mime:"application/acad",description:"",signature:{0:65,1:67,2:49,3:48,4:[48,49],5:[48,49,50,51,52,53],6:0},extractor:null},{name:"AutoCAD Drawing",extension:"dwg,dwt",mime:"application/acad",description:"",signature:[{0:65,1:67,2:49,3:48,4:49,5:56,6:0},{0:65,1:67,2:49,3:48,4:50,5:52,6:0},{0:65,1:67,2:49,3:48,4:50,5:55,6:0}],extractor:null},{name:"Targa Image",extension:"tga",mime:"image/x-targa",description:"",signature:[{0:84,1:82,2:85,3:69,4:86,5:73,6:83,7:73,8:79,9:78,10:45,11:88,12:70,13:73,14:76,15:69,16:46}],extractor:function(A,I){var g=new i.a(A);g.moveTo(I-8);var e=g.readInt(4,"le"),t=g.readInt(4,"le");function r(A,I){for(var e=0;e<A;e++){g.moveBackwardsBy(1);var t=g.readInt(I,"le")-1;if(g.moveBackwardsBy(I),t===e)break}}g.moveBackwardsBy(8),e||t?e?(r(65535,2),g.moveBackwardsBy(e)):t&&(r(4294967295,4),g.moveBackwardsBy(6),g.moveBackwardsBy(t)):(!function(){g.moveBackwardsBy(5);for(var A=0;A<1048576;A++){if(g.readInt(2,"le")*g.readInt(2,"le")*g.readInt(1)/8===A-1)break;g.moveBackwardsBy(6)}}(),g.moveBackwardsBy(17));return g.carve(g.position,I+18)}}],Video:[{name:"Matroska Multimedia Container",extension:"mkv",mime:"video/x-matroska",description:"",signature:{31:109,32:97,33:116,34:114,35:111,36:115,37:107,38:97},extractor:null},{name:"WEBM video",extension:"webm",mime:"video/webm",description:"",signature:{0:26,1:69,2:223,3:163},extractor:null},{name:"Flash MP4 video",extension:"f4v",mime:"video/mp4",description:"",signature:{4:102,5:116,6:121,7:112,8:[102,70],9:52,10:[118,86],11:32},extractor:null},{name:"MPEG-4 video",extension:"mp4",mime:"video/mp4",description:"",signature:[{0:0,1:0,2:0,3:[24,32],4:102,5:116,6:121,7:112},{0:51,1:103,2:112,3:53},{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:109,9:112,10:52,11:50,16:109,17:112,18:52,19:49,20:109,21:112,22:52,23:50,24:105,25:115,26:111,27:109}],extractor:null},{name:"M4V video",extension:"m4v",mime:"video/x-m4v",description:"",signature:{0:0,1:0,2:0,3:28,4:102,5:116,6:121,7:112,8:77,9:52,10:86},extractor:null},{name:"Quicktime video",extension:"mov",mime:"video/quicktime",description:"",signature:{0:0,1:0,2:0,3:20,4:102,5:116,6:121,7:112},extractor:null},{name:"Audio Video Interleave",extension:"avi",mime:"video/x-msvideo",description:"",signature:{0:82,1:73,2:70,3:70,8:65,9:86,10:73},extractor:null},{name:"Windows Media Video",extension:"wmv",mime:"video/x-ms-wmv",description:"",signature:{0:48,1:38,2:178,3:117,4:142,5:102,6:207,7:17,8:166,9:217},extractor:null},{name:"MPEG video",extension:"mpg",mime:"video/mpeg",description:"",signature:{0:0,1:0,2:1,3:186},extractor:null},{name:"Flash Video",extension:"flv",mime:"video/x-flv",description:"",signature:{0:70,1:76,2:86,3:1},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(5);var e=g.readInt(4,"be");g.moveForwardsBy(e-9);var t=-11;for(;g.hasMore();){var r=g.readInt(4,"be"),C=g.readInt(1);if([8,9,18].indexOf(C)<0){g.moveBackwardsBy(1);break}if(r!==t+11){g.moveBackwardsBy(t+11+5);break}t=g.readInt(3,"be"),g.moveForwardsBy(7+t)}return g.carve()}},{name:"OGG Video",extension:"ogv,ogm,opus,ogx",mime:"video/ogg",description:"",signature:[{0:79,1:103,2:103,3:83,4:0,5:2,28:1,29:118,30:105,31:100,32:101,33:111},{0:79,1:103,2:103,3:83,4:0,5:2,28:128,29:116,30:104,31:101,32:111,33:114,34:97},{0:79,1:103,2:103,3:83,4:0,5:2,28:102,29:105,30:115,31:104,32:101,33:97,34:100}],extractor:null}],Audio:[{name:"Waveform Audio",extension:"wav",mime:"audio/x-wav",description:"",signature:{0:82,1:73,2:70,3:70,8:87,9:65,10:86,11:69},extractor:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(4),g.moveTo(g.readInt(4,"le")+8),g.carve()}},{name:"OGG audio",extension:"ogg",mime:"audio/ogg",description:"",signature:{0:79,1:103,2:103,3:83},extractor:null},{name:"Musical Instrument Digital Interface audio",extension:"midi",mime:"audio/midi",description:"",signature:{0:77,1:84,2:104,3:100},extractor:null},{name:"MPEG-3 audio",extension:"mp3",mime:"audio/mpeg",description:"",signature:[{0:73,1:68,2:51},{0:255,1:251}],extractor:function(A,I){var g=new i.a(A.slice(I)),e=["free",32e3,4e4,48e3,56e3,64e3,8e4,96e3,112e3,128e3,16e4,192e3,224e3,256e3,32e4,"bad"],t=[44100,48e3,32e3,"reserved"];if(g.getBytes(3).toString()===[73,68,51].toString()){g.moveTo(6);var r=g.readInt(1)<<21|g.readInt(1)<<14|g.readInt(1)<<7|g.readInt(1);g.moveForwardsBy(r)}else g.moveTo(0);for(;g.hasMore();){if(g.getBytes(3)===[84,65,71].toString()){g.moveForwardsBy(125);break}if(g.getBytes(2).toString()!==[255,251].toString()){g.moveBackwardsBy(2);break}var C=g.readInt(1),n=e[C>>4],o=t[(15&C)>>2],B=(2&C)>>1;if("free"===n||"bad"===n||"reserved"===o){g.moveBackwardsBy(1);break}var a=Math.floor(144*n/o+B);if(g.position+a>g.length){g.moveTo(g.length);break}g.moveForwardsBy(a-3)}return g.carve()}},{name:"MPEG-4 Part 14 audio",extension:"m4a",mime:"audio/m4a",description:"",signature:[{4:102,5:116,6:121,7:112,8:77,9:52,10:65},{0:77,1:52,2:65,3:32}],extractor:null},{name:"Free Lossless Audio Codec",extension:"flac",mime:"audio/x-flac",description:"",signature:{0:102,1:76,2:97,3:67},extractor:null},{name:"Adaptive Multi-Rate audio codec",extension:"amr",mime:"audio/amr",description:"",signature:{0:35,1:33,2:65,3:77,4:82,5:10},extractor:null},{name:"Audacity",extension:"au",mime:"audio/x-au",description:"",signature:{0:100,1:110,2:115,3:46,24:65,25:117,26:100,27:97,28:99,29:105,30:116,31:121,32:66,33:108,34:111,35:99,36:107,37:70,38:105,39:108,40:101},extractor:null},{name:"Audacity Block",extension:"auf",mime:"application/octet-stream",description:"",signature:{0:65,1:117,2:100,3:97,4:99,5:105,6:116,7:121,8:66,9:108,10:111,11:99,12:107,13:70,14:105,15:108,16:101},extractor:null},{name:"Audio Interchange File",extension:"aif",mime:"audio/x-aiff",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:70},extractor:null},{name:"Audio Interchange File (compressed)",extension:"aifc",mime:"audio/x-aifc",description:"",signature:{0:70,1:79,2:82,3:77,8:65,9:73,10:70,11:67},extractor:null}],Documents:[{name:"Portable Document Format",extension:"pdf",mime:"application/pdf",description:"",signature:{0:37,1:80,2:68,3:70},extractor:function(A,I){var g=new i.a(A.slice(I));return g.continueUntil([37,37,69,79,70]),g.moveForwardsBy(5),g.consumeIf(13),g.consumeIf(10),g.carve()}},{name:"Portable Document Format (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:65,1:74,2:86,3:66,4:69,5:82,6:105},extractor:null},{name:"Adobe PostScript",extension:"ps,eps,ai,pfa",mime:"application/postscript",description:"",signature:{0:37,1:33,2:80,3:83,4:45,5:65,6:100,7:111,8:98,9:101},extractor:null},{name:"PostScript",extension:"ps",mime:"application/postscript",description:"",signature:{0:37,1:33},extractor:null},{name:"Encapsulated PostScript",extension:"eps,ai",mime:"application/eps",description:"",signature:{0:197,1:208,2:211,3:198},extractor:null},{name:"Rich Text Format",extension:"rtf",mime:"application/rtf",description:"",signature:{0:123,1:92,2:114,3:116},extractor:function(A,I){var g=new i.a(A.slice(I)),e=0;if(123!==g.readInt(1))throw new Error("Not a valid RTF file");e++;for(;e>0&&g.hasMore();)switch(g.readInt(1)){case 123:e++;break;case 125:e--;break;case 92:g.consumeIf(92),g.position++}return g.carve()}},{name:"Microsoft Office document/OLE2",extension:"ole2,doc,xls,dot,ppt,xla,ppa,pps,pot,msi,sdw,db,vsd,msg",mime:"application/msword,application/vnd.ms-excel,application/vnd.ms-powerpoint",description:"Microsoft Office documents",signature:{0:208,1:207,2:17,3:224,4:161,5:177,6:26,7:225},extractor:null},{name:"Microsoft Office document/OLE2 (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:48,1:77,2:56,3:82,4:52,5:75,6:71,7:120},extractor:null},{name:"Microsoft Office 2007+ document",extension:"docx,xlsx,pptx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.presentation",description:"",signature:{38:95,39:84,40:121,41:112,42:101,43:115,44:93,45:46,46:120,47:109,48:108},extractor:C},{name:"Microsoft Access database",extension:"mdb,mda,mde,mdt,fdb,psa",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:74,14:101,15:116},extractor:null},{name:"Microsoft Access 2007+ database",extension:"accdb,accde,accda,accdu",mime:"application/msaccess",description:"",signature:{0:0,1:1,2:0,3:0,4:83,5:116,6:97,7:110,8:100,9:97,10:114,11:100,12:32,13:65,14:67,15:69,16:32},extractor:null},{name:"Microsoft OneNote document",extension:"one",mime:"application/onenote",description:"",signature:{0:228,1:82,2:92,3:123,4:140,5:216,6:167,7:77,8:174,9:177,10:83,11:120,12:208,13:41,14:150,15:211},extractor:null},{name:"Outlook Express database",extension:"dbx",mime:"application/octet-stream",description:"",signature:{0:207,1:173,2:18,3:254,4:[48,197,198,199],11:17},extractor:null},{name:"Personal Storage Table (Outlook)",extension:"pst,ost,fdb,pab",mime:"application/octet-stream",description:"",signature:{0:33,1:66,2:68,3:78},extractor:null},{name:"Microsoft Exchange Database",extension:"edb",mime:"application/octet-stream",description:"",signature:{4:239,5:205,6:171,7:137,8:[32,35],9:6,10:0,11:0,12:[0,1],13:0,14:0,15:0},extractor:null},{name:"WordPerfect document",extension:"wpd,wp,wp5,wp6,wpp,bk!,wcm",mime:"application/wordperfect",description:"",signature:{0:255,1:87,2:80,3:67,7:[0,1,2],8:1,9:10},extractor:null},{name:"EPUB e-book",extension:"epub",mime:"application/epub+zip",description:"",signature:{0:80,1:75,2:3,3:4,30:109,31:105,32:109,33:101,34:116,35:121,36:112,37:101,38:97,39:112,40:112,41:108,42:105,43:99,44:97,45:116,46:105,47:111,48:110,49:47,50:101,51:112,52:117,53:98,54:43,55:122,56:105,57:112},extractor:C}],Applications:[{name:"Windows Portable Executable",extension:"exe,dll,drv,vxd,sys,ocx,vbx,com,fon,scr",mime:"application/vnd.microsoft.portable-executable",description:"",signature:{0:77,1:90,3:[0,1,2],5:[0,1,2]},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveTo(60);var e=g.readInt(4,"le");g.moveTo(e),g.moveForwardsBy(6);var t=g.readInt(2,"le");g.moveForwardsBy(16);var r=523===g.readInt(2,"le")?112:96;g.moveForwardsBy(r-2),g.moveForwardsBy(32);var C=g.readInt(4,"le"),n=g.readInt(4,"le");if(C>0)return g.moveTo(C+n),g.carve();g.moveForwardsBy(88),g.moveForwardsBy(40*(t-1)),g.moveForwardsBy(16);var o=g.readInt(4,"le"),B=g.readInt(4,"le");return g.moveTo(B+o),g.carve()}},{name:"Executable and Linkable Format",extension:"elf,bin,axf,o,prx,so",mime:"application/x-executable",description:"Executable and Linkable Format file. No standard file extension.",signature:{0:127,1:69,2:76,3:70},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(4);var e=1===g.readInt(1),t=1===g.readInt(1)?"le":"be";g.moveForwardsBy(e?26:34);var r=e?g.readInt(4,t):g.readInt(8,t);g.moveForwardsBy(10);var C=g.readInt(2,t),n=g.readInt(2,t);return g.moveTo(r),g.moveForwardsBy(C*n),g.carve()}},{name:"MacOS Mach-O object",extension:"dylib",mime:"application/octet-stream",description:"",signature:[{0:202,1:254,2:186,3:190,4:0,5:0,6:0,7:[1,2,3]},{0:206,1:250,2:237,3:254,4:7,5:0,6:0,7:0,8:[1,2,3]}],extractor:n},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:n},{name:"Adobe Flash",extension:"swf",mime:"application/x-shockwave-flash",description:"",signature:{0:[67,70],1:87,2:83},extractor:null},{name:"Java Class",extension:"class",mime:"application/java-vm",description:"",signature:{0:202,1:254,2:186,3:190},extractor:null},{name:"Dalvik Executable",extension:"dex",mime:"application/octet-stream",description:"Dalvik Executable as used by Android",signature:{0:100,1:101,2:120,3:10,4:48,5:51,6:53,7:0},extractor:null},{name:"Google Chrome Extension",extension:"crx",mime:"application/crx",description:"Google Chrome extension or packaged app",signature:{0:67,1:114,2:50,3:52},extractor:null}],Archives:[{name:"PKZIP archive",extension:"zip",mime:"application/zip",description:"",signature:{0:80,1:75,2:[3,5,7],3:[4,6,8]},extractor:C},{name:"PKZIP archive (under Base64)",extension:"B64",mime:"application/octet-stream",description:"",signature:{0:85,1:69,2:115,3:68,4:66,5:66},extractor:null},{name:"TAR archive",extension:"tar",mime:"application/x-tar",description:"",signature:{257:117,258:115,259:116,260:97,261:114},extractor:function(A,I){var g=new i.a(A.slice(I));for(;g.hasMore();){if(g.moveForwardsBy(257),g.getBytes(5).join("")!==[117,115,116,97,114].join("")){g.moveBackwardsBy(262);break}g.moveBackwardsBy(138);var e=0;g.getBytes(11).forEach((function(A,I){e+=(A-48).toString()})),e=512*Math.ceil(parseInt(e,8)/512),g.moveForwardsBy(e+377)}return g.consumeWhile(0),g.carve()}},{name:"Roshal Archive",extension:"rar",mime:"application/x-rar-compressed",description:"",signature:{0:82,1:97,2:114,3:33,4:26,5:7,6:[0,1]},extractor:null},{name:"Gzip",extension:"gz",mime:"application/gzip",description:"",signature:{0:31,1:139,2:8},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(3);var e=g.readInt(1);if(g.moveForwardsBy(4),g.readInt(1),g.moveForwardsBy(1),4&e){var t=g.readInt(2,"le");g.moveForwardsby(t)}8&e&&(g.continueUntil(0),g.moveForwardsBy(1));16&e&&(g.continueUntil(0),g.moveForwardsBy(1));2&e&&g.moveForwardsBy(2);return s(g),g.moveForwardsBy(8),g.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(A,I){for(var g=new i.a(A.slice(I)),e=[[119,36,83,133,9],[238,72,167,10,18],[220,145,78,20,36],[185,34,156,40,72],[114,69,56,80,144],[187,146,41,194,132],[93,201,20,225,66],[46,228,138,112,161],[23,114,69,56,80]],t=0;t<e.length&&(g.continueUntil(e[t]),g.getBytes(5).join("")!==e[t].join(""));t++)g.moveTo(0);return g.moveForwardsBy(4),g.carve()}},{name:"7zip",extension:"7z",mime:"application/x-7z-compressed",description:"",signature:{0:55,1:122,2:188,3:175,4:39,5:28},extractor:null},{name:"Zlib Deflate",extension:"zlib",mime:"application/x-deflate",description:"",signature:{0:120,1:[1,156,218,94]},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(1),32&g.readInt(1)&&g.moveForwardsBy(4);return s(g),g.moveForwardsBy(4),g.carve()}},{name:"xz compression",extension:"xz",mime:"application/x-xz",description:"",signature:{0:253,1:55,2:122,3:88,4:90,5:0},extractor:function(A,I){var g=new i.a(A.slice(I));return g.continueUntil([0,0,0,0,4,89,90]),g.moveForwardsBy(7),g.carve()}},{name:"Tarball",extension:"tar.z",mime:"application/x-gtar",description:"",signature:{0:31,1:[157,160]},extractor:null},{name:"ISO disk image",extension:"iso",mime:"application/octet-stream",description:"ISO 9660 CD/DVD image file",signature:[{32769:67,32770:68,32771:48,32772:48,32773:49},{34817:67,34818:68,34819:48,34820:48,34821:49},{36865:67,36866:68,36867:48,36868:48,36869:49}],extractor:null},{name:"Virtual Machine Disk",extension:"vmdk",mime:"application/vmdk,application/x-virtualbox-vmdk",description:"",signature:{0:75,1:68,2:77,3:86,5:0,6:0,7:0},extractor:null},{name:"Virtual Hard Drive",extension:"vhd",mime:"application/x-vhd",description:"",signature:{0:99,1:111,2:110,3:101,4:99,5:116,6:105,7:120},extractor:null},{name:"Macintosh disk image",extension:"dmf,dmg",mime:"application/octet-stream",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96,7:96},extractor:null},{name:"ARJ Archive",extension:"arj",mime:"application/x-arj-compressed",description:"",signature:{0:96,1:234,8:[0,16,20],9:0,10:2},extractor:null},{name:"WinAce Archive",extension:"ace",mime:"application/x-ace-compressed",description:"",signature:{7:42,8:42,9:65,10:67,11:69,12:42,13:42},extractor:null},{name:"Macintosh BinHex Encoded File",extension:"hqx",mime:"application/mac-binhex",description:"",signature:{11:109,12:117,13:115,14:116,15:32,16:98,17:101,18:32,19:99,20:111,21:110,22:118,23:101,24:114,25:116,26:101,27:100,28:32,29:119,30:105,31:116,32:104,33:32,34:66,35:105,36:110,37:72,38:101,39:120},extractor:null},{name:"ALZip Archive",extension:"alz",mime:"application/octet-stream",description:"",signature:{0:65,1:76,2:90,3:1,4:10,5:0,6:0,7:0},extractor:null},{name:"KGB Compressed Archive",extension:"kgb",mime:"application/x-kgb-compressed",description:"",signature:{0:75,1:71,2:66,3:95,4:97,5:114,6:99,7:104,8:32,9:45},extractor:null},{name:"Microsoft Cabinet",extension:"cab",mime:"vnd.ms-cab-compressed",description:"",signature:{0:77,1:83,2:67,3:70,4:0,5:0,6:0,7:0},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:95,1:39,2:168,3:137},extractor:null},{name:"Jar Archive",extension:"jar",mime:"application/java-archive",description:"",signature:{0:80,1:75,2:3,3:4,4:20,5:0,6:8,7:0,8:8,9:0},extractor:C},{name:"lzop compressed",extension:"lzop,lzo",mime:"application/x-lzop",description:"",signature:{0:137,1:76,2:90,3:79,4:0,5:13,6:10,7:26},extractor:function(A,I){var g=new i.a(A.slice(I)),e=0,t=0;g.moveForwardsBy(9);var r=g.readInt(2,"be");g.moveForwardsBy(6);var C=g.readInt(4,"be");2048&r&&g.moveForwardsBy(4);2&C&&e++;512&C&&e++;1&C&&t++;256&C&&t++;g.moveForwardsBy(8),r>=2368&&g.moveForwardsBy(4);var n=g.readInt(1,"be");if(g.moveForwardsBy(n),64&C){var o=g.readInt(4,"be");g.moveForwardsBy(o)}g.moveForwardsBy(4);for(;g.hasMore();){var B=g.readInt(4,"be");if(0===B)break;var a=g.readInt(4,"be"),E=B===a?t:t+e;g.moveForwardsBy(a+4*E)}return g.carve()}},{name:"Linux deb package",extension:"deb",mime:"application/vnd.debian.binary-package",description:"",signature:{0:33,1:60,2:97,3:114,4:99,5:104,6:62},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveForwardsBy(8);for(;g.hasMore();){g.moveForwardsBy(48);var e="",t=!0,r=!1,C=void 0;try{for(var n,o=g.getBytes(10)[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){var B=n.value;e+=String.fromCharCode(B)}}catch(A){r=!0,C=A}finally{try{t||null==o.return||o.return()}finally{if(r)throw C}}e=parseInt(e.trim(),10),g.moveForwardsBy(2),g.moveForwardsBy(e)}return g.carve()}},{name:"Apple Disk Image",extension:"dmg",mime:"application/x-apple-diskimage",description:"",signature:{0:120,1:1,2:115,3:13,4:98,5:98,6:96},extractor:null}],Miscellaneous:[{name:"UTF-8 text",extension:"txt",mime:"text/plain",description:"UTF-8 encoded Unicode byte order mark, commonly but not exclusively seen in text files.",signature:{0:239,1:187,2:191},extractor:null},{name:"UTF-32 LE text",extension:"utf32le",mime:"charset/utf32le",description:"Little-endian UTF-32 encoded Unicode byte order mark.",signature:{0:255,1:254,2:0,3:0},extractor:null},{name:"UTF-16 LE text",extension:"utf16le",mime:"charset/utf16le",description:"Little-endian UTF-16 encoded Unicode byte order mark.",signature:{0:255,1:254},extractor:null},{name:"Web Open Font Format",extension:"woff",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:70,4:0,5:1,6:0,7:0},extractor:null},{name:"Web Open Font Format 2",extension:"woff2",mime:"application/font-woff",description:"",signature:{0:119,1:79,2:70,3:50,4:0,5:1,6:0,7:0},extractor:null},{name:"Embedded OpenType font",extension:"eot",mime:"application/octet-stream",description:"",signature:[{8:2,9:0,10:1,34:76,35:80},{8:1,9:0,10:0,34:76,35:80},{8:2,9:0,10:2,34:76,35:80}],extractor:null},{name:"TrueType Font",extension:"ttf",mime:"application/font-sfnt",description:"",signature:{0:0,1:1,2:0,3:0,4:0},extractor:null},{name:"OpenType Font",extension:"otf",mime:"application/font-sfnt",description:"",signature:{0:79,1:84,2:84,3:79,4:0},extractor:null},{name:"SQLite",extension:"sqlite",mime:"application/x-sqlite3",description:"",signature:{0:83,1:81,2:76,3:105},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveTo(16);var e=g.readInt(2);g.moveTo(28);var t=g.readInt(4);return g.moveTo(e*t),g.carve()}},{name:"BitTorrent link",extension:"torrent",mime:"application/x-bittorrent",description:"",signature:[{0:100,1:56,2:58,3:97,4:110,5:110,6:111,7:117,8:110,9:99,10:101,11:35,12:35,13:58},{0:100,1:52,2:58,3:105,4:110,5:102,6:111,7:100,8:[52,53,54],9:58}],extractor:null},{name:"Cryptocurrency wallet",extension:"wallet",mime:"application/octet-stream",description:"",signature:{0:0,1:0,2:0,3:0,4:1,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:98,13:49,14:5,15:0},extractor:null},{name:"Registry fragment",extension:"hbin",mime:"application/octet-stream",description:"",signature:{0:104,1:98,2:105,3:110,4:0},extractor:null},{name:"Registry script",extension:"rgs",mime:"application/octet-stream",description:"",signature:{0:72,1:75,2:67,3:82,4:13,5:10,6:92,7:123},extractor:null},{name:"WinNT Registry Hive",extension:"registry",mime:"application/octet-stream",description:"",signature:{0:114,1:101,2:103,3:102},extractor:null},{name:"Windows Event Log",extension:"evt",mime:"application/octet-stream",description:"",signature:{0:48,1:0,2:0,3:0,4:76,5:102,6:76,7:101},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveTo(20);var e=g.readInt(4,"le");g.moveTo(e);var t=g.readInt(4,"le");return g.moveForwardsBy(t-4),g.carve()}},{name:"Windows Event Log",extension:"evtx",mime:"application/octet-stream",description:"",signature:{0:69,1:108,2:102,3:70,4:105,5:108,6:101},extractor:function(A,I){var g=new i.a(A.slice(I));g.moveTo(40);var e=g.readInt(4,"le")-44;g.moveForwardsBy(e);for(;g.hasMore()&&g.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)g.moveForwardsBy(65529);return g.consumeWhile(0),g.carve()}},{name:"Windows Pagedump",extension:"dmp",mime:"application/octet-stream",description:"",signature:{0:80,1:65,2:71,3:69,4:68,5:85,6:[77,54],7:[80,52]},extractor:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(112),g.moveTo(4096*(g.readInt(4,"le")+1)),g.carve()}},{name:"Windows Prefetch",extension:"pf",mime:"application/x-pf",description:"",signature:{0:[17,23,26],1:0,2:0,3:0,4:83,5:67,6:67,7:65},extractor:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(12),g.moveTo(g.readInt(4,"be")),g.carve()}},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(g.readInt(4,"be")),g.carve()}},{name:"PList (XML)",extension:"plist",mime:"application/xml",description:"",signature:{39:60,40:33,41:68,42:79,43:67,44:84,45:89,46:80,47:69,48:32,49:112,50:108,51:105,52:115,53:116},extractor:function(A,I){var g=new i.a(A.slice(I)),e=0;g.continueUntil([60,112,108,105,115,116]),g.moveForwardsBy(6),e++;for(;e>0&&g.hasMore();)60===g.readInt(1)&&(g.getBytes(5).join("")===[112,108,105,115,116].join("")?e++:g.moveBackwardsBy(5),g.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?e--:g.moveBackwardsBy(7));return g.consumeIf(10),g.carve()}},{name:"PList (binary)",extension:"bplist,plist,ipmeta,abcdp,mdbackup,mdinfo,strings,nib,ichat,qtz,webbookmark,webhistory",mime:"application/x-plist",description:"",signature:{0:98,1:112,2:108,3:105,4:115,5:116,6:48,7:48},extractor:null},{name:"MacOS X Keychain",extension:"keychain",mime:"application/octet-stream",description:"",signature:{0:107,1:121,2:99,3:104,4:0,5:1},extractor:null},{name:"TCP Packet",extension:"tcp",mime:"application/tcp",description:"",signature:{12:8,13:0,14:69,15:0,21:0,22:function(A){return A>=1&&A<=128},23:6},extractor:null},{name:"UDP Packet",extension:"udp",mime:"application/udp",description:"",signature:{12:8,13:0,14:69,15:0,16:[0,1,2,3,4,5],22:function(A){return A>=1&&A<=128},23:17},extractor:null},{name:"Compiled HTML",extension:"chm,chw,chi",mime:"application/vnd.ms-htmlhelp",description:"",signature:{0:73,1:84,2:83,3:70,4:3,5:0,6:0,7:0},extractor:null},{name:"Windows Password",extension:"pwl",mime:"application/octet-stream",description:"",signature:{0:227,1:130,2:133,3:150},extractor:null},{name:"Bitlocker recovery key",extension:"bitlocker",mime:"application/octet-stream",description:"",signature:{0:255,1:254,2:66,3:0,4:105,5:0,6:116,7:0,8:76,9:0,10:111,11:0,12:99,13:0,14:107,15:0,16:101,17:0,18:114,19:0,20:32,21:0},extractor:null},{name:"Certificate",extension:"cer,cat,p7b,p7c,p7m,p7s,swz,rsa,crl,crt,der",mime:"application/pkix-cert",description:"",signature:{0:48,1:130,4:[6,10,48]},extractor:null},{name:"Certificate",extension:"cat,swz,p7m",mime:"application/vnd.ms-pki.seccat",description:"",signature:{0:48,1:131,2:function(A){return 0!==A},5:6,6:9},extractor:null},{name:"PGP pubring",extension:"pkr,gpg",mime:"application/pgp-keys",description:"",signature:{0:153,1:1,2:[13,162],3:4},extractor:null},{name:"PGP secring",extension:"skr",mime:"application/pgp-keys",description:"",signature:[{0:149,1:1,2:207,3:4},{0:149,1:3,2:198,3:4}],extractor:null},{name:"PGP Safe",extension:"pgd",mime:"application/pgp-keys",description:"",signature:{0:80,1:71,2:80,3:100,4:77,5:65,6:73,7:78,8:96,9:1,10:0},extractor:null},{name:"Task Scheduler",extension:"job",mime:"application/octet-stream",description:"",signature:{0:[0,1,2,3],1:[5,6],2:1,3:0,20:70,21:0},extractor:null},{name:"Windows Shortcut",extension:"lnk",mime:"application/x-ms-shortcut",description:"",signature:{0:76,1:0,2:0,3:0,4:1,5:20,6:2,7:0,8:0,9:0,10:0,11:0,12:192,13:0,14:0,15:0,16:0,17:0,18:0,19:70},extractor:function(A,I){var g=new i.a(A.slice(I));return g.moveTo(52),g.moveTo(g.readInt(4,"le")),g.carve()}},{name:"Bash",extension:"bash",mime:"application/bash",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:98,8:97,9:115,10:104},extractor:null},{name:"Shell",extension:"sh",mime:"application/sh",description:"",signature:{0:35,1:33,2:47,3:98,4:105,5:110,6:47,7:115,8:104},extractor:null},{name:"Python",extension:"py,pyc,pyd,pyo,pyw,pyz",mime:"application/python",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:121,13:116,14:104,15:111,16:110,17:[50,51,10,13]},extractor:null},{name:"Ruby",extension:"rb",mime:"application/ruby",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:114,12:117,13:98,14:121},extractor:null},{name:"perl",extension:"pl,pm,t,pod",mime:"application/perl",description:"",signature:{0:35,1:33,2:47,3:117,4:115,5:114,6:47,7:98,8:105,9:110,10:47,11:112,12:101,13:114,14:108},extractor:null},{name:"php",extension:"php,phtml,php3,php4,php5,php7,phps,php-s,pht,phar",mime:"application/php",description:"",signature:{0:60,1:63,2:112,3:104,4:112},extractor:null},{name:"Smile",extension:"sml",mime:"\tapplication/x-jackson-smile",description:"",signature:{0:58,1:41,2:10},extractor:null},{name:"Lua Bytecode",extension:"luac",mime:"application/x-lua",description:"",signature:{0:27,1:76,2:117,3:97},extractor:null},{name:"WebAssembly binary",extension:"wasm",mime:"application/octet-stream",description:"",signature:{0:0,1:97,2:115,3:109},extractor:null}]};function C(A,I){var g=new i.a(A.slice(I));g.continueUntil([80,75,5,6]),g.moveForwardsBy(20);var e=g.readInt(2,"le");return g.moveForwardsBy(e),g.carve()}function n(A,I){var g=new i.a(A.slice(I)),e=g.getBytes(4).join("");return g.moveTo(function(A,I,g){var e=28;I&&(e+=4),A.moveTo(16);var t=A.readInt(4,g);return function(A,I,g,e){for(var t=0,i=0;i<e;i++){A.moveTo(I);var r=A.readInt(4,g);25===r?(A.moveTo(I+48),t+=A.readInt(8,g),A.moveTo(I+4),I+=A.readInt(4,g)):1===r&&(A.moveTo(I+36),t+=A.readInt(4,g),A.moveTo(I+4),I+=A.readInt(4,g))}return t}(A,e,g,t)}(g,function(A){return"207250237254"===A||"254237250207"===A}(e),function(A){return"206250237254"===A||"207250237254"===A}(e)?"le":"be")),g.carve()}for(var o=new Array(288),B=0;B<o.length;B++)o[B]=B<=143?8:B<=255?9:B<=279?7:8;var a=f(o),E=f(new Array(30).fill(5)),Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function s(A){for(var I=0;!I;){I=A.readBits(1);var g=A.readBits(2);if(0===g){A.moveForwardsBy(1);var e=A.readInt(2,"le");A.moveForwardsBy(2+e)}else if(1===g)u(A,a,E);else{if(2!==g)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${A.position}`);for(var t=A.readBits(5)+257,i=A.readBits(5)+1,r=A.readBits(4)+4,C=new Uint8Array(Q.length),n=0;n<r;n++)C[Q[n]]=A.readBits(3);for(var o=f(C),B=new Uint8Array(t+i),s=void 0,h=void 0,c=void 0,l=0;l<t+i;)switch(s=y(A,o)){case 16:for(h=3+A.readBits(2);h--;)B[l++]=c;break;case 17:for(h=3+A.readBits(3);h--;)B[l++]=0;c=0;break;case 18:for(h=11+A.readBits(7);h--;)B[l++]=0;c=0;break;default:B[l++]=s,c=s}u(A,f(B.subarray(0,t)),f(B.subarray(t)))}}A.bitPos>0&&A.moveForwardsBy(1)}var h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],c=[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];function u(A,I,g){for(var e,t=0;(e=y(A,I))&&256!==e;){if(++t>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");e<256||(A.readBits(h[e-257]),e=y(A,g),A.readBits(c[e]))}}function f(A){for(var I=Math.max.apply(Math,A),g=Math.min.apply(Math,A),e=1<<I,t=new Uint32Array(e),i=1,r=0,C=2;i<=I;){for(var n=0;n<A.length;n++)if(A[n]===i){var o=void 0,B=void 0,a=void 0;for(o=0,B=r,a=0;a<i;a++)o=o<<1|1&B,B>>=1;for(var E=i<<16|n,Q=o;Q<e;Q+=C)t[Q]=E;r++}i++,r<<=1,C<<=1}return[t,I,g]}function y(A,I){var g=t()(I,2),e=g[0],i=g[1],r=e[A.readBits(i)&(1<<i)-1],C=r>>>16;if(C>i)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${A.position}: ${C}`);return A.moveBackwardsByBits(i-C),65535&r}g(0);
/**
 * File type functions
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 *
 */function l(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(A.length){for(var e=0;e<A.length;e++)if(w(A[e],I,g))return!0;return!1}return w(A,I,g)}function w(A,I){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var e in A){var t=parseInt(e,10)+g;switch(typeof A[e]){case"number":if(I[t]!==A[e])return!1;break;case"object":if(A[e].indexOf(I[t])<0)return!1;break;case"function":if(!A[e](I[t]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${e}`)}}return!0}function F(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(r);if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),!(A&&A.length>1))return[];var g=[],e={};for(var t in r)I.includes(t)&&(e[t]=r[t]);for(var i in e){var C=e[i];C.forEach((function(I){l(I.signature,A)&&g.push(I)}))}return g}function D(A){return function(A,I){var g=F(I);if(!g||!g.length)return!1;if("string"==typeof A)return g.reduce((function(I,g){var e=!!g.mime.startsWith(A)&&g.mime;return I||e}),!1);if(A instanceof RegExp)return g.reduce((function(I,g){var e=!!A.test(g.mime)&&g.mime;return I||e}),!1);throw new Error("Invalid type input.")}("image",A)}},2:function(A,I){function g(A,I){for(var g=0;g<I.length;g++){var e=I[g];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(A,e.key,e)}}A.exports=function(A,I,e){return I&&g(A.prototype,I),e&&g(A,e),A}},20:function(A,I,g){"use strict";g.d(I,"b",(function(){return t})),g.d(I,"c",(function(){return i})),g.d(I,"a",(function(){return r}));var e=g(0);
/**
 * Hexadecimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */function t(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",t=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!A)return"";A instanceof ArrayBuffer&&(A=new Uint8Array(A));for(var i="",r="0x"===I||"\\x"===I,C=0;C<A.length;C++){var n=A[C].toString(16).padStart(g,"0");i+=r?I+n:n+I,e&&(i+=e),C!==A.length-1&&(C+1)%t==0&&(i+="\n")}var o=e.length+(r?0:I.length);return o?i.slice(0,-o):i}function i(A){if(!A)return"";A instanceof ArrayBuffer&&(A=new Uint8Array(A));for(var I=[],g=0;g<A.length;g++)I.push((A[g]>>>4).toString(16)),I.push((15&A[g]).toString(16));return I.join("")}function r(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if("None"!==I){var t="Auto"===I?/[^a-f\d]|(0x)/gi:e.b.regexRep(I);A=A.replace(t,"")}for(var i=[],r=0;r<A.length;r+=g)i.push(parseInt(A.substr(r,g),16));return i}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"])},23:function(A,I){A.exports=function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}},24:function(A,I,g){!function(A){var I,g,e,t=String.fromCharCode;function i(A){for(var I,g,e=[],t=0,i=A.length;t<i;)(I=A.charCodeAt(t++))>=55296&&I<=56319&&t<i?56320==(64512&(g=A.charCodeAt(t++)))?e.push(((1023&I)<<10)+(1023&g)+65536):(e.push(I),t--):e.push(I);return e}function r(A){if(A>=55296&&A<=57343)throw Error("Lone surrogate U+"+A.toString(16).toUpperCase()+" is not a scalar value")}function C(A,I){return t(A>>I&63|128)}function n(A){if(0==(4294967168&A))return t(A);var I="";return 0==(4294965248&A)?I=t(A>>6&31|192):0==(4294901760&A)?(r(A),I=t(A>>12&15|224),I+=C(A,6)):0==(4292870144&A)&&(I=t(A>>18&7|240),I+=C(A,12),I+=C(A,6)),I+=t(63&A|128)}function o(){if(e>=g)throw Error("Invalid byte index");var A=255&I[e];if(e++,128==(192&A))return 63&A;throw Error("Invalid continuation byte")}function B(){var A,t;if(e>g)throw Error("Invalid byte index");if(e==g)return!1;if(A=255&I[e],e++,0==(128&A))return A;if(192==(224&A)){if((t=(31&A)<<6|o())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&A)){if((t=(15&A)<<12|o()<<6|o())>=2048)return r(t),t;throw Error("Invalid continuation byte")}if(240==(248&A)&&(t=(7&A)<<18|o()<<12|o()<<6|o())>=65536&&t<=1114111)return t;throw Error("Invalid UTF-8 detected")}A.version="3.0.0",A.encode=function(A){for(var I=i(A),g=I.length,e=-1,t="";++e<g;)t+=n(I[e]);return t},A.decode=function(A){I=i(A),g=I.length,e=0;for(var r,C=[];!1!==(r=B());)C.push(r);return function(A){for(var I,g=A.length,e=-1,i="";++e<g;)(I=A[e])>65535&&(i+=t((I-=65536)>>>10&1023|55296),I=56320|1023&I),i+=t(I);return i}(C)}}(I)},25:function(A,I){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(A){"object"==typeof window&&(g=window)}A.exports=g},26:function(A,I,g){var e,t;!function(i,r){"use strict";void 0===(t="function"==typeof(e=function(){var A=function(){},I="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),g=["trace","debug","info","warn","error"];function e(A,I){var g=A[I];if("function"==typeof g.bind)return g.bind(A);try{return Function.prototype.bind.call(g,A)}catch(I){return function(){return Function.prototype.apply.apply(g,[A,arguments])}}}function t(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(g){return"debug"===g&&(g="log"),"undefined"!=typeof console&&("trace"===g&&I?t:void 0!==console[g]?e(console,g):void 0!==console.log?e(console,"log"):A)}function r(I,e){for(var t=0;t<g.length;t++){var i=g[t];this[i]=t<I?A:this.methodFactory(i,I,e)}this.log=this.debug}function C(A,I,g){return function(){"undefined"!=typeof console&&(r.call(this,I,g),this[A].apply(this,arguments))}}function n(A,I,g){return i(A)||C.apply(this,arguments)}function o(A,I,e){var t,i=this,C="loglevel";function o(){var A;if("undefined"!=typeof window){try{A=window.localStorage[C]}catch(A){}if(void 0===A)try{var I=window.document.cookie,g=I.indexOf(encodeURIComponent(C)+"=");-1!==g&&(A=/^([^;]+)/.exec(I.slice(g))[1])}catch(A){}return void 0===i.levels[A]&&(A=void 0),A}}A&&(C+=":"+A),i.name=A,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=e||n,i.getLevel=function(){return t},i.setLevel=function(I,e){if("string"==typeof I&&void 0!==i.levels[I.toUpperCase()]&&(I=i.levels[I.toUpperCase()]),!("number"==typeof I&&I>=0&&I<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+I;if(t=I,!1!==e&&function(A){var I=(g[A]||"silent").toUpperCase();if("undefined"!=typeof window){try{return void(window.localStorage[C]=I)}catch(A){}try{window.document.cookie=encodeURIComponent(C)+"="+I+";"}catch(A){}}}(I),r.call(i,I,A),"undefined"==typeof console&&I<i.levels.SILENT)return"No console available for logging"},i.setDefaultLevel=function(A){o()||i.setLevel(A,!1)},i.enableAll=function(A){i.setLevel(i.levels.TRACE,A)},i.disableAll=function(A){i.setLevel(i.levels.SILENT,A)};var B=o();null==B&&(B=null==I?"WARN":I),i.setLevel(B,!1)}var B=new o,a={};B.getLogger=function(A){if("string"!=typeof A||""===A)throw new TypeError("You must supply a name when creating a logger.");var I=a[A];return I||(I=a[A]=new o(A,B.getLevel(),B.methodFactory)),I};var E="undefined"!=typeof window?window.log:void 0;return B.noConflict=function(){return"undefined"!=typeof window&&window.log===B&&(window.log=E),B},B.getLoggers=function(){return a},B})?e.call(I,g,I,A):e)||(A.exports=t)}()},27:function(A,I){var g,e,t=A.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function C(A){if(g===setTimeout)return setTimeout(A,0);if((g===i||!g)&&setTimeout)return g=setTimeout,setTimeout(A,0);try{return g(A,0)}catch(I){try{return g.call(null,A,0)}catch(I){return g.call(this,A,0)}}}!function(){try{g="function"==typeof setTimeout?setTimeout:i}catch(A){g=i}try{e="function"==typeof clearTimeout?clearTimeout:r}catch(A){e=r}}();var n,o=[],B=!1,a=-1;function E(){B&&n&&(B=!1,n.length?o=n.concat(o):a=-1,o.length&&Q())}function Q(){if(!B){var A=C(E);B=!0;for(var I=o.length;I;){for(n=o,o=[];++a<I;)n&&n[a].run();a=-1,I=o.length}n=null,B=!1,function(A){if(e===clearTimeout)return clearTimeout(A);if((e===r||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(A);try{e(A)}catch(I){try{return e.call(null,A)}catch(I){return e.call(this,A)}}}(A)}}function s(A,I){this.fun=A,this.array=I}function h(){}t.nextTick=function(A){var I=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)I[g-1]=arguments[g];o.push(new s(A,I)),1!==o.length||B||C(Q)},s.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(A){return[]},t.binding=function(A){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(A){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},29:function(A,I,g){"use strict";g.d(I,"a",(function(){return t}));var e=g(0);
/**
 * Binary functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function t(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,t=e.b.regexRep(I);A=A.replace(t,"");for(var i=[],r=0;r<A.length;r+=g)i.push(parseInt(A.substr(r,g),2));return i}},3:function(A,I){function g(I){return A.exports=g=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},g(I)}A.exports=g},30:function(A,I,g){"use strict";g.d(I,"a",(function(){return t}));var e=g(0);
/**
 * Decimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function t(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";I=e.b.charRep(I);var g=[],t=A.split(I);""===t[t.length-1]&&(t=t.slice(0,t.length-1));for(var i=0;i<t.length;i++)g[i]=parseInt(t[i],10);return g}},334:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";function A(A){throw A}var I=void 0,g=!0,e=this;function t(A,g){var t,i=A.split("."),r=e;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(t=i.shift());)i.length||g===I?r=r[t]?r[t]:r[t]={}:r[t]=g}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function r(I,g){this.index="number"==typeof g?g:0,this.m=0,this.buffer=I instanceof(i?Uint8Array:Array)?I:new(i?Uint8Array:Array)(32768),2*this.buffer.length<=this.index&&A(Error("invalid index")),this.buffer.length<=this.index&&this.f()}r.prototype.f=function(){var A,I=this.buffer,g=I.length,e=new(i?Uint8Array:Array)(g<<1);if(i)e.set(I);else for(A=0;A<g;++A)e[A]=I[A];return this.buffer=e},r.prototype.d=function(A,I,g){var e,t=this.buffer,i=this.index,r=this.m,C=t[i];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+r)C=C<<I|A,r+=I;else for(e=0;e<I;++e)C=C<<1|A>>I-e-1&1,8==++r&&(r=0,t[i++]=E[C],C=0,i===t.length&&(t=this.f()));t[i]=C,this.buffer=t,this.m=r,this.index=i},r.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.m&&(I[g]<<=8-this.m,I[g]=E[I[g]],g++),i?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(i?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(A,I,g){var e,t="number"==typeof I?I:I=0,i="number"==typeof g?g:A.length;for(e=-1,t=7&i;t--;++I)e=e>>>8^h[255&(e^A[I])];for(t=i>>3;t--;I+=8)e=(e=(e=(e=(e=(e=(e=(e=e>>>8^h[255&(e^A[I])])>>>8^h[255&(e^A[I+1])])>>>8^h[255&(e^A[I+2])])>>>8^h[255&(e^A[I+3])])>>>8^h[255&(e^A[I+4])])>>>8^h[255&(e^A[I+5])])>>>8^h[255&(e^A[I+6])])>>>8^h[255&(e^A[I+7])];return(4294967295^e)>>>0}var s=[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],h=i?new Uint32Array(s):s;function c(){}function u(A){this.buffer=new(i?Uint16Array:Array)(2*A),this.length=0}function f(A){var I,g,e,t,r,C,n,o,B,a,E=A.length,Q=0,s=Number.POSITIVE_INFINITY;for(o=0;o<E;++o)A[o]>Q&&(Q=A[o]),A[o]<s&&(s=A[o]);for(I=1<<Q,g=new(i?Uint32Array:Array)(I),e=1,t=0,r=2;e<=Q;){for(o=0;o<E;++o)if(A[o]===e){for(C=0,n=t,B=0;B<e;++B)C=C<<1|1&n,n>>=1;for(a=e<<16|o,B=C;B<I;B+=r)g[B]=a;++t}++e,t<<=1,r<<=1}return[g,Q,s]}function y(A,I){this.k=w,this.I=0,this.input=i&&A instanceof Array?new Uint8Array(A):A,this.b=0,I&&(I.lazy&&(this.I=I.lazy),"number"==typeof I.compressionType&&(this.k=I.compressionType),I.outputBuffer&&(this.a=i&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.b=I.outputIndex)),this.a||(this.a=new(i?Uint8Array:Array)(32768))}c.prototype.getName=function(){return this.name},c.prototype.getData=function(){return this.data},c.prototype.X=function(){return this.Y},u.prototype.getParent=function(A){return 2*((A-2)/4|0)},u.prototype.push=function(A,I){var g,e,t,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(e=this.getParent(g),i[g]>i[e]);)t=i[g],i[g]=i[e],i[e]=t,t=i[g+1],i[g+1]=i[e+1],i[e+1]=t,g=e;return this.length},u.prototype.pop=function(){var A,I,g,e,t,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],t=0;!((e=2*t+2)>=this.length)&&(e+2<this.length&&i[e+2]>i[e]&&(e+=2),i[e]>i[t]);)g=i[t],i[t]=i[e],i[e]=g,g=i[t+1],i[t+1]=i[e+1],i[e+1]=g,t=e;return{index:A,value:I,length:this.length}};var l,w=2,F={NONE:0,v:1,o:w,aa:3},D=[];for(l=0;288>l;l++)switch(!0){case 143>=l:D.push([l+48,8]);break;case 255>=l:D.push([l-144+400,9]);break;case 279>=l:D.push([l-256+0,7]);break;case 287>=l:D.push([l-280+192,8]);break;default:A("invalid literal: "+l)}function p(A,I){this.length=A,this.P=I}y.prototype.g=function(){var e,t,C,n,o=this.input;switch(this.k){case 0:for(C=0,n=o.length;C<n;){var B,a,E,Q=t=i?o.subarray(C,C+65535):o.slice(C,C+65535),s=(C+=t.length)===n,h=I,c=I,u=this.a,f=this.b;if(i){for(u=new Uint8Array(this.a.buffer);u.length<=f+Q.length+5;)u=new Uint8Array(u.length<<1);u.set(this.a)}if(B=s?1:0,u[f++]=0|B,E=65536+~(a=Q.length)&65535,u[f++]=255&a,u[f++]=a>>>8&255,u[f++]=255&E,u[f++]=E>>>8&255,i)u.set(Q,f),f+=Q.length,u=u.subarray(0,f);else{for(h=0,c=Q.length;h<c;++h)u[f++]=Q[h];u.length=f}this.b=f,this.a=u}break;case 1:var y=new r(i?new Uint8Array(this.a.buffer):this.a,this.b);y.d(1,1,g),y.d(1,2,g);var l,F,p,S=U(this,o);for(l=0,F=S.length;l<F;l++)if(p=S[l],r.prototype.d.apply(y,D[p]),256<p)y.d(S[++l],S[++l],g),y.d(S[++l],5),y.d(S[++l],S[++l],g);else if(256===p)break;this.a=y.finish(),this.b=this.a.length;break;case w:var d,G,Y,M,N,R,b,v,H,L,J,K,q,T,x,V=new r(i?new Uint8Array(this.a.buffer):this.a,this.b),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=Array(19);for(d=w,V.d(1,1,g),V.d(d,2,g),G=U(this,o),b=k(R=m(this.V,15)),H=k(v=m(this.U,7)),Y=286;257<Y&&0===R[Y-1];Y--);for(M=30;1<M&&0===v[M-1];M--);var O,j,X,P,z,_,$=Y,AA=M,IA=new(i?Uint32Array:Array)($+AA),gA=new(i?Uint32Array:Array)(316),eA=new(i?Uint8Array:Array)(19);for(O=j=0;O<$;O++)IA[j++]=R[O];for(O=0;O<AA;O++)IA[j++]=v[O];if(!i)for(O=0,P=eA.length;O<P;++O)eA[O]=0;for(O=z=0,P=IA.length;O<P;O+=j){for(j=1;O+j<P&&IA[O+j]===IA[O];++j);if(X=j,0===IA[O])if(3>X)for(;0<X--;)gA[z++]=0,eA[0]++;else for(;0<X;)(_=138>X?X:138)>X-3&&_<X&&(_=X-3),10>=_?(gA[z++]=17,gA[z++]=_-3,eA[17]++):(gA[z++]=18,gA[z++]=_-11,eA[18]++),X-=_;else if(gA[z++]=IA[O],eA[IA[O]]++,3>--X)for(;0<X--;)gA[z++]=IA[O],eA[IA[O]]++;else for(;0<X;)(_=6>X?X:6)>X-3&&_<X&&(_=X-3),gA[z++]=16,gA[z++]=_-3,eA[16]++,X-=_}for(e=i?gA.subarray(0,z):gA.slice(0,z),L=m(eA,7),T=0;19>T;T++)Z[T]=L[W[T]];for(N=19;4<N&&0===Z[N-1];N--);for(J=k(L),V.d(Y-257,5,g),V.d(M-1,5,g),V.d(N-4,4,g),T=0;T<N;T++)V.d(Z[T],3,g);for(T=0,x=e.length;T<x;T++)if(K=e[T],V.d(J[K],L[K],g),16<=K){switch(T++,K){case 16:q=2;break;case 17:q=3;break;case 18:q=7;break;default:A("invalid code: "+K)}V.d(e[T],q,g)}var tA,iA,rA,CA,nA,oA,BA,aA,EA=[b,R],QA=[H,v];for(nA=EA[0],oA=EA[1],BA=QA[0],aA=QA[1],tA=0,iA=G.length;tA<iA;++tA)if(rA=G[tA],V.d(nA[rA],oA[rA],g),256<rA)V.d(G[++tA],G[++tA],g),CA=G[++tA],V.d(BA[CA],aA[CA],g),V.d(G[++tA],G[++tA],g);else if(256===rA)break;this.a=V.finish(),this.b=this.a.length;break;default:A("invalid compression type")}return this.a};var S=function(){function I(I){switch(!0){case 3===I:return[257,I-3,0];case 4===I:return[258,I-4,0];case 5===I:return[259,I-5,0];case 6===I:return[260,I-6,0];case 7===I:return[261,I-7,0];case 8===I:return[262,I-8,0];case 9===I:return[263,I-9,0];case 10===I:return[264,I-10,0];case 12>=I:return[265,I-11,1];case 14>=I:return[266,I-13,1];case 16>=I:return[267,I-15,1];case 18>=I:return[268,I-17,1];case 22>=I:return[269,I-19,2];case 26>=I:return[270,I-23,2];case 30>=I:return[271,I-27,2];case 34>=I:return[272,I-31,2];case 42>=I:return[273,I-35,3];case 50>=I:return[274,I-43,3];case 58>=I:return[275,I-51,3];case 66>=I:return[276,I-59,3];case 82>=I:return[277,I-67,4];case 98>=I:return[278,I-83,4];case 114>=I:return[279,I-99,4];case 130>=I:return[280,I-115,4];case 162>=I:return[281,I-131,5];case 194>=I:return[282,I-163,5];case 226>=I:return[283,I-195,5];case 257>=I:return[284,I-227,5];case 258===I:return[285,I-258,0];default:A("invalid length: "+I)}}var g,e,t=[];for(g=3;258>=g;g++)e=I(g),t[g]=e[2]<<24|e[1]<<16|e[0];return t}(),d=i?new Uint32Array(S):S;function U(g,e){function t(I,g){var e,t,i,r,C=I.P,n=[],o=0;switch(e=d[I.length],n[o++]=65535&e,n[o++]=e>>16&255,n[o++]=e>>24,!0){case 1===C:t=[0,C-1,0];break;case 2===C:t=[1,C-2,0];break;case 3===C:t=[2,C-3,0];break;case 4===C:t=[3,C-4,0];break;case 6>=C:t=[4,C-5,1];break;case 8>=C:t=[5,C-7,1];break;case 12>=C:t=[6,C-9,2];break;case 16>=C:t=[7,C-13,2];break;case 24>=C:t=[8,C-17,3];break;case 32>=C:t=[9,C-25,3];break;case 48>=C:t=[10,C-33,4];break;case 64>=C:t=[11,C-49,4];break;case 96>=C:t=[12,C-65,5];break;case 128>=C:t=[13,C-97,5];break;case 192>=C:t=[14,C-129,6];break;case 256>=C:t=[15,C-193,6];break;case 384>=C:t=[16,C-257,7];break;case 512>=C:t=[17,C-385,7];break;case 768>=C:t=[18,C-513,8];break;case 1024>=C:t=[19,C-769,8];break;case 1536>=C:t=[20,C-1025,9];break;case 2048>=C:t=[21,C-1537,9];break;case 3072>=C:t=[22,C-2049,10];break;case 4096>=C:t=[23,C-3073,10];break;case 6144>=C:t=[24,C-4097,11];break;case 8192>=C:t=[25,C-6145,11];break;case 12288>=C:t=[26,C-8193,12];break;case 16384>=C:t=[27,C-12289,12];break;case 24576>=C:t=[28,C-16385,13];break;case 32768>=C:t=[29,C-24577,13];break;default:A("invalid distance")}for(e=t,n[o++]=e[0],n[o++]=e[1],n[o++]=e[2],i=0,r=n.length;i<r;++i)c[u++]=n[i];y[n[0]]++,l[n[3]]++,f=I.length+g-1,Q=null}var r,C,n,o,B,a,E,Q,s,h={},c=i?new Uint16Array(2*e.length):[],u=0,f=0,y=new(i?Uint32Array:Array)(286),l=new(i?Uint32Array:Array)(30),w=g.I;if(!i){for(n=0;285>=n;)y[n++]=0;for(n=0;29>=n;)l[n++]=0}for(y[256]=1,r=0,C=e.length;r<C;++r){for(n=B=0,o=3;n<o&&r+n!==C;++n)B=B<<8|e[r+n];if(h[B]===I&&(h[B]=[]),a=h[B],!(0<f--)){for(;0<a.length&&32768<r-a[0];)a.shift();if(r+3>=C){for(Q&&t(Q,-1),n=0,o=C-r;n<o;++n)s=e[r+n],c[u++]=s,++y[s];break}0<a.length?(E=G(e,r,a),Q?Q.length<E.length?(s=e[r-1],c[u++]=s,++y[s],t(E,0)):t(Q,-1):E.length<w?Q=E:t(E,0)):Q?t(Q,-1):(s=e[r],c[u++]=s,++y[s])}a.push(r)}return c[u++]=256,y[256]++,g.V=y,g.U=l,i?c.subarray(0,u):c}function G(A,I,g){var e,t,i,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(e=g[n-r-1],i=3,3<o){for(C=o;3<C;C--)if(A[e+C-1]!==A[I+C-1])continue A;i=o}for(;258>i&&I+i<B&&A[e+i]===A[I+i];)++i;if(i>o&&(t=e,o=i),258===i)break}return new p(o,I-t)}function m(A,I){var g,e,t,r,C,n=A.length,o=new u(572),B=new(i?Uint8Array:Array)(n);if(!i)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),e=new(i?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),e[r]=g[r].value;for(t=function(A,I,g){function e(A){var g=s[A][h[A]];g===I?(e(A+1),e(A+1)):--E[g],++h[A]}var t,r,C,n,o,B=new(i?Uint16Array:Array)(g),a=new(i?Uint8Array:Array)(g),E=new(i?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(t=0;t<I;++t)E[t]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(t=0;t<g;++t)h[t]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=t=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[t]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[t],s[r][C]=t,++t);h[r]=0,1===a[r]&&e(r)}return E}(e,e.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=t[r];return B}function k(A){var I,g,e,t,r=new(i?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,e=r[I]=0,t=A[I];e<t;e++)r[I]=r[I]<<1|1&o,o>>>=1;return r}function Y(A,I){this.input=A,this.b=this.c=0,this.i={},I&&(I.flags&&(this.i=I.flags),"string"==typeof I.filename&&(this.filename=I.filename),"string"==typeof I.comment&&(this.A=I.comment),I.deflateOptions&&(this.l=I.deflateOptions)),this.l||(this.l={})}Y.prototype.g=function(){var A,g,e,t,r,C,n,o,B=new(i?Uint8Array:Array)(32768),a=0,E=this.input,s=this.c,h=this.filename,c=this.A;if(B[a++]=31,B[a++]=139,B[a++]=8,A=0,this.i.fname&&(A|=R),this.i.fcomment&&(A|=b),this.i.fhcrc&&(A|=N),B[a++]=A,g=(Date.now?Date.now():+new Date)/1e3|0,B[a++]=255&g,B[a++]=g>>>8&255,B[a++]=g>>>16&255,B[a++]=g>>>24&255,B[a++]=0,B[a++]=M,this.i.fname!==I){for(n=0,o=h.length;n<o;++n)255<(C=h.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}if(this.i.comment){for(n=0,o=c.length;n<o;++n)255<(C=c.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}return this.i.fhcrc&&(e=65535&Q(B,0,a),B[a++]=255&e,B[a++]=e>>>8&255),this.l.outputBuffer=B,this.l.outputIndex=a,B=(r=new y(E,this.l)).g(),a=r.b,i&&(a+8>B.buffer.byteLength?(this.a=new Uint8Array(a+8),this.a.set(new Uint8Array(B.buffer)),B=this.a):B=new Uint8Array(B.buffer)),t=Q(E,I,I),B[a++]=255&t,B[a++]=t>>>8&255,B[a++]=t>>>16&255,B[a++]=t>>>24&255,o=E.length,B[a++]=255&o,B[a++]=o>>>8&255,B[a++]=o>>>16&255,B[a++]=o>>>24&255,this.c=s,i&&a<B.length&&(this.a=B=B.subarray(0,a)),B};var M=255,N=2,R=8,b=16;function v(I,g){switch(this.p=[],this.q=32768,this.e=this.j=this.c=this.u=0,this.input=i?new Uint8Array(I):I,this.w=!1,this.r=L,this.L=!1,!g&&(g={})||(g.index&&(this.c=g.index),g.bufferSize&&(this.q=g.bufferSize),g.bufferType&&(this.r=g.bufferType),g.resize&&(this.L=g.resize)),this.r){case H:this.b=32768,this.a=new(i?Uint8Array:Array)(32768+this.q+258);break;case L:this.b=0,this.a=new(i?Uint8Array:Array)(this.q),this.f=this.T,this.B=this.Q,this.s=this.S;break;default:A(Error("invalid inflate mode"))}}var H=0,L=1,J={N:H,M:L};v.prototype.h=function(){for(;!this.w;){var e=tA(this,3);switch(1&e&&(this.w=g),e>>>=1){case 0:var t=this.input,r=this.c,C=this.a,n=this.b,o=t.length,B=I,a=C.length,E=I;switch(this.e=this.j=0,r+1>=o&&A(Error("invalid uncompressed block header: LEN")),B=t[r++]|t[r++]<<8,r+1>=o&&A(Error("invalid uncompressed block header: NLEN")),B===~(t[r++]|t[r++]<<8)&&A(Error("invalid uncompressed block header: length verify")),r+B>t.length&&A(Error("input buffer is broken")),this.r){case H:for(;n+B>C.length;){if(B-=E=a-n,i)C.set(t.subarray(r,r+E),n),n+=E,r+=E;else for(;E--;)C[n++]=t[r++];this.b=n,C=this.f(),n=this.b}break;case L:for(;n+B>C.length;)C=this.f({F:2});break;default:A(Error("invalid inflate mode"))}if(i)C.set(t.subarray(r,r+B),n),n+=B,r+=B;else for(;B--;)C[n++]=t[r++];this.c=r,this.b=n,this.a=C;break;case 1:this.s(IA,eA);break;case 2:var Q,s,h,c,u=tA(this,5)+257,y=tA(this,5)+1,l=tA(this,4)+4,w=new(i?Uint8Array:Array)(x.length),F=I,D=I,p=I,S=I,d=I;for(d=0;d<l;++d)w[x[d]]=tA(this,3);if(!i)for(d=l,l=w.length;d<l;++d)w[x[d]]=0;for(Q=f(w),F=new(i?Uint8Array:Array)(u+y),d=0,c=u+y;d<c;)switch(D=iA(this,Q),D){case 16:for(S=3+tA(this,2);S--;)F[d++]=p;break;case 17:for(S=3+tA(this,3);S--;)F[d++]=0;p=0;break;case 18:for(S=11+tA(this,7);S--;)F[d++]=0;p=0;break;default:p=F[d++]=D}s=f(i?F.subarray(0,u):F.slice(0,u)),h=f(i?F.subarray(u):F.slice(u)),this.s(s,h);break;default:A(Error("unknown BTYPE: "+e))}}return this.B()};var K,q,T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=i?new Uint16Array(T):T,V=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],W=i?new Uint16Array(V):V,Z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],O=i?new Uint8Array(Z):Z,j=[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],X=i?new Uint16Array(j):j,P=[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],z=i?new Uint8Array(P):P,_=new(i?Uint8Array:Array)(288);for(K=0,q=_.length;K<q;++K)_[K]=143>=K?8:255>=K?9:279>=K?7:8;var $,AA,IA=f(_),gA=new(i?Uint8Array:Array)(30);for($=0,AA=gA.length;$<AA;++$)gA[$]=5;var eA=f(gA);function tA(I,g){for(var e,t=I.j,i=I.e,r=I.input,C=I.c,n=r.length;i<g;)C>=n&&A(Error("input buffer is broken")),t|=r[C++]<<i,i+=8;return e=t&(1<<g)-1,I.j=t>>>g,I.e=i-g,I.c=C,e}function iA(I,g){for(var e,t,i=I.j,r=I.e,C=I.input,n=I.c,o=C.length,B=g[0],a=g[1];r<a&&!(n>=o);)i|=C[n++]<<r,r+=8;return(t=(e=B[i&(1<<a)-1])>>>16)>r&&A(Error("invalid code length: "+t)),I.j=i>>t,I.e=r-t,I.c=n,65535&e}function rA(A){this.input=A,this.c=0,this.t=[],this.D=!1}function CA(A){if("string"==typeof A){var I,g,e=A.split("");for(I=0,g=e.length;I<g;I++)e[I]=(255&e[I].charCodeAt(0))>>>0;A=e}for(var t,i=1,r=0,C=A.length,n=0;0<C;){C-=t=1024<C?1024:C;do{r+=i+=A[n++]}while(--t);i%=65521,r%=65521}return(r<<16|i)>>>0}function nA(I,g){var e,t;switch(this.input=I,this.c=0,!g&&(g={})||(g.index&&(this.c=g.index),g.verify&&(this.Z=g.verify)),e=I[this.c++],t=I[this.c++],15&e){case oA:this.method=oA;break;default:A(Error("unsupported compression method"))}0!=((e<<8)+t)%31&&A(Error("invalid fcheck flag:"+((e<<8)+t)%31)),32&t&&A(Error("fdict flag is not supported")),this.K=new v(I,{index:this.c,bufferSize:g.bufferSize,bufferType:g.bufferType,resize:g.resize})}v.prototype.s=function(A,I){var g=this.a,e=this.b;this.C=A;for(var t,i,r,C,n=g.length-258;256!==(t=iA(this,A));)if(256>t)e>=n&&(this.b=e,g=this.f(),e=this.b),g[e++]=t;else for(C=W[i=t-257],0<O[i]&&(C+=tA(this,O[i])),t=iA(this,I),r=X[t],0<z[t]&&(r+=tA(this,z[t])),e>=n&&(this.b=e,g=this.f(),e=this.b);C--;)g[e]=g[e++-r];for(;8<=this.e;)this.e-=8,this.c--;this.b=e},v.prototype.S=function(A,I){var g=this.a,e=this.b;this.C=A;for(var t,i,r,C,n=g.length;256!==(t=iA(this,A));)if(256>t)e>=n&&(n=(g=this.f()).length),g[e++]=t;else for(C=W[i=t-257],0<O[i]&&(C+=tA(this,O[i])),t=iA(this,I),r=X[t],0<z[t]&&(r+=tA(this,z[t])),e+C>n&&(n=(g=this.f()).length);C--;)g[e]=g[e++-r];for(;8<=this.e;)this.e-=8,this.c--;this.b=e},v.prototype.f=function(){var A,I,g=new(i?Uint8Array:Array)(this.b-32768),e=this.b-32768,t=this.a;if(i)g.set(t.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=t[A+32768];if(this.p.push(g),this.u+=g.length,i)t.set(t.subarray(e,e+32768));else for(A=0;32768>A;++A)t[A]=t[e+A];return this.b=32768,t},v.prototype.T=function(A){var I,g,e,t=this.input.length/this.c+1|0,r=this.input,C=this.a;return A&&("number"==typeof A.F&&(t=A.F),"number"==typeof A.O&&(t+=A.O)),2>t?g=(e=(r.length-this.c)/this.C[2]/2*258|0)<C.length?C.length+e:C.length<<1:g=C.length*t,i?(I=new Uint8Array(g)).set(C):I=C,this.a=I},v.prototype.B=function(){var A,I,g,e,t,r=0,C=this.a,n=this.p,o=new(i?Uint8Array:Array)(this.u+(this.b-32768));if(0===n.length)return i?this.a.subarray(32768,this.b):this.a.slice(32768,this.b);for(I=0,g=n.length;I<g;++I)for(e=0,t=(A=n[I]).length;e<t;++e)o[r++]=A[e];for(I=32768,g=this.b;I<g;++I)o[r++]=C[I];return this.p=[],this.buffer=o},v.prototype.Q=function(){var A,I=this.b;return i?this.L?(A=new Uint8Array(I)).set(this.a.subarray(0,I)):A=this.a.subarray(0,I):(this.a.length>I&&(this.a.length=I),A=this.a),this.buffer=A},rA.prototype.W=function(){return this.D||this.h(),this.t.slice()},rA.prototype.h=function(){for(var e=this.input.length;this.c<e;){var t,r,C=new c,n=I,o=I,B=I,a=I,E=I,s=I,h=I,u=this.input,f=this.c;switch(C.G=u[f++],C.H=u[f++],(31!==C.G||139!==C.H)&&A(Error("invalid file signature:"+C.G+","+C.H)),C.z=u[f++],C.z){case 8:break;default:A(Error("unknown compression method: "+C.z))}if(C.n=u[f++],r=u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24,C.Y=new Date(1e3*r),C.ea=u[f++],C.da=u[f++],0<(4&C.n)&&(C.$=u[f++]|u[f++]<<8,f+=C.$),0<(C.n&R)){for(s=[],E=0;0<(a=u[f++]);)s[E++]=String.fromCharCode(a);C.name=s.join("")}if(0<(C.n&b)){for(s=[],E=0;0<(a=u[f++]);)s[E++]=String.fromCharCode(a);C.A=s.join("")}0<(C.n&N)&&(C.R=65535&Q(u,0,f),C.R!==(u[f++]|u[f++]<<8)&&A(Error("invalid header crc16"))),n=u[u.length-4]|u[u.length-3]<<8|u[u.length-2]<<16|u[u.length-1]<<24,u.length-f-4-4<512*n&&(B=n),o=new v(u,{index:f,bufferSize:B}),C.data=t=o.h(),f=o.c,C.ba=h=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,Q(t,I,I)!==h&&A(Error("invalid CRC-32 checksum: 0x"+Q(t,I,I).toString(16)+" / 0x"+h.toString(16))),C.ca=n=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&t.length)!==n&&A(Error("invalid input size: "+(4294967295&t.length)+" / "+n)),this.t.push(C),this.c=f}this.D=g;var y,l,w,F=this.t,D=0,p=0;for(y=0,l=F.length;y<l;++y)p+=F[y].data.length;if(i)for(w=new Uint8Array(p),y=0;y<l;++y)w.set(F[y].data,D),D+=F[y].data.length;else{for(w=[],y=0;y<l;++y)w[y]=F[y].data;w=Array.prototype.concat.apply([],w)}return w},nA.prototype.h=function(){var I,g=this.input;return I=this.K.h(),this.c=this.K.c,this.Z&&((g[this.c++]<<24|g[this.c++]<<16|g[this.c++]<<8|g[this.c++])>>>0!==CA(I)&&A(Error("invalid adler-32 checksum"))),I};var oA=8;function BA(A,I){this.input=A,this.a=new(i?Uint8Array:Array)(32768),this.k=aA.o;var g,e={};for(g in!I&&(I={})||"number"!=typeof I.compressionType||(this.k=I.compressionType),I)e[g]=I[g];e.outputBuffer=this.a,this.J=new y(this.input,e)}var aA=F;function EA(A,I){var g,e,i,r;if(Object.keys)g=Object.keys(I);else for(e in g=[],i=0,I)g[i++]=e;for(i=0,r=g.length;i<r;++i)t(A+"."+(e=g[i]),I[e])}BA.prototype.g=function(){var I,g,e,t,r,C,n,o=0;switch(n=this.a,I=oA){case oA:g=Math.LOG2E*Math.log(32768)-8;break;default:A(Error("invalid compression method"))}switch(e=g<<4|I,n[o++]=e,I){case oA:switch(this.k){case aA.NONE:r=0;break;case aA.v:r=1;break;case aA.o:r=2;break;default:A(Error("unsupported compression type"))}break;default:A(Error("invalid compression method"))}return t=r<<6|0,n[o++]=t|31-(256*e+t)%31,C=CA(this.input),this.J.b=o,o=(n=this.J.g()).length,i&&((n=new Uint8Array(n.buffer)).length<=o+4&&(this.a=new Uint8Array(n.length+4),this.a.set(n),n=this.a),n=n.subarray(0,o+4)),n[o++]=C>>24&255,n[o++]=C>>16&255,n[o++]=C>>8&255,n[o++]=255&C,n},t("Zlib.Inflate",nA),t("Zlib.Inflate.prototype.decompress",nA.prototype.h),EA("Zlib.Inflate.BufferType",{ADAPTIVE:J.M,BLOCK:J.N}),t("Zlib.Deflate",BA),t("Zlib.Deflate.compress",(function(A,I){return new BA(A,I).g()})),t("Zlib.Deflate.prototype.compress",BA.prototype.g),EA("Zlib.Deflate.CompressionType",{NONE:aA.NONE,FIXED:aA.v,DYNAMIC:aA.o}),t("Zlib.Gzip",Y),t("Zlib.Gzip.prototype.compress",Y.prototype.g),t("Zlib.Gunzip",rA),t("Zlib.Gunzip.prototype.decompress",rA.prototype.h),t("Zlib.Gunzip.prototype.getMembers",rA.prototype.W),t("Zlib.GunzipMember",c),t("Zlib.GunzipMember.prototype.getName",c.prototype.getName),t("Zlib.GunzipMember.prototype.getData",c.prototype.getData),t("Zlib.GunzipMember.prototype.getMtime",c.prototype.X)}).call(this)},351:function(A,I,g){(function(A){function g(A,I){for(var g=0,e=A.length-1;e>=0;e--){var t=A[e];"."===t?A.splice(e,1):".."===t?(A.splice(e,1),g++):g&&(A.splice(e,1),g--)}if(I)for(;g--;g)A.unshift("..");return A}function e(A,I){if(A.filter)return A.filter(I);for(var g=[],e=0;e<A.length;e++)I(A[e],e,A)&&g.push(A[e]);return g}I.resolve=function(){for(var I="",t=!1,i=arguments.length-1;i>=-1&&!t;i--){var r=i>=0?arguments[i]:A.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(I=r+"/"+I,t="/"===r.charAt(0))}return(t?"/":"")+(I=g(e(I.split("/"),(function(A){return!!A})),!t).join("/"))||"."},I.normalize=function(A){var i=I.isAbsolute(A),r="/"===t(A,-1);return(A=g(e(A.split("/"),(function(A){return!!A})),!i).join("/"))||i||(A="."),A&&r&&(A+="/"),(i?"/":"")+A},I.isAbsolute=function(A){return"/"===A.charAt(0)},I.join=function(){var A=Array.prototype.slice.call(arguments,0);return I.normalize(e(A,(function(A,I){if("string"!=typeof A)throw new TypeError("Arguments to path.join must be strings");return A})).join("/"))},I.relative=function(A,g){function e(A){for(var I=0;I<A.length&&""===A[I];I++);for(var g=A.length-1;g>=0&&""===A[g];g--);return I>g?[]:A.slice(I,g-I+1)}A=I.resolve(A).substr(1),g=I.resolve(g).substr(1);for(var t=e(A.split("/")),i=e(g.split("/")),r=Math.min(t.length,i.length),C=r,n=0;n<r;n++)if(t[n]!==i[n]){C=n;break}var o=[];for(n=C;n<t.length;n++)o.push("..");return(o=o.concat(i.slice(C))).join("/")},I.sep="/",I.delimiter=":",I.dirname=function(A){if("string"!=typeof A&&(A+=""),0===A.length)return".";for(var I=A.charCodeAt(0),g=47===I,e=-1,t=!0,i=A.length-1;i>=1;--i)if(47===(I=A.charCodeAt(i))){if(!t){e=i;break}}else t=!1;return-1===e?g?"/":".":g&&1===e?"/":A.slice(0,e)},I.basename=function(A,I){var g=function(A){"string"!=typeof A&&(A+="");var I,g=0,e=-1,t=!0;for(I=A.length-1;I>=0;--I)if(47===A.charCodeAt(I)){if(!t){g=I+1;break}}else-1===e&&(t=!1,e=I+1);return-1===e?"":A.slice(g,e)}(A);return I&&g.substr(-1*I.length)===I&&(g=g.substr(0,g.length-I.length)),g},I.extname=function(A){"string"!=typeof A&&(A+="");for(var I=-1,g=0,e=-1,t=!0,i=0,r=A.length-1;r>=0;--r){var C=A.charCodeAt(r);if(47!==C)-1===e&&(t=!1,e=r+1),46===C?-1===I?I=r:1!==i&&(i=1):-1!==I&&(i=-1);else if(!t){g=r+1;break}}return-1===I||-1===e||0===i||1===i&&I===e-1&&I===g+1?"":A.slice(I,e)};var t="b"==="ab".substr(-1)?function(A,I,g){return A.substr(I,g)}:function(A,I,g){return I<0&&(I=A.length+I),A.substr(I,g)}}).call(this,g(27))},4:function(A,I,g){var e=g(44),t=g(23);A.exports=function(A,I){return!I||"object"!==e(I)&&"function"!=typeof I?t(A):I}},40:function(A,I){var g={}.toString;A.exports=Array.isArray||function(A){return"[object Array]"==g.call(A)}},427:function(A,I,g){(function(I,e,t){var i=function(){"undefined"!=typeof document&&document.currentScript&&document.currentScript.src;return function(A){A=void 0!==(A=A||{})?A:{};var i,r={};for(i in A)A.hasOwnProperty(i)&&(r[i]=A[i]);A.arguments=[],A.thisProgram="./this.program",A.quit=function(A,I){throw I},A.preRun=[],A.postRun=[];var C,n,o;C="object"==typeof window,n="function"==typeof importScripts,o="object"==typeof I&&!C&&!n;var B,a,E="";o&&(E=e+"/",A.read=function(A,I){var e;return(e=iI(A))||(B||(B=g(463)),a||(a=g(351)),A=a.normalize(A),e=B.readFileSync(A)),I?e:e.toString()},A.readBinary=function(I){var g=A.read(I,!0);return g.buffer||(g=new Uint8Array(g)),f(g.buffer),g},I.argv.length>1&&(A.thisProgram=I.argv[1].replace(/\\/g,"/")),A.arguments=I.argv.slice(2),I.on("uncaughtException",(function(A){if(!(A instanceof EI))throw A})),I.on("unhandledRejection",sI),A.quit=function(A){I.exit(A)},A.inspect=function(){return"[Emscripten Module object]"});var Q=A.print||("undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null),s=A.printErr||("undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||Q);for(i in r)r.hasOwnProperty(i)&&(A[i]=r[i]);r=void 0;var h,c={"f64-rem":function(A,I){return A%I},debugger:function(){}};new Array(0);"object"!=typeof WebAssembly&&s("no native wasm support detected");var u=!1;function f(A,I){A||sI("Assertion failed: "+I)}var y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function l(A,I,g){for(var e=I+g,t=I;A[t]&&!(t>=e);)++t;if(t-I>16&&A.subarray&&y)return y.decode(A.subarray(I,t));for(var i="";I<t;){var r=A[I++];if(128&r){var C=63&A[I++];if(192!=(224&r)){var n=63&A[I++];if((r=224==(240&r)?(15&r)<<12|C<<6|n:(7&r)<<18|C<<12|n<<6|63&A[I++])<65536)i+=String.fromCharCode(r);else{var o=r-65536;i+=String.fromCharCode(55296|o>>10,56320|1023&o)}}else i+=String.fromCharCode((31&r)<<6|C)}else i+=String.fromCharCode(r)}return i}function w(A,I){return A?l(p,A,I):""}var F,D,p,S,d,U,G,m,k;"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function Y(A,I){return A%I>0&&(A+=I-A%I),A}function M(){A.HEAP8=D=new Int8Array(F),A.HEAP16=S=new Int16Array(F),A.HEAP32=U=new Int32Array(F),A.HEAPU8=p=new Uint8Array(F),A.HEAPU16=d=new Uint16Array(F),A.HEAPU32=G=new Uint32Array(F),A.HEAPF32=m=new Float32Array(F),A.HEAPF64=k=new Float64Array(F)}var N=A.TOTAL_MEMORY||16777216;function R(I){for(;I.length>0;){var g=I.shift();if("function"!=typeof g){var e=g.func;"number"==typeof e?void 0===g.arg?A.dynCall_v(e):A.dynCall_vi(e,g.arg):e(void 0===g.arg?null:g.arg)}else g()}}N<5242880&&s("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+N+"! (TOTAL_STACK=5242880)"),A.buffer?F=A.buffer:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.Memory?(h=new WebAssembly.Memory({initial:N/65536}),F=h.buffer):F=new ArrayBuffer(N),M(),U[3056]=5255360;var b=[],v=[],H=[],L=[],J=!1;var K=0,q=null,T=null;A.preloadedImages={},A.preloadedAudios={};var x="data:application/octet-stream;base64,";function V(A){return String.prototype.startsWith?A.startsWith(x):0===A.indexOf(x)}var W,Z="data:application/octet-stream;base64, ";function O(){try{if(A.wasmBinary)return new Uint8Array(A.wasmBinary);var I=iI(Z);if(I)return I;if(A.readBinary)return A.readBinary(Z);throw"both async and sync fetching of the wasm failed"}catch(A){sI(A)}}function j(I){var g={env:I,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:c};function e(I,g){var e=I.exports;A.asm=e,function(I){if(K--,A.monitorRunDependencies&&A.monitorRunDependencies(K),0==K&&(null!==q&&(clearInterval(q),q=null),T)){var g=T;T=null,g()}}()}if(K++,A.monitorRunDependencies&&A.monitorRunDependencies(K),A.instantiateWasm)try{return A.instantiateWasm(g,e)}catch(A){return s("Module.instantiateWasm callback failed with error: "+A),!1}function t(A){e(A.instance)}function i(I){(A.wasmBinary||!C&&!n||"function"!=typeof fetch?new Promise((function(A,I){A(O())})):fetch(Z,{credentials:"same-origin"}).then((function(A){if(!A.ok)throw"failed to load wasm binary file at '"+Z+"'";return A.arrayBuffer()})).catch((function(){return O()}))).then((function(A){return WebAssembly.instantiate(A,g)})).then(I,(function(A){s("failed to asynchronously prepare wasm: "+A),sI(A)}))}return A.wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||V(Z)||"function"!=typeof fetch?i(t):WebAssembly.instantiateStreaming(fetch(Z,{credentials:"same-origin"}),g).then(t,(function(A){s("wasm streaming compile failed: "+A),s("falling back to ArrayBuffer instantiation"),i(t)})),{}}V(Z)||(W=Z,Z=A.locateFile?A.locateFile(W,E):E+W),A.asm=function(A,I,g){return I.memory=h,I.table=new WebAssembly.Table({initial:62,maximum:62,element:"anyfunc"}),I.__memory_base=1024,I.__table_base=0,j(I)},v.push({func:function(){aI()}});var X={buffers:[null,[],[]],printChar:function(A,I){var g=X.buffers[A];0===I||10===I?((1===A?Q:s)(l(g,0)),g.length=0):g.push(I)},varargs:0,get:function(A){return X.varargs+=4,U[X.varargs-4>>2]},getStr:function(){return w(X.get())},get64:function(){var A=X.get();X.get();return A},getZero:function(){X.get()}};function P(A){switch(A){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+A)}}var z=void 0;function _(A){for(var I="",g=A;p[g];)I+=z[p[g++]];return I}var $={},AA={},IA={};function gA(A){if(void 0===A)return"_unknown";var I=(A=A.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return I>=48&&I<=57?"_"+A:A}function eA(A,I){return A=gA(A),new Function("body","return function "+A+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(I)}function tA(A,I){var g=eA(I,(function(A){this.name=I,this.message=A;var g=new Error(A).stack;void 0!==g&&(this.stack=this.toString()+"\n"+g.replace(/^Error(:[^\n]*)?\n/,""))}));return g.prototype=Object.create(A.prototype),g.prototype.constructor=g,g.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},g}var iA=void 0;function rA(A){throw new iA(A)}var CA=void 0;function nA(A){throw new CA(A)}function oA(A,I,g){function e(I){var e=g(I);e.length!==A.length&&nA("Mismatched type converter count");for(var t=0;t<A.length;++t)BA(A[t],e[t])}A.forEach((function(A){IA[A]=I}));var t=new Array(I.length),i=[],r=0;I.forEach((function(A,I){AA.hasOwnProperty(A)?t[I]=AA[A]:(i.push(A),$.hasOwnProperty(A)||($[A]=[]),$[A].push((function(){t[I]=AA[A],++r===i.length&&e(t)})))})),0===i.length&&e(t)}function BA(A,I,g){if(g=g||{},!("argPackAdvance"in I))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=I.name;if(A||rA('type "'+e+'" must have a positive integer typeid pointer'),AA.hasOwnProperty(A)){if(g.ignoreDuplicateRegistrations)return;rA("Cannot register type '"+e+"' twice")}if(AA[A]=I,delete IA[A],$.hasOwnProperty(A)){var t=$[A];delete $[A],t.forEach((function(A){A()}))}}function aA(A){if(!(this instanceof lA))return!1;if(!(A instanceof lA))return!1;for(var I=this.$$.ptrType.registeredClass,g=this.$$.ptr,e=A.$$.ptrType.registeredClass,t=A.$$.ptr;I.baseClass;)g=I.upcast(g),I=I.baseClass;for(;e.baseClass;)t=e.upcast(t),e=e.baseClass;return I===e&&g===t}function EA(A){rA(A.$$.ptrType.registeredClass.name+" instance already deleted")}function QA(){if(this.$$.ptr||EA(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var A,I=Object.create(Object.getPrototypeOf(this),{$$:{value:(A=this.$$,{count:A.count,deleteScheduled:A.deleteScheduled,preservePointerOnDelete:A.preservePointerOnDelete,ptr:A.ptr,ptrType:A.ptrType,smartPtr:A.smartPtr,smartPtrType:A.smartPtrType})}});return I.$$.count.value+=1,I.$$.deleteScheduled=!1,I}function sA(){var A;this.$$.ptr||EA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&rA("Object already scheduled for deletion"),this.$$.count.value-=1,0===this.$$.count.value&&((A=this.$$).smartPtr?A.smartPtrType.rawDestructor(A.smartPtr):A.ptrType.registeredClass.rawDestructor(A.ptr)),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function hA(){return!this.$$.ptr}var cA=void 0,uA=[];function fA(){for(;uA.length;){var A=uA.pop();A.$$.deleteScheduled=!1,A.delete()}}function yA(){return this.$$.ptr||EA(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&rA("Object already scheduled for deletion"),uA.push(this),1===uA.length&&cA&&cA(fA),this.$$.deleteScheduled=!0,this}function lA(){}var wA={};function FA(I,g,e){A.hasOwnProperty(I)?((void 0===e||void 0!==A[I].overloadTable&&void 0!==A[I].overloadTable[e])&&rA("Cannot register public name '"+I+"' twice"),function(A,I,g){if(void 0===A[I].overloadTable){var e=A[I];A[I]=function(){return A[I].overloadTable.hasOwnProperty(arguments.length)||rA("Function '"+g+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+A[I].overloadTable+")!"),A[I].overloadTable[arguments.length].apply(this,arguments)},A[I].overloadTable=[],A[I].overloadTable[e.argCount]=e}}(A,I,I),A.hasOwnProperty(e)&&rA("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),A[I].overloadTable[e]=g):(A[I]=g,void 0!==e&&(A[I].numArguments=e))}function DA(A,I,g,e,t,i,r,C){this.name=A,this.constructor=I,this.instancePrototype=g,this.rawDestructor=e,this.baseClass=t,this.getActualType=i,this.upcast=r,this.downcast=C,this.pureVirtualFunctions=[]}function pA(A,I,g){for(;I!==g;)I.upcast||rA("Expected null or instance of "+g.name+", got an instance of "+I.name),A=I.upcast(A),I=I.baseClass;return A}function SA(A,I){if(null===I)return this.isReference&&rA("null is not a valid "+this.name),0;I.$$||rA('Cannot pass "'+$A(I)+'" as a '+this.name),I.$$.ptr||rA("Cannot pass deleted object as a pointer of type "+this.name);var g=I.$$.ptrType.registeredClass;return pA(I.$$.ptr,g,this.registeredClass)}function dA(A,I){var g;if(null===I)return this.isReference&&rA("null is not a valid "+this.name),this.isSmartPointer?(g=this.rawConstructor(),null!==A&&A.push(this.rawDestructor,g),g):0;I.$$||rA('Cannot pass "'+$A(I)+'" as a '+this.name),I.$$.ptr||rA("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&I.$$.ptrType.isConst&&rA("Cannot convert argument of type "+(I.$$.smartPtrType?I.$$.smartPtrType.name:I.$$.ptrType.name)+" to parameter type "+this.name);var e=I.$$.ptrType.registeredClass;if(g=pA(I.$$.ptr,e,this.registeredClass),this.isSmartPointer)switch(void 0===I.$$.smartPtr&&rA("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:I.$$.smartPtrType===this?g=I.$$.smartPtr:rA("Cannot convert argument of type "+(I.$$.smartPtrType?I.$$.smartPtrType.name:I.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:g=I.$$.smartPtr;break;case 2:if(I.$$.smartPtrType===this)g=I.$$.smartPtr;else{var t=I.clone();g=this.rawShare(g,_A((function(){t.delete()}))),null!==A&&A.push(this.rawDestructor,g)}break;default:rA("Unsupporting sharing policy")}return g}function UA(A,I){if(null===I)return this.isReference&&rA("null is not a valid "+this.name),0;I.$$||rA('Cannot pass "'+$A(I)+'" as a '+this.name),I.$$.ptr||rA("Cannot pass deleted object as a pointer of type "+this.name),I.$$.ptrType.isConst&&rA("Cannot convert argument of type "+I.$$.ptrType.name+" to parameter type "+this.name);var g=I.$$.ptrType.registeredClass;return pA(I.$$.ptr,g,this.registeredClass)}function GA(A){return this.fromWireType(G[A>>2])}function mA(A){return this.rawGetPointee&&(A=this.rawGetPointee(A)),A}function kA(A){this.rawDestructor&&this.rawDestructor(A)}function YA(A){null!==A&&A.delete()}function MA(){return Object.keys(bA).length}function NA(){var A=[];for(var I in bA)bA.hasOwnProperty(I)&&A.push(bA[I]);return A}function RA(A){cA=A,uA.length&&cA&&cA(fA)}var bA={};function vA(A,I){return I=function(A,I){for(void 0===I&&rA("ptr should not be undefined");A.baseClass;)I=A.upcast(I),A=A.baseClass;return I}(A,I),bA[I]}function HA(A,I){return I.ptrType&&I.ptr||nA("makeClassHandle requires ptr and ptrType"),!!I.smartPtrType!==!!I.smartPtr&&nA("Both smartPtrType and smartPtr must be specified"),I.count={value:1},Object.create(A,{$$:{value:I}})}function LA(A){var I=this.getPointee(A);if(!I)return this.destructor(A),null;var g=vA(this.registeredClass,I);if(void 0!==g){if(0===g.$$.count.value)return g.$$.ptr=I,g.$$.smartPtr=A,g.clone();var e=g.clone();return this.destructor(A),e}function t(){return this.isSmartPointer?HA(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:I,smartPtrType:this,smartPtr:A}):HA(this.registeredClass.instancePrototype,{ptrType:this,ptr:A})}var i,r=this.registeredClass.getActualType(I),C=wA[r];if(!C)return t.call(this);i=this.isConst?C.constPointerType:C.pointerType;var n=function A(I,g,e){if(g===e)return I;if(void 0===e.baseClass)return null;var t=A(I,g,e.baseClass);return null===t?null:e.downcast(t)}(I,this.registeredClass,i.registeredClass);return null===n?t.call(this):this.isSmartPointer?HA(i.registeredClass.instancePrototype,{ptrType:i,ptr:n,smartPtrType:this,smartPtr:A}):HA(i.registeredClass.instancePrototype,{ptrType:i,ptr:n})}function JA(A,I,g,e,t,i,r,C,n,o,B){this.name=A,this.registeredClass=I,this.isReference=g,this.isConst=e,this.isSmartPointer=t,this.pointeeType=i,this.sharingPolicy=r,this.rawGetPointee=C,this.rawConstructor=n,this.rawShare=o,this.rawDestructor=B,t||void 0!==I.baseClass?this.toWireType=dA:e?(this.toWireType=SA,this.destructorFunction=null):(this.toWireType=UA,this.destructorFunction=null)}function KA(I,g,e){A.hasOwnProperty(I)||nA("Replacing nonexistant public symbol"),void 0!==A[I].overloadTable&&void 0!==e?A[I].overloadTable[e]=g:(A[I]=g,A[I].argCount=e)}function qA(I,g){var e;if(I=_(I),void 0!==A["FUNCTION_TABLE_"+I])e=A["FUNCTION_TABLE_"+I][g];else if("undefined"!=typeof FUNCTION_TABLE)e=FUNCTION_TABLE[g];else{var t=A["dynCall_"+I];void 0===t&&void 0===(t=A["dynCall_"+I.replace(/f/g,"d")])&&rA("No dynCall invoker for signature: "+I),e=function(A){for(var e=[],t=1;t<I.length;++t)e.push("a"+t);var i="return function "+("dynCall_"+I+"_"+g)+"("+e.join(", ")+") {\n";return i+="    return dynCall(rawFunction"+(e.length?", ":"")+e.join(", ")+");\n",i+="};\n",new Function("dynCall","rawFunction",i)(A,g)}(t)}return"function"!=typeof e&&rA("unknown function pointer with signature "+I+": "+g),e}var TA=void 0;function xA(A){var I=nI(A),g=_(I);return oI(I),g}function VA(A,I){var g=[],e={};throw I.forEach((function A(I){e[I]||AA[I]||(IA[I]?IA[I].forEach(A):(g.push(I),e[I]=!0))})),new TA(A+": "+g.map(xA).join([", "]))}function WA(A){for(;A.length;){var I=A.pop();A.pop()(I)}}function ZA(A,I,g){return A instanceof Object||rA(g+' with invalid "this": '+A),A instanceof I.registeredClass.constructor||rA(g+' incompatible with "this" of type '+A.constructor.name),A.$$.ptr||rA("cannot call emscripten binding method "+g+" on deleted object"),pA(A.$$.ptr,A.$$.ptrType.registeredClass,I.registeredClass)}var OA=[],jA=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function XA(A){A>4&&0==--jA[A].refcount&&(jA[A]=void 0,OA.push(A))}function PA(){for(var A=0,I=5;I<jA.length;++I)void 0!==jA[I]&&++A;return A}function zA(){for(var A=5;A<jA.length;++A)if(void 0!==jA[A])return jA[A];return null}function _A(A){switch(A){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var I=OA.length?OA.pop():jA.length;return jA[I]={refcount:1,value:A},I}}function $A(A){if(null===A)return"null";var I=typeof A;return"object"===I||"array"===I||"function"===I?A.toString():""+A}function AI(A,I){switch(I){case 2:return function(A){return this.fromWireType(m[A>>2])};case 3:return function(A){return this.fromWireType(k[A>>3])};default:throw new TypeError("Unknown float type: "+A)}}function II(A,I,g,e,t){var i=I.length;i<2&&rA("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var r=null!==I[1]&&null!==g,C=!1,n=1;n<I.length;++n)if(null!==I[n]&&void 0===I[n].destructorFunction){C=!0;break}var o="void"!==I[0].name,B="",a="";for(n=0;n<i-2;++n)B+=(0!==n?", ":"")+"arg"+n,a+=(0!==n?", ":"")+"arg"+n+"Wired";var E="return function "+gA(A)+"("+B+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+A+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";C&&(E+="var destructors = [];\n");var Q=C?"destructors":"null",s=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],h=[rA,e,t,WA,I[0],I[1]];r&&(E+="var thisWired = classParam.toWireType("+Q+", this);\n");for(n=0;n<i-2;++n)E+="var arg"+n+"Wired = argType"+n+".toWireType("+Q+", arg"+n+"); // "+I[n+2].name+"\n",s.push("argType"+n),h.push(I[n+2]);if(r&&(a="thisWired"+(a.length>0?", ":"")+a),E+=(o?"var rv = ":"")+"invoker(fn"+(a.length>0?", ":"")+a+");\n",C)E+="runDestructors(destructors);\n";else for(n=r?1:2;n<I.length;++n){var c=1===n?"thisWired":"arg"+(n-2)+"Wired";null!==I[n].destructorFunction&&(E+=c+"_dtor("+c+"); // "+I[n].name+"\n",s.push(c+"_dtor"),h.push(I[n].destructorFunction))}return o&&(E+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),E+="}\n",s.push(E),function(A,I){if(!(A instanceof Function))throw new TypeError("new_ called with constructor type "+typeof A+" which is not a function");var g=eA(A.name||"unknownFunctionName",(function(){}));g.prototype=A.prototype;var e=new g,t=A.apply(e,I);return t instanceof Object?t:e}(Function,s).apply(null,h)}function gI(A,I,g){switch(I){case 0:return g?function(A){return D[A]}:function(A){return p[A]};case 1:return g?function(A){return S[A>>1]}:function(A){return d[A>>1]};case 2:return g?function(A){return U[A>>2]}:function(A){return G[A>>2]};default:throw new TypeError("Unknown integer type: "+A)}}function eI(){return D.length}!function(){for(var A=new Array(256),I=0;I<256;++I)A[I]=String.fromCharCode(I);z=A}(),iA=A.BindingError=tA(Error,"BindingError"),CA=A.InternalError=tA(Error,"InternalError"),lA.prototype.isAliasOf=aA,lA.prototype.clone=QA,lA.prototype.delete=sA,lA.prototype.isDeleted=hA,lA.prototype.deleteLater=yA,JA.prototype.getPointee=mA,JA.prototype.destructor=kA,JA.prototype.argPackAdvance=8,JA.prototype.readValueFromPointer=GA,JA.prototype.deleteObject=YA,JA.prototype.fromWireType=LA,A.getInheritedInstanceCount=MA,A.getLiveInheritedInstances=NA,A.flushPendingDeletes=fA,A.setDelayFunction=RA,TA=A.UnboundTypeError=tA(Error,"UnboundTypeError"),A.count_emval_handles=PA,A.get_first_emval=zA;var tI="function"==typeof atob?atob:function(A){var I,g,e,t,i,r,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="",o=0;A=A.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{I=C.indexOf(A.charAt(o++))<<2|(t=C.indexOf(A.charAt(o++)))>>4,g=(15&t)<<4|(i=C.indexOf(A.charAt(o++)))>>2,e=(3&i)<<6|(r=C.indexOf(A.charAt(o++))),n+=String.fromCharCode(I),64!==i&&(n+=String.fromCharCode(g)),64!==r&&(n+=String.fromCharCode(e))}while(o<A.length);return n};function iI(A){if(V(A))return function(A){if("boolean"==typeof o&&o){var I;try{I=t.from(A,"base64")}catch(g){I=new t(A,"base64")}return new Uint8Array(I.buffer,I.byteOffset,I.byteLength)}try{for(var g=tI(A),e=new Uint8Array(g.length),i=0;i<g.length;++i)e[i]=g.charCodeAt(i);return e}catch(A){throw new Error("Converting base64 string to bytes failed.")}}(A.slice(x.length))}var rI={c:sI,l:function(I){return A.___errno_location&&(U[A.___errno_location()>>2]=I),I},u:function(A,I){X.varargs=I;try{var g=X.getStreamFromFD(),e=(X.get(),X.get()),t=X.get(),i=X.get(),r=e;return FS.llseek(g,r,i),U[t>>2]=g.position,g.getdents&&0===r&&0===i&&(g.getdents=null),0}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||sI(A),-A.errno}},h:function(A,I){X.varargs=I;try{for(var g=X.get(),e=X.get(),t=X.get(),i=0,r=0;r<t;r++){for(var C=U[e+8*r>>2],n=U[e+(8*r+4)>>2],o=0;o<n;o++)X.printChar(g,p[C+o]);i+=n}return i}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||sI(A),-A.errno}},p:function(A,I){X.varargs=I;try{var g=X.getStreamFromFD();return FS.close(g),0}catch(A){return"undefined"!=typeof FS&&A instanceof FS.ErrnoError||sI(A),-A.errno}},o:function(A,I,g,e,t){var i=P(g);BA(A,{name:I=_(I),fromWireType:function(A){return!!A},toWireType:function(A,I){return I?e:t},argPackAdvance:8,readValueFromPointer:function(A){var e;if(1===g)e=D;else if(2===g)e=S;else{if(4!==g)throw new TypeError("Unknown boolean type size: "+I);e=U}return this.fromWireType(e[A>>i])},destructorFunction:null})},n:function(A,I,g,e,t,i,r,C,n,o,B,a,E){B=_(B),i=qA(t,i),C&&(C=qA(r,C)),o&&(o=qA(n,o)),E=qA(a,E);var Q=gA(B);FA(Q,(function(){VA("Cannot construct "+B+" due to unbound types",[e])})),oA([A,I,g],e?[e]:[],(function(I){var g,t;I=I[0],t=e?(g=I.registeredClass).instancePrototype:lA.prototype;var r=eA(Q,(function(){if(Object.getPrototypeOf(this)!==n)throw new iA("Use 'new' to construct "+B);if(void 0===a.constructor_body)throw new iA(B+" has no accessible constructor");var A=a.constructor_body[arguments.length];if(void 0===A)throw new iA("Tried to invoke ctor of "+B+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(a.constructor_body).toString()+") parameters instead!");return A.apply(this,arguments)})),n=Object.create(t,{constructor:{value:r}});r.prototype=n;var a=new DA(B,r,n,E,g,i,C,o),s=new JA(B,a,!0,!1,!1),h=new JA(B+"*",a,!1,!1,!1),c=new JA(B+" const*",a,!1,!0,!1);return wA[A]={pointerType:h,constPointerType:c},KA(Q,r),[s,h,c]}))},e:function(A,I,g,e,t,i,r,C,n,o){I=_(I),t=qA(e,t),oA([],[A],(function(A){var e=(A=A[0]).name+"."+I,B={get:function(){VA("Cannot access "+e+" due to unbound types",[g,r])},enumerable:!0,configurable:!0};return B.set=n?function(){VA("Cannot access "+e+" due to unbound types",[g,r])}:function(A){rA(e+" is a read-only property")},Object.defineProperty(A.registeredClass.instancePrototype,I,B),oA([],n?[g,r]:[g],(function(g){var r=g[0],B={get:function(){var I=ZA(this,A,e+" getter");return r.fromWireType(t(i,I))},enumerable:!0};if(n){n=qA(C,n);var a=g[1];B.set=function(I){var g=ZA(this,A,e+" setter"),t=[];n(o,g,a.toWireType(t,I)),WA(t)}}return Object.defineProperty(A.registeredClass.instancePrototype,I,B),[]})),[]}))},m:function(A,I){BA(A,{name:I=_(I),fromWireType:function(A){var I=jA[A].value;return XA(A),I},toWireType:function(A,I){return _A(I)},argPackAdvance:8,readValueFromPointer:GA,destructorFunction:null})},g:function(A,I,g){var e=P(g);BA(A,{name:I=_(I),fromWireType:function(A){return A},toWireType:function(A,I){if("number"!=typeof I&&"boolean"!=typeof I)throw new TypeError('Cannot convert "'+$A(I)+'" to '+this.name);return I},argPackAdvance:8,readValueFromPointer:AI(I,e),destructorFunction:null})},k:function(A,I,g,e,t,i){var r=function(A,I){for(var g=[],e=0;e<A;e++)g.push(U[(I>>2)+e]);return g}(I,g);A=_(A),t=qA(e,t),FA(A,(function(){VA("Cannot call "+A+" due to unbound types",r)}),I-1),oA([],r,(function(g){var e=[g[0],null].concat(g.slice(1));return KA(A,II(A,e,null,t,i),I-1),[]}))},d:function(A,I,g,e,t){I=_(I),-1===t&&(t=4294967295);var i=P(g),r=function(A){return A};if(0===e){var C=32-8*g;r=function(A){return A<<C>>>C}}var n=-1!=I.indexOf("unsigned");BA(A,{name:I,fromWireType:r,toWireType:function(A,g){if("number"!=typeof g&&"boolean"!=typeof g)throw new TypeError('Cannot convert "'+$A(g)+'" to '+this.name);if(g<e||g>t)throw new TypeError('Passing a number "'+$A(g)+'" from JS side to C/C++ side to an argument of type "'+I+'", which is outside the valid range ['+e+", "+t+"]!");return n?g>>>0:0|g},argPackAdvance:8,readValueFromPointer:gI(I,i,0!==e),destructorFunction:null})},b:function(A,I,g){var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][I];function t(A){var I=G,g=I[A>>=2],t=I[A+1];return new e(I.buffer,t,g)}BA(A,{name:g=_(g),fromWireType:t,argPackAdvance:8,readValueFromPointer:t},{ignoreDuplicateRegistrations:!0})},j:function(A,I){var g="std::string"===(I=_(I));BA(A,{name:I,fromWireType:function(A){var I,e=G[A>>2];if(g){var t=p[A+4+e],i=0;0!=t&&(i=t,p[A+4+e]=0);for(var r=A+4,C=0;C<=e;++C){var n=A+4+C;if(0==p[n]){var o=w(r);void 0===I?I=o:(I+=String.fromCharCode(0),I+=o),r=n+1}}0!=i&&(p[A+4+e]=i)}else{var B=new Array(e);for(C=0;C<e;++C)B[C]=String.fromCharCode(p[A+4+C]);I=B.join("")}return oI(A),I},toWireType:function(A,I){I instanceof ArrayBuffer&&(I=new Uint8Array(I));var e="string"==typeof I;e||I instanceof Uint8Array||I instanceof Uint8ClampedArray||I instanceof Int8Array||rA("Cannot pass non-string to std::string");var t=(g&&e?function(){return function(A){for(var I=0,g=0;g<A.length;++g){var e=A.charCodeAt(g);e>=55296&&e<=57343&&(e=65536+((1023&e)<<10)|1023&A.charCodeAt(++g)),e<=127?++I:I+=e<=2047?2:e<=65535?3:4}return I}(I)}:function(){return I.length})(),i=BI(4+t+1);if(G[i>>2]=t,g&&e)(function(A,I,g,e){if(!(e>0))return 0;for(var t=g,i=g+e-1,r=0;r<A.length;++r){var C=A.charCodeAt(r);if(C>=55296&&C<=57343&&(C=65536+((1023&C)<<10)|1023&A.charCodeAt(++r)),C<=127){if(g>=i)break;I[g++]=C}else if(C<=2047){if(g+1>=i)break;I[g++]=192|C>>6,I[g++]=128|63&C}else if(C<=65535){if(g+2>=i)break;I[g++]=224|C>>12,I[g++]=128|C>>6&63,I[g++]=128|63&C}else{if(g+3>=i)break;I[g++]=240|C>>18,I[g++]=128|C>>12&63,I[g++]=128|C>>6&63,I[g++]=128|63&C}}I[g]=0})(I,p,i+4,t+1);else if(e)for(var r=0;r<t;++r){var C=I.charCodeAt(r);C>255&&(oI(i),rA("String has UTF-16 code units that do not fit in 8 bits")),p[i+4+r]=C}else for(r=0;r<t;++r)p[i+4+r]=I[r];return null!==A&&A.push(oI,i),i},argPackAdvance:8,readValueFromPointer:GA,destructorFunction:function(A){oI(A)}})},z:function(A,I,g){var e,t;g=_(g),2===I?(e=function(){return d},t=1):4===I&&(e=function(){return G},t=2),BA(A,{name:g,fromWireType:function(A){for(var I=e(),g=G[A>>2],i=new Array(g),r=A+4>>t,C=0;C<g;++C)i[C]=String.fromCharCode(I[r+C]);return oI(A),i.join("")},toWireType:function(A,g){var i=e(),r=g.length,C=BI(4+r*I);G[C>>2]=r;for(var n=C+4>>t,o=0;o<r;++o)i[n+o]=g.charCodeAt(o);return null!==A&&A.push(oI,C),C},argPackAdvance:8,readValueFromPointer:GA,destructorFunction:function(A){oI(A)}})},y:function(A,I){BA(A,{isVoid:!0,name:I=_(I),argPackAdvance:0,fromWireType:function(){},toWireType:function(A,I){}})},x:XA,w:function(A){A>4&&(jA[A].refcount+=1)},v:function(A,I){var g,e,t;return e="_emval_take_value",void 0===(t=AA[g=A])&&rA(e+" has unknown type "+xA(g)),_A((A=t).readValueFromPointer(I))},f:function(){A.abort()},t:eI,s:function(A,I,g){p.set(p.subarray(I,I+g),A)},r:function(A){var I=eI();if(A>2147418112)return!1;for(var g=Math.max(I,16777216);g<A;)g=g<=536870912?Y(2*g,65536):Math.min(Y((3*g+2147483648)/4,65536),2147418112);var e=function(A){A=Y(A,65536);var I=F.byteLength;try{return-1!==h.grow((A-I)/65536)?F=h.buffer:null}catch(A){return null}}(g);return!(!e||e.byteLength!=g)&&(M(),!0)},i:function(I){!function(I,g){if(g&&A.noExitRuntime&&0===I)return;A.noExitRuntime||(u=!0,I,!0,A.onExit&&A.onExit(I));A.quit(I,new EI(I))}(I)},q:function(A){sI("OOM")},a:12224},CI=A.asm({},rI,F);A.asm=CI;var nI=A.___getTypeName=function(){return A.asm.A.apply(null,arguments)},oI=A._free=function(){return A.asm.B.apply(null,arguments)},BI=A._malloc=function(){return A.asm.C.apply(null,arguments)},aI=A.globalCtors=function(){return A.asm.O.apply(null,arguments)};A.dynCall_ii=function(){return A.asm.D.apply(null,arguments)},A.dynCall_iii=function(){return A.asm.E.apply(null,arguments)},A.dynCall_iiii=function(){return A.asm.F.apply(null,arguments)},A.dynCall_iiiii=function(){return A.asm.G.apply(null,arguments)},A.dynCall_v=function(){return A.asm.H.apply(null,arguments)},A.dynCall_vi=function(){return A.asm.I.apply(null,arguments)},A.dynCall_vii=function(){return A.asm.J.apply(null,arguments)},A.dynCall_viii=function(){return A.asm.K.apply(null,arguments)},A.dynCall_viiii=function(){return A.asm.L.apply(null,arguments)},A.dynCall_viiiii=function(){return A.asm.M.apply(null,arguments)},A.dynCall_viiiiii=function(){return A.asm.N.apply(null,arguments)};function EI(A){this.name="ExitStatus",this.message="Program terminated with exit("+A+")",this.status=A}function QI(I){function g(){A.calledRun||(A.calledRun=!0,u||(J||(J=!0,R(v)),R(H),A.onRuntimeInitialized&&A.onRuntimeInitialized(),function(){if(A.postRun)for("function"==typeof A.postRun&&(A.postRun=[A.postRun]);A.postRun.length;)I=A.postRun.shift(),L.unshift(I);var I;R(L)}()))}I=I||A.arguments,K>0||(!function(){if(A.preRun)for("function"==typeof A.preRun&&(A.preRun=[A.preRun]);A.preRun.length;)I=A.preRun.shift(),b.unshift(I);var I;R(b)}(),K>0||A.calledRun||(A.setStatus?(A.setStatus("Running..."),setTimeout((function(){setTimeout((function(){A.setStatus("")}),1),g()}),1)):g()))}function sI(I){throw A.onAbort&&A.onAbort(I),void 0!==I?(Q(I),s(I),I=JSON.stringify(I)):I="",u=!0,1,"abort("+I+"). Build with -s ASSERTIONS=1 for more info."}if(A.asm=CI,A.then=function(I){if(A.calledRun)I(A);else{var g=A.onRuntimeInitialized;A.onRuntimeInitialized=function(){g&&g(),I(A)}}return A},EI.prototype=new Error,EI.prototype.constructor=EI,T=function I(){A.calledRun||QI(),A.calledRun||(T=I)},A.run=QI,A.abort=sI,A.preInit)for("function"==typeof A.preInit&&(A.preInit=[A.preInit]);A.preInit.length>0;)A.preInit.pop()();return A.noExitRuntime=!0,QI(),A}}();A.exports=i}).call(this,g(27),"/",g(12).Buffer)},44:function(A,I){function g(I){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?A.exports=g=function(A){return typeof A}:A.exports=g=function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},g(I)}A.exports=g},45:function(A,I,g){var e=function(A){"use strict";var I=Object.prototype,g=I.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",i=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function C(A,I,g,e){var t=I&&I.prototype instanceof B?I:B,i=Object.create(t.prototype),r=new F(e||[]);return i._invoke=function(A,I,g){var e="suspendedStart";return function(t,i){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===t)throw i;return p()}for(g.method=t,g.arg=i;;){var r=g.delegate;if(r){var C=y(r,g);if(C){if(C===o)continue;return C}}if("next"===g.method)g.sent=g._sent=g.arg;else if("throw"===g.method){if("suspendedStart"===e)throw e="completed",g.arg;g.dispatchException(g.arg)}else"return"===g.method&&g.abrupt("return",g.arg);e="executing";var B=n(A,I,g);if("normal"===B.type){if(e=g.done?"completed":"suspendedYield",B.arg===o)continue;return{value:B.arg,done:g.done}}"throw"===B.type&&(e="completed",g.method="throw",g.arg=B.arg)}}}(A,g,r),i}function n(A,I,g){try{return{type:"normal",arg:A.call(I,g)}}catch(A){return{type:"throw",arg:A}}}A.wrap=C;var o={};function B(){}function a(){}function E(){}var Q={};Q[t]=function(){return this};var s=Object.getPrototypeOf,h=s&&s(s(D([])));h&&h!==I&&g.call(h,t)&&(Q=h);var c=E.prototype=B.prototype=Object.create(Q);function u(A){["next","throw","return"].forEach((function(I){A[I]=function(A){return this._invoke(I,A)}}))}function f(A,I){var e;this._invoke=function(t,i){function r(){return new I((function(e,r){!function e(t,i,r,C){var o=n(A[t],A,i);if("throw"!==o.type){var B=o.arg,a=B.value;return a&&"object"==typeof a&&g.call(a,"__await")?I.resolve(a.__await).then((function(A){e("next",A,r,C)}),(function(A){e("throw",A,r,C)})):I.resolve(a).then((function(A){B.value=A,r(B)}),(function(A){return e("throw",A,r,C)}))}C(o.arg)}(t,i,e,r)}))}return e=e?e.then(r,r):r()}}function y(A,I){var g=A.iterator[I.method];if(void 0===g){if(I.delegate=null,"throw"===I.method){if(A.iterator.return&&(I.method="return",I.arg=void 0,y(A,I),"throw"===I.method))return o;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var e=n(g,A.iterator,I.arg);if("throw"===e.type)return I.method="throw",I.arg=e.arg,I.delegate=null,o;var t=e.arg;return t?t.done?(I[A.resultName]=t.value,I.next=A.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,o):t:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,o)}function l(A){var I={tryLoc:A[0]};1 in A&&(I.catchLoc=A[1]),2 in A&&(I.finallyLoc=A[2],I.afterLoc=A[3]),this.tryEntries.push(I)}function w(A){var I=A.completion||{};I.type="normal",delete I.arg,A.completion=I}function F(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(l,this),this.reset(!0)}function D(A){if(A){var I=A[t];if(I)return I.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var e=-1,i=function I(){for(;++e<A.length;)if(g.call(A,e))return I.value=A[e],I.done=!1,I;return I.value=void 0,I.done=!0,I};return i.next=i}}return{next:p}}function p(){return{value:void 0,done:!0}}return a.prototype=c.constructor=E,E.constructor=a,E[r]=a.displayName="GeneratorFunction",A.isGeneratorFunction=function(A){var I="function"==typeof A&&A.constructor;return!!I&&(I===a||"GeneratorFunction"===(I.displayName||I.name))},A.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,E):(A.__proto__=E,r in A||(A[r]="GeneratorFunction")),A.prototype=Object.create(c),A},A.awrap=function(A){return{__await:A}},u(f.prototype),f.prototype[i]=function(){return this},A.AsyncIterator=f,A.async=function(I,g,e,t,i){void 0===i&&(i=Promise);var r=new f(C(I,g,e,t),i);return A.isGeneratorFunction(g)?r:r.next().then((function(A){return A.done?A.value:r.next()}))},u(c),c[r]="Generator",c[t]=function(){return this},c.toString=function(){return"[object Generator]"},A.keys=function(A){var I=[];for(var g in A)I.push(g);return I.reverse(),function g(){for(;I.length;){var e=I.pop();if(e in A)return g.value=e,g.done=!1,g}return g.done=!0,g}},A.values=D,F.prototype={constructor:F,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!A)for(var I in this)"t"===I.charAt(0)&&g.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=void 0)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if("throw"===A.type)throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var I=this;function e(g,e){return r.type="throw",r.arg=A,I.next=g,e&&(I.method="next",I.arg=void 0),!!e}for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t],r=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var C=g.call(i,"catchLoc"),n=g.call(i,"finallyLoc");if(C&&n){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(C){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!n)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(A,I){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc<=this.prev&&g.call(t,"finallyLoc")&&this.prev<t.finallyLoc){var i=t;break}}i&&("break"===A||"continue"===A)&&i.tryLoc<=I&&I<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=A,r.arg=I,i?(this.method="next",this.next=i.finallyLoc,o):this.complete(r)},complete:function(A,I){if("throw"===A.type)throw A.arg;return"break"===A.type||"continue"===A.type?this.next=A.arg:"return"===A.type?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):"normal"===A.type&&I&&(this.next=I),o},finish:function(A){for(var I=this.tryEntries.length-1;I>=0;--I){var g=this.tryEntries[I];if(g.finallyLoc===A)return this.complete(g.completion,g.afterLoc),w(g),o}},catch:function(A){for(var I=this.tryEntries.length-1;I>=0;--I){var g=this.tryEntries[I];if(g.tryLoc===A){var e=g.completion;if("throw"===e.type){var t=e.arg;w(g)}return t}}throw new Error("illegal catch attempt")},delegateYield:function(A,I,g){return this.delegate={iterator:D(A),resultName:I,nextLoc:g},"next"===this.method&&(this.arg=void 0),o}},A}(A.exports);try{regeneratorRuntime=e}catch(A){Function("r","regeneratorRuntime = r")(e)}},46:function(A,I){function g(I,e){return A.exports=g=Object.setPrototypeOf||function(A,I){return A.__proto__=I,A},g(I,e)}A.exports=g},463:function(A,I){},47:function(A,I,g){"use strict";I.byteLength=function(A){var I=o(A),g=I[0],e=I[1];return 3*(g+e)/4-e},I.toByteArray=function(A){var I,g,e=o(A),r=e[0],C=e[1],n=new i(function(A,I,g){return 3*(I+g)/4-g}(0,r,C)),B=0,a=C>0?r-4:r;for(g=0;g<a;g+=4)I=t[A.charCodeAt(g)]<<18|t[A.charCodeAt(g+1)]<<12|t[A.charCodeAt(g+2)]<<6|t[A.charCodeAt(g+3)],n[B++]=I>>16&255,n[B++]=I>>8&255,n[B++]=255&I;2===C&&(I=t[A.charCodeAt(g)]<<2|t[A.charCodeAt(g+1)]>>4,n[B++]=255&I);1===C&&(I=t[A.charCodeAt(g)]<<10|t[A.charCodeAt(g+1)]<<4|t[A.charCodeAt(g+2)]>>2,n[B++]=I>>8&255,n[B++]=255&I);return n},I.fromByteArray=function(A){for(var I,g=A.length,t=g%3,i=[],r=0,C=g-t;r<C;r+=16383)i.push(B(A,r,r+16383>C?C:r+16383));1===t?(I=A[g-1],i.push(e[I>>2]+e[I<<4&63]+"==")):2===t&&(I=(A[g-2]<<8)+A[g-1],i.push(e[I>>10]+e[I>>4&63]+e[I<<2&63]+"="));return i.join("")};for(var e=[],t=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,n=r.length;C<n;++C)e[C]=r[C],t[r.charCodeAt(C)]=C;function o(A){var I=A.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=A.indexOf("=");return-1===g&&(g=I),[g,g===I?0:4-g%4]}function B(A,I,g){for(var t,i,r=[],C=I;C<g;C+=3)t=(A[C]<<16&16711680)+(A[C+1]<<8&65280)+(255&A[C+2]),r.push(e[(i=t)>>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]);return r.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},48:function(A,I){I.read=function(A,I,g,e,t){var i,r,C=8*t-e-1,n=(1<<C)-1,o=n>>1,B=-7,a=g?t-1:0,E=g?-1:1,Q=A[I+a];for(a+=E,i=Q&(1<<-B)-1,Q>>=-B,B+=C;B>0;i=256*i+A[I+a],a+=E,B-=8);for(r=i&(1<<-B)-1,i>>=-B,B+=e;B>0;r=256*r+A[I+a],a+=E,B-=8);if(0===i)i=1-o;else{if(i===n)return r?NaN:1/0*(Q?-1:1);r+=Math.pow(2,e),i-=o}return(Q?-1:1)*r*Math.pow(2,i-e)},I.write=function(A,I,g,e,t,i){var r,C,n,o=8*i-t-1,B=(1<<o)-1,a=B>>1,E=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,Q=e?0:i-1,s=e?1:-1,h=I<0||0===I&&1/I<0?1:0;for(I=Math.abs(I),isNaN(I)||I===1/0?(C=isNaN(I)?1:0,r=B):(r=Math.floor(Math.log(I)/Math.LN2),I*(n=Math.pow(2,-r))<1&&(r--,n*=2),(I+=r+a>=1?E/n:E*Math.pow(2,1-a))*n>=2&&(r++,n/=2),r+a>=B?(C=0,r=B):r+a>=1?(C=(I*n-1)*Math.pow(2,t),r+=a):(C=I*Math.pow(2,a-1)*Math.pow(2,t),r=0));t>=8;A[g+Q]=255&C,Q+=s,C/=256,t-=8);for(r=r<<t|C,o+=t;o>0;A[g+Q]=255&r,Q+=s,r/=256,o-=8);A[g+Q-s]|=128*h}},49:function(A,I){A.exports=function(A){if(Array.isArray(A))return A}},5:function(A,I,g){var e=g(46);A.exports=function(A,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),I&&e(A,I)}},50:function(A,I){A.exports=function(A,I){if(Symbol.iterator in Object(A)||"[object Arguments]"===Object.prototype.toString.call(A)){var g=[],e=!0,t=!1,i=void 0;try{for(var r,C=A[Symbol.iterator]();!(e=(r=C.next()).done)&&(g.push(r.value),!I||g.length!==I);e=!0);}catch(A){t=!0,i=A}finally{try{e||null==C.return||C.return()}finally{if(t)throw i}}return g}}},51:function(A,I){A.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},6:function(A,I,g){"use strict";g.d(I,"a",(function(){return C}));var e=g(1),t=g.n(e),i=g(2),r=g.n(i),C=function(){function A(I){t()(this,A),this.bytes=I,this.length=this.bytes.length,this.position=0,this.bitPos=0}return r()(A,[{key:"getBytes",value:function(A){if(!(this.position>this.length)){var I=this.position+A,g=this.bytes.slice(this.position,I);return this.position=I,this.bitPos=0,g}}},{key:"readString",value:function(A){if(!(this.position>this.length)){for(var I="",g=this.position;g<this.position+A;g++){var e=this.bytes[g];if(0===e)break;I+=String.fromCharCode(e)}return this.position+=A,this.bitPos=0,I}}},{key:"readInt",value:function(A){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var g=0;if("be"===I)for(var e=this.position;e<this.position+A;e++)g<<=8,g|=this.bytes[e];else for(var t=this.position+A-1;t>=this.position;t--)g<<=8,g|=this.bytes[t];return this.position+=A,this.bitPos=0,g}}},{key:"readBits",value:function(A){if(!(this.position>this.length)){var I=0,g=0;for(I=(this.bytes[this.position++]&256-(1<<this.bitPos))>>>this.bitPos,g=8-this.bitPos,this.bitPos=0;g<A;)I|=this.bytes[this.position++]<<g,g+=8;if(g>A){var e=g-A;I&=(1<<A)-1,g-=e,this.position--,this.bitPos=8-e}return I}}},{key:"continueUntil",value:function(A){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof A){var I=A.length,g=A[I-1];this.position=I;for(var e=function(A,I){var g=new Array;return A.forEach((function(A,e){g[A]=I-e})),g}(A,I),t=!0;this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==g;);t=!0;for(var i=I-1;i>=0;i--)if(this.bytes[this.position-I+i]!==A[i]){t=!1,this.position+=e[A[i]];break}if(t){this.position-=I;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==A;);}},{key:"consumeWhile",value:function(A){for(;this.position<this.length&&this.bytes[this.position]===A;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(A){this.bytes[this.position]===A&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(A){var I=this.position+A;if(I<0||I>this.length)throw new Error("Cannot move to position "+I+" in stream. Out of bounds.");this.position=I,this.bitPos=0}},{key:"moveBackwardsBy",value:function(A){var I=this.position-A;if(I<0||I>this.length)throw new Error("Cannot move to position "+I+" in stream. Out of bounds.");this.position=I,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(A){if(A<=this.bitPos)this.bitPos-=A;else for(this.bitPos>0&&(A-=this.bitPos,this.bitPos=0);A>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(A),A-=8}},{key:"moveTo",value:function(A){if(A<0||A>this.length)throw new Error("Cannot move to position "+A+" in stream. Out of bounds.");this.position=A,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.bitPos>0&&I++,this.bytes.slice(A,I)}}]),A}()},7:function(A,I,g){"use strict";var e=g(1),t=g.n(e),i=g(4),r=g.n(i),C=g(3),n=g.n(C),o=g(23),B=g.n(o),a=g(5),E=g.n(a);
/**
 * Custom error type for handling operation input errors.
 * i.e. where the operation can handle the error and print a message to the screen.
 *
 * @author d98762625 [d98762625@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */
var Q=function(A){function I(){var A;t()(this,I);for(var g=arguments.length,e=new Array(g),i=0;i<g;i++)e[i]=arguments[i];return(A=r()(this,n()(I).call(this,...e))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(B()(A),I),A}return E()(I,A),I}(function(A){function I(){var I=Reflect.construct(A,Array.from(arguments));return Object.setPrototypeOf(I,Object.getPrototypeOf(this)),I}return I.prototype=Object.create(A.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(I,A):I.__proto__=A,I}(Error));I.a=Q},8:function(A,I,g){A.exports=g(45)},802:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";function A(A){throw A}var I=void 0,g=this;function e(A,e){var t,i=A.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(t=i.shift());)i.length||e===I?r=r[t]?r[t]:r[t]={}:r[t]=e}var t,i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;for(new(i?Uint8Array:Array)(256),t=0;256>t;++t)for(var r=(r=t)>>>1;r;r>>>=1)0;function C(A,I,g){var e,t="number"==typeof I?I:I=0,i="number"==typeof g?g:A.length;for(e=-1,t=7&i;t--;++I)e=e>>>8^o[255&(e^A[I])];for(t=i>>3;t--;I+=8)e=(e=(e=(e=(e=(e=(e=(e=e>>>8^o[255&(e^A[I])])>>>8^o[255&(e^A[I+1])])>>>8^o[255&(e^A[I+2])])>>>8^o[255&(e^A[I+3])])>>>8^o[255&(e^A[I+4])])>>>8^o[255&(e^A[I+5])])>>>8^o[255&(e^A[I+6])])>>>8^o[255&(e^A[I+7])];return(4294967295^e)>>>0}var n=[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],o=i?new Uint32Array(n):n;function B(){}function a(A){var I,g,e,t,r,C,n,o,B,a,E=A.length,Q=0,s=Number.POSITIVE_INFINITY;for(o=0;o<E;++o)A[o]>Q&&(Q=A[o]),A[o]<s&&(s=A[o]);for(I=1<<Q,g=new(i?Uint32Array:Array)(I),e=1,t=0,r=2;e<=Q;){for(o=0;o<E;++o)if(A[o]===e){for(C=0,n=t,B=0;B<e;++B)C=C<<1|1&n,n>>=1;for(a=e<<16|o,B=C;B<I;B+=r)g[B]=a;++t}++e,t<<=1,r<<=1}return[g,Q,s]}B.prototype.getName=function(){return this.name},B.prototype.getData=function(){return this.data},B.prototype.G=function(){return this.H};var E,Q=[];for(E=0;288>E;E++)switch(!0){case 143>=E:Q.push([E+48,8]);break;case 255>=E:Q.push([E-144+400,9]);break;case 279>=E:Q.push([E-256+0,7]);break;case 287>=E:Q.push([E-280+192,8]);break;default:A("invalid literal: "+E)}var s=function(){function I(I){switch(!0){case 3===I:return[257,I-3,0];case 4===I:return[258,I-4,0];case 5===I:return[259,I-5,0];case 6===I:return[260,I-6,0];case 7===I:return[261,I-7,0];case 8===I:return[262,I-8,0];case 9===I:return[263,I-9,0];case 10===I:return[264,I-10,0];case 12>=I:return[265,I-11,1];case 14>=I:return[266,I-13,1];case 16>=I:return[267,I-15,1];case 18>=I:return[268,I-17,1];case 22>=I:return[269,I-19,2];case 26>=I:return[270,I-23,2];case 30>=I:return[271,I-27,2];case 34>=I:return[272,I-31,2];case 42>=I:return[273,I-35,3];case 50>=I:return[274,I-43,3];case 58>=I:return[275,I-51,3];case 66>=I:return[276,I-59,3];case 82>=I:return[277,I-67,4];case 98>=I:return[278,I-83,4];case 114>=I:return[279,I-99,4];case 130>=I:return[280,I-115,4];case 162>=I:return[281,I-131,5];case 194>=I:return[282,I-163,5];case 226>=I:return[283,I-195,5];case 257>=I:return[284,I-227,5];case 258===I:return[285,I-258,0];default:A("invalid length: "+I)}}var g,e,t=[];for(g=3;258>=g;g++)e=I(g),t[g]=e[2]<<24|e[1]<<16|e[0];return t}();function h(I,g){switch(this.i=[],this.j=32768,this.d=this.f=this.c=this.n=0,this.input=i?new Uint8Array(I):I,this.o=!1,this.k=u,this.w=!1,!g&&(g={})||(g.index&&(this.c=g.index),g.bufferSize&&(this.j=g.bufferSize),g.bufferType&&(this.k=g.bufferType),g.resize&&(this.w=g.resize)),this.k){case c:this.a=32768,this.b=new(i?Uint8Array:Array)(32768+this.j+258);break;case u:this.a=0,this.b=new(i?Uint8Array:Array)(this.j),this.e=this.D,this.q=this.A,this.l=this.C;break;default:A(Error("invalid inflate mode"))}}i&&new Uint32Array(s);var c=0,u=1;h.prototype.g=function(){for(;!this.o;){var g=v(this,3);switch(1&g&&(this.o=!0),g>>>=1){case 0:var e=this.input,t=this.c,r=this.b,C=this.a,n=e.length,o=I,B=r.length,E=I;switch(this.d=this.f=0,t+1>=n&&A(Error("invalid uncompressed block header: LEN")),o=e[t++]|e[t++]<<8,t+1>=n&&A(Error("invalid uncompressed block header: NLEN")),o===~(e[t++]|e[t++]<<8)&&A(Error("invalid uncompressed block header: length verify")),t+o>e.length&&A(Error("input buffer is broken")),this.k){case c:for(;C+o>r.length;){if(o-=E=B-C,i)r.set(e.subarray(t,t+E),C),C+=E,t+=E;else for(;E--;)r[C++]=e[t++];this.a=C,r=this.e(),C=this.a}break;case u:for(;C+o>r.length;)r=this.e({t:2});break;default:A(Error("invalid inflate mode"))}if(i)r.set(e.subarray(t,t+o),C),C+=o,t+=o;else for(;o--;)r[C++]=e[t++];this.c=t,this.a=C,this.b=r;break;case 1:this.l(N,b);break;case 2:var Q,s,h,f,y=v(this,5)+257,l=v(this,5)+1,F=v(this,4)+4,D=new(i?Uint8Array:Array)(w.length),p=I,S=I,d=I,U=I,G=I;for(G=0;G<F;++G)D[w[G]]=v(this,3);if(!i)for(G=F,F=D.length;G<F;++G)D[w[G]]=0;for(Q=a(D),p=new(i?Uint8Array:Array)(y+l),G=0,f=y+l;G<f;)switch(S=H(this,Q),S){case 16:for(U=3+v(this,2);U--;)p[G++]=d;break;case 17:for(U=3+v(this,3);U--;)p[G++]=0;d=0;break;case 18:for(U=11+v(this,7);U--;)p[G++]=0;d=0;break;default:d=p[G++]=S}s=a(i?p.subarray(0,y):p.slice(0,y)),h=a(i?p.subarray(y):p.slice(y)),this.l(s,h);break;default:A(Error("unknown BTYPE: "+g))}}return this.q()};var f,y,l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],w=i?new Uint16Array(l):l,F=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],D=i?new Uint16Array(F):F,p=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],S=i?new Uint8Array(p):p,d=[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],U=i?new Uint16Array(d):d,G=[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],m=i?new Uint8Array(G):G,k=new(i?Uint8Array:Array)(288);for(f=0,y=k.length;f<y;++f)k[f]=143>=f?8:255>=f?9:279>=f?7:8;var Y,M,N=a(k),R=new(i?Uint8Array:Array)(30);for(Y=0,M=R.length;Y<M;++Y)R[Y]=5;var b=a(R);function v(I,g){for(var e,t=I.f,i=I.d,r=I.input,C=I.c,n=r.length;i<g;)C>=n&&A(Error("input buffer is broken")),t|=r[C++]<<i,i+=8;return e=t&(1<<g)-1,I.f=t>>>g,I.d=i-g,I.c=C,e}function H(I,g){for(var e,t,i=I.f,r=I.d,C=I.input,n=I.c,o=C.length,B=g[0],a=g[1];r<a&&!(n>=o);)i|=C[n++]<<r,r+=8;return(t=(e=B[i&(1<<a)-1])>>>16)>r&&A(Error("invalid code length: "+t)),I.f=i>>t,I.d=r-t,I.c=n,65535&e}function L(A){this.input=A,this.c=0,this.m=[],this.s=!1}h.prototype.l=function(A,I){var g=this.b,e=this.a;this.r=A;for(var t,i,r,C,n=g.length-258;256!==(t=H(this,A));)if(256>t)e>=n&&(this.a=e,g=this.e(),e=this.a),g[e++]=t;else for(C=D[i=t-257],0<S[i]&&(C+=v(this,S[i])),t=H(this,I),r=U[t],0<m[t]&&(r+=v(this,m[t])),e>=n&&(this.a=e,g=this.e(),e=this.a);C--;)g[e]=g[e++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},h.prototype.C=function(A,I){var g=this.b,e=this.a;this.r=A;for(var t,i,r,C,n=g.length;256!==(t=H(this,A));)if(256>t)e>=n&&(n=(g=this.e()).length),g[e++]=t;else for(C=D[i=t-257],0<S[i]&&(C+=v(this,S[i])),t=H(this,I),r=U[t],0<m[t]&&(r+=v(this,m[t])),e+C>n&&(n=(g=this.e()).length);C--;)g[e]=g[e++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},h.prototype.e=function(){var A,I,g=new(i?Uint8Array:Array)(this.a-32768),e=this.a-32768,t=this.b;if(i)g.set(t.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=t[A+32768];if(this.i.push(g),this.n+=g.length,i)t.set(t.subarray(e,e+32768));else for(A=0;32768>A;++A)t[A]=t[e+A];return this.a=32768,t},h.prototype.D=function(A){var I,g,e,t=this.input.length/this.c+1|0,r=this.input,C=this.b;return A&&("number"==typeof A.t&&(t=A.t),"number"==typeof A.z&&(t+=A.z)),2>t?g=(e=(r.length-this.c)/this.r[2]/2*258|0)<C.length?C.length+e:C.length<<1:g=C.length*t,i?(I=new Uint8Array(g)).set(C):I=C,this.b=I},h.prototype.q=function(){var A,I,g,e,t,r=0,C=this.b,n=this.i,o=new(i?Uint8Array:Array)(this.n+(this.a-32768));if(0===n.length)return i?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=n.length;I<g;++I)for(e=0,t=(A=n[I]).length;e<t;++e)o[r++]=A[e];for(I=32768,g=this.a;I<g;++I)o[r++]=C[I];return this.i=[],this.buffer=o},h.prototype.A=function(){var A,I=this.a;return i?this.w?(A=new Uint8Array(I)).set(this.b.subarray(0,I)):A=this.b.subarray(0,I):(this.b.length>I&&(this.b.length=I),A=this.b),this.buffer=A},L.prototype.F=function(){return this.s||this.g(),this.m.slice()},L.prototype.g=function(){for(var g=this.input.length;this.c<g;){var e,t,r=new B,n=I,o=I,a=I,E=I,Q=I,s=I,c=I,u=this.input,f=this.c;switch(r.u=u[f++],r.v=u[f++],(31!==r.u||139!==r.v)&&A(Error("invalid file signature:"+r.u+","+r.v)),r.p=u[f++],r.p){case 8:break;default:A(Error("unknown compression method: "+r.p))}if(r.h=u[f++],t=u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24,r.H=new Date(1e3*t),r.N=u[f++],r.M=u[f++],0<(4&r.h)&&(r.I=u[f++]|u[f++]<<8,f+=r.I),0<(8&r.h)){for(s=[],Q=0;0<(E=u[f++]);)s[Q++]=String.fromCharCode(E);r.name=s.join("")}if(0<(16&r.h)){for(s=[],Q=0;0<(E=u[f++]);)s[Q++]=String.fromCharCode(E);r.J=s.join("")}0<(2&r.h)&&(r.B=65535&C(u,0,f),r.B!==(u[f++]|u[f++]<<8)&&A(Error("invalid header crc16"))),n=u[u.length-4]|u[u.length-3]<<8|u[u.length-2]<<16|u[u.length-1]<<24,u.length-f-4-4<512*n&&(a=n),o=new h(u,{index:f,bufferSize:a}),r.data=e=o.g(),f=o.c,r.K=c=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,C(e,I,I)!==c&&A(Error("invalid CRC-32 checksum: 0x"+C(e,I,I).toString(16)+" / 0x"+c.toString(16))),r.L=n=(u[f++]|u[f++]<<8|u[f++]<<16|u[f++]<<24)>>>0,(4294967295&e.length)!==n&&A(Error("invalid input size: "+(4294967295&e.length)+" / "+n)),this.m.push(r),this.c=f}this.s=!0;var y,l,w,F=this.m,D=0,p=0;for(y=0,l=F.length;y<l;++y)p+=F[y].data.length;if(i)for(w=new Uint8Array(p),y=0;y<l;++y)w.set(F[y].data,D),D+=F[y].data.length;else{for(w=[],y=0;y<l;++y)w[y]=F[y].data;w=Array.prototype.concat.apply([],w)}return w},e("Zlib.Gunzip",L),e("Zlib.Gunzip.prototype.decompress",L.prototype.g),e("Zlib.Gunzip.prototype.getMembers",L.prototype.F),e("Zlib.GunzipMember",B),e("Zlib.GunzipMember.prototype.getName",B.prototype.getName),e("Zlib.GunzipMember.prototype.getData",B.prototype.getData),e("Zlib.GunzipMember.prototype.getMtime",B.prototype.G)}).call(this)},803:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=!0,g=this;function e(I,e){var t,i=I.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(t=i.shift());)i.length||e===A?r=r[t]?r[t]:r[t]={}:r[t]=e}var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,I){if(this.index="number"==typeof I?I:0,this.f=0,this.buffer=A instanceof(t?Uint8Array:Array)?A:new(t?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&r(this)}function r(A){var I,g=A.buffer,e=g.length,i=new(t?Uint8Array:Array)(e<<1);if(t)i.set(g);else for(I=0;I<e;++I)i[I]=g[I];return A.buffer=i}i.prototype.b=function(A,I,g){var e,t=this.buffer,i=this.index,C=this.f,n=t[i];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+C)n=n<<I|A,C+=I;else for(e=0;e<I;++e)n=n<<1|A>>I-e-1&1,8==++C&&(C=0,t[i++]=E[n],n=0,i===t.length&&(t=r(this)));t[i]=n,this.buffer=t,this.f=C,this.index=i},i.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.f&&(I[g]<<=8-this.f,I[g]=E[I[g]],g++),t?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(t?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(A,I,g){var e,t="number"==typeof I?I:I=0,i="number"==typeof g?g:A.length;for(e=-1,t=7&i;t--;++I)e=e>>>8^h[255&(e^A[I])];for(t=i>>3;t--;I+=8)e=(e=(e=(e=(e=(e=(e=(e=e>>>8^h[255&(e^A[I])])>>>8^h[255&(e^A[I+1])])>>>8^h[255&(e^A[I+2])])>>>8^h[255&(e^A[I+3])])>>>8^h[255&(e^A[I+4])])>>>8^h[255&(e^A[I+5])])>>>8^h[255&(e^A[I+6])])>>>8^h[255&(e^A[I+7])];return(4294967295^e)>>>0}var s=[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],h=t?new Uint32Array(s):s;function c(A){this.buffer=new(t?Uint16Array:Array)(2*A),this.length=0}function u(A,I){this.h=y,this.j=0,this.input=t&&A instanceof Array?new Uint8Array(A):A,this.c=0,I&&(I.lazy&&(this.j=I.lazy),"number"==typeof I.compressionType&&(this.h=I.compressionType),I.outputBuffer&&(this.a=t&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.c=I.outputIndex)),this.a||(this.a=new(t?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,I){var g,e,t,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(e=this.getParent(g),i[g]>i[e]);)t=i[g],i[g]=i[e],i[e]=t,t=i[g+1],i[g+1]=i[e+1],i[e+1]=t,g=e;return this.length},c.prototype.pop=function(){var A,I,g,e,t,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],t=0;!((e=2*t+2)>=this.length)&&(e+2<this.length&&i[e+2]>i[e]&&(e+=2),i[e]>i[t]);)g=i[t],i[t]=i[e],i[e]=g,g=i[t+1],i[t+1]=i[e+1],i[e+1]=g,t=e;return{index:A,value:I,length:this.length}};var f,y=2,l=[];for(f=0;288>f;f++)switch(!0){case 143>=f:l.push([f+48,8]);break;case 255>=f:l.push([f-144+400,9]);break;case 279>=f:l.push([f-256+0,7]);break;case 287>=f:l.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function w(A,I){this.length=A,this.k=I}u.prototype.g=function(){var g,e,r,C,n=this.input;switch(this.h){case 0:for(r=0,C=n.length;r<C;){var o,B,a,E=e=t?n.subarray(r,r+65535):n.slice(r,r+65535),Q=(r+=e.length)===C,s=A,h=A,c=this.a,u=this.c;if(t){for(c=new Uint8Array(this.a.buffer);c.length<=u+E.length+5;)c=new Uint8Array(c.length<<1);c.set(this.a)}if(o=Q?1:0,c[u++]=0|o,a=65536+~(B=E.length)&65535,c[u++]=255&B,c[u++]=B>>>8&255,c[u++]=255&a,c[u++]=a>>>8&255,t)c.set(E,u),u+=E.length,c=c.subarray(0,u);else{for(s=0,h=E.length;s<h;++s)c[u++]=E[s];c.length=u}this.c=u,this.a=c}break;case 1:var f=new i(t?new Uint8Array(this.a.buffer):this.a,this.c);f.b(1,1,I),f.b(1,2,I);var w,F,D,S=p(this,n);for(w=0,F=S.length;w<F;w++)if(D=S[w],i.prototype.b.apply(f,l[D]),256<D)f.b(S[++w],S[++w],I),f.b(S[++w],5),f.b(S[++w],S[++w],I);else if(256===D)break;this.a=f.finish(),this.c=this.a.length;break;case y:var G,m,k,Y,M,N,R,b,v,H,L,J,K,q,T,x=new i(t?new Uint8Array(this.a.buffer):this.a,this.c),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=Array(19);for(G=y,x.b(1,1,I),x.b(G,2,I),m=p(this,n),R=U(N=d(this.n,15)),v=U(b=d(this.m,7)),k=286;257<k&&0===N[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var Z,O,j,X,P,z,_=k,$=Y,AA=new(t?Uint32Array:Array)(_+$),IA=new(t?Uint32Array:Array)(316),gA=new(t?Uint8Array:Array)(19);for(Z=O=0;Z<_;Z++)AA[O++]=N[Z];for(Z=0;Z<$;Z++)AA[O++]=b[Z];if(!t)for(Z=0,X=gA.length;Z<X;++Z)gA[Z]=0;for(Z=P=0,X=AA.length;Z<X;Z+=O){for(O=1;Z+O<X&&AA[Z+O]===AA[Z];++O);if(j=O,0===AA[Z])if(3>j)for(;0<j--;)IA[P++]=0,gA[0]++;else for(;0<j;)(z=138>j?j:138)>j-3&&z<j&&(z=j-3),10>=z?(IA[P++]=17,IA[P++]=z-3,gA[17]++):(IA[P++]=18,IA[P++]=z-11,gA[18]++),j-=z;else if(IA[P++]=AA[Z],gA[AA[Z]]++,3>--j)for(;0<j--;)IA[P++]=AA[Z],gA[AA[Z]]++;else for(;0<j;)(z=6>j?j:6)>j-3&&z<j&&(z=j-3),IA[P++]=16,IA[P++]=z-3,gA[16]++,j-=z}for(g=t?IA.subarray(0,P):IA.slice(0,P),H=d(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(M=19;4<M&&0===W[M-1];M--);for(L=U(H),x.b(k-257,5,I),x.b(Y-1,5,I),x.b(M-4,4,I),q=0;q<M;q++)x.b(W[q],3,I);for(q=0,T=g.length;q<T;q++)if(J=g[q],x.b(L[J],H[J],I),16<=J){switch(q++,J){case 16:K=2;break;case 17:K=3;break;case 18:K=7;break;default:throw"invalid code: "+J}x.b(g[q],K,I)}var eA,tA,iA,rA,CA,nA,oA,BA,aA=[R,N],EA=[v,b];for(CA=aA[0],nA=aA[1],oA=EA[0],BA=EA[1],eA=0,tA=m.length;eA<tA;++eA)if(iA=m[eA],x.b(CA[iA],nA[iA],I),256<iA)x.b(m[++eA],m[++eA],I),rA=m[++eA],x.b(oA[rA],BA[rA],I),x.b(m[++eA],m[++eA],I);else if(256===iA)break;this.a=x.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var F=function(){function A(A){switch(!0){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var I,g,e=[];for(I=3;258>=I;I++)g=A(I),e[I]=g[2]<<24|g[1]<<16|g[0];return e}(),D=t?new Uint32Array(F):F;function p(I,g){function e(A,I){var g,e,t,i,r=A.k,C=[],n=0;switch(g=D[A.length],C[n++]=65535&g,C[n++]=g>>16&255,C[n++]=g>>24,!0){case 1===r:e=[0,r-1,0];break;case 2===r:e=[1,r-2,0];break;case 3===r:e=[2,r-3,0];break;case 4===r:e=[3,r-4,0];break;case 6>=r:e=[4,r-5,1];break;case 8>=r:e=[5,r-7,1];break;case 12>=r:e=[6,r-9,2];break;case 16>=r:e=[7,r-13,2];break;case 24>=r:e=[8,r-17,3];break;case 32>=r:e=[9,r-25,3];break;case 48>=r:e=[10,r-33,4];break;case 64>=r:e=[11,r-49,4];break;case 96>=r:e=[12,r-65,5];break;case 128>=r:e=[13,r-97,5];break;case 192>=r:e=[14,r-129,6];break;case 256>=r:e=[15,r-193,6];break;case 384>=r:e=[16,r-257,7];break;case 512>=r:e=[17,r-385,7];break;case 768>=r:e=[18,r-513,8];break;case 1024>=r:e=[19,r-769,8];break;case 1536>=r:e=[20,r-1025,9];break;case 2048>=r:e=[21,r-1537,9];break;case 3072>=r:e=[22,r-2049,10];break;case 4096>=r:e=[23,r-3073,10];break;case 6144>=r:e=[24,r-4097,11];break;case 8192>=r:e=[25,r-6145,11];break;case 12288>=r:e=[26,r-8193,12];break;case 16384>=r:e=[27,r-12289,12];break;case 24576>=r:e=[28,r-16385,13];break;case 32768>=r:e=[29,r-24577,13];break;default:throw"invalid distance"}for(g=e,C[n++]=g[0],C[n++]=g[1],C[n++]=g[2],t=0,i=C.length;t<i;++t)h[c++]=C[t];f[C[0]]++,y[C[3]]++,u=A.length+I-1,E=null}var i,r,C,n,o,B,a,E,Q,s={},h=t?new Uint16Array(2*g.length):[],c=0,u=0,f=new(t?Uint32Array:Array)(286),y=new(t?Uint32Array:Array)(30),l=I.j;if(!t){for(C=0;285>=C;)f[C++]=0;for(C=0;29>=C;)y[C++]=0}for(f[256]=1,i=0,r=g.length;i<r;++i){for(C=o=0,n=3;C<n&&i+C!==r;++C)o=o<<8|g[i+C];if(s[o]===A&&(s[o]=[]),B=s[o],!(0<u--)){for(;0<B.length&&32768<i-B[0];)B.shift();if(i+3>=r){for(E&&e(E,-1),C=0,n=r-i;C<n;++C)Q=g[i+C],h[c++]=Q,++f[Q];break}0<B.length?(a=S(g,i,B),E?E.length<a.length?(Q=g[i-1],h[c++]=Q,++f[Q],e(a,0)):e(E,-1):a.length<l?E=a:e(a,0)):E?e(E,-1):(Q=g[i],h[c++]=Q,++f[Q])}B.push(i)}return h[c++]=256,f[256]++,I.n=f,I.m=y,t?h.subarray(0,c):h}function S(A,I,g){var e,t,i,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(e=g[n-r-1],i=3,3<o){for(C=o;3<C;C--)if(A[e+C-1]!==A[I+C-1])continue A;i=o}for(;258>i&&I+i<B&&A[e+i]===A[I+i];)++i;if(i>o&&(t=e,o=i),258===i)break}return new w(o,I-t)}function d(A,I){var g,e,i,r,C,n=A.length,o=new c(572),B=new(t?Uint8Array:Array)(n);if(!t)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),e=new(t?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),e[r]=g[r].value;for(i=function(A,I,g){function e(A){var g=s[A][h[A]];g===I?(e(A+1),e(A+1)):--E[g],++h[A]}var i,r,C,n,o,B=new(t?Uint16Array:Array)(g),a=new(t?Uint8Array:Array)(g),E=new(t?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(i=0;i<I;++i)E[i]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(i=0;i<g;++i)h[i]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=i=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[i]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[i],s[r][C]=i,++i);h[r]=0,1===a[r]&&e(r)}return E}(e,e.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=i[r];return B}function U(A){var I,g,e,i,r=new(t?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,e=r[I]=0,i=A[I];e<i;e++)r[I]=r[I]<<1|1&o,o>>>=1;return r}function G(A,I){this.input=A,this.c=this.i=0,this.d={},I&&(I.flags&&(this.d=I.flags),"string"==typeof I.filename&&(this.filename=I.filename),"string"==typeof I.comment&&(this.l=I.comment),I.deflateOptions&&(this.e=I.deflateOptions)),this.e||(this.e={})}G.prototype.g=function(){var I,g,e,i,r,C,n,o,B=new(t?Uint8Array:Array)(32768),a=0,E=this.input,s=this.i,h=this.filename,c=this.l;if(B[a++]=31,B[a++]=139,B[a++]=8,I=0,this.d.fname&&(I|=Y),this.d.fcomment&&(I|=M),this.d.fhcrc&&(I|=k),B[a++]=I,g=(Date.now?Date.now():+new Date)/1e3|0,B[a++]=255&g,B[a++]=g>>>8&255,B[a++]=g>>>16&255,B[a++]=g>>>24&255,B[a++]=0,B[a++]=m,this.d.fname!==A){for(n=0,o=h.length;n<o;++n)255<(C=h.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}if(this.d.comment){for(n=0,o=c.length;n<o;++n)255<(C=c.charCodeAt(n))&&(B[a++]=C>>>8&255),B[a++]=255&C;B[a++]=0}return this.d.fhcrc&&(e=65535&Q(B,0,a),B[a++]=255&e,B[a++]=e>>>8&255),this.e.outputBuffer=B,this.e.outputIndex=a,B=(r=new u(E,this.e)).g(),a=r.c,t&&(a+8>B.buffer.byteLength?(this.a=new Uint8Array(a+8),this.a.set(new Uint8Array(B.buffer)),B=this.a):B=new Uint8Array(B.buffer)),i=Q(E,A,A),B[a++]=255&i,B[a++]=i>>>8&255,B[a++]=i>>>16&255,B[a++]=i>>>24&255,o=E.length,B[a++]=255&o,B[a++]=o>>>8&255,B[a++]=o>>>16&255,B[a++]=o>>>24&255,this.i=s,t&&a<B.length&&(this.a=B=B.subarray(0,a)),B};var m=255,k=2,Y=8,M=16;e("Zlib.Gzip",G),e("Zlib.Gzip.prototype.compress",G.prototype.g)}).call(this)},804:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=!0,g=this;function e(I,e){var t,i=I.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(t=i.shift());)i.length||e===A?r=r[t]?r[t]:r[t]={}:r[t]=e}var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,I){if(this.index="number"==typeof I?I:0,this.d=0,this.buffer=A instanceof(t?Uint8Array:Array)?A:new(t?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&r(this)}function r(A){var I,g=A.buffer,e=g.length,i=new(t?Uint8Array:Array)(e<<1);if(t)i.set(g);else for(I=0;I<e;++I)i[I]=g[I];return A.buffer=i}i.prototype.a=function(A,I,g){var e,t=this.buffer,i=this.index,C=this.d,n=t[i];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+C)n=n<<I|A,C+=I;else for(e=0;e<I;++e)n=n<<1|A>>I-e-1&1,8==++C&&(C=0,t[i++]=E[n],n=0,i===t.length&&(t=r(this)));t[i]=n,this.buffer=t,this.d=C,this.index=i},i.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.d&&(I[g]<<=8-this.d,I[g]=E[I[g]],g++),t?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(t?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(A){this.buffer=new(t?Uint16Array:Array)(2*A),this.length=0}function s(A,I){this.e=c,this.f=0,this.input=t&&A instanceof Array?new Uint8Array(A):A,this.c=0,I&&(I.lazy&&(this.f=I.lazy),"number"==typeof I.compressionType&&(this.e=I.compressionType),I.outputBuffer&&(this.b=t&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.c=I.outputIndex)),this.b||(this.b=new(t?Uint8Array:Array)(32768))}Q.prototype.getParent=function(A){return 2*((A-2)/4|0)},Q.prototype.push=function(A,I){var g,e,t,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(e=this.getParent(g),i[g]>i[e]);)t=i[g],i[g]=i[e],i[e]=t,t=i[g+1],i[g+1]=i[e+1],i[e+1]=t,g=e;return this.length},Q.prototype.pop=function(){var A,I,g,e,t,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],t=0;!((e=2*t+2)>=this.length)&&(e+2<this.length&&i[e+2]>i[e]&&(e+=2),i[e]>i[t]);)g=i[t],i[t]=i[e],i[e]=g,g=i[t+1],i[t+1]=i[e+1],i[e+1]=g,t=e;return{index:A,value:I,length:this.length}};var h,c=2,u=[];for(h=0;288>h;h++)switch(!0){case 143>=h:u.push([h+48,8]);break;case 255>=h:u.push([h-144+400,9]);break;case 279>=h:u.push([h-256+0,7]);break;case 287>=h:u.push([h-280+192,8]);break;default:throw"invalid literal: "+h}function f(A,I){this.length=A,this.g=I}s.prototype.h=function(){var g,e,r,C,n=this.input;switch(this.e){case 0:for(r=0,C=n.length;r<C;){var o,B,a,E=e=t?n.subarray(r,r+65535):n.slice(r,r+65535),Q=(r+=e.length)===C,s=A,h=A,f=this.b,y=this.c;if(t){for(f=new Uint8Array(this.b.buffer);f.length<=y+E.length+5;)f=new Uint8Array(f.length<<1);f.set(this.b)}if(o=Q?1:0,f[y++]=0|o,a=65536+~(B=E.length)&65535,f[y++]=255&B,f[y++]=B>>>8&255,f[y++]=255&a,f[y++]=a>>>8&255,t)f.set(E,y),y+=E.length,f=f.subarray(0,y);else{for(s=0,h=E.length;s<h;++s)f[y++]=E[s];f.length=y}this.c=y,this.b=f}break;case 1:var l=new i(t?new Uint8Array(this.b.buffer):this.b,this.c);l.a(1,1,I),l.a(1,2,I);var F,S,d,U=w(this,n);for(F=0,S=U.length;F<S;F++)if(d=U[F],i.prototype.a.apply(l,u[d]),256<d)l.a(U[++F],U[++F],I),l.a(U[++F],5),l.a(U[++F],U[++F],I);else if(256===d)break;this.b=l.finish(),this.c=this.b.length;break;case c:var G,m,k,Y,M,N,R,b,v,H,L,J,K,q,T,x=new i(t?new Uint8Array(this.b.buffer):this.b,this.c),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=Array(19);for(G=c,x.a(1,1,I),x.a(G,2,I),m=w(this,n),R=p(N=D(this.j,15)),v=p(b=D(this.i,7)),k=286;257<k&&0===N[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var Z,O,j,X,P,z,_=k,$=Y,AA=new(t?Uint32Array:Array)(_+$),IA=new(t?Uint32Array:Array)(316),gA=new(t?Uint8Array:Array)(19);for(Z=O=0;Z<_;Z++)AA[O++]=N[Z];for(Z=0;Z<$;Z++)AA[O++]=b[Z];if(!t)for(Z=0,X=gA.length;Z<X;++Z)gA[Z]=0;for(Z=P=0,X=AA.length;Z<X;Z+=O){for(O=1;Z+O<X&&AA[Z+O]===AA[Z];++O);if(j=O,0===AA[Z])if(3>j)for(;0<j--;)IA[P++]=0,gA[0]++;else for(;0<j;)(z=138>j?j:138)>j-3&&z<j&&(z=j-3),10>=z?(IA[P++]=17,IA[P++]=z-3,gA[17]++):(IA[P++]=18,IA[P++]=z-11,gA[18]++),j-=z;else if(IA[P++]=AA[Z],gA[AA[Z]]++,3>--j)for(;0<j--;)IA[P++]=AA[Z],gA[AA[Z]]++;else for(;0<j;)(z=6>j?j:6)>j-3&&z<j&&(z=j-3),IA[P++]=16,IA[P++]=z-3,gA[16]++,j-=z}for(g=t?IA.subarray(0,P):IA.slice(0,P),H=D(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(M=19;4<M&&0===W[M-1];M--);for(L=p(H),x.a(k-257,5,I),x.a(Y-1,5,I),x.a(M-4,4,I),q=0;q<M;q++)x.a(W[q],3,I);for(q=0,T=g.length;q<T;q++)if(J=g[q],x.a(L[J],H[J],I),16<=J){switch(q++,J){case 16:K=2;break;case 17:K=3;break;case 18:K=7;break;default:throw"invalid code: "+J}x.a(g[q],K,I)}var eA,tA,iA,rA,CA,nA,oA,BA,aA=[R,N],EA=[v,b];for(CA=aA[0],nA=aA[1],oA=EA[0],BA=EA[1],eA=0,tA=m.length;eA<tA;++eA)if(iA=m[eA],x.a(CA[iA],nA[iA],I),256<iA)x.a(m[++eA],m[++eA],I),rA=m[++eA],x.a(oA[rA],BA[rA],I),x.a(m[++eA],m[++eA],I);else if(256===iA)break;this.b=x.finish(),this.c=this.b.length;break;default:throw"invalid compression type"}return this.b};var y=function(){function A(A){switch(!0){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var I,g,e=[];for(I=3;258>=I;I++)g=A(I),e[I]=g[2]<<24|g[1]<<16|g[0];return e}(),l=t?new Uint32Array(y):y;function w(I,g){function e(A,I){var g,e,t,i,r=A.g,C=[],n=0;switch(g=l[A.length],C[n++]=65535&g,C[n++]=g>>16&255,C[n++]=g>>24,!0){case 1===r:e=[0,r-1,0];break;case 2===r:e=[1,r-2,0];break;case 3===r:e=[2,r-3,0];break;case 4===r:e=[3,r-4,0];break;case 6>=r:e=[4,r-5,1];break;case 8>=r:e=[5,r-7,1];break;case 12>=r:e=[6,r-9,2];break;case 16>=r:e=[7,r-13,2];break;case 24>=r:e=[8,r-17,3];break;case 32>=r:e=[9,r-25,3];break;case 48>=r:e=[10,r-33,4];break;case 64>=r:e=[11,r-49,4];break;case 96>=r:e=[12,r-65,5];break;case 128>=r:e=[13,r-97,5];break;case 192>=r:e=[14,r-129,6];break;case 256>=r:e=[15,r-193,6];break;case 384>=r:e=[16,r-257,7];break;case 512>=r:e=[17,r-385,7];break;case 768>=r:e=[18,r-513,8];break;case 1024>=r:e=[19,r-769,8];break;case 1536>=r:e=[20,r-1025,9];break;case 2048>=r:e=[21,r-1537,9];break;case 3072>=r:e=[22,r-2049,10];break;case 4096>=r:e=[23,r-3073,10];break;case 6144>=r:e=[24,r-4097,11];break;case 8192>=r:e=[25,r-6145,11];break;case 12288>=r:e=[26,r-8193,12];break;case 16384>=r:e=[27,r-12289,12];break;case 24576>=r:e=[28,r-16385,13];break;case 32768>=r:e=[29,r-24577,13];break;default:throw"invalid distance"}for(g=e,C[n++]=g[0],C[n++]=g[1],C[n++]=g[2],t=0,i=C.length;t<i;++t)h[c++]=C[t];f[C[0]]++,y[C[3]]++,u=A.length+I-1,E=null}var i,r,C,n,o,B,a,E,Q,s={},h=t?new Uint16Array(2*g.length):[],c=0,u=0,f=new(t?Uint32Array:Array)(286),y=new(t?Uint32Array:Array)(30),w=I.f;if(!t){for(C=0;285>=C;)f[C++]=0;for(C=0;29>=C;)y[C++]=0}for(f[256]=1,i=0,r=g.length;i<r;++i){for(C=o=0,n=3;C<n&&i+C!==r;++C)o=o<<8|g[i+C];if(s[o]===A&&(s[o]=[]),B=s[o],!(0<u--)){for(;0<B.length&&32768<i-B[0];)B.shift();if(i+3>=r){for(E&&e(E,-1),C=0,n=r-i;C<n;++C)Q=g[i+C],h[c++]=Q,++f[Q];break}0<B.length?(a=F(g,i,B),E?E.length<a.length?(Q=g[i-1],h[c++]=Q,++f[Q],e(a,0)):e(E,-1):a.length<w?E=a:e(a,0)):E?e(E,-1):(Q=g[i],h[c++]=Q,++f[Q])}B.push(i)}return h[c++]=256,f[256]++,I.j=f,I.i=y,t?h.subarray(0,c):h}function F(A,I,g){var e,t,i,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(e=g[n-r-1],i=3,3<o){for(C=o;3<C;C--)if(A[e+C-1]!==A[I+C-1])continue A;i=o}for(;258>i&&I+i<B&&A[e+i]===A[I+i];)++i;if(i>o&&(t=e,o=i),258===i)break}return new f(o,I-t)}function D(A,I){var g,e,i,r,C,n=A.length,o=new Q(572),B=new(t?Uint8Array:Array)(n);if(!t)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),e=new(t?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),e[r]=g[r].value;for(i=function(A,I,g){function e(A){var g=s[A][h[A]];g===I?(e(A+1),e(A+1)):--E[g],++h[A]}var i,r,C,n,o,B=new(t?Uint16Array:Array)(g),a=new(t?Uint8Array:Array)(g),E=new(t?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(i=0;i<I;++i)E[i]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(i=0;i<g;++i)h[i]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=i=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[i]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[i],s[r][C]=i,++i);h[r]=0,1===a[r]&&e(r)}return E}(e,e.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=i[r];return B}function p(A){var I,g,e,i,r=new(t?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,e=r[I]=0,i=A[I];e<i;e++)r[I]=r[I]<<1|1&o,o>>>=1;return r}e("Zlib.RawDeflate",s),e("Zlib.RawDeflate.prototype.compress",s.prototype.h);var S,d,U,G,m={NONE:0,FIXED:1,DYNAMIC:c};if(Object.keys)S=Object.keys(m);else for(d in S=[],U=0,m)S[U++]=d;for(U=0,G=S.length;U<G;++U)e("Zlib.RawDeflate.CompressionType."+(d=S[U]),m[d])}).call(this)},805:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=this;function g(g,e){var t,i=g.split("."),r=I;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(t=i.shift());)i.length||e===A?r=r[t]?r[t]:r[t]={}:r[t]=e}var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function t(A){var I,g,t,i,r,C,n,o,B,a,E=A.length,Q=0,s=Number.POSITIVE_INFINITY;for(o=0;o<E;++o)A[o]>Q&&(Q=A[o]),A[o]<s&&(s=A[o]);for(I=1<<Q,g=new(e?Uint32Array:Array)(I),t=1,i=0,r=2;t<=Q;){for(o=0;o<E;++o)if(A[o]===t){for(C=0,n=i,B=0;B<t;++B)C=C<<1|1&n,n>>=1;for(a=t<<16|o,B=C;B<I;B+=r)g[B]=a;++i}++t,i<<=1,r<<=1}return[g,Q,s]}function i(A,I){switch(this.g=[],this.h=32768,this.c=this.f=this.d=this.k=0,this.input=e?new Uint8Array(A):A,this.l=!1,this.i=C,this.p=!1,!I&&(I={})||(I.index&&(this.d=I.index),I.bufferSize&&(this.h=I.bufferSize),I.bufferType&&(this.i=I.bufferType),I.resize&&(this.p=I.resize)),this.i){case r:this.a=32768,this.b=new(e?Uint8Array:Array)(32768+this.h+258);break;case C:this.a=0,this.b=new(e?Uint8Array:Array)(this.h),this.e=this.u,this.m=this.r,this.j=this.s;break;default:throw Error("invalid inflate mode")}}var r=0,C=1;i.prototype.t=function(){for(;!this.l;){var I=d(this,3);switch(1&I&&(this.l=!0),I>>>=1){case 0:var g=this.input,i=this.d,n=this.b,o=this.a,B=g.length,E=A,Q=n.length,s=A;if(this.c=this.f=0,i+1>=B)throw Error("invalid uncompressed block header: LEN");if(E=g[i++]|g[i++]<<8,i+1>=B)throw Error("invalid uncompressed block header: NLEN");if(E===~(g[i++]|g[i++]<<8))throw Error("invalid uncompressed block header: length verify");if(i+E>g.length)throw Error("input buffer is broken");switch(this.i){case r:for(;o+E>n.length;){if(E-=s=Q-o,e)n.set(g.subarray(i,i+s),o),o+=s,i+=s;else for(;s--;)n[o++]=g[i++];this.a=o,n=this.e(),o=this.a}break;case C:for(;o+E>n.length;)n=this.e({o:2});break;default:throw Error("invalid inflate mode")}if(e)n.set(g.subarray(i,i+E),o),o+=E,i+=E;else for(;E--;)n[o++]=g[i++];this.d=i,this.a=o,this.b=n;break;case 1:this.j(D,S);break;case 2:var h,c,u,f,y=d(this,5)+257,l=d(this,5)+1,w=d(this,4)+4,F=new(e?Uint8Array:Array)(a.length),p=A,G=A,m=A,k=A,Y=A;for(Y=0;Y<w;++Y)F[a[Y]]=d(this,3);if(!e)for(Y=w,w=F.length;Y<w;++Y)F[a[Y]]=0;for(h=t(F),p=new(e?Uint8Array:Array)(y+l),Y=0,f=y+l;Y<f;)switch(G=U(this,h),G){case 16:for(k=3+d(this,2);k--;)p[Y++]=m;break;case 17:for(k=3+d(this,3);k--;)p[Y++]=0;m=0;break;case 18:for(k=11+d(this,7);k--;)p[Y++]=0;m=0;break;default:m=p[Y++]=G}c=t(e?p.subarray(0,y):p.slice(0,y)),u=t(e?p.subarray(y):p.slice(y)),this.j(c,u);break;default:throw Error("unknown BTYPE: "+I)}}return this.m()};var n,o,B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a=e?new Uint16Array(B):B,E=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],Q=e?new Uint16Array(E):E,s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],h=e?new Uint8Array(s):s,c=[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],u=e?new Uint16Array(c):c,f=[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],y=e?new Uint8Array(f):f,l=new(e?Uint8Array:Array)(288);for(n=0,o=l.length;n<o;++n)l[n]=143>=n?8:255>=n?9:279>=n?7:8;var w,F,D=t(l),p=new(e?Uint8Array:Array)(30);for(w=0,F=p.length;w<F;++w)p[w]=5;var S=t(p);function d(A,I){for(var g,e=A.f,t=A.c,i=A.input,r=A.d,C=i.length;t<I;){if(r>=C)throw Error("input buffer is broken");e|=i[r++]<<t,t+=8}return g=e&(1<<I)-1,A.f=e>>>I,A.c=t-I,A.d=r,g}function U(A,I){for(var g,e,t=A.f,i=A.c,r=A.input,C=A.d,n=r.length,o=I[0],B=I[1];i<B&&!(C>=n);)t|=r[C++]<<i,i+=8;if((e=(g=o[t&(1<<B)-1])>>>16)>i)throw Error("invalid code length: "+e);return A.f=t>>e,A.c=i-e,A.d=C,65535&g}i.prototype.j=function(A,I){var g=this.b,e=this.a;this.n=A;for(var t,i,r,C,n=g.length-258;256!==(t=U(this,A));)if(256>t)e>=n&&(this.a=e,g=this.e(),e=this.a),g[e++]=t;else for(C=Q[i=t-257],0<h[i]&&(C+=d(this,h[i])),t=U(this,I),r=u[t],0<y[t]&&(r+=d(this,y[t])),e>=n&&(this.a=e,g=this.e(),e=this.a);C--;)g[e]=g[e++-r];for(;8<=this.c;)this.c-=8,this.d--;this.a=e},i.prototype.s=function(A,I){var g=this.b,e=this.a;this.n=A;for(var t,i,r,C,n=g.length;256!==(t=U(this,A));)if(256>t)e>=n&&(n=(g=this.e()).length),g[e++]=t;else for(C=Q[i=t-257],0<h[i]&&(C+=d(this,h[i])),t=U(this,I),r=u[t],0<y[t]&&(r+=d(this,y[t])),e+C>n&&(n=(g=this.e()).length);C--;)g[e]=g[e++-r];for(;8<=this.c;)this.c-=8,this.d--;this.a=e},i.prototype.e=function(){var A,I,g=new(e?Uint8Array:Array)(this.a-32768),t=this.a-32768,i=this.b;if(e)g.set(i.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=i[A+32768];if(this.g.push(g),this.k+=g.length,e)i.set(i.subarray(t,t+32768));else for(A=0;32768>A;++A)i[A]=i[t+A];return this.a=32768,i},i.prototype.u=function(A){var I,g,t,i=this.input.length/this.d+1|0,r=this.input,C=this.b;return A&&("number"==typeof A.o&&(i=A.o),"number"==typeof A.q&&(i+=A.q)),2>i?g=(t=(r.length-this.d)/this.n[2]/2*258|0)<C.length?C.length+t:C.length<<1:g=C.length*i,e?(I=new Uint8Array(g)).set(C):I=C,this.b=I},i.prototype.m=function(){var A,I,g,t,i,r=0,C=this.b,n=this.g,o=new(e?Uint8Array:Array)(this.k+(this.a-32768));if(0===n.length)return e?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=n.length;I<g;++I)for(t=0,i=(A=n[I]).length;t<i;++t)o[r++]=A[t];for(I=32768,g=this.a;I<g;++I)o[r++]=C[I];return this.g=[],this.buffer=o},i.prototype.r=function(){var A,I=this.a;return e?this.p?(A=new Uint8Array(I)).set(this.b.subarray(0,I)):A=this.b.subarray(0,I):(this.b.length>I&&(this.b.length=I),A=this.b),this.buffer=A},g("Zlib.RawInflate",i),g("Zlib.RawInflate.prototype.decompress",i.prototype.t);var G,m,k,Y,M={ADAPTIVE:C,BLOCK:r};if(Object.keys)G=Object.keys(M);else for(m in G=[],k=0,M)G[k++]=m;for(k=0,Y=G.length;k<Y;++k)g("Zlib.RawInflate.BufferType."+(m=G[k]),M[m])}).call(this)},806:function(module,exports){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";function l(A){throw A}var r=void 0,t,aa=this;function v(A,I){var g,e=A.split("."),t=aa;!(e[0]in t)&&t.execScript&&t.execScript("var "+e[0]);for(;e.length&&(g=e.shift());)e.length||I===r?t=t[g]?t[g]:t[g]={}:t[g]=I}var y="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView,z;for(new(y?Uint8Array:Array)(256),z=0;256>z;++z)for(var B=z,ba=7,B=B>>>1;B;B>>>=1)--ba;var ca=[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],C=y?new Uint32Array(ca):ca,a;if(aa.Uint8Array!==r)try{eval("String.fromCharCode.apply(null, new Uint8Array([0]));")}catch(A){String.fromCharCode.apply=(a=String.fromCharCode.apply,function(A,I){return a.call(String.fromCharCode,A,Array.prototype.slice.call(I))})}function D(A){var I,g,e,t,i,r,C,n,o,B,a=A.length,E=0,Q=Number.POSITIVE_INFINITY;for(n=0;n<a;++n)A[n]>E&&(E=A[n]),A[n]<Q&&(Q=A[n]);for(I=1<<E,g=new(y?Uint32Array:Array)(I),e=1,t=0,i=2;e<=E;){for(n=0;n<a;++n)if(A[n]===e){for(r=0,C=t,o=0;o<e;++o)r=r<<1|1&C,C>>=1;for(B=e<<16|n,o=r;o<I;o+=i)g[o]=B;++t}++e,t<<=1,i<<=1}return[g,E,Q]}var F=[],G;for(G=0;288>G;G++)switch(!0){case 143>=G:F.push([G+48,8]);break;case 255>=G:F.push([G-144+400,9]);break;case 279>=G:F.push([G-256+0,7]);break;case 287>=G:F.push([G-280+192,8]);break;default:l("invalid literal: "+G)}var fa=function(){function A(A){switch(!0){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:l("invalid length: "+A)}}var I,g,e=[];for(I=3;258>=I;I++)g=A(I),e[I]=g[2]<<24|g[1]<<16|g[0];return e}();function I(A,I){switch(this.l=[],this.m=32768,this.d=this.f=this.c=this.t=0,this.input=y?new Uint8Array(A):A,this.u=!1,this.n=J,this.K=!1,!I&&(I={})||(I.index&&(this.c=I.index),I.bufferSize&&(this.m=I.bufferSize),I.bufferType&&(this.n=I.bufferType),I.resize&&(this.K=I.resize)),this.n){case ga:this.a=32768,this.b=new(y?Uint8Array:Array)(32768+this.m+258);break;case J:this.a=0,this.b=new(y?Uint8Array:Array)(this.m),this.e=this.W,this.B=this.R,this.q=this.V;break;default:l(Error("invalid inflate mode"))}}y&&new Uint32Array(fa);var ga=0,J=1;I.prototype.r=function(){for(;!this.u;){var A=K(this,3);switch(1&A&&(this.u=!0),A>>>=1){case 0:var I=this.input,g=this.c,e=this.b,t=this.a,i=I.length,C=r,n=e.length,o=r;switch(this.d=this.f=0,g+1>=i&&l(Error("invalid uncompressed block header: LEN")),C=I[g++]|I[g++]<<8,g+1>=i&&l(Error("invalid uncompressed block header: NLEN")),C===~(I[g++]|I[g++]<<8)&&l(Error("invalid uncompressed block header: length verify")),g+C>I.length&&l(Error("input buffer is broken")),this.n){case ga:for(;t+C>e.length;){if(C-=o=n-t,y)e.set(I.subarray(g,g+o),t),t+=o,g+=o;else for(;o--;)e[t++]=I[g++];this.a=t,e=this.e(),t=this.a}break;case J:for(;t+C>e.length;)e=this.e({H:2});break;default:l(Error("invalid inflate mode"))}if(y)e.set(I.subarray(g,g+C),t),t+=C,g+=C;else for(;C--;)e[t++]=I[g++];this.c=g,this.a=t,this.b=e;break;case 1:this.q(ha,ia);break;case 2:var B,a,E,Q,s=K(this,5)+257,h=K(this,5)+1,c=K(this,4)+4,u=new(y?Uint8Array:Array)(L.length),f=r,w=r,F=r,p=r,S=r;for(S=0;S<c;++S)u[L[S]]=K(this,3);if(!y)for(S=c,c=u.length;S<c;++S)u[L[S]]=0;for(B=D(u),f=new(y?Uint8Array:Array)(s+h),S=0,Q=s+h;S<Q;)switch(w=M(this,B),w){case 16:for(p=3+K(this,2);p--;)f[S++]=F;break;case 17:for(p=3+K(this,3);p--;)f[S++]=0;F=0;break;case 18:for(p=11+K(this,7);p--;)f[S++]=0;F=0;break;default:F=f[S++]=w}a=D(y?f.subarray(0,s):f.slice(0,s)),E=D(y?f.subarray(s):f.slice(s)),this.q(a,E);break;default:l(Error("unknown BTYPE: "+A))}}return this.B()};var ja=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=y?new Uint16Array(ja):ja,ka=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],la=y?new Uint16Array(ka):ka,ma=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],N=y?new Uint8Array(ma):ma,na=[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],oa=y?new Uint16Array(na):na,pa=[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],P=y?new Uint8Array(pa):pa,Q=new(y?Uint8Array:Array)(288),R,qa;for(R=0,qa=Q.length;R<qa;++R)Q[R]=143>=R?8:255>=R?9:279>=R?7:8;var ha=D(Q),S=new(y?Uint8Array:Array)(30),T,ra;for(T=0,ra=S.length;T<ra;++T)S[T]=5;var ia=D(S);function K(A,I){for(var g,e=A.f,t=A.d,i=A.input,r=A.c,C=i.length;t<I;)r>=C&&l(Error("input buffer is broken")),e|=i[r++]<<t,t+=8;return g=e&(1<<I)-1,A.f=e>>>I,A.d=t-I,A.c=r,g}function M(A,I){for(var g,e,t=A.f,i=A.d,r=A.input,C=A.c,n=r.length,o=I[0],B=I[1];i<B&&!(C>=n);)t|=r[C++]<<i,i+=8;return(e=(g=o[t&(1<<B)-1])>>>16)>i&&l(Error("invalid code length: "+e)),A.f=t>>e,A.d=i-e,A.c=C,65535&g}function U(A){A=A||{},this.files=[],this.v=A.comment}function V(A,I){I=I||{},this.input=y&&A instanceof Array?new Uint8Array(A):A,this.c=0,this.ba=I.verify||!1,this.j=I.password}t=I.prototype,t.q=function(A,I){var g=this.b,e=this.a;this.C=A;for(var t,i,r,C,n=g.length-258;256!==(t=M(this,A));)if(256>t)e>=n&&(this.a=e,g=this.e(),e=this.a),g[e++]=t;else for(C=la[i=t-257],0<N[i]&&(C+=K(this,N[i])),t=M(this,I),r=oa[t],0<P[t]&&(r+=K(this,P[t])),e>=n&&(this.a=e,g=this.e(),e=this.a);C--;)g[e]=g[e++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},t.V=function(A,I){var g=this.b,e=this.a;this.C=A;for(var t,i,r,C,n=g.length;256!==(t=M(this,A));)if(256>t)e>=n&&(n=(g=this.e()).length),g[e++]=t;else for(C=la[i=t-257],0<N[i]&&(C+=K(this,N[i])),t=M(this,I),r=oa[t],0<P[t]&&(r+=K(this,P[t])),e+C>n&&(n=(g=this.e()).length);C--;)g[e]=g[e++-r];for(;8<=this.d;)this.d-=8,this.c--;this.a=e},t.e=function(){var A,I,g=new(y?Uint8Array:Array)(this.a-32768),e=this.a-32768,t=this.b;if(y)g.set(t.subarray(32768,g.length));else for(A=0,I=g.length;A<I;++A)g[A]=t[A+32768];if(this.l.push(g),this.t+=g.length,y)t.set(t.subarray(e,e+32768));else for(A=0;32768>A;++A)t[A]=t[e+A];return this.a=32768,t},t.W=function(A){var I,g,e,t=this.input.length/this.c+1|0,i=this.input,r=this.b;return A&&("number"==typeof A.H&&(t=A.H),"number"==typeof A.P&&(t+=A.P)),2>t?g=(e=(i.length-this.c)/this.C[2]/2*258|0)<r.length?r.length+e:r.length<<1:g=r.length*t,y?(I=new Uint8Array(g)).set(r):I=r,this.b=I},t.B=function(){var A,I,g,e,t,i=0,r=this.b,C=this.l,n=new(y?Uint8Array:Array)(this.t+(this.a-32768));if(0===C.length)return y?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(I=0,g=C.length;I<g;++I)for(e=0,t=(A=C[I]).length;e<t;++e)n[i++]=A[e];for(I=32768,g=this.a;I<g;++I)n[i++]=r[I];return this.l=[],this.buffer=n},t.R=function(){var A,I=this.a;return y?this.K?(A=new Uint8Array(I)).set(this.b.subarray(0,I)):A=this.b.subarray(0,I):(this.b.length>I&&(this.b.length=I),A=this.b),this.buffer=A},U.prototype.L=function(A){this.j=A},U.prototype.s=function(A){var I=65535&A[2]|2;return I*(1^I)>>8&255},U.prototype.k=function(A,I){A[0]=(C[255&(A[0]^I)]^A[0]>>>8)>>>0,A[1]=1+(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)>>>0,A[2]=(C[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0},U.prototype.T=function(A){var I,g,e=[305419896,591751049,878082192];for(y&&(e=new Uint32Array(e)),I=0,g=A.length;I<g;++I)this.k(e,255&A[I]);return e};var sa={O:0,M:8},W=[80,75,1,2],Y=[80,75,3,4],Z=[80,75,5,6];function ta(A,I){this.input=A,this.offset=I}function ua(A,I){this.input=A,this.offset=I}ta.prototype.parse=function(){var A=this.input,I=this.offset;(A[I++]!==W[0]||A[I++]!==W[1]||A[I++]!==W[2]||A[I++]!==W[3])&&l(Error("invalid file header signature")),this.version=A[I++],this.ia=A[I++],this.Z=A[I++]|A[I++]<<8,this.I=A[I++]|A[I++]<<8,this.A=A[I++]|A[I++]<<8,this.time=A[I++]|A[I++]<<8,this.U=A[I++]|A[I++]<<8,this.p=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.z=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.J=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.h=A[I++]|A[I++]<<8,this.g=A[I++]|A[I++]<<8,this.F=A[I++]|A[I++]<<8,this.ea=A[I++]|A[I++]<<8,this.ga=A[I++]|A[I++]<<8,this.fa=A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24,this.$=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.filename=String.fromCharCode.apply(null,y?A.subarray(I,I+=this.h):A.slice(I,I+=this.h)),this.X=y?A.subarray(I,I+=this.g):A.slice(I,I+=this.g),this.v=y?A.subarray(I,I+this.F):A.slice(I,I+this.F),this.length=I-this.offset};var va={N:1,ca:8,da:2048};function $(A){var I,g,e,t,i=[],C={};if(!A.i){if(A.o===r){var n,o=A.input;if(!A.D)A:{var B,a=A.input;for(B=a.length-12;0<B;--B)if(a[B]===Z[0]&&a[B+1]===Z[1]&&a[B+2]===Z[2]&&a[B+3]===Z[3]){A.D=B;break A}l(Error("End of Central Directory Record not found"))}n=A.D,(o[n++]!==Z[0]||o[n++]!==Z[1]||o[n++]!==Z[2]||o[n++]!==Z[3])&&l(Error("invalid signature")),A.ha=o[n++]|o[n++]<<8,A.ja=o[n++]|o[n++]<<8,A.ka=o[n++]|o[n++]<<8,A.aa=o[n++]|o[n++]<<8,A.Q=(o[n++]|o[n++]<<8|o[n++]<<16|o[n++]<<24)>>>0,A.o=(o[n++]|o[n++]<<8|o[n++]<<16|o[n++]<<24)>>>0,A.w=o[n++]|o[n++]<<8,A.v=y?o.subarray(n,n+A.w):o.slice(n,n+A.w)}for(I=A.o,e=0,t=A.aa;e<t;++e)(g=new ta(A.input,I)).parse(),I+=g.length,i[e]=g,C[g.filename]=e;A.Q<I-A.o&&l(Error("invalid file header size")),A.i=i,A.G=C}}function wa(A,I,g){return g^=A.s(I),A.k(I,g),g}ua.prototype.parse=function(){var A=this.input,I=this.offset;(A[I++]!==Y[0]||A[I++]!==Y[1]||A[I++]!==Y[2]||A[I++]!==Y[3])&&l(Error("invalid local file header signature")),this.Z=A[I++]|A[I++]<<8,this.I=A[I++]|A[I++]<<8,this.A=A[I++]|A[I++]<<8,this.time=A[I++]|A[I++]<<8,this.U=A[I++]|A[I++]<<8,this.p=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.z=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.J=(A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24)>>>0,this.h=A[I++]|A[I++]<<8,this.g=A[I++]|A[I++]<<8,this.filename=String.fromCharCode.apply(null,y?A.subarray(I,I+=this.h):A.slice(I,I+=this.h)),this.X=y?A.subarray(I,I+=this.g):A.slice(I,I+=this.g),this.length=I-this.offset},t=V.prototype,t.Y=function(){var A,I,g,e=[];for(this.i||$(this),A=0,I=(g=this.i).length;A<I;++A)e[A]=g[A].filename;return e},t.r=function(A,g){var e,t;this.G||$(this),(e=this.G[A])===r&&l(Error(A+" not found")),t=g||{};var i,n,o,B,a,E,Q,s,h=this.input,c=this.i;if(c||$(this),c[e]===r&&l(Error("wrong index")),n=c[e].$,(i=new ua(this.input,n)).parse(),n+=i.length,o=i.z,0!=(i.I&va.N)){for(!t.password&&!this.j&&l(Error("please set password")),E=this.S(t.password||this.j),Q=n,s=n+12;Q<s;++Q)wa(this,E,h[Q]);for(Q=n+=12,s=n+(o-=12);Q<s;++Q)h[Q]=wa(this,E,h[Q])}switch(i.A){case sa.O:B=y?this.input.subarray(n,n+o):this.input.slice(n,n+o);break;case sa.M:B=new I(this.input,{index:n,bufferSize:i.J}).r();break;default:l(Error("unknown compression type"))}if(this.ba){var u,f=r,w="number"==typeof f?f:f=0,F=B.length;for(u=-1,w=7&F;w--;++f)u=u>>>8^C[255&(u^B[f])];for(w=F>>3;w--;f+=8)u=(u=(u=(u=(u=(u=(u=(u=u>>>8^C[255&(u^B[f])])>>>8^C[255&(u^B[f+1])])>>>8^C[255&(u^B[f+2])])>>>8^C[255&(u^B[f+3])])>>>8^C[255&(u^B[f+4])])>>>8^C[255&(u^B[f+5])])>>>8^C[255&(u^B[f+6])])>>>8^C[255&(u^B[f+7])];a=(4294967295^u)>>>0,i.p!==a&&l(Error("wrong crc: file=0x"+i.p.toString(16)+", data=0x"+a.toString(16)))}return B},t.L=function(A){this.j=A},t.k=U.prototype.k,t.S=U.prototype.T,t.s=U.prototype.s,v("Zlib.Unzip",V),v("Zlib.Unzip.prototype.decompress",V.prototype.r),v("Zlib.Unzip.prototype.getFilenames",V.prototype.Y),v("Zlib.Unzip.prototype.setPassword",V.prototype.L)}).call(this)},807:function(A,I){
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){"use strict";var A=void 0,I=!0,g=this;function e(I,e){var t,i=I.split("."),r=g;!(i[0]in r)&&r.execScript&&r.execScript("var "+i[0]);for(;i.length&&(t=i.shift());)i.length||e===A?r=r[t]?r[t]:r[t]={}:r[t]=e}var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function i(A,I){if(this.index="number"==typeof I?I:0,this.f=0,this.buffer=A instanceof(t?Uint8Array:Array)?A:new(t?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&r(this)}function r(A){var I,g=A.buffer,e=g.length,i=new(t?Uint8Array:Array)(e<<1);if(t)i.set(g);else for(I=0;I<e;++I)i[I]=g[I];return A.buffer=i}i.prototype.b=function(A,I,g){var e,t=this.buffer,i=this.index,C=this.f,n=t[i];if(g&&1<I&&(A=8<I?(E[255&A]<<24|E[A>>>8&255]<<16|E[A>>>16&255]<<8|E[A>>>24&255])>>32-I:E[A]>>8-I),8>I+C)n=n<<I|A,C+=I;else for(e=0;e<I;++e)n=n<<1|A>>I-e-1&1,8==++C&&(C=0,t[i++]=E[n],n=0,i===t.length&&(t=r(this)));t[i]=n,this.buffer=t,this.f=C,this.index=i},i.prototype.finish=function(){var A,I=this.buffer,g=this.index;return 0<this.f&&(I[g]<<=8-this.f,I[g]=E[I[g]],g++),t?A=I.subarray(0,g):(I.length=g,A=I),A};var C,n=new(t?Uint8Array:Array)(256);for(C=0;256>C;++C){for(var o=a=C,B=7,a=a>>>1;a;a>>>=1)o<<=1,o|=1&a,--B;n[C]=(o<<B&255)>>>0}var E=n;function Q(I){var g,e=A,t="number"==typeof e?e:e=0,i=I.length;for(g=-1,t=7&i;t--;++e)g=g>>>8^h[255&(g^I[e])];for(t=i>>3;t--;e+=8)g=(g=(g=(g=(g=(g=(g=(g=g>>>8^h[255&(g^I[e])])>>>8^h[255&(g^I[e+1])])>>>8^h[255&(g^I[e+2])])>>>8^h[255&(g^I[e+3])])>>>8^h[255&(g^I[e+4])])>>>8^h[255&(g^I[e+5])])>>>8^h[255&(g^I[e+6])])>>>8^h[255&(g^I[e+7])];return(4294967295^g)>>>0}var s=[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],h=t?new Uint32Array(s):s;function c(A){this.buffer=new(t?Uint16Array:Array)(2*A),this.length=0}function u(A,I){this.k=y,this.l=0,this.input=t&&A instanceof Array?new Uint8Array(A):A,this.e=0,I&&(I.lazy&&(this.l=I.lazy),"number"==typeof I.compressionType&&(this.k=I.compressionType),I.outputBuffer&&(this.c=t&&I.outputBuffer instanceof Array?new Uint8Array(I.outputBuffer):I.outputBuffer),"number"==typeof I.outputIndex&&(this.e=I.outputIndex)),this.c||(this.c=new(t?Uint8Array:Array)(32768))}c.prototype.getParent=function(A){return 2*((A-2)/4|0)},c.prototype.push=function(A,I){var g,e,t,i=this.buffer;for(g=this.length,i[this.length++]=I,i[this.length++]=A;0<g&&(e=this.getParent(g),i[g]>i[e]);)t=i[g],i[g]=i[e],i[e]=t,t=i[g+1],i[g+1]=i[e+1],i[e+1]=t,g=e;return this.length},c.prototype.pop=function(){var A,I,g,e,t,i=this.buffer;for(I=i[0],A=i[1],this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],t=0;!((e=2*t+2)>=this.length)&&(e+2<this.length&&i[e+2]>i[e]&&(e+=2),i[e]>i[t]);)g=i[t],i[t]=i[e],i[e]=g,g=i[t+1],i[t+1]=i[e+1],i[e+1]=g,t=e;return{index:A,value:I,length:this.length}};var f,y=2,l=[];for(f=0;288>f;f++)switch(!0){case 143>=f:l.push([f+48,8]);break;case 255>=f:l.push([f-144+400,9]);break;case 279>=f:l.push([f-256+0,7]);break;case 287>=f:l.push([f-280+192,8]);break;default:throw"invalid literal: "+f}function w(A,I){this.length=A,this.n=I}u.prototype.g=function(){var g,e,r,C,n=this.input;switch(this.k){case 0:for(r=0,C=n.length;r<C;){var o,B,a,E=e=t?n.subarray(r,r+65535):n.slice(r,r+65535),Q=(r+=e.length)===C,s=A,h=A,c=this.c,u=this.e;if(t){for(c=new Uint8Array(this.c.buffer);c.length<=u+E.length+5;)c=new Uint8Array(c.length<<1);c.set(this.c)}if(o=Q?1:0,c[u++]=0|o,a=65536+~(B=E.length)&65535,c[u++]=255&B,c[u++]=B>>>8&255,c[u++]=255&a,c[u++]=a>>>8&255,t)c.set(E,u),u+=E.length,c=c.subarray(0,u);else{for(s=0,h=E.length;s<h;++s)c[u++]=E[s];c.length=u}this.e=u,this.c=c}break;case 1:var f=new i(t?new Uint8Array(this.c.buffer):this.c,this.e);f.b(1,1,I),f.b(1,2,I);var w,F,D,S=p(this,n);for(w=0,F=S.length;w<F;w++)if(D=S[w],i.prototype.b.apply(f,l[D]),256<D)f.b(S[++w],S[++w],I),f.b(S[++w],5),f.b(S[++w],S[++w],I);else if(256===D)break;this.c=f.finish(),this.e=this.c.length;break;case y:var G,m,k,Y,M,N,R,b,v,H,L,J,K,q,T,x=new i(t?new Uint8Array(this.c.buffer):this.c,this.e),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=Array(19);for(G=y,x.b(1,1,I),x.b(G,2,I),m=p(this,n),R=U(N=d(this.p,15)),v=U(b=d(this.o,7)),k=286;257<k&&0===N[k-1];k--);for(Y=30;1<Y&&0===b[Y-1];Y--);var Z,O,j,X,P,z,_=k,$=Y,AA=new(t?Uint32Array:Array)(_+$),IA=new(t?Uint32Array:Array)(316),gA=new(t?Uint8Array:Array)(19);for(Z=O=0;Z<_;Z++)AA[O++]=N[Z];for(Z=0;Z<$;Z++)AA[O++]=b[Z];if(!t)for(Z=0,X=gA.length;Z<X;++Z)gA[Z]=0;for(Z=P=0,X=AA.length;Z<X;Z+=O){for(O=1;Z+O<X&&AA[Z+O]===AA[Z];++O);if(j=O,0===AA[Z])if(3>j)for(;0<j--;)IA[P++]=0,gA[0]++;else for(;0<j;)(z=138>j?j:138)>j-3&&z<j&&(z=j-3),10>=z?(IA[P++]=17,IA[P++]=z-3,gA[17]++):(IA[P++]=18,IA[P++]=z-11,gA[18]++),j-=z;else if(IA[P++]=AA[Z],gA[AA[Z]]++,3>--j)for(;0<j--;)IA[P++]=AA[Z],gA[AA[Z]]++;else for(;0<j;)(z=6>j?j:6)>j-3&&z<j&&(z=j-3),IA[P++]=16,IA[P++]=z-3,gA[16]++,j-=z}for(g=t?IA.subarray(0,P):IA.slice(0,P),H=d(gA,7),q=0;19>q;q++)W[q]=H[V[q]];for(M=19;4<M&&0===W[M-1];M--);for(L=U(H),x.b(k-257,5,I),x.b(Y-1,5,I),x.b(M-4,4,I),q=0;q<M;q++)x.b(W[q],3,I);for(q=0,T=g.length;q<T;q++)if(J=g[q],x.b(L[J],H[J],I),16<=J){switch(q++,J){case 16:K=2;break;case 17:K=3;break;case 18:K=7;break;default:throw"invalid code: "+J}x.b(g[q],K,I)}var eA,tA,iA,rA,CA,nA,oA,BA,aA=[R,N],EA=[v,b];for(CA=aA[0],nA=aA[1],oA=EA[0],BA=EA[1],eA=0,tA=m.length;eA<tA;++eA)if(iA=m[eA],x.b(CA[iA],nA[iA],I),256<iA)x.b(m[++eA],m[++eA],I),rA=m[++eA],x.b(oA[rA],BA[rA],I),x.b(m[++eA],m[++eA],I);else if(256===iA)break;this.c=x.finish(),this.e=this.c.length;break;default:throw"invalid compression type"}return this.c};var F=function(){function A(A){switch(!0){case 3===A:return[257,A-3,0];case 4===A:return[258,A-4,0];case 5===A:return[259,A-5,0];case 6===A:return[260,A-6,0];case 7===A:return[261,A-7,0];case 8===A:return[262,A-8,0];case 9===A:return[263,A-9,0];case 10===A:return[264,A-10,0];case 12>=A:return[265,A-11,1];case 14>=A:return[266,A-13,1];case 16>=A:return[267,A-15,1];case 18>=A:return[268,A-17,1];case 22>=A:return[269,A-19,2];case 26>=A:return[270,A-23,2];case 30>=A:return[271,A-27,2];case 34>=A:return[272,A-31,2];case 42>=A:return[273,A-35,3];case 50>=A:return[274,A-43,3];case 58>=A:return[275,A-51,3];case 66>=A:return[276,A-59,3];case 82>=A:return[277,A-67,4];case 98>=A:return[278,A-83,4];case 114>=A:return[279,A-99,4];case 130>=A:return[280,A-115,4];case 162>=A:return[281,A-131,5];case 194>=A:return[282,A-163,5];case 226>=A:return[283,A-195,5];case 257>=A:return[284,A-227,5];case 258===A:return[285,A-258,0];default:throw"invalid length: "+A}}var I,g,e=[];for(I=3;258>=I;I++)g=A(I),e[I]=g[2]<<24|g[1]<<16|g[0];return e}(),D=t?new Uint32Array(F):F;function p(I,g){function e(A,I){var g,e,t,i,r=A.n,C=[],n=0;switch(g=D[A.length],C[n++]=65535&g,C[n++]=g>>16&255,C[n++]=g>>24,!0){case 1===r:e=[0,r-1,0];break;case 2===r:e=[1,r-2,0];break;case 3===r:e=[2,r-3,0];break;case 4===r:e=[3,r-4,0];break;case 6>=r:e=[4,r-5,1];break;case 8>=r:e=[5,r-7,1];break;case 12>=r:e=[6,r-9,2];break;case 16>=r:e=[7,r-13,2];break;case 24>=r:e=[8,r-17,3];break;case 32>=r:e=[9,r-25,3];break;case 48>=r:e=[10,r-33,4];break;case 64>=r:e=[11,r-49,4];break;case 96>=r:e=[12,r-65,5];break;case 128>=r:e=[13,r-97,5];break;case 192>=r:e=[14,r-129,6];break;case 256>=r:e=[15,r-193,6];break;case 384>=r:e=[16,r-257,7];break;case 512>=r:e=[17,r-385,7];break;case 768>=r:e=[18,r-513,8];break;case 1024>=r:e=[19,r-769,8];break;case 1536>=r:e=[20,r-1025,9];break;case 2048>=r:e=[21,r-1537,9];break;case 3072>=r:e=[22,r-2049,10];break;case 4096>=r:e=[23,r-3073,10];break;case 6144>=r:e=[24,r-4097,11];break;case 8192>=r:e=[25,r-6145,11];break;case 12288>=r:e=[26,r-8193,12];break;case 16384>=r:e=[27,r-12289,12];break;case 24576>=r:e=[28,r-16385,13];break;case 32768>=r:e=[29,r-24577,13];break;default:throw"invalid distance"}for(g=e,C[n++]=g[0],C[n++]=g[1],C[n++]=g[2],t=0,i=C.length;t<i;++t)h[c++]=C[t];f[C[0]]++,y[C[3]]++,u=A.length+I-1,E=null}var i,r,C,n,o,B,a,E,Q,s={},h=t?new Uint16Array(2*g.length):[],c=0,u=0,f=new(t?Uint32Array:Array)(286),y=new(t?Uint32Array:Array)(30),l=I.l;if(!t){for(C=0;285>=C;)f[C++]=0;for(C=0;29>=C;)y[C++]=0}for(f[256]=1,i=0,r=g.length;i<r;++i){for(C=o=0,n=3;C<n&&i+C!==r;++C)o=o<<8|g[i+C];if(s[o]===A&&(s[o]=[]),B=s[o],!(0<u--)){for(;0<B.length&&32768<i-B[0];)B.shift();if(i+3>=r){for(E&&e(E,-1),C=0,n=r-i;C<n;++C)Q=g[i+C],h[c++]=Q,++f[Q];break}0<B.length?(a=S(g,i,B),E?E.length<a.length?(Q=g[i-1],h[c++]=Q,++f[Q],e(a,0)):e(E,-1):a.length<l?E=a:e(a,0)):E?e(E,-1):(Q=g[i],h[c++]=Q,++f[Q])}B.push(i)}return h[c++]=256,f[256]++,I.p=f,I.o=y,t?h.subarray(0,c):h}function S(A,I,g){var e,t,i,r,C,n,o=0,B=A.length;r=0,n=g.length;A:for(;r<n;r++){if(e=g[n-r-1],i=3,3<o){for(C=o;3<C;C--)if(A[e+C-1]!==A[I+C-1])continue A;i=o}for(;258>i&&I+i<B&&A[e+i]===A[I+i];)++i;if(i>o&&(t=e,o=i),258===i)break}return new w(o,I-t)}function d(A,I){var g,e,i,r,C,n=A.length,o=new c(572),B=new(t?Uint8Array:Array)(n);if(!t)for(r=0;r<n;r++)B[r]=0;for(r=0;r<n;++r)0<A[r]&&o.push(r,A[r]);if(g=Array(o.length/2),e=new(t?Uint32Array:Array)(o.length/2),1===g.length)return B[o.pop().index]=1,B;for(r=0,C=o.length/2;r<C;++r)g[r]=o.pop(),e[r]=g[r].value;for(i=function(A,I,g){function e(A){var g=s[A][h[A]];g===I?(e(A+1),e(A+1)):--E[g],++h[A]}var i,r,C,n,o,B=new(t?Uint16Array:Array)(g),a=new(t?Uint8Array:Array)(g),E=new(t?Uint8Array:Array)(I),Q=Array(g),s=Array(g),h=Array(g),c=(1<<g)-I,u=1<<g-1;for(B[g-1]=I,r=0;r<g;++r)c<u?a[r]=0:(a[r]=1,c-=u),c<<=1,B[g-2-r]=(B[g-1-r]/2|0)+I;for(B[0]=a[0],Q[0]=Array(B[0]),s[0]=Array(B[0]),r=1;r<g;++r)B[r]>2*B[r-1]+a[r]&&(B[r]=2*B[r-1]+a[r]),Q[r]=Array(B[r]),s[r]=Array(B[r]);for(i=0;i<I;++i)E[i]=g;for(C=0;C<B[g-1];++C)Q[g-1][C]=A[C],s[g-1][C]=C;for(i=0;i<g;++i)h[i]=0;for(1===a[g-1]&&(--E[0],++h[g-1]),r=g-2;0<=r;--r){for(n=i=0,o=h[r+1],C=0;C<B[r];C++)(n=Q[r+1][o]+Q[r+1][o+1])>A[i]?(Q[r][C]=n,s[r][C]=I,o+=2):(Q[r][C]=A[i],s[r][C]=i,++i);h[r]=0,1===a[r]&&e(r)}return E}(e,e.length,I),r=0,C=g.length;r<C;++r)B[g[r].index]=i[r];return B}function U(A){var I,g,e,i,r=new(t?Uint16Array:Array)(A.length),C=[],n=[],o=0;for(I=0,g=A.length;I<g;I++)C[A[I]]=1+(0|C[A[I]]);for(I=1,g=16;I<=g;I++)n[I]=o,o+=0|C[I],o<<=1;for(I=0,g=A.length;I<g;I++)for(o=n[A[I]],n[A[I]]+=1,e=r[I]=0,i=A[I];e<i;e++)r[I]=r[I]<<1|1&o,o>>>=1;return r}function G(A){A=A||{},this.files=[],this.d=A.comment}var m=[80,75,1,2],k=[80,75,3,4],Y=[80,75,5,6];function M(A,I){var g,e=65535&A[2]|2;return g=e*(1^e)>>8&255,N(A,I),g^I}function N(A,I){A[0]=(h[255&(A[0]^I)]^A[0]>>>8)>>>0,A[1]=1+(6681*(20173*(A[1]+(255&A[0]))>>>0)>>>0)>>>0,A[2]=(h[255&(A[2]^A[1]>>>24)]^A[2]>>>8)>>>0}function R(A,I){var g,t,i,r;if(Object.keys)g=Object.keys(I);else for(t in g=[],i=0,I)g[i++]=t;for(i=0,r=g.length;i<r;++i)e(A+"."+(t=g[i]),I[t])}G.prototype.m=function(A,g){g=g||{};var e,i=A.length,r=0;if(t&&A instanceof Array&&(A=new Uint8Array(A)),"number"!=typeof g.compressionMethod&&(g.compressionMethod=8),g.compress)switch(g.compressionMethod){case 0:break;case 8:r=Q(A),A=new u(A,g.deflateOption).g(),e=I;break;default:throw Error("unknown compression method:"+g.compressionMethod)}this.files.push({buffer:A,a:g,j:e,r:!1,size:i,h:r})},G.prototype.q=function(A){this.i=A},G.prototype.g=function(){var g,e,i,r,C,n,o,B,a,E,s,h,c,f,y,l,w,F,D,p,S,d,U,G,R=this.files,b=0,v=0;for(S=0,d=R.length;S<d;++S){if(c=(g=R[S]).a.filename?g.a.filename.length:0,f=g.a.comment?g.a.comment.length:0,!g.j)switch(g.h=Q(g.buffer),g.a.compressionMethod){case 0:break;case 8:g.buffer=new u(g.buffer,g.a.deflateOption).g(),g.j=I;break;default:throw Error("unknown compression method:"+g.a.compressionMethod)}if(g.a.password!==A||this.i!==A){var H,L=g.a.password||this.i,J=[305419896,591751049,878082192],K=A;for(t&&(J=new Uint32Array(J)),K=0,H=L.length;K<H;++K)N(J,255&L[K]);for(p=J,F=g.buffer,t?((D=new Uint8Array(F.length+12)).set(F,12),F=D):F.unshift(0,0,0,0,0,0,0,0,0,0,0,0),U=0;12>U;++U)F[U]=M(p,11===S?255&g.h:256*Math.random()|0);for(G=F.length;U<G;++U)F[U]=M(p,F[U]);g.buffer=F}b+=30+c+g.buffer.length,v+=46+c+f}for(e=new(t?Uint8Array:Array)(b+v+(22+(this.d?this.d.length:0))),i=0,C=(r=b)+v,S=0,d=R.length;S<d;++S){if(c=(g=R[S]).a.filename?g.a.filename.length:0,f=g.a.comment?g.a.comment.length:0,n=i,e[i++]=k[0],e[i++]=k[1],e[i++]=k[2],e[i++]=k[3],e[r++]=m[0],e[r++]=m[1],e[r++]=m[2],e[r++]=m[3],e[r++]=20,e[r++]=g.a.os||0,e[i++]=e[r++]=20,o=e[i++]=e[r++]=0,(g.a.password||this.i)&&(o|=1),e[i++]=e[r++]=255&o,e[i++]=e[r++]=o>>8&255,B=g.a.compressionMethod,e[i++]=e[r++]=255&B,e[i++]=e[r++]=B>>8&255,a=g.a.date||new Date,e[i++]=e[r++]=(7&a.getMinutes())<<5|a.getSeconds()/2|0,e[i++]=e[r++]=a.getHours()<<3|a.getMinutes()>>3,e[i++]=e[r++]=(a.getMonth()+1&7)<<5|a.getDate(),e[i++]=e[r++]=(a.getFullYear()-1980&127)<<1|a.getMonth()+1>>3,E=g.h,e[i++]=e[r++]=255&E,e[i++]=e[r++]=E>>8&255,e[i++]=e[r++]=E>>16&255,e[i++]=e[r++]=E>>24&255,s=g.buffer.length,e[i++]=e[r++]=255&s,e[i++]=e[r++]=s>>8&255,e[i++]=e[r++]=s>>16&255,e[i++]=e[r++]=s>>24&255,h=g.size,e[i++]=e[r++]=255&h,e[i++]=e[r++]=h>>8&255,e[i++]=e[r++]=h>>16&255,e[i++]=e[r++]=h>>24&255,e[i++]=e[r++]=255&c,e[i++]=e[r++]=c>>8&255,e[i++]=e[r++]=0,e[i++]=e[r++]=0,e[r++]=255&f,e[r++]=f>>8&255,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=255&n,e[r++]=n>>8&255,e[r++]=n>>16&255,e[r++]=n>>24&255,y=g.a.filename)if(t)e.set(y,i),e.set(y,r),i+=c,r+=c;else for(U=0;U<c;++U)e[i++]=e[r++]=y[U];if(l=g.a.extraField)if(t)e.set(l,i),e.set(l,r),i+=0,r+=0;else for(U=0;U<f;++U)e[i++]=e[r++]=l[U];if(w=g.a.comment)if(t)e.set(w,r),r+=f;else for(U=0;U<f;++U)e[r++]=w[U];if(t)e.set(g.buffer,i),i+=g.buffer.length;else for(U=0,G=g.buffer.length;U<G;++U)e[i++]=g.buffer[U]}if(e[C++]=Y[0],e[C++]=Y[1],e[C++]=Y[2],e[C++]=Y[3],e[C++]=0,e[C++]=0,e[C++]=0,e[C++]=0,e[C++]=255&d,e[C++]=d>>8&255,e[C++]=255&d,e[C++]=d>>8&255,e[C++]=255&v,e[C++]=v>>8&255,e[C++]=v>>16&255,e[C++]=v>>24&255,e[C++]=255&b,e[C++]=b>>8&255,e[C++]=b>>16&255,e[C++]=b>>24&255,f=this.d?this.d.length:0,e[C++]=255&f,e[C++]=f>>8&255,this.d)if(t)e.set(this.d,C);else for(U=0,G=f;U<G;++U)e[C++]=this.d[U];return e},e("Zlib.Zip",G),e("Zlib.Zip.prototype.addFile",G.prototype.m),e("Zlib.Zip.prototype.compress",G.prototype.g),e("Zlib.Zip.prototype.setPassword",G.prototype.q),R("Zlib.Zip.CompressionMethod",{STORE:0,DEFLATE:8}),R("Zlib.Zip.OperatingSystem",{MSDOS:0,UNIX:3,MACINTOSH:7})}).call(this)},9:function(A,I,g){"use strict";var e=g(1),t=g.n(e),i=g(2),r=g.n(i),C=g(15),n=g(0),o=g(20),B=function(){function A(I){t()(this,A),this.name="",this.type="",this._value=null,this.disabled=!1,this.hint="",this.rows=0,this.toggleValues=[],this.target=null,this.defaultIndex=0,this.min=null,this.max=null,this.step=1,I&&this._parseConfig(I)}return r()(A,[{key:"_parseConfig",value:function(A){this.name=A.name,this.type=A.type,this.defaultValue=A.value,this.disabled=!!A.disabled,this.hint=A.hint||!1,this.rows=A.rows||!1,this.toggleValues=A.toggleValues,this.target=void 0!==A.target?A.target:null,this.defaultIndex=void 0!==A.defaultIndex?A.defaultIndex:0,this.min=A.min,this.max=A.max,this.step=A.step}},{key:"config",get:function(){return this._value}},{key:"value",set:function(I){this._value=A.prepare(I,this.type)},get:function(){return this._value}}],[{key:"prepare",value:function(A,I){var g;switch(I){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return n.b.parseEscapedChars(A);case"byteArray":return"string"==typeof A?(A=A.replace(/\s+/g,""),Object(o.a)(A)):A;case"number":if(null===A)return A;if(g=parseFloat(A),isNaN(g))throw"Invalid ingredient value. Not a number: "+n.b.truncate(A.toString(),10);return g;default:return A}}}]),A}(),a=function(){function A(){t()(this,A),this._inputType=-1,this._outputType=-1,this._presentType=-1,this._breakpoint=!1,this._disabled=!1,this._flowControl=!1,this._manualBake=!1,this._ingList=[],this.name="",this.module="",this.description="",this.infoURL=null}return r()(A,[{key:"run",value:function(A,I){return A}},{key:"highlight",value:function(A,I){return!1}},{key:"highlightReverse",value:function(A,I){return!1}},{key:"present",value:function(A,I){return A}},{key:"addIngredient",value:function(A){this._ingList.push(A)}},{key:"inputType",set:function(A){this._inputType=C.a.typeEnum(A)},get:function(){return C.a.enumLookup(this._inputType)}},{key:"outputType",set:function(A){this._outputType=C.a.typeEnum(A),this._presentType<0&&(this._presentType=this._outputType)},get:function(){return C.a.enumLookup(this._outputType)}},{key:"presentType",set:function(A){this._presentType=C.a.typeEnum(A)},get:function(){return C.a.enumLookup(this._presentType)}},{key:"args",set:function(A){var I=this;A.forEach((function(A){var g=new B(A);I.addIngredient(g)}))},get:function(){return this._ingList.map((function(A){var I={name:A.name,type:A.type,value:A.defaultValue};return A.toggleValues&&(I.toggleValues=A.toggleValues),A.hint&&(I.hint=A.hint),A.rows&&(I.rows=A.rows),A.disabled&&(I.disabled=A.disabled),A.target&&(I.target=A.target),A.defaultIndex&&(I.defaultIndex=A.defaultIndex),"number"==typeof A.min&&(I.min=A.min),"number"==typeof A.max&&(I.max=A.max),A.step&&(I.step=A.step),I}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(A){return A.config}))}}},{key:"ingValues",set:function(A){var I=this;A.forEach((function(A,g){I._ingList[g].value=A}))},get:function(){return this._ingList.map((function(A){return A.value}))}},{key:"breakpoint",set:function(A){this._breakpoint=!!A},get:function(){return this._breakpoint}},{key:"disabled",set:function(A){this._disabled=!!A},get:function(){return this._disabled}},{key:"flowControl",get:function(){return this._flowControl},set:function(A){this._flowControl=!!A}},{key:"manualBake",get:function(){return this._manualBake},set:function(A){this._manualBake=!!A}}]),A}();I.a=a}});